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 Table / list interaction: indented table with lists in table contents
1598 </td></tr></table></dd></dl>
1603 Definition Lists: Nesting: Multi-level (Parsoid only)
1633 Definition Lists: Nesting: Test 2 (Parsoid only)
1653 Definition Lists: Nesting: Test 3 (Parsoid only)
1681 Definition Lists: Nesting: Test 4
1686 <dl><dd><dl><dd><dl><dt>t3
1696 Definition Lists: Mixed Lists: Test 1
1702 <dl><dd><dl><dt><ul><li> foo
1714 Definition Lists: Mixed Lists: Test 2
1728 Definition Lists: Mixed Lists: Test 3
1733 <ul><li><dl><dd><dl><dd><dl><dd> d1
1744 Definition Lists: Mixed Lists: Test 4
1749 <ul><li><dl><dt>d1 </dt><dd>d2
1750 </dd><dt>d3 </dt><dd>d4
1758 Definition Lists: Mixed Lists: Test 5
1773 Definition Lists: Mixed Lists: Test 6
1778 <ol><li><ul><li><dl><dd>d1
1790 Definition Lists: Mixed Lists: Test 7
1804 Definition Lists: Mixed Lists: Test 8
1820 Definition Lists: Mixed Lists: Test 9
1824 <ul><li><dl><dt>foo </dt><dd>bar
1832 Definition Lists: Mixed Lists: Test 10
1836 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1845 Definition Lists: Mixed Lists: Test 11
1850 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1855 <dl><dt>boo </dt><dd>baz
1866 Definition Lists: Weird Ones: Test 1
1868 *#;*::;; foo : bar (who uses this?)
1870 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1886 External links: non-bracketed
1888 Non-bracketed: http://example.com
1890 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1895 External links: numbered
1897 Numbered: [http://example.com]
1898 Numbered: [http://example.net]
1899 Numbered: [http://example.com]
1901 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1902 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1903 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1908 External links: specified text
1910 Specified text: [http://example.com link]
1912 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1917 External links: trail
1919 Linktrails should not work for external links: [http://example.com link]s
1921 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1926 External links: dollar sign in URL
1928 http://example.com/1$2345
1930 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1935 External links: dollar sign in URL (named)
1937 [http://example.com/1$2345]
1939 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1944 External links: open square bracket forbidden in URL (bug 4377)
1946 http://example.com/1[2345
1948 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1953 External links: open square bracket forbidden in URL (named) (bug 4377)
1955 [http://example.com/1[2345]
1957 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1962 External links: nowiki in URL link text (bug 6230)
1964 [http://example.com/ <nowiki>''example site''</nowiki>]
1966 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1971 External links: newline forbidden in text (bug 6230 regression check)
1973 [http://example.com/ first
1976 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1982 External links: Pipe char between url and text
1984 [http://example.com | link]
1986 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1991 External links: protocol-relative URL in brackets
1993 [//example.com/ Test]
1995 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2000 External links: protocol-relative URL in brackets without text
2004 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2009 External links: protocol-relative URL in free text is left alone
2013 <p>//example.com/Foo
2018 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2020 foo//example.com/Foo
2022 <p>foo//example.com/Foo
2029 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2031 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2036 External image from https
2038 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2040 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2045 Link to non-http image, no img tag
2047 Link to non-http image, no img tag: ftp://example.com/test.jpg
2049 <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>
2054 External links: terminating separator
2056 Terminating separator: http://example.com/thing,
2058 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2063 External links: intervening separator
2065 Intervening separator: http://example.com/1,2,3
2067 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2072 External links: old bug with URL in query
2074 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2076 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2081 External links: old URL-in-URL bug, mixed protocols
2083 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2085 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2090 External links: URL in text
2092 URL in text: [http://example.com http://example.com]
2094 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2099 External links: Clickable images
2101 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2103 <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>
2108 External links: raw ampersand
2110 Old & use: http://x&y
2112 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2117 External links: encoded ampersand
2119 Old & use: http://x&y
2121 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2126 External links: encoded equals (bug 6102)
2128 http://example.com/?foo=bar
2130 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2135 External links: [raw ampersand]
2137 Old & use: [http://x&y]
2139 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2144 External links: [encoded ampersand]
2146 Old & use: [http://x&y]
2148 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2153 External links: [encoded equals] (bug 6102)
2155 [http://example.com/?foo=bar]
2157 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2162 External links: [IDN ignored character reference in hostname; strip it right off]
2164 [http://e‌xample.com/]
2166 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2170 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2171 # Where an external link could easily circumvent the sanitization of the text of
2172 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2173 # test demands a higher standard. That's a bit strange.
2177 # http://example.com -> [http://example.com|http://example.com]
2178 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2180 # The first example is sanitized, but the second is not. Any security benefits
2181 # from this production are trivial to circumvent. Either remove this test and
2182 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2183 # the test accordingly.
2188 External links: IDN ignored character reference in hostname; strip it right off
2190 http://e‌xample.com/
2192 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2197 External links: www.jpeg.org (bug 554)
2201 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2206 External links: URL within URL (original bug 2)
2208 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2210 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2215 BUG 361: URL inside bracketed URL
2217 [http://www.example.com/foo http://www.example.com/bar]
2219 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2224 BUG 361: URL within URL, not bracketed
2226 http://www.example.com/foo?=http://www.example.com/bar
2228 <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>
2233 BUG 289: ">"-token in URL-tail
2235 http://www.example.com/<hello>
2237 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2242 BUG 289: literal ">"-token in URL-tail
2244 http://www.example.com/<b>html</b>
2246 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2251 BUG 289: ">"-token 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 BUG 289: literal ">"-token in bracketed URL
2262 [http://www.example.com/<b>html</b> stuff]
2264 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2269 BUG 289: literal double quote at end of URL
2271 http://www.example.com/"hello"
2273 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2278 BUG 289: literal double quote in bracketed URL
2280 [http://www.example.com/"hello" stuff]
2282 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2287 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2289 [http://www.example.com test]
2291 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2296 External links: wiki links within external link (Bug 3695)
2298 [http://example.com [[wikilink]] embedded in ext link]
2300 <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>
2305 BUG 787: Links with one slash after the url protocol are invalid
2309 [http:/example.com title]
2311 <p>http:/example.com
2312 </p><p>[http:/example.com title]
2317 Bracketed external links with template-generated invalid target
2319 [{{echo|http:/example.com}} title]
2321 <p>[http:/example.com title]
2326 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2328 ''[http://example.com text'']
2329 [http://example.com '''text]'''
2330 ''Something [http://example.com in italic'']
2331 ''Something [http://example.com mixed''''', even bold]'''
2332 '''''Now [http://example.com both''''']
2334 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2335 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2336 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2337 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2338 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2344 Bug 4781: %26 in URL
2346 http://www.example.com/?title=AT%26T
2348 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2352 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2353 # % is actually legal in HTML5. Any change in output would need testing though.
2355 Bug 4781, 5267: %25 in URL
2357 http://www.example.com/?title=100%25_Bran
2359 <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>
2364 Bug 4781, 5267: %28, %29 in URL
2366 http://www.example.com/?title=Ben-Hur_%281959_film%29
2368 <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>
2374 Bug 4781: %26 in autonumber URL
2376 [http://www.example.com/?title=AT%26T]
2378 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2383 Bug 4781, 5267: %26 in autonumber URL
2385 [http://www.example.com/?title=100%25_Bran]
2387 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2392 Bug 4781, 5267: %28, %29 in autonumber URL
2394 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2396 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2402 Bug 4781: %26 in bracketed URL
2404 [http://www.example.com/?title=AT%26T link]
2406 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2411 Bug 4781, 5267: %26 in bracketed URL
2413 [http://www.example.com/?title=100%25_Bran link]
2415 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2420 Bug 4781, 5267: %28, %29 in bracketed URL
2422 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2424 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2429 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2431 Some [http://example.com/ pretty ''italics'' and stuff]!
2433 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2438 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2440 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2442 <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>
2447 External link containing double-single-quotes with no space separating the url from text in italics
2449 [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]].]
2451 <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>
2456 URL-encoding in URL functions (single parameter)
2458 {{localurl:Some page|amp=&}}
2460 <p>/index.php?title=Some_page&amp=&
2465 URL-encoding in URL functions (multiple parameters)
2467 {{localurl:Some page|q=?&=&}}
2469 <p>/index.php?title=Some_page&q=?&amp=&
2476 http://example.com/index.php?foozoid%5B%5D=bar
2478 http://example.com/index.php?foozoid[]=bar
2480 <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>
2481 </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>
2486 IPv6 urls (bug 21261)
2490 http://[2404:130:0:1000::187:2]/index.php
2492 <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>
2497 Non-extlinks in brackets
2506 [{{echo|foo}} ''bar'']
2507 [{{echo|foo}}l's] errand
2508 [{{echo|foo}}l's errand]
2530 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2532 Normal text. '''''Bold italic text.''''' Normal text.
2534 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2535 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2541 Unclosed and unmatched quotes
2543 '''''Bold italic text '''with bold deactivated''' in between.'''''
2545 '''''Bold italic text ''with italic deactivated'' in between.'''''
2549 ..spanning two paragraphs (should not work).'''
2551 '''Bold tag left open
2553 ''Italic tag left open
2557 <!-- Unmatching number of opening, closing tags: -->
2558 '''This year''''s election ''should'' beat '''last year''''s.
2560 ''Tom'''s car is bigger than ''Susan'''s.
2562 Plain ''italic'''s plain
2564 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2565 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2566 </p><p><b>Bold text..</b>
2567 </p><p>..spanning two paragraphs (should not work).
2568 </p><p><b>Bold tag left open</b>
2569 </p><p><i>Italic tag left open</i>
2571 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2572 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2573 </p><p>Plain <i>italic'</i>s plain
2580 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2583 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2584 # is the bare minimun required by the spec, see:
2585 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2587 A table with no data.
2593 # A table with nothing but a caption is invalid XHTML, we might want to render
2594 # this as <p>caption</p>
2596 A table with nothing but a caption
2604 </caption><tr><td></td></tr></table>
2609 Table td-cell syntax variations
2613 | foo bar foo || baz
2614 | style='color:red;' | baz
2615 | style='color:red;' || baz
2622 <td> foo bar foo </td>
2625 <td style="color:red;"> baz
2627 <td> style='color:red;' </td>
2655 Simple table but with multiple dashes for row wikitext
2673 Multiplication table
2675 {| border="1" cellpadding="2"
2676 |+Multiplication table
2678 ! × !! 1 !! 2 !! 3
2696 <table border="1" cellpadding="2">
2697 <caption>Multiplication table
2744 Accept "||" in table headings
2759 Accept "||" in indented table headings
2769 </th></tr></table></dd></dl>
2774 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2791 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
2795 |style='color:red;'|+1
2796 |style='color:blue;'|-1
2808 <td style="color:red;">+1
2810 <td style="color:blue;">-1
2834 |rowspan=2| Cell 2, row 1 (and 2)
2845 <td rowspan="2"> Cell 2, row 1 (and 2)
2863 {| bgcolor=#ABCDEF border=2
2868 |the original table again
2876 <table bgcolor="#ABCDEF" border="2">
2884 <td>the original table again
2890 Invalid attributes in table cell (bug 1830)
2905 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2908 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2912 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2913 <td>]" onmouseover="alert(document.cookie)">test
2922 Indented table markup mixed with indented pre content (proposed in bug 6200)
2927 Text that should be rendered preformatted
2935 <pre>Text that should be rendered preformatted
2944 Template-generated table cell attributes and cell content
2952 <td style="color: red"> Foo
2958 Table with row followed by newlines and table heading
2975 # FIXME: Preserve the attribute properly (with an empty string as value) in
2976 # the PHP parser. Parsoid implements the behavior below.
2978 Table attributes with empty value
2997 Plain link, capitalized
3001 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3006 Plain link, uncapitalized
3010 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3017 [[Main Page|The Main Page]]
3019 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3028 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3033 Broken link with fragment
3035 [[Zigzagzogzagzig#zug]]
3037 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3042 Special page link with fragment
3044 [[Special:Version#anchor]]
3046 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3051 Nonexistent special page link with fragment
3053 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3055 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3062 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3064 <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>
3071 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3073 <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>!!!
3078 Link with HTML entity in suffix / tail
3080 [[Main Page]]", [[Main Page]]a
3082 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3087 Link with 3 brackets
3096 Piped link with 3 brackets
3098 [[[main page|the main page]]]
3100 <p>[[[main page|the main page]]]
3105 Link with multiple pipes
3107 [[Main Page|The|Main|Page]]
3109 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3116 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3118 <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>
3123 Piped link to namespace
3125 [[Meta:Disclaimers|The disclaimers]]
3127 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3134 [[Usually caused by a typo (oops}]]
3136 <p>[[Usually caused by a typo (oops}]]
3141 Link containing % (not as a hex sequence)
3145 <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>
3150 Link containing % as a single hex sequence interpreted to char
3154 <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>
3159 Link containing % as a double hex sequence interpreted to hex sequence
3163 <p>[[7%2525 Solution]]
3168 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3169 Example for such a section: == < ==
3171 [[%23%3c]][[%23%3e]]
3173 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3178 Link containing "<#" and ">#" as a hex sequences
3180 [[%3c%23]][[%3e%23]]
3182 <p>[[%3c%23]][[%3e%23]]
3187 Link containing double-single-quotes '' (bug 4598)
3189 [[Lista d''e paise d''o munno]]
3191 <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>
3196 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3198 Some [[Link|pretty ''italics'' and stuff]]!
3200 <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>!
3205 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3207 ''Some [[Link|pretty ''italics'' and stuff]]!
3209 <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>
3214 Link with double quotes in title part (literal) and alternate part (interpreted)
3216 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3220 [[''Pentecoste''|Pentecoste]]
3222 [[''Pentecoste''|''Pentecoste'']]
3224 <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>
3225 </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>
3226 </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>
3227 </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>
3232 Broken image links with HTML captions (bug 39700)
3234 [[File:Nonexistent|<script></script>]]
3235 [[File:Nonexistent|100px|<script></script>]]
3236 [[File:Nonexistent|<]]
3237 [[File:Nonexistent|a<i>b</i>c]]
3239 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3240 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3241 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3242 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3249 [[http://www.example.com]]
3251 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3256 Plain link to URL with link text
3258 [[http://www.example.com Link text]]
3260 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3265 Plain link to protocol-relative URL
3267 [[//www.example.com]]
3269 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3274 Plain link to protocol-relative URL with link text
3276 [[//www.example.com Link text]]
3278 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3283 Plain link to page with question mark in title
3289 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3290 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3295 # I'm fairly sure the expected result here is wrong.
3296 # We want these to be URL links, not pseudo-pages with URLs for titles....
3297 # However the current output is also pretty screwy.
3300 # I'm changing it to match the current output--it arguably makes more
3301 # sense in the light of the test above. Old expected result was:
3302 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3304 # But I think this test is bordering on "garbage in, garbage out" anyway.
3309 Piped link to URL: [[http://www.example.com|an example URL]]
3311 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3316 BUG 2: [[page|http://url/]] should link to page, not http://url/
3318 [[Main Page|http://url/]]
3320 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3325 BUG 337: Escaped self-links should be bold
3329 [[Bug462]] [[Bug462]]
3331 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3336 Self-link to section should not be bold
3340 [[Main Page#section]]
3342 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3353 Self-link to numeric title
3359 <p><strong class="selflink">0</strong>
3364 Link to numeric-equivalent title
3370 <p><a href="/wiki/00" title="00">00</a>
3375 <nowiki> inside a link
3377 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3379 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3384 Non-breaking spaces in title
3386 [[ Main Page ]]
3388 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3393 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3399 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3404 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3410 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3415 Internal link with en linktrail: no apostrophes (bug 27473)
3421 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3426 Internal link with ca linktrail with apostrophes (bug 27473)
3432 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3437 Internal link with kaa linktrail with apostrophes (bug 27473)
3443 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3448 ### Interwiki links (see maintenance/interwiki.sql)
3452 Inline interwiki link
3454 [[MeatBall:SoftSecurity]]
3456 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3461 Inline interwiki link with empty title (bug 2372)
3465 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3470 Interwiki link encoding conversion (bug 1636)
3472 *[[Wikipedia:ro:Olteniţa]]
3473 *[[Wikipedia:ro:Olteniţa]]
3475 <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>
3476 </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>
3482 Interwiki link with fragment (bug 2130)
3484 [[MeatBall:SoftSecurity#foo]]
3486 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3501 Double interlanguage link
3512 Interlanguage link, with prefix links
3524 Double interlanguage link, with prefix links (bug 8897)
3537 Parsoid-specific test: Wikilinks with should RT properly
3543 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3561 Broken br tag sanitization
3570 Incorrecly removing closing slashes from correctly formed XHTML
3572 <br style="clear:both;" />
3574 <p><br style="clear:both;" />
3579 Failing to transform badly formed HTML into correct XHTML
3581 <br style="clear: left;">
3582 <br style="clear: right;">
3583 <br style="clear: both;">
3585 <p><br style="clear: left;" />
3586 <br style="clear: right;" />
3587 <br style="clear: both;" />
3592 Handling html with a div self-closing tag
3601 <p><div title />
3605 <p><div title=bar />
3606 <div title=bar/>
3608 <div title="bar/"></div>
3614 Handling html with a br self-closing tag
3623 <p><br title="title" />
3624 <br title="title" />
3633 Horizontal ruler (should it add that extra space?)
3647 Horizontal ruler -- 4+ dashes render hr
3656 Horizontal ruler -- eats additional dashes on the same line
3665 Horizontal ruler -- does not collaps dashes on consecutive lines
3676 Horizontal ruler -- <4 dashes render as plain text
3685 Horizontal ruler -- Supports content following dashes on same line
3694 ### Block-level elements
3717 <ol><li>Numbered list
3734 ***#Number on level 4
3736 **#Number on level 3
3737 **#Number on level 3
3741 #** Level 3, but ordered
3744 <ol><li> with numbers
3746 <ul><li> and bullets
3748 <ol><li> and numbers
3750 </li><li>bullets again
3751 <ul><li>bullet level 2
3752 <ul><li>bullet level 3
3753 <ol><li>Number on level 4
3756 </li><li>bullet level 2
3757 <ol><li>Number on level 3
3758 </li><li>Number on level 3
3761 <ol><li>number level 2
3764 <ul><li><ul><li> Level 3
3768 <ol><li><ul><li><ul><li> Level 3, but ordered
3802 Nested lists 3 (first element empty)
3815 Nested lists 4 (first element empty)
3828 Nested lists 5 (both elements empty)
3841 Nested lists 6 (both elements empty)
3854 Nested lists 7 (skip initial nesting levels)
3858 <ul><li><ul><li><ul><li> foo
3866 Nested lists 8 (multiple nesting transitions)
3874 <ul><li><ul><li> bar
3884 1. Lists with start-of-line-transparent tokens before bullets: Comments
3898 2. Lists with start-of-line-transparent tokens before bullets: Template close
3910 List items are not parsed correctly following a <pre> block (bug 785)
3916 <ul><li> <pre>foo</pre>
3917 </li><li> <pre>bar</pre>
3924 List items from template
3935 * notSOL{{inner list}}
3954 List interrupted by empty line or heading
3964 <ul><li><ul><li> bar
3967 <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>
3968 <ul><li> Another list item
3979 Magic Word: {{CURRENTDAY}}
3988 Magic Word: {{CURRENTDAY2}}
3997 Magic Word: {{CURRENTDAYNAME}}
4006 Magic Word: {{CURRENTDOW}}
4015 Magic Word: {{CURRENTMONTH}}
4024 Magic Word: {{CURRENTMONTHABBREV}}
4026 {{CURRENTMONTHABBREV}}
4033 Magic Word: {{CURRENTMONTHNAME}}
4035 {{CURRENTMONTHNAME}}
4042 Magic Word: {{CURRENTMONTHNAMEGEN}}
4044 {{CURRENTMONTHNAMEGEN}}
4051 Magic Word: {{CURRENTTIME}}
4060 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4069 Magic Word: {{CURRENTYEAR}}
4078 Magic Word: {{FULLPAGENAME}}
4080 title=[[User:Ævar Arnfjörð Bjarmason]]
4084 <p>User:Ævar Arnfjörð Bjarmason
4089 Magic Word: {{FULLPAGENAMEE}}
4091 title=[[User:Ævar Arnfjörð Bjarmason]]
4095 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4100 Magic Word: {{NAMESPACE}}
4102 title=[[User:Ævar Arnfjörð Bjarmason]]
4111 Magic Word: {{NAMESPACEE}}
4113 title=[[User:Ævar Arnfjörð Bjarmason]]
4122 Magic Word: {{NAMESPACENUMBER}}
4124 title=[[User:Ævar Arnfjörð Bjarmason]]
4133 Magic Word: {{NUMBEROFFILES}}
4142 Magic Word: {{PAGENAME}}
4144 title=[[User:Ævar Arnfjörð Bjarmason]]
4148 <p>Ævar Arnfjörð Bjarmason
4153 Magic Word: {{PAGENAME}} with metacharacters
4155 title=[['foo & bar = baz']]
4159 <p><i>'foo & bar = baz'</i>
4164 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4166 title=[[*RFC 1234 http://example.com/]]
4170 <p>*RFC 1234 http://example.com/
4175 Magic Word: {{PAGENAMEE}}
4177 title=[[User:Ævar Arnfjörð Bjarmason]]
4181 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4186 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4188 title=[[*RFC 1234 http://example.com/]]
4192 <p>*RFC_1234_http://example.com/
4197 Magic Word: {{REVISIONID}}
4206 Magic Word: {{SCRIPTPATH}}
4215 Magic Word: {{SERVER}}
4219 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4224 Magic Word: {{SERVERNAME}}
4233 Magic Word: {{SITENAME}}
4242 Namespace 1 {{ns:1}}
4251 Namespace 1 {{ns:01}}
4260 Namespace 0 {{ns:0}} (bug 4783)
4268 Namespace 0 {{ns:00}} (bug 4783)
4276 Namespace -1 {{ns:-1}}
4285 Namespace User {{ns:User}}
4294 Namespace User talk {{ns:User_talk}}
4303 Namespace User talk {{ns:uSeR tAlK}}
4312 Namespace File {{ns:File}}
4321 Namespace File {{ns:Image}}
4330 Namespace (lang=de) Benutzer {{ns:User}}
4341 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4347 <p>Benutzer Diskussion
4355 {{urlencode:hi world?!}}
4356 {{urlencode:hi world?!|WIKI}}
4357 {{urlencode:hi world?!|PATH}}
4358 {{urlencode:hi world?!|QUERY}}
4371 Magic links: internal link to RFC (bug 479)
4375 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4380 Magic links: RFC (bug 479)
4384 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4389 Magic links: ISBN (bug 1937)
4393 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4398 Magic links: PMID incorrectly converts space to underscore
4402 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4411 Nonexistent template
4413 {{thistemplatedoesnotexist}}
4415 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4420 Template with invalid target containing tags
4422 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4424 <p>{{a<b>b</b>|foo|a=b|a = b}}
4429 Template with invalid target containing unclosed tag
4431 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4433 <p>{{a<b>|foo|a=b|a = b}}</b>
4440 This is a test template
4448 <p>This is a test template
4453 Template with explicit namespace
4457 <p>This is a test template
4465 This is a test template with parameter {{{param}}}
4471 {{paramtest|param=foo}}
4473 <p>This is a test template with parameter foo
4478 Template:paramtestnum
4484 Template unnamed parameter
4486 {{paramtestnum|Main Page|the main page}}
4488 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4493 Template:templatesimple
4499 Template:templateredirect
4501 #redirect [[Template:templatesimple]]
4505 Template:templateasargtestnum
4511 Template:templateasargtest
4513 {{template{{{templ}}}}}
4517 Template:templateasargtest2
4523 Template with template name as unnamed argument
4525 {{templateasargtestnum|templatesimple}}
4532 Template with template name as argument
4534 {{templateasargtest|templ=simple}}
4541 Template with template name as argument (2)
4543 {{templateasargtest2|templ=templatesimple}}
4550 Template:templateasargtestdefault
4552 {{{{{templ|templatesimple}}}}}
4562 Template with default value
4564 {{templateasargtestdefault}}
4571 Template with default value (value set)
4573 {{templateasargtestdefault|templ=templa}}
4582 {{templateredirect}}
4589 Template with argument in separate line
4591 {{ templateasargtest |
4599 Template with complex template as argument
4602 param ={{ templateasargtest |
4605 <p>This is a test template with parameter (test)
4610 Template with thumb image (with link in description)
4613 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4615 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>
4620 Template:complextemplate
4622 {{{1}}} {{paramtest|
4623 param ={{{param}}}}}
4627 Template with complex arguments
4630 param ={{ templateasargtest |
4631 templ = simple }}|[[Template:complextemplate|link]]}}
4633 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4638 BUG 553: link with two variables in a piped link
4641 |[[{{{1}}}|{{{2}}}]]
4646 <td>[[{{{1}}}|{{{2}}}]]
4652 Magic variable as template parameter
4654 {{paramtest|param={{SITENAME}}}}
4656 <p>This is a test template with parameter MediaWiki
4663 [[{{{param}}}|link]]
4667 Template parameter as link source
4669 {{linktest|param=Main Page}}
4671 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4676 Template-generated attribute string (k='v')
4678 <span {{attr_str|id|v1}}>bar</span>
4680 <p><span id="v1">bar</span>
4687 including another template, {{paramtest|param={{{arg}}}}}
4691 Template passing argument to another template
4693 {{paramtest2|arg='hmm'}}
4695 <p>including another template, This is a test template with parameter 'hmm'
4706 Template as link source
4710 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4728 Template infinite loop
4732 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4737 Template from main namespace
4756 BUG 529: Template with table, not included at beginning of line
4775 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4795 BUG 41: Template parameters shown as broken links
4804 Template with targets containing wikilinks
4808 {{[[{{echo|foo}}]]}}
4810 {{{{echo|[[foo}}]]}}
4812 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4813 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4821 ''None'' of '''this''' should be
4823 but rather passed unmodified
4827 # hmm, fix this or just deprecate msgnw and document its behavior?
4833 {{msgnw:MSGNW test}}
4835 <p>''None'' of '''this''' should be
4837 but rather passed unmodified
4845 {{int:youhavenewmessages|lots of money|not!}}
4847 <p>You have lots of money (not!).
4854 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4858 <includeonly> and <noinclude> being included
4869 <onlyinclude>Foo</onlyinclude>bar
4873 <onlyinclude> being included
4885 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4889 <onlyinclude> and <includeonly> being included
4898 <includeonly> and <noinclude> on a page
4900 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4907 Un-closed <noinclude>
4914 <onlyinclude> on a page
4916 <onlyinclude>Foo</onlyinclude>bar
4923 Un-closed <onlyinclude>
4930 Template:Includeonly section
4933 ==Includeonly section==
4939 Bug 6563: Edit link generation for section shown by <includeonly>
4941 {{includeonly section}}
4943 <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>
4944 <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>
4948 # Uses same input as the contents of [[Template:Includeonly section]]
4950 Bug 6563: Section extraction for section shown by <includeonly>
4955 ==Includeonly section==
4963 Bug 6563: Edit link generation for section suppressed by <includeonly>
4966 ==Includeonly section==
4970 <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>
4975 Bug 6563: Section extraction for section suppressed by <includeonly>
4980 ==Includeonly section==
4988 Un-closed <includeonly>
4995 ### <includeonly> and <noinclude> in attributes
4998 0. includeonly around the entire attribute
5000 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5002 <p><span id="v2">bar</span>
5007 1. includeonly in html attr key
5009 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5011 <p><span id="foo">bar</span>
5016 2. includeonly in html attr value
5018 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5019 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5021 <p><span id="v1">bar</span>
5022 <span id="v1">bar</span>
5027 3. includeonly in part of an attr value
5029 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5031 <p><span style="color:red;">bar</span>
5036 ### Testing parsing of templates where a template arg
5037 ### has the same name as the template itself.
5047 Templates: Template Name/Arg clash: 1. Use of positional param
5056 Templates: Template Name/Arg clash: 2. Use of named param
5065 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5074 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5078 Templates: 1. Simple use
5087 Templates: 2. Inside a block tag
5089 <div>{{echo|Foo}}</div>
5096 Templates: P-wrapping: 1a. Templates on consecutive lines
5107 Templates: P-wrapping: 1b. Templates on consecutive lines
5121 Templates: P-wrapping: 1c. Templates on consecutive lines
5124 {{echo|bar}} <div>baz</div>
5133 Templates: Inline Text: 1. Multiple tmeplate uses
5135 {{echo|Foo}}bar{{echo|baz}}
5142 Templates: Inline Text: 2. Back-to-back template uses
5144 {{echo|Foo}}{{echo|bar}}
5151 Templates: Block Tags: 1. Multiple template uses
5153 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5155 <div>Foo</div><div>bar</div><div>baz</div>
5160 Templates: Block Tags: 2. Back-to-back template uses
5162 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5164 <div>Foo</div><div>bar</div>
5169 Templates: Links: 1. Simple example
5171 {{echo|[[Foo|bar]]}}
5173 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5178 Templates: Links: 2. Generation of link href
5180 [[{{echo|Foo}}|bar]]
5182 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5187 Templates: Links: 3. Generation of part of a link href
5189 [[Fo{{echo|o}}|bar]]
5191 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5196 Templates: Links: 4. Multiple templates generating link href
5198 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5200 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5205 Templates: Links: 5. Generation of link text
5207 [[Foo|{{echo|bar}}]]
5209 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5214 Templates: Links: 5. Nested templates (only outermost template should be marked)
5216 {{echo|[[{{echo|Foo}}|bar]]}}
5218 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5223 Templates: HTML Tag: 1. Generation of HTML attr. key
5225 <div {{echo|style}}="color:red;">foo</div>
5227 <div style="color:red;">foo</div>
5232 Templates: HTML Tag: 2. Generation of HTML attr. value
5234 <div style={{echo|'color:red;'}}>foo</div>
5236 <div style="color:red;">foo</div>
5241 Templates: HTML Tag: 3. Generation of HTML attr key and value
5243 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5245 <div style="color:red;">foo</div>
5250 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5252 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5254 <div title="This is a long title with just one piece templated">foo</div>
5259 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5261 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5263 <div title="This is a long title with just one piece templated">foo</div>
5268 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5270 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5272 <div title="This is a long title with just one piece templated">foo</div>
5277 Templates: HTML Tables: 1. Generating start of a HTML table
5279 {{echo|<table><tr><td>foo</td>}}</tr></table>
5281 <table><tr><td>foo</td></tr></table>
5286 Templates: HTML Tables: 2a. Generating middle of a HTML table
5288 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5290 <table><tr><td>foo</td></tr></table>
5295 Templates: HTML Tables: 2b. Generating middle of a HTML table
5297 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5299 <table><tr><td>foo</td></tr></table>
5304 Templates: HTML Tables: 3. Generating end of a HTML table
5306 <table><tr>{{echo|<td>foo</td></tr></table>}}
5308 <table><tr><td>foo</td></tr></table>
5313 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5315 {{echo|<table>}}<tr><td>foo</td></tr></table>
5317 <table><tr><td>foo</td></tr></table>
5322 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5324 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5326 <table><tr><td>foo</td></tr></table>
5331 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5333 <table><tr>{{echo|<td>}}foo</td></tr></table>
5335 <table><tr><td>foo</td></tr></table>
5340 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5342 <table><tr><td>foo{{echo|</td>}}</tr></table>
5344 <table><tr><td>foo</td></tr></table>
5349 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5351 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5353 <table><tr><td>foo</td></tr></table>
5358 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5360 <table><tr><td>foo</td></tr>{{echo|</table>}}
5362 <table><tr><td>foo</td></tr></table>
5367 Templates: Wiki Tables: 1. Fostering of entire template content
5375 <tr><td></td></tr></table>
5380 Templates: Wiki Tables: 2. Fostering of partial template content
5390 <tr><td></td></tr></table>
5395 Templates: Wiki Tables: 3. td-content via multiple templates
5398 {{echo|{{pipe}}a}}{{echo|b}}
5409 Templates: Lists: Multi-line list-items via templates
5411 *{{echo|a {{nonexistent|
5413 *{{echo|b {{nonexistent|
5416 <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>
5417 </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>
5423 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5425 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5427 <p><i>ab</i>c<i>d</i>e
5432 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5433 (PHP parser generates misnested html)
5437 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5439 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5443 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5444 (PHP parser generates misnested html)
5448 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5451 <div><i>b</i>c<i>d</i></div>
5456 Templates: Ugly nesting: 4. Divs opened/closed across templates
5458 a<div>b{{echo|c</div>d}}e
5465 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5471 |{{echo|foo</table>}}
5475 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5476 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5477 bar</span><span about="#mwt1">
5482 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5492 <td>1. {{echo|foo </table>}}</td>
5494 <td>2. {{echo|baz </table>}}</td>
5507 <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">
5508 <tbody><tr data-parsoid="{"stx":"html"}">
5509 <td data-parsoid="{"stx":"html"}">
5510 <table data-parsoid="{"stx":"html"}">
5511 <tbody><tr data-parsoid="{"stx":"html"}">
5512 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5513 <td data-parsoid="{"stx":"html"}"> bar </td>
5514 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5515 </span><span about="#mwt1">
5517 abc</span><span about="#mwt1">
5518 </span><span about="#mwt1">
5519 </span><span about="#mwt1">
5520 </span><span about="#mwt1">
5521 </span><span about="#mwt1">
5523 xyz</span><span about="#mwt1">
5524 </span><span about="#mwt1">
5529 Parser Functions: 1. Simple example
5538 Parser Functions: 2. Nested use (only outermost should be marked up)
5547 ### Pre-save transform tests
5550 pre-save transform: subst:
5556 This is a test template
5560 pre-save transform: normal template
5570 pre-save transform: nonexistent template
5574 {{thistemplatedoesnotexist}}
5576 {{thistemplatedoesnotexist}}
5581 pre-save transform: subst magic variables
5590 # This is bug 89, which I fixed. -- wtm
5592 pre-save transform: subst: templates with parameters
5596 {{subst:paramtest|param="something else"}}
5598 This is a test template with parameter "something else"
5604 <nowiki>'''not wiki'''</nowiki>
5608 pre-save transform: nowiki in subst (bug 1188)
5612 {{subst:nowikitest}}
5614 <nowiki>'''not wiki'''</nowiki>
5619 Template:commenttest
5621 This template has <!-- a comment --> in it.
5625 pre-save transform: comment in subst (bug 1936)
5629 {{subst:commenttest}}
5631 This template has <!-- a comment --> in it.
5635 pre-save transform: unclosed tag
5639 <nowiki>'''not wiki'''
5641 <nowiki>'''not wiki'''
5645 pre-save transform: mixed tag case
5649 <NOwiki>'''not wiki'''</noWIKI>
5651 <NOwiki>'''not wiki'''</noWIKI>
5655 pre-save transform: unclosed comment in <nowiki>
5659 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5661 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5667 <span onmouseover="alert('crap')">Oh no</span>
5671 (confirming safety of fix for subst bug 1936)
5673 {{Template:dangerous}}
5675 <p><span>Oh no</span>
5680 pre-save transform: comment containing gallery (bug 5024)
5684 <!-- <gallery>data</gallery> -->
5686 <!-- <gallery>data</gallery> -->
5690 pre-save transform: comment containing extension
5694 <!-- <tag>data</tag> -->
5696 <!-- <tag>data</tag> -->
5700 pre-save transform: comment containing nowiki
5704 <!-- <nowiki>data</nowiki> -->
5706 <!-- <nowiki>data</nowiki> -->
5710 pre-save transform: <noinclude> in subst (bug 3298)
5720 pre-save transform: <onlyinclude> in subst (bug 3298)
5732 {{<includeonly>subst:</includeonly>Includes}}
5736 Template:SafeSubstTest
5738 {{<includeonly>safesubst:</includeonly>Includes}}
5742 bug 22297: safesubst: works during PST
5746 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5752 bug 22297: safesubst: works during normal parse
5761 subst: does not work during normal parse
5765 <p>{{subst:Includes}}
5770 pre-save transform: context links ("pipe trick")
5774 [[Article (context)|]]
5777 [[Bar:Article (context)|]]
5778 [[:Bar:Article (context)|]]
5780 [[|Article (context)]]
5784 [[Article (context)|Article]]
5785 [[Bar:Article|Article]]
5786 [[:Bar:Article|Article]]
5787 [[Bar:Article (context)|Article]]
5788 [[:Bar:Article (context)|Article]]
5790 [[Article (context)]]
5791 [[Bar:X (Y) Z|X (Y) Z]]
5792 [[:Bar:X (Y) Z|X (Y) Z]]
5796 pre-save transform: context links ("pipe trick") with interwiki prefix
5800 [[interwiki:Article|]]
5801 [[:interwiki:Article|]]
5802 [[interwiki:Bar:Article|]]
5803 [[:interwiki:Bar:Article|]]
5805 [[interwiki:Article|Article]]
5806 [[:interwiki:Article|Article]]
5807 [[interwiki:Bar:Article|Bar:Article]]
5808 [[:interwiki:Bar:Article|Bar:Article]]
5812 pre-save transform: context links ("pipe trick") with parens in title
5814 pst title=[[Somearticle (context)]]
5818 [[Article (context)|Article]]
5822 pre-save transform: context links ("pipe trick") with comma in title
5824 pst title=[[Someplace, Somewhere]]
5827 [[Otherplace, Elsewhere|]]
5828 [[Otherplace, Elsewhere, Anywhere|]]
5830 [[Otherplace, Somewhere|Otherplace]]
5831 [[Otherplace, Elsewhere|Otherplace]]
5832 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5836 pre-save transform: context links ("pipe trick") with parens and comma
5838 pst title=[[Someplace (IGNORED), Somewhere]]
5841 [[Otherplace (place), Elsewhere|]]
5843 [[Otherplace, Somewhere|Otherplace]]
5844 [[Otherplace (place), Elsewhere|Otherplace]]
5848 pre-save transform: context links ("pipe trick") with comma and parens
5850 pst title=[[Who, me? (context)]]
5853 [[Me, Myself, and I (1937 song)|]]
5855 [[Yes, you. (context)|Yes, you.]]
5856 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5860 pre-save transform: context links ("pipe trick") with namespace
5862 pst title=[[Ns:Somearticle]]
5866 [[Ns:Article|Article]]
5870 pre-save transform: context links ("pipe trick") with namespace and parens
5872 pst title=[[Ns:Somearticle (context)]]
5876 [[Ns:Article (context)|Article]]
5880 pre-save transform: context links ("pipe trick") with namespace and comma
5882 pst title=[[Ns:Somearticle, Context, Whatever]]
5886 [[Ns:Article, Context, Whatever|Article]]
5890 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5892 pst title=[[Ns:Somearticle, Context (context)]]
5896 [[Ns:Article (context)|Article]]
5900 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5902 pst title=[[Ns:Somearticle (IGNORED), Context]]
5906 [[Ns:Article, Context|Article]]
5910 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5914 [[Article(context)|]]
5915 [[Bar:Article(context)|]]
5916 [[:Bar:Article(context)|]]
5917 [[|Article(context)]]
5921 [[Article(context)|Article]]
5922 [[Bar:Article(context)|Article]]
5923 [[:Bar:Article(context)|Article]]
5924 [[Article(context)]]
5926 [[:Bar:X(Y)Z|X(Y)Z]]
5930 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5934 [[Article (context)|]]
5935 [[Bar:Article (context)|]]
5936 [[:Bar:Article (context)|]]
5937 [[|Article (context)]]
5941 [[Article (context)|Article]]
5942 [[Bar:Article (context)|Article]]
5943 [[:Bar:Article (context)|Article]]
5944 [[Article (context)]]
5945 [[Bar:X (Y) Z|X (Y) Z]]
5946 [[:Bar:X (Y) Z|X (Y) Z]]
5950 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5954 [[Article(context)|]]
5955 [[Bar:Article(context)|]]
5956 [[:Bar:Article(context)|]]
5957 [[|Article(context)]]
5961 [[Article(context)|Article]]
5962 [[Bar:Article(context)|Article]]
5963 [[:Bar:Article(context)|Article]]
5964 [[Article(context)]]
5966 [[:Bar:X(Y)Z|X(Y)Z]]
5970 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5974 [[Article (context), context|]]
5975 [[Article (context),context|]]
5976 [[Bar:Article (context), context|]]
5977 [[Bar:Article (context),context|]]
5978 [[:Bar:Article (context), context|]]
5979 [[:Bar:Article (context),context|]]
5981 [[Article (context), context|Article]]
5982 [[Article (context),context|Article]]
5983 [[Bar:Article (context), context|Article]]
5984 [[Bar:Article (context),context|Article]]
5985 [[:Bar:Article (context), context|Article]]
5986 [[:Bar:Article (context),context|Article]]
5990 pre-save transform: trim trailing empty lines
5994 Empty lines are trimmed
6000 Empty lines are trimmed
6004 pre-save transform: Signature expansion
6009 * <noinclude>~~~</noinclude>
6010 * <includeonly>~~~</includeonly>
6011 * <onlyinclude>~~~</onlyinclude>
6013 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6014 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6015 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6016 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6021 pre-save transform: Signature expansion in nowiki tags (bug 93)
6027 <nowiki>~~~~</nowiki>
6029 <includeonly><nowiki>~~~~</nowiki></includeonly>
6031 <noinclude><nowiki>~~~~</nowiki></noinclude>
6033 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6035 {{subst:Foo}} shall be converted to FOO
6037 As well as inside noinclude/onlyinclude
6038 <noinclude>{{subst:Foo}}</noinclude>
6039 <onlyinclude>{{subst:Foo}}</onlyinclude>
6041 But not inside includeonly
6042 <includeonly>{{subst:Foo}}</includeonly>
6046 <nowiki>~~~~</nowiki>
6048 <includeonly><nowiki>~~~~</nowiki></includeonly>
6050 <noinclude><nowiki>~~~~</nowiki></noinclude>
6052 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6054 FOO shall be converted to FOO
6056 As well as inside noinclude/onlyinclude
6057 <noinclude>FOO</noinclude>
6058 <onlyinclude>FOO</onlyinclude>
6060 But not inside includeonly
6061 <includeonly>{{subst:Foo}}</includeonly>
6065 ### Message transform tests
6068 message transform: magic variables
6078 message transform: should not transform wiki markup
6088 message transform: <noinclude> in transcluded template (bug 4926)
6098 message transform: <onlyinclude> in transcluded template (bug 4926)
6108 {{#special:}} page name, known
6112 {{#special:Recentchanges}}
6114 Special:RecentChanges
6118 {{#special:}} page name with subpage, known
6122 {{#special:Recentchanges/param}}
6124 Special:RecentChanges/param
6128 {{#special:}} page name, unknown
6132 {{#special:foobarnonexistent}}
6134 No such special page
6138 {{#speciale:}} page name, known
6142 {{#speciale:Recentchanges}}
6144 Special:RecentChanges
6148 {{#speciale:}} page name with subpage, known
6152 {{#speciale:Recentchanges/param}}
6154 Special:RecentChanges/param
6158 {{#speciale:}} page name, unknown
6162 {{#speciale:foobarnonexistent}}
6164 No_such_special_page
6173 [[Image:foobar.jpg]]
6175 <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>
6182 [[Image:foobar.jpg|right]]
6184 <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>
6189 Simple image (using File: namespace, now canonical)
6193 <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>
6200 [[Image:foobar.jpg|right|Caption text]]
6202 <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>
6207 Image with empty attribute
6209 [[Image:foobar.jpg|right||Caption text]]
6211 <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>
6216 Image with link tails
6218 123[[Image:foobar.jpg]]456
6219 123[[Image:foobar.jpg|right]]456
6220 123[[Image:foobar.jpg|thumb]]456
6222 <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
6224 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
6225 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
6230 Image with multiple captions -- only last one is accepted
6232 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6234 <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>
6239 Image with width attribute at different positions
6241 [[Image:foobar.jpg|200px|right|Caption]]
6242 [[Image:foobar.jpg|right|200px|Caption]]
6243 [[Image:foobar.jpg|right|Caption|200px]]
6245 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" 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>
6246 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" 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>
6247 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" 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>
6252 Image with link parameter, wiki target
6254 [[Image:foobar.jpg|link=Target page]]
6256 <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>
6261 Image with link parameter, URL target
6263 [[Image:foobar.jpg|link=http://example.com/]]
6265 <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>
6270 Image with link parameter, wgExternalLinkTarget
6272 [[Image:foobar.jpg|link=http://example.com/]]
6274 wgExternalLinkTarget='foobar'
6276 <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>
6281 Image with link parameter, wgNoFollowLinks set to false
6283 [[Image:foobar.jpg|link=http://example.com/]]
6285 wgNoFollowLinks=false
6287 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6292 Image with link parameter, wgNoFollowDomainExceptions
6294 [[Image:foobar.jpg|link=http://example.com/]]
6296 wgNoFollowDomainExceptions='example.com'
6298 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6303 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6305 [[Image:foobar.jpg|link=http://example.com/|Title]]
6307 wgExternalLinkTarget='foobar'
6309 <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>
6314 Image with empty link parameter
6316 [[Image:foobar.jpg|link=]]
6318 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6323 Image with link parameter (wiki target) and unnamed parameter
6325 [[Image:foobar.jpg|link=Target page|Title]]
6327 <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>
6332 Image with link parameter (URL target) and unnamed parameter
6334 [[Image:foobar.jpg|link=http://example.com/|Title]]
6336 <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>
6341 Thumbnail image with link parameter
6343 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6345 <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>
6350 Image with frame and link
6352 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6354 <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>
6359 Image with frame and link and explicit alt
6361 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6363 <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>
6368 Image with wiki markup in implicit alt
6370 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6372 <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>
6377 Image with wiki markup in explicit alt
6379 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6381 <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>
6386 Link to image page- image page normally doesn't exists, hence edit link
6387 Add test with existing image page
6388 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6392 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6397 bug 18784 Link to non-existent image page with caption should use caption as link text
6399 [[:Image:test|caption]]
6401 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6406 Frameless image caption with a free URL
6408 [[Image:foobar.jpg|http://example.com]]
6410 <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>
6415 Thumbnail image caption with a free URL
6417 [[Image:foobar.jpg|thumb|http://example.com]]
6419 <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>
6424 Thumbnail image caption with a free URL and explicit alt
6426 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6428 <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>
6433 BUG 1887: A ISBN with a thumbnail
6435 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6437 <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>
6442 BUG 1887: A RFC with a thumbnail
6444 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6446 <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>
6451 BUG 1887: A mailto link with a thumbnail
6453 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6455 <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>
6459 # Pending resolution to bug 368
6461 BUG 648: Frameless image caption with a link
6463 [[Image:foobar.jpg|text with a [[link]] in it]]
6465 <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>
6470 BUG 648: Frameless image caption with a link (suffix)
6472 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6474 <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>
6479 BUG 648: Frameless image caption with an interwiki link
6481 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6483 <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>
6488 BUG 648: Frameless image caption with a piped interwiki link
6490 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6492 <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>
6497 Escape HTML special chars in image alt text
6499 [[Image:foobar.jpg|& < > "]]
6501 <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>
6506 BUG 499: Alt text should have Ӓ, not &1234;
6508 [[Image:foobar.jpg|♀]]
6510 <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>
6515 Broken image caption with link
6517 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6519 <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.
6524 Image caption containing another image
6526 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6528 <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>
6533 Image caption containing a newline
6535 [[Image:Foobar.jpg|This
6538 <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>
6544 Bug 3090: External links other than http: in image captions
6546 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6548 <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>
6555 [[Image:foobar.jpg|a|class=b]]
6557 <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>
6564 #REDIRECT [[File:Barfoo.jpg]]
6570 [[Image:Barfoo.jpg]]
6572 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6577 Missing image with uploads disabled
6581 [[Image:Foobaz.jpg]]
6583 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6592 Subpage test/subpage
6600 subpage title=[[Subpage test]]
6604 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6609 Subpage noslash link
6611 subpage title=[[Subpage test]]
6615 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6624 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6629 BUG 561: {{/Subpage}}
6631 subpage title=[[Page]]
6635 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6643 Category:MediaWiki User's Guide
6651 [[:Category:MediaWiki User's Guide]]
6653 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6662 [[Category:MediaWiki User's Guide]]
6664 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6668 PAGESINCATEGORY invalid title fatal (r33546 fix)
6670 {{PAGESINCATEGORY:<bogus>}}
6677 Category with different sort key
6681 [[Category:MediaWiki User's Guide|Foo]]
6683 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6687 Category with identical sort key
6691 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6693 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6697 Category with empty sort key
6702 [[Category:MediaWiki User's Guide|]]
6704 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6708 Category with empty sort key and parentheses
6713 [[Category:Foo (bar)|]]
6715 [[Category:Foo (bar)|Foo]]
6719 Category with link tail
6724 123[[Category:Foo]]456
6726 123[[Category:Foo]]456
6730 Category with template
6735 [[Category:{{echo|Foo}}]]
6737 [[Category:{{echo|Foo}}]]
6741 Category with template in sort key
6746 [[Category:Foo|{{echo|Bar}}]]
6748 [[Category:Foo|{{echo|Bar}}]]
6752 Category with template in sort key and title
6757 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6759 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6763 Category / paragraph interactions
6765 Foo [[Category:Baz]] Bar
6767 Foo [[Category:Baz]]
6775 [[Category:Baz]] Bar
6788 {{echo|[[Category:Baz]]}}
6803 ### Inter-language links
6806 Inter-language links
6812 [[zh:食品]]
6814 es:Alimento fr:Nourriture zh:食品
6818 Duplicate interlanguage links (bug 24502)
6834 Basic section headings
6841 ===Smaller headline===
6844 <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>
6847 <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>
6850 <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>
6856 Section headings with TOC
6859 === Subheadline 1 ===
6860 ===== Skipping a level =====
6861 ====== Skipping a level ======
6865 ===Another headline===
6867 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6869 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6871 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6873 <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>
6875 <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>
6882 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6884 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6889 <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>
6890 <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>
6891 <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>
6892 <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>
6893 <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>
6896 <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>
6900 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6902 Handling of sections up to level 6 and beyond
6905 == Level 2 Heading==
6906 === Level 3 Heading===
6907 ==== Level 4 Heading====
6908 ===== Level 5 Heading=====
6909 ====== Level 6 Heading======
6910 ======= Level 7 Heading=======
6911 ======== Level 8 Heading========
6912 ========= Level 9 Heading=========
6913 ========== Level 10 Heading==========
6915 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6917 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6919 <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>
6921 <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>
6923 <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>
6925 <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>
6927 <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>
6928 <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>
6929 <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>
6930 <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>
6931 <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>
6944 <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>
6945 <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>
6946 <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>
6947 <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>
6948 <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>
6949 <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>
6950 <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>
6951 <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>
6952 <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>
6953 <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>
6958 TOC regression (bug 9764)
6962 ==== title 1.1.1 ====
6967 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6969 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6971 <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>
6973 <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>
6976 <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>
6979 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6981 <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>
6986 <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>
6987 <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>
6988 <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>
6989 <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>
6990 <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>
6991 <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>
6996 TOC with wgMaxTocLevel=3 (bug 6204)
7002 ==== title 1.1.1 ====
7007 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7009 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7011 <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>
7012 <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>
7015 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7017 <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>
7022 <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>
7023 <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>
7024 <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>
7025 <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>
7026 <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>
7027 <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>
7032 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7038 ====Section 1.1.1====
7039 ====Section 1.1.1.1====
7042 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7044 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7046 <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>
7049 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7052 <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>
7053 <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>
7054 <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>
7055 <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>
7056 <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>
7062 Resolving duplicate section names
7067 <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>
7068 <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>
7073 Resolving duplicate section names with differing case (bug 10721)
7078 <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>
7079 <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>
7091 Template with sections, __NOTOC__
7098 <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>
7099 <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>
7100 <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>
7101 <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>
7106 __NOEDITSECTION__ keyword
7112 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7113 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7118 Link inside a section heading
7120 ==Section with a [[Main Page|link]] in it==
7122 <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>
7127 TOC regression (bug 12077)
7134 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7136 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7138 <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>
7141 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7144 <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>
7145 <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>
7146 <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>
7151 BUG 1219 URL next to image (good)
7153 http://example.com [[Image:foobar.jpg]]
7155 <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>
7160 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7163 The line above must have a trailing space!
7166 But just in case it doesn't...
7168 <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>
7169 <p>The line above must have a trailing space!
7171 <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>
7172 <p>But just in case it doesn't...
7177 Header with special characters (bug 25462)
7179 The tooltips shall not show entities to the user (ie. be double escaped)
7196 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7198 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7200 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7201 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7202 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7203 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7204 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7207 <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>
7210 <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>
7213 <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>
7216 <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>
7219 <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>
7225 Headers with excess '=' characters
7226 (Are similar tests necessary beyond the 1st level?)
7230 =''italic'' heading==
7231 ==''italic'' heading=
7233 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7235 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7236 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7237 <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>
7238 <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>
7241 <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>
7242 <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>
7243 <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>
7244 <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>
7249 BUG 1219 URL next to image (broken)
7251 http://example.com[[Image:foobar.jpg]]
7253 <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>
7258 Bug 1186 news: in the middle of text
7260 http://en.wikinews.org/wiki/Wikinews:Workplace
7262 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7268 Namespaced link must have a title
7277 Namespaced link must have a title (bad fragment version)
7279 [[Project:#fragment]]
7281 <p>[[Project:#fragment]]
7287 div with no attributes
7289 <div>HTML rocks</div>
7291 <div>HTML rocks</div>
7296 div with double-quoted attribute
7298 <div id="rock">HTML rocks</div>
7300 <div id="rock">HTML rocks</div>
7305 div with single-quoted attribute
7307 <div id='rock'>HTML rocks</div>
7309 <div id="rock">HTML rocks</div>
7314 div with unquoted attribute
7316 <div id=rock>HTML rocks</div>
7318 <div id="rock">HTML rocks</div>
7323 div with illegal double attributes
7325 <div id="a" id="b">HTML rocks</div>
7327 <div id="b">HTML rocks</div>
7331 # FIXME: produce empty string instead of "class" in the PHP parser, following
7334 div with empty attribute value, space before equals
7338 <div class =>HTML rocks</div>
7340 <div class="">HTML rocks</div>
7344 # This it very inconsistent in the PHP parser: it returns
7345 # class="class" if there is a space between the name and the equal sign (see
7346 # 'div with empty attribute value, space before equals'), but strips the
7347 # attribute completely if the space is missing. We hope that not much content
7348 # depends on this, so are implementing the behavior below in Parsoid for
7349 # consistencies' sake. Disabled for the PHP parser.
7350 # FIXME: fix this behavior in the PHP parser?
7352 div with empty attribute value, no space before equals
7356 <div class=>HTML rocks</div>
7358 <div class="">HTML rocks</div>
7363 HTML multiple attributes correction
7365 <p class="error" class="awesome">Awesome!</p>
7367 <p class="awesome">Awesome!</p>
7372 Table multiple attributes correction
7375 !+ class="error" class="awesome"| status
7380 <th class="awesome"> status
7388 <DIV ID="x">HTML ROCKS</DIV>
7390 <div id="x">HTML ROCKS</div>
7395 Non-ASCII pseudo-tags are rendered as text
7404 Pseudo-tag with URL 'name' renders as url link
7406 <http://example.com/>
7408 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7413 text with amp in the middle of nowhere
7417 <p>Remember AT&T?
7422 text with character entity: eacute
7424 I always thought é was a cute letter.
7426 <p>I always thought é was a cute letter.
7431 text with undefined character entity: xacute
7433 I always thought &xacute; was a cute letter.
7435 <p>I always thought &xacute; was a cute letter.
7447 [[Media:Foobar.jpg]]
7449 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7454 Media link with text
7456 [[Media:Foobar.jpg|A neat file to look at]]
7458 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7462 # FIXME: this is still bad HTML tag nesting
7464 Media link with nasty text
7465 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7467 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7469 <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>
7474 Media link to nonexistent file (bug 1702)
7476 [[Media:No such.jpg]]
7478 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7483 Image link to nonexistent file (bug 1850 - good)
7485 [[Image:No such.jpg]]
7487 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7492 :Image link to nonexistent file (bug 1850 - bad)
7494 [[:Image:No such.jpg]]
7496 <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>
7503 Character reference normalization in link text (bug 1938)
7505 [[Main Page|this&that]]
7507 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7514 Test for unicode normalization
7516 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7520 (bug 19451) Links should refer to the normalized form.
7528 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7529 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7530 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7531 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7532 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7537 Empty attribute crash test (bug 2067)
7539 <font color="">foo</font>
7541 <p><font color="">foo</font>
7546 Empty attribute crash test single-quotes (bug 2067)
7548 <font color=''>foo</font>
7550 <p><font color="">foo</font>
7555 Attribute test: equals, then nothing
7557 <font color=>foo</font>
7564 Attribute test: unquoted value
7566 <font color=x>foo</font>
7568 <p><font color="x">foo</font>
7573 Attribute test: unquoted but illegal value (hash)
7575 <font color=#x>foo</font>
7577 <p><font color="#x">foo</font>
7582 Attribute test: no value
7584 <font color>foo</font>
7586 <p><font color="color">foo</font>
7591 Bug 2095: link with three closing brackets
7595 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7600 Bug 2095: link with pipe and three closing brackets
7604 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7609 Bug 2095: link with pipe and three closing brackets, version 2
7611 [[Main Page|[http://example.com/]]]
7613 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7623 Template:Dangerous attribute
7625 " onmouseover="alert(document.cookie)
7629 Template:Dangerous style attribute
7631 border-size: expression(alert(document.cookie))
7637 <div style="float: right; {{{1}}}">Magic div</div>
7641 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7643 <div title="{{test}}"></div>
7645 <div title="This is a test template"></div>
7650 Bug 2304: HTML attribute safety (dangerous template; 2309)
7652 <div title="{{dangerous attribute}}"></div>
7654 <div title=""></div>
7659 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7661 <div style="{{dangerous style attribute}}"></div>
7663 <div style="/* insecure input */"></div>
7668 Bug 2304: HTML attribute safety (safe parameter; 2309)
7670 {{div style|width: 200px}}
7672 <div style="float: right; width: 200px">Magic div</div>
7677 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7679 {{div style|width: expression(alert(document.cookie))}}
7681 <div style="/* insecure input */">Magic div</div>
7686 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7688 {{div style|"><script>alert(document.cookie)</script>}}
7690 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7695 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7697 {{div style|" ><script>alert(document.cookie)</script>}}
7699 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7704 Bug 2304: HTML attribute safety (link)
7706 <div title="[[Main Page]]"></div>
7708 <div title="[[Main Page]]"></div>
7713 Bug 2304: HTML attribute safety (italics)
7715 <div title="''foobar''"></div>
7717 <div title="''foobar''"></div>
7722 Bug 2304: HTML attribute safety (bold)
7724 <div title="'''foobar'''"></div>
7726 <div title="'''foobar'''"></div>
7732 Bug 2304: HTML attribute safety (ISBN)
7734 <div title="ISBN 1234567890"></div>
7736 <div title="ISBN 1234567890"></div>
7741 Bug 2304: HTML attribute safety (RFC)
7743 <div title="RFC 1234"></div>
7745 <div title="RFC 1234"></div>
7750 Bug 2304: HTML attribute safety (PMID)
7752 <div title="PMID 1234567890"></div>
7754 <div title="PMID 1234567890"></div>
7759 Bug 2304: HTML attribute safety (web link)
7761 <div title="http://example.com/"></div>
7763 <div title="http://example.com/"></div>
7768 Bug 2304: HTML attribute safety (named web link)
7770 <div title="[http://example.com/ link]"></div>
7772 <div title="[http://example.com/ link]"></div>
7777 Bug 3244: HTML attribute safety (extension; safe)
7779 <div style="<nowiki>background:blue</nowiki>"></div>
7781 <div style="background:blue"></div>
7786 Bug 3244: HTML attribute safety (extension; unsafe)
7788 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7790 <div style="/* insecure input */"></div>
7794 # More MSIE fun discovered by Tom Gilder
7797 MSIE CSS safety test: spurious slash
7799 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7801 <div style="/* insecure input */">evil</div>
7806 MSIE CSS safety test: hex code
7808 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7810 <div style="/* insecure input */">evil</div>
7815 MSIE CSS safety test: comment in url
7817 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7819 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7824 MSIE CSS safety test: comment in expression
7826 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7828 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7834 Table attribute legitimate extension
7837 !+ style="<nowiki>color:blue</nowiki>"| status
7842 <th style="color:blue"> status
7848 Table attribute safety
7851 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7856 <th style="/* insecure input */"> status
7862 CSS line continuation 1
7864 <div style="background-image: u\ rl(test.jpg);"></div>
7866 <div style="/* insecure input */"></div>
7871 CSS line continuation 2
7873 <div style="background-image: u\ rl(test.jpg); "></div>
7875 <div style="/* insecure input */"></div>
7886 Expansion of multi-line templates in attribute values (bug 6255)
7888 <div style="background: {{identity|#00FF00}}">-</div>
7890 <div style="background: #00FF00">-</div>
7896 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7898 <div style="background:
7901 <div style="background: #00FF00">-</div>
7906 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7908 <div style="background: #00FF00">-</div>
7910 <div style="background: #00FF00">-</div>
7915 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7918 Parser hook: empty input
7931 Parser hook: empty input using terminated empty elements
7944 Parser hook: empty input using terminated empty elements (space before)
7957 Parser hook: basic input
7971 Parser hook: case insensitive
7985 Parser hook: case insensitive, redux
7998 Parser hook: nested tags
8002 <tag><tag></tag></tag>
8013 Parser hook: basic arguments
8015 <tag width=200 height = "100" depth = '50' square></tag>
8023 'square' => 'square',
8030 Parser hook: argument containing a forward slash (bug 5344)
8032 <tag filename='/tmp/bla'></tag>
8037 'filename' => '/tmp/bla',
8044 Parser hook: empty input using terminated empty elements (bug 2374)
8057 # </tag> should be output literally since there is no matching tag that begins it
8059 Parser hook: basic arguments using terminated empty elements (bug 2374)
8061 <tag width=200 height = "100" depth = '50' square/>
8071 'square' => 'square',
8080 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8084 Parser hook: static parser hook not inside a comment
8086 <statictag>hello, world</statictag>
8087 <statictag action=flush/>
8095 Parser hook: static parser hook inside a comment
8097 <!-- <statictag>hello, world</statictag> -->
8098 <statictag action=flush/>
8104 # Nested template calls; this case was broken by Parser.php rev 1.506,
8108 Template:One-parameter
8110 (My parameter is: {{{1}}})
8114 Template:Map-one-parameter
8120 Nested template calls
8122 {{Map-one-parameter|One-parameter|param}}
8124 <p>(My parameter is: param)
8133 Sanitizer: Closing of open tags
8135 <s></s><table></table>
8137 <s></s><table></table>
8142 Sanitizer: Closing of open but not closed tags
8151 Sanitizer: Closing of closed but not open tags
8160 Sanitizer: Closing of closed but not open table tags
8162 Table not started</td></tr></table>
8164 <p>Table not started</td></tr></table>
8169 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8171 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8173 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8178 Sanitizer: Validating the contents of the id attribute (bug 4515)
8184 Something, but definitely not <br id="9" />...
8188 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8192 <br id="foo" /><br id="foo" />
8194 Something need to be done. foo-2 ?
8198 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8201 <meta itemprop="hello" content="world">
8202 <meta http-equiv="refresh" content="5">
8203 <meta itemprop="hello" http-equiv="refresh" content="5">
8204 <link itemprop="hello" href="{{SERVER}}">
8205 <link rel="stylesheet" href="{{SERVER}}">
8206 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8209 <div itemscope="itemscope">
8210 <p> <meta itemprop="hello" content="world" />
8211 <meta http-equiv="refresh" content="5">
8212 <meta itemprop="hello" content="5" />
8214 <link itemprop="hello" href="http://Britney-Spears" />
8215 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8216 <link itemprop="hello" href="http://Britney-Spears" />
8222 Language converter: output gets cut off unexpectedly (bug 5757)
8226 this bit is safe: }-
8228 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8230 then we get cut off here: }-
8232 all additional text is vanished
8234 <p>this bit is safe: }-
8235 </p><p>but if we add a conversion instance: xxx
8236 </p><p>then we get cut off here: }-
8237 </p><p>all additional text is vanished
8242 Self closed html pairs (bug 5487)
8245 <center><font id="bug" />Centered text</center>
8246 <div><font id="bug2" />In div text</div>
8248 <center><font id="bug" />Centered text</center>
8249 <div><font id="bug2" />In div text</div>
8258 Punctuation: nbsp before exclamation
8262 <p>C'est grave !
8267 Punctuation: CSS !important (bug 11874)
8269 <div style="width:50% !important">important</div>
8271 <div style="width:50% !important">important</div>
8276 Punctuation: CSS ! important (bug 11874; with space after)
8278 <div style="width:50% ! important">important</div>
8280 <div style="width:50% ! important">important</div>
8286 HTML bullet list, closed tags (bug 5497)
8301 HTML bullet list, unclosed tags (bug 5497)
8318 HTML ordered list, closed tags (bug 5497)
8333 HTML ordered list, unclosed tags (bug 5497)
8350 HTML nested bullet list, closed tags (bug 5497)
8375 HTML nested bullet list, open tags (bug 5497)
8400 HTML nested ordered list, closed tags (bug 5497)
8425 HTML nested ordered list, open tags (bug 5497)
8450 HTML ordered list item with parameters oddity
8452 <ol><li id="fragment">One</li></ol>
8454 <ol><li id="fragment">One</li></ol>
8459 bug 5918: autonumbering
8461 [http://first/] [http://second] [ftp://ftp]
8465 [mailto:enclosed@mail.tld With target]
8467 [mailto:enclosed@mail.tld]
8469 mailto:inline@mail.tld
8471 <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>
8472 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8473 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8474 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8475 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8481 # Security and HTML correctness
8482 # From Nick Jenkins' fuzz testing
8486 Fuzz testing: Parser13
8501 Fuzz testing: Parser14
8506 <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>
8507 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8509 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8516 Fuzz testing: Parser14-table
8521 <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>
8522 <table style="__TOC__">
8528 # Known to produce bogus xml (extra </td>)
8530 Fuzz testing: Parser16
8550 Fuzz testing: Parser21
8553 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8558 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8568 Fuzz testing: Parser22
8570 http://===r:::https://b
8574 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8582 # Known to produce bad XML for now
8584 Fuzz testing: Parser24
8591 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8592 <br style="onmouseover='alert(document.cookie);' " />
8594 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8599 <u class="|">}}}} >
8600 <br style="onmouseover='alert(document.cookie);'" />
8602 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8611 # Note: the current result listed for this is not what the original one was,
8612 # but the original bug was JavaScript injection, which is fixed in any case.
8613 # It's not clear that the original result listed was any more correct than the
8614 # current one. Original result:
8617 # <li class="||">
8618 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8620 Fuzz testing: Parser25 (bug 6055)
8626 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8628 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8633 Fuzz testing: URL adjacent extension (with space, clean)
8636 http://example.com <nowiki>junk</nowiki>
8638 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8643 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8646 http://example.com<nowiki>junk</nowiki>
8648 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8653 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8656 http://example.com<pre>junk</pre>
8658 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8663 Fuzz testing: image with bogus manual thumbnail
8665 [[Image:foobar.jpg|thumbnail= ]]
8667 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8672 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8674 <pre dir=" "></pre>
8676 <pre dir=" "></pre>
8681 Parsing optional HTML elements (Bug 6171)
8686 <td> Some tabular data</td>
8687 <td> More tabular data ...
8688 <td> And yet som tabular data</td>
8694 <td> Some tabular data</td>
8695 <td> More tabular data ...
8696 </td><td> And yet som tabular data</td>
8703 Correct handling of <td>, <tr> (Bug 6171)
8708 <td> Some tabular data</td>
8709 <td> More tabular data ...</td>
8710 <td> And yet som tabular data</td>
8716 <td> Some tabular data</td>
8717 <td> More tabular data ...</td>
8718 <td> And yet som tabular data</td>
8726 Parsing crashing regression (fr:JavaScript)
8730 <p></body></x>
8735 Inline wiki vs wiki block nesting
8741 <p><b>Bold paragraph</b>
8742 </p><p>New wiki paragraph
8747 Inline HTML vs wiki block nesting
8755 <p><b>Bold paragraph</b>
8756 </p><p>New wiki paragraph
8760 # Original result was this:
8761 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8763 # While that might be marginally more intuitive, maybe, the six-apostrophe
8764 # construct is clearly pathological and the result stated here (which is what
8765 # the parser actually does) is about as reasonable as anything.
8767 Mixing markup for italics and bold
8770 '''bold''''''bold''bolditalics'''''
8772 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8780 Article for special page transclusion test
8784 Special page transclusion
8787 {{Special:Prefixindex/Xyzzyx}}
8789 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8794 Special page transclusion twice (bug 5021)
8797 {{Special:Prefixindex/Xyzzyx}}
8798 {{Special:Prefixindex/Xyzzyx}}
8800 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8801 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8806 Transclusion of default MediaWiki message
8808 {{MediaWiki:Mainpage}}
8815 Transclusion of nonexistent MediaWiki message
8817 {{MediaWiki:Mainpagexxx}}
8819 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8824 Transclusion of MediaWiki message with underscore
8826 {{MediaWiki:history_short}}
8833 Transclusion of MediaWiki message with space
8835 {{MediaWiki:history short}}
8842 Invalid header with following text
8852 Section extraction test (section 0)
8872 Section extraction test (section 1)
8894 Section extraction test (section 2)
8915 Section extraction test (section 3)
8935 Section extraction test (section 4)
8959 Section extraction test (section 5)
8979 Section extraction test (section 6)
9000 Section extraction test (section 7)
9020 Section extraction test (section 8)
9040 Section extraction test (section 9)
9061 Section extraction test (section 10)
9081 Section extraction test (nonexistent section 11)
9100 Section extraction test with bogus heading (section 1)
9105 ==bogus== not a legal section
9109 ==bogus== not a legal section
9113 Section extraction test with bogus heading (section 2)
9118 ==bogus== not a legal section
9125 Section extraction test with comment after heading (section 1)
9137 Section extraction test with comment after heading (section 2)
9149 Section extraction test with bogus <nowiki> heading (section 1)
9154 ==bogus== <nowiki>not a legal section</nowiki>
9158 ==bogus== <nowiki>not a legal section</nowiki>
9162 Section extraction test with bogus <nowiki> heading (section 2)
9167 ==bogus== <nowiki>not a legal section</nowiki>
9174 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9175 # instead of respecting commented sections
9177 Section extraction prefixed by comment (section 1)
9188 Section extraction prefixed by comment (section 2)
9199 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9200 # instead of respecting HTML-style headings
9202 Section extraction, mixed wiki and html (section 1)
9218 Section extraction, mixed wiki and html (section 2)
9234 # Formerly testing for bug 3342
9236 Section extraction, heading surrounded by <noinclude>
9240 <noinclude>==unmarked==</noinclude>
9246 # Test behaviour of bug 19910
9248 Sectiion with all-equals
9253 The line above must have a trailing space
9256 But just in case it doesn't...
9260 But just in case it doesn't...
9264 Section replacement test (section 0)
9295 Section replacement test (section 1)
9324 Section replacement test (section 2)
9354 Section replacement test (section 3)
9385 Section replacement test (section 4)
9412 Section replacement test (section 5)
9443 Section replacement test (section 6)
9473 Section replacement test (section 7)
9504 Section replacement test (section 8)
9535 Section replacement test (section 9)
9564 Section replacement test (section 10)
9594 Section replacement test with initial whitespace (bug 13728)
9598 Preformatted initial line
9602 Preformatted initial line
9609 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9621 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9634 Section extraction, <pre> around bogus header (bug 10309)
9651 Section replacement, <pre> around bogus header (bug 10309)
9653 noxml replace=2,"xxx"
9674 Handling of 
 in URLs
9678 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9685 5 quotes, code coverage +1 line
9692 Special:Search page linking.
9696 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9711 * {{SUBJECTPAGENAME}}
9712 * {{SUBJECTPAGENAMEE}}
9719 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9721 <ul><li> Parser test
9722 </li><li> Parser test
9723 </li><li> Parser test
9724 </li><li> Parser_test
9725 </li><li> Parser test
9726 </li><li> Parser_test
9727 </li><li> Talk:Parser test
9728 </li><li> Talk:Parser_test
9729 </li><li> Parser test
9730 </li><li> Parser_test
9737 </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>
9741 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9751 image4 |300px| centre
9752 image5.svg| http://///////
9757 <ul class="gallery">
9758 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9759 <div style="height: 150px;">Image1.png</div>
9760 <div class="gallerytext">
9763 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9764 <div style="height: 150px;">Image2.gif</div>
9765 <div class="gallerytext">
9770 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9771 <div style="height: 150px;">Image3</div>
9772 <div class="gallerytext">
9775 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9776 <div style="height: 150px;">Image4</div>
9777 <div class="gallerytext">
9782 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9783 <div style="height: 150px;">Image5.svg</div>
9784 <div class="gallerytext">
9785 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9789 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9790 <div style="height: 150px;">* image6</div>
9791 <div class="gallerytext">
9799 Gallery (with options)
9801 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9802 File:Nonexistant.jpg|caption
9803 File:Nonexistant.jpg
9804 image:foobar.jpg|some '''caption''' [[Main Page]]
9806 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9809 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9810 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9811 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9812 <div style="height: 70px;">Nonexistant.jpg</div>
9813 <div class="gallerytext">
9818 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9819 <div style="height: 70px;">Nonexistant.jpg</div>
9820 <div class="gallerytext">
9823 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9824 <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>
9825 <div class="gallerytext">
9826 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9830 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9831 <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>
9832 <div class="gallerytext">
9835 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9836 <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>
9837 <div class="gallerytext">
9847 Gallery with wikitext inside caption
9850 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9851 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9854 <ul class="gallery">
9855 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9856 <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>
9857 <div class="gallerytext">
9858 <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>
9862 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9863 <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>
9864 <div class="gallerytext">
9865 <p>This is a test template
9874 gallery (with showfilename option)
9876 <gallery showfilename>
9877 File:Nonexistant.jpg|caption
9878 File:Nonexistant.jpg
9879 image:foobar.jpg|some '''caption''' [[Main Page]]
9883 <ul class="gallery">
9884 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9885 <div style="height: 150px;">Nonexistant.jpg</div>
9886 <div class="gallerytext">
9887 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9892 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9893 <div style="height: 150px;">Nonexistant.jpg</div>
9894 <div class="gallerytext">
9895 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9899 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9900 <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>
9901 <div class="gallerytext">
9902 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9903 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9907 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9908 <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>
9909 <div class="gallerytext">
9910 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9919 Gallery (with namespace-less filenames)
9922 File:Nonexistant.jpg
9928 <ul class="gallery">
9929 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9930 <div style="height: 150px;">Nonexistant.jpg</div>
9931 <div class="gallerytext">
9934 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9935 <div style="height: 150px;">Nonexistant.jpg</div>
9936 <div class="gallerytext">
9939 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9940 <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>
9941 <div class="gallerytext">
9944 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9945 <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>
9946 <div class="gallerytext">
9954 HTML Hex character encoding (spells the word "JavaScript")
9956 JavaScript
9958 <p>JavaScript
9963 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9967 <p>&#xsee;&#XSEE;
9972 HTML Hex character encoding mixed case
9981 __FORCETOC__ override
9993 ISBN 978-0-1234-56 789
9995 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10000 ISBN followed by 5 spaces
10011 ISBN ISBN 1234567890
10013 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10018 Bug 22905: <abbr> followed by ISBN followed by </a>
10020 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10022 <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>
10031 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10036 Double RFC with a wiki link
10040 <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>
10049 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10054 Centre-aligned image
10056 [[Image:foobar.jpg|centre]]
10058 <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>
10065 [[Image:foobar.jpg|none]]
10067 <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>
10072 Width + Height sized image (using px) (height is ignored)
10074 [[Image:foobar.jpg|640x480px]]
10076 <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>
10081 Width-sized image (using px, no following whitespace)
10083 [[Image:foobar.jpg|640px]]
10085 <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>
10090 Width-sized image (using px, with following whitespace - test regression from r39467)
10092 [[Image:foobar.jpg|640px ]]
10094 <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>
10099 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10101 [[Image:foobar.jpg| 640px]]
10103 <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>
10108 Another italics / bold test
10116 # Note the results may be incorrect, as parserTest output included this:
10117 # XML error: Mismatched tag at byte 6120:
10118 # ...<dd> </dt></dl> </dd...
10126 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10137 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10139 Images with the "|" character in the comment
10141 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10143 <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>
10148 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10150 <html><script>alert(1);</script></html>
10152 <p><html><script>alert(1);</script></html>
10157 HTML with raw HTML ($wgRawHtml==true)
10161 <html><script>alert(1);</script></html>
10163 <p><script>alert(1);</script>
10168 Parents of subpages, one level up
10170 subpage title=[[Subpage test/L1/L2/L3]]
10174 <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>
10180 Parents of subpages, one level up, not named
10182 subpage title=[[Subpage test/L1/L2/L3]]
10186 <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>
10193 Parents of subpages, two levels up
10195 subpage title=[[Subpage test/L1/L2/L3]]
10201 <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
10202 </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>
10207 Parents of subpages, two levels up, without trailing slash or name.
10209 subpage title=[[Subpage test/L1/L2/L3]]
10218 Parents of subpages, two levels up, with lots of extra trailing slashes.
10220 subpage title=[[Subpage test/L1/L2/L3]]
10224 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10229 Definition list code coverage
10235 <dl><dt> title  </dt><dd> def
10236 </dd><dt> title </dt><dd> def
10237 </dd><dt>title</dt><dd> def
10243 Don't fall for the self-closing div
10245 <div>hello world</div/>
10247 <div>hello world</div>
10256 <p>[[:Template:Msg]]
10265 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10269 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10271 Always escape literal '>' in output, not just after '<'
10285 <p>This is a test template
10286 This is a test template
10298 Inclusion of !userCanEdit() content
10302 <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>
10308 Out-of-order TOC heading levels
10317 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10319 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10321 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10322 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10325 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10327 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10328 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10333 <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>
10334 <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>
10335 <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>
10336 <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>
10337 <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>
10338 <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>
10344 ISBN with a dummy number
10354 ISBN with space-delimited number
10358 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10364 ISBN with multiple spaces, no number
10383 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10384 </p><p>ISBN 12345678901
10390 ISBN with trailing year (bug 8110)
10392 ISBN 1-234-56789-0 - 2006
10394 ISBN 1 234 56789 0 - 2006
10396 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10397 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10405 {{anchorencode:foo bar©#%n}}
10407 <p>foo_bar.C2.A9.23.25n
10412 anchorencode trims spaces
10414 {{anchorencode: __pretty__please__}}
10421 anchorencode deals with links
10423 {{anchorencode: [[hello|world]] [[hi]]}}
10430 anchorencode deals with templates
10432 {{anchorencode: {{Foo}} }}
10439 anchorencode encodes like the TOC generator: (bug 18431)
10441 === _ +:.3A%3A&&]] ===
10442 {{anchorencode: _ +:.3A%3A&&]] }}
10445 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10446 <p>.2B:.3A.253A.26.26.5D.5D
10450 # Expected output in the following test is not necessarily expected (there
10451 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10452 # only testing for well-formedness.
10454 Bug 6200: blockquotes and paragraph formatting
10474 Bug 8293: Use of center tag ruins paragraph formatting
10496 ### Language variants related tests
10499 Self-link in language variants
10501 title=[[Dunav]] language=sr
10503 Both [[Dunav]] and [[Дунав]] are names for this river.
10505 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10511 Link to pages in language variants
10515 Main Page can be written as [[Маин Паге]]
10517 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10523 Multiple links to pages in language variants
10527 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10529 <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>.
10535 Simple template in language variants
10541 <p>This is a test template
10547 Template with explicit namespace in language variants
10553 <p>This is a test template
10559 Basic test for template parameter in language variants
10563 {{парамтест|param=foo}}
10565 <p>This is a test template with parameter foo
10571 Simple category in language variants
10575 [[Category:МедиаWики Усер'с Гуиде]]
10577 <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>
10582 Stripping -{}- tags (language variants)
10586 Latin proverb: -{Ne nuntium necare}-
10588 <p>Latin proverb: Ne nuntium necare
10594 Prevent conversion with -{}- tags (language variants)
10596 language=sr variant=sr-ec
10598 Latinski: -{Ne nuntium necare}-
10600 <p>Латински: Ne nuntium necare
10606 Prevent conversion of text with -{}- tags (language variants)
10608 language=sr variant=sr-ec
10610 Latinski: -{Ne nuntium necare}-
10612 <p>Латински: Ne nuntium necare
10618 Prevent conversion of links with -{}- tags (language variants)
10620 language=sr variant=sr-ec
10624 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10630 -{}- tags within headlines (within html for parserConvert())
10632 language=sr variant=sr-ec
10636 <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>
10642 Explicit definition of language variant alternatives
10644 language=zh variant=zh-tw
10646 -{zh:China;zh-tw:Taiwan}-, not China
10648 <p>Taiwan, not China
10654 Explicit session-wise language variant mapping (A flag and - flag)
10656 language=zh variant=zh-tw
10658 Taiwan is not China.
10659 But -{A|zh:China;zh-tw:Taiwan}- is China,
10660 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10661 and -{China}- is China.
10663 <p>Taiwan is not China.
10664 But Taiwan is Taiwan,
10665 (This should be stripped!)
10666 and China is China.
10671 Explicit session-wise language variant mapping (H flag for hide)
10673 language=zh variant=zh-tw
10675 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10678 <p>(This should be stripped!)
10684 Adding explicit conversion rule for title (T flag)
10686 language=zh variant=zh-tw showtitle
10688 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10691 <p>Should be stripped!
10696 Testing that changing the language variant here in the tests actually works
10698 language=zh variant=zh showtitle
10700 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10703 <p>Should be stripped!
10708 Bug 24072: more test on conversion rule for title
10710 language=zh variant=zh-tw showtitle
10712 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10713 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10716 <p>This should be stripped!
10717 This won't take interferes with the title rule.
10722 Raw output of variant escape tags (R flag)
10724 language=zh variant=zh-tw
10726 Raw: -{R|zh:China;zh-tw:Taiwan}-
10728 <p>Raw: zh:China;zh-tw:Taiwan
10733 Nested using of manual convert syntax
10735 language=zh variant=zh-hk
10737 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10739 <p>Nested: Hello Hong Kong!
10744 Proper conversion of text in external links
10746 language=sr variant=sr-ec
10748 http://www.google.com
10749 gopher://www.google.com
10750 [http://www.google.com http://www.google.com]
10751 [gopher://www.google.com gopher://www.google.com]
10752 [https://www.google.com irc://www.google.com]
10753 [ftp://www.google.com www.google.com/ftp://dir]
10754 [//www.google.com www.google.com]
10756 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10757 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10758 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10759 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10760 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10761 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10762 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10767 Do not convert roman numbers to language variants
10769 language=sr variant=sr-ec
10773 <p>Фридрих IV је цар.
10778 Unclosed language converter markup "-{"
10789 Don't convert raw rule "-{R|=>}-" to "=>"
10806 Bug 529: Uncovered bullet
10816 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10817 # Templates in Wikipedia rely on this behavior, as tidy has always been
10818 # enabled there. These tests are normally run *without* tidy, so specify the
10819 # full output here.
10820 # To test realistic parsing behavior, apply a tidy-like transformation to both
10821 # the expected output and your parser's output.
10823 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10825 ******* Foo {{bullet}}
10827 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10840 Bug 529: Uncovered table already at line-start
10863 Bug 529: Uncovered bullet in parser function result
10865 * Foo {{lc:{{bullet}} }}
10874 Bug 5678: Double-parsed template argument
10876 {{lc:{{{1}}}|hello}}
10883 Bug 5678: Double-parsed template invocation
10885 {{lc:{{paramtest {{!}} param = hello }} }}
10887 <p>{{paramtest | param = hello }}
10892 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10895 title=[[Main Page]]
10897 {{PRVNÍVELKÉ:ěščř}}
10898 {{prvnívelké:ěščř}}
10918 Morwen/13: Unclosed link followed by heading
10925 <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>
10930 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10937 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10942 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10949 <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>
10964 Paragraphs inside divs (no extra line breaks)
10976 Paragraphs inside divs (extra line break on open)
10991 Paragraphs inside divs (extra line break on close)
11006 Paragraphs inside divs (extra line break on open and close)
11023 Nesting tags, paragraphs on lines which begin with <div>
11027 <div></div><strong>A
11036 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11038 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11042 <blockquote>Line one
11044 Line two</blockquote>
11046 <blockquote>Line one
11047 Line two</blockquote>
11052 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11059 Line two</blockquote>
11064 Line two</blockquote>
11069 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11073 <blockquote>Line one
11078 <blockquote>Line one
11086 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11105 Paragraphs inside blockquotes/divs (no extra line breaks)
11107 <blockquote><div>Line one
11109 Line two</div></blockquote>
11111 <blockquote><div>Line one
11112 Line two</div></blockquote>
11117 Paragraphs inside blockquotes/divs (extra line break on open)
11122 Line two</div></blockquote>
11127 Line two</div></blockquote>
11132 Paragraphs inside blockquotes/divs (extra line break on close)
11134 <blockquote><div>Line one
11137 </div></blockquote>
11139 <blockquote><div>Line one
11142 </div></blockquote>
11147 Paragraphs inside blockquotes/divs (extra line break on open and close)
11153 </div></blockquote>
11159 </div></blockquote>
11164 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11166 wgLinkHolderBatchSize=0
11172 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11173 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11174 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11179 Free external link invading image caption
11181 [[Image:Foobar.jpg|thumb|http://x|hello]]
11183 <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>
11188 Bug 15196: localised external link numbers
11192 [http://en.wikipedia.org/]
11194 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11199 Multibyte character in padleft
11201 {{padleft:-Hello|7|Æ}}
11208 Multibyte character in padright
11210 {{padright:Hello-|7|Æ}}
11219 wgUseDynamicDates=1
11223 <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>
11228 formatdate parser function
11230 {{#formatdate:2009-03-24}}
11232 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11237 formatdate parser function, with default format
11239 {{#formatdate:2009-03-24|mdy}}
11241 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11246 Linked date with autoformatting disabled
11248 wgUseDynamicDates=false
11252 <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>
11257 Spacing of numbers in formatted dates
11259 {{#formatdate:January 15}}
11261 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11266 Spacing of numbers in formatted dates (linked)
11268 wgUseDynamicDates=true
11272 <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>
11277 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
11279 language=nl title=[[MediaWiki:Common.css]]
11281 {{#formatdate:2009-03-24|dmy}}
11283 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11296 Edit comment with link
11300 I like the [[Main Page]] a lot
11302 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11306 Edit comment with link and link text
11310 I like the [[Main Page|best pages]] a lot
11312 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11316 Edit comment with link and link text with suffix
11320 I like the [[Main Page|best page]]s a lot
11322 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11326 Edit comment with section link (non-local, eg in history list)
11328 comment title=[[Main Page]]
11330 /* External links */ removed bogus entries
11332 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11336 Edit comment with section link and text before it (non-local, eg in history list)
11338 comment title=[[Main Page]]
11340 pre-comment text /* External links */ removed bogus entries
11342 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>
11346 Edit comment with section link (local, eg in diff view)
11348 comment local title=[[Main Page]]
11350 /* External links */ removed bogus entries
11352 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11356 Edit comment with subpage link (bug 14080)
11360 title=[[Subpage test]]
11362 Poked at a [[/subpage]] here...
11364 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11368 Edit comment with subpage link and link text (bug 14080)
11372 title=[[Subpage test]]
11374 Poked at a [[/subpage|neat little page]] here...
11376 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11380 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11383 title=[[Subpage test]]
11385 Poked at a [[/subpage]] here...
11387 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11391 Edit comment with bare anchor link (local, as on diff)
11395 title=[[Main Page]]
11399 <a href="#section">#section</a>
11403 Edit comment with bare anchor link (non-local, as on history)
11406 title=[[Main Page]]
11410 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11414 Anchor starting with underscore
11418 <p><a href="#_ref">One</a>
11423 Id starting with underscore
11425 <div id="_ref"></div>
11427 <div id="_ref"></div>
11432 Space normalisation on autocomment (bug 22784)
11435 title=[[Main Page]]
11437 /* __hello__world__ */
11439 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11443 percent-encoding and + signs in comments (Bug 26410)
11447 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11449 <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>
11453 Bad images - basic functionality
11462 Bad images - bug 16039: text after bad image disappears
11476 Verify that displaytitle works (bug #22501) no displaytitle
11480 wgAllowDisplayTitle=true
11481 wgRestrictDisplayTitle=false
11483 this is not the the title
11486 <p>this is not the the title
11491 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11496 wgAllowDisplayTitle=true
11497 wgRestrictDisplayTitle=false
11499 this is not the the title
11500 {{DISPLAYTITLE:whatever}}
11503 <p>this is not the the title
11508 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11513 wgAllowDisplayTitle=true
11514 wgRestrictDisplayTitle=true
11516 this is not the the title
11517 {{DISPLAYTITLE:whatever}}
11520 <p>this is not the the title
11525 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11530 wgAllowDisplayTitle=true
11531 wgRestrictDisplayTitle=true
11533 this is not the the title
11534 {{DISPLAYTITLE:screen}}
11537 <p>this is not the the title
11542 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11547 wgAllowDisplayTitle=false
11549 this is not the the title
11550 {{DISPLAYTITLE:screen}}
11553 <p>this is not the the title
11554 <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>
11559 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11564 wgAllowDisplayTitle=false
11566 this is not the the title
11569 <p>this is not the the title
11574 preload: check <noinclude> and <includeonly>
11578 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11584 preload: check <onlyinclude>
11588 Goodbye <onlyinclude>Hello world</onlyinclude>
11594 preload: can pass tags through if we want to
11598 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11600 <includeonly>Hello world</includeonly>
11604 preload: check that it doesn't try to do tricks
11608 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11610 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11614 Play a bit with r67090 and bug 3158
11618 <div style="width:50% !important"> </div>
11619 <div style="width:50% !important"> </div>
11620 <div style="width:50% !important"> </div>
11621 <div style="border : solid;"> </div>
11623 <div style="width:50% !important"> </div>
11624 <div style="width:50% !important"> </div>
11625 <div style="width:50% !important"> </div>
11626 <div style="border : solid;"> </div>
11631 HTML5 data attributes
11633 <span data-foo="bar">Baz</span>
11634 <p data-abc-def_hij="">Quuz</p>
11636 <p><span data-foo="bar">Baz</span>
11638 <p data-abc-def_hij="">Quuz</p>
11643 percent-encoding and + signs in internal links (Bug 26410)
11645 [[User:+%]] [[Page+title%]]
11646 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11647 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11648 [[%33%45]] [[%33%45+]]
11650 <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>
11651 <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>
11652 <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>
11653 <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>
11658 Special characters in embedded file links (bug 27679)
11660 [[File:Contains & ampersand.jpg]]
11661 [[File:Does not exist.jpg|Title with & ampersand]]
11663 <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>
11664 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11670 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11672 Text's been normalized?
11674 <p>Text's been normalized?
11679 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11681 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11683 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11688 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11690 [http://www.example.org/ ideograms]
11692 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11697 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11699 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11701 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11725 Bug 31098 Template which includes system messages which includes the template
11729 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11730 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11735 Bug31490 Turkish: ucfirst 'blah'
11746 Bug31490 Turkish: ucfirst 'ix'
11757 Bug31490 Turkish: lcfirst 'BLAH'
11768 Bug31490 Turkish: ucfırst (with a dotless i)
11774 <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>
11779 Bug31490 ucfırst (with a dotless i) with English language
11785 <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>
11790 Bug 26375: TOC with italics
11792 title=[[Main Page]]
11795 == ''Lost'' episodes ==
11797 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11799 <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>
11802 <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>
11807 Bug 26375: TOC with bold
11809 title=[[Main Page]]
11812 == '''should be bold''' then normal text ==
11814 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11816 <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>
11819 <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>
11824 Bug 33845: Headings become cursive in TOC when they contain an image
11826 title=[[Main Page]]
11829 == Image [[Image:foobar.jpg]] ==
11831 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11833 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11836 <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>
11841 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11843 title=[[Main Page]]
11846 == <blockquote>Quote</blockquote> ==
11848 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11850 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11853 <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>
11858 Unclosed tags in TOC
11860 title=[[Main Page]]
11864 <small>Hanc marginis exiguitas non caperet.</small>
11867 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11869 <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>
11872 <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>
11873 <p><small>Hanc marginis exiguitas non caperet.</small>
11879 Multiple tags in TOC
11882 == <i>Foo</i> <b>Bar</b> ==
11884 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11886 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11888 <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>
11889 <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>
11892 <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>
11893 <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>
11898 Tags with parameters in TOC
11901 == <sup class="in-h2">Hello</sup> ==
11903 == <sup class="a > b">Evilbye</sup> ==
11905 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11907 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11908 <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>
11911 <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>
11912 <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>
11917 span tags with directionality in TOC
11920 == <span dir="ltr">C++</span> ==
11922 == <span dir="rtl">זבנג!</span> ==
11924 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11926 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11928 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11930 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11932 <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>
11933 <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>
11934 <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>
11935 <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>
11936 <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>
11939 <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>
11940 <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>
11941 <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>
11942 <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>
11943 <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>
11950 == {{int:headline_sample}} ==
11954 Bug 32057: Title needed when expanding <h> nodes.
11956 title=[[Main Page]]
11960 <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>
11965 Strip marker in urlencode
11967 {{urlencode:x<nowiki/>y}}
11968 {{urlencode:x<nowiki/>y|wiki}}
11969 {{urlencode:x<nowiki/>y|path}}
11996 Strip marker in formatNum
11998 {{formatnum:1<nowiki/>2}}
11999 {{formatnum:1<nowiki/>2|R}}
12007 Strip marker in grammar
12011 {{grammar:elative|foo<nowiki/>bar}}
12018 Strip marker in padleft
12020 {{padleft:|2|x<nowiki/>y}}
12027 Strip marker in padright
12029 {{padright:|2|x<nowiki/>y}}
12036 Strip marker in anchorencode
12038 {{anchorencode:x<nowiki/>y}}
12045 nowiki inside link inside heading (bug 18295)
12047 ==[[foo|x<nowiki>y</nowiki>z]]==
12049 <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>
12054 new support for bdi element (bug 31817)
12056 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12058 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12063 Ignore pipe between table row attributes
12067 |- id=foo | style='color: red'
12075 <tr id="foo" style="color: red">
12082 Gallery override link with WikiLink (bug 34852)
12085 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12088 <ul class="gallery">
12089 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12090 <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>
12091 <div class="gallerytext">
12101 Gallery override link with absolute external link (bug 34852)
12104 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12107 <ul class="gallery">
12108 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12109 <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>
12110 <div class="gallerytext">
12120 Gallery override link with malicious javascript (bug 34852)
12123 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12126 <ul class="gallery">
12127 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12128 <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>
12129 <div class="gallerytext">
12139 Language parser function
12148 Padleft and padright as substr
12150 {{padleft:|3|abcde}}
12151 {{padright:|3|abcde}}
12159 Bug 34939 - Case insensitive link parsing ([HttP://])
12161 [HttP://MediaWiki.Org/]
12163 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12168 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12170 [HttP://MediaWiki.Org/ MediaWiki]
12172 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12177 Bug 34939 - Case insensitive link parsing (HttP://)
12179 HttP://MediaWiki.Org/
12181 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12186 ### Parsoids-specific tests
12187 ### Parsoid-PHP parser incompatibilities
12190 1. SOL-sensitive wikitext tokens as template-args
12204 #### The following section of tests are primarily to test
12205 #### wikitext escaping capabilities of Parsoid.
12206 #### A lot of the tests are disabled for the PHP parser either
12207 #### because of minor newline diffs or other reasons.
12208 #### As Parsoid serializer can handle newlines and other HTML
12209 #### more robustly, some of these tests might get reenabled
12210 #### for the PHP parser.
12212 #### --------------- Headings ---------------
12214 #### 1. Nested inside html <h1>=foo=</h1>
12215 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12216 #### 3. Nested inside html with wikitext split by html tags
12217 #### 4. No escape needed
12218 #### 5. Empty headings <h1></h1>
12219 #### 6. Heading chars in SOL context
12220 #### ----------------------------------------
12222 Headings: 0. Unnested
12224 <nowiki>=foo=</nowiki>
12226 <nowiki>=foo</nowiki>''a''=
12229 </p><p>=foo<i>a</i>=
12234 Headings: 1. Nested inside html
12238 =<nowiki>=foo=</nowiki>=
12239 ==<nowiki>=foo=</nowiki>==
12240 ===<nowiki>=foo=</nowiki>===
12241 ====<nowiki>=foo=</nowiki>====
12242 =====<nowiki>=foo=</nowiki>=====
12243 ======<nowiki>=foo=</nowiki>======
12254 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12259 <nowiki>*bar</nowiki>
12263 <nowiki>=bar=</nowiki>
12271 Headings: 3. Nested inside html with wikitext split by html tags
12275 =<nowiki>=</nowiki>'''bold'''foo==
12277 <h1>=<b>bold</b>foo=</h1>
12281 Headings: 4. No escaping needed (testing just h1 and h2)
12296 <h1><i>=</i>foo=</h1>
12301 Headings: 5. Empty headings
12305 =<nowiki></nowiki>=
12306 ==<nowiki></nowiki>==
12307 ===<nowiki></nowiki>===
12308 ====<nowiki></nowiki>====
12309 =====<nowiki></nowiki>=====
12310 ======<nowiki></nowiki>======
12321 Headings: 6. Heading chars in SOL context
12325 <!--cmt--><nowiki>=h1=</nowiki>
12331 #### --------------- Lists ---------------
12332 #### 0. Outside nests (*foo, etc.)
12333 #### 1. Nested inside html <ul><li>*foo</li></ul>
12334 #### 2. Inside definition lists
12335 #### 3. Only bullets at start should be escaped
12336 #### 4. No escapes needed
12337 #### 5. No unnecessary escapes
12338 #### 6. Escape bullets in SOL position
12339 #### 7. Escape bullets in a multi-line context
12340 #### ----------------------------------------
12343 Lists: 0. Outside nests
12345 <nowiki>*foo</nowiki>
12347 <nowiki>#foo</nowiki>
12355 Lists: 1. Nested inside html
12357 *<nowiki>*foo</nowiki>
12359 *<nowiki>#foo</nowiki>
12361 *<nowiki>:foo</nowiki>
12363 *<nowiki>;foo</nowiki>
12365 #<nowiki>*foo</nowiki>
12367 #<nowiki>#foo</nowiki>
12369 #<nowiki>:foo</nowiki>
12371 #<nowiki>;foo</nowiki>
12393 Lists: 2. Inside definition lists
12395 ;<nowiki>;foo</nowiki>
12397 ;<nowiki>:foo</nowiki>
12399 ;<nowiki>:foo</nowiki>
12402 :<nowiki>:foo</nowiki>
12417 Lists: 3. Only bullets at start of text should be escaped
12419 *<nowiki>*foo*bar</nowiki>
12421 *<nowiki>*foo</nowiki>''it''*bar
12425 <ul><li>*foo<i>it</i>*bar
12431 Lists: 4. No escapes needed
12443 <ul><li><i>foo</i>*bar
12445 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12450 Lists: 5. No unnecessary escapes
12452 * bar <span><nowiki>[[foo]]</nowiki></span>
12454 *=bar <span><nowiki>[[foo]]</nowiki></span>
12456 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12458 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12460 *=bar <span>foo]]</span>=
12462 <ul><li> bar <span>[[foo]]</span>
12464 <ul><li>=bar <span>[[foo]]</span>
12466 <ul><li>[[bar <span>[[foo]]</span>
12468 <ul><li>]]bar <span>[[foo]]</span>
12470 <ul><li>=bar <span>foo]]</span>=
12476 Lists: 6. Escape bullets in SOL position
12480 <!--cmt--><nowiki>*foo</nowiki>
12487 Lists: 7. Escape bullets in a multi-line context
12497 #### --------------- HRs ---------------
12498 #### 1. Single line
12499 #### -----------------------------------
12502 HRs: 1. Single line
12507 <nowiki>----</nowiki>
12509 <nowiki>=foo=</nowiki>
12511 <nowiki>*foo</nowiki>
12518 #### --------------- Tables ---------------
12519 #### 1a. Simple example
12520 #### 1b. No escaping needed (!foo)
12521 #### 1c. No escaping needed (|foo)
12522 #### 1d. No escaping needed (|}foo)
12524 #### 2a. Nested in td (<td>foo|bar</td>)
12525 #### 2b. Nested in td (<td>foo||bar</td>)
12526 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12528 #### 3a. Nested in th (<th>foo!bar</th>)
12529 #### 3b. Nested in th (<th>foo!!bar</th>)
12530 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12534 #### 4c. No escaping needed
12535 #### --------------------------------------
12538 Tables: 1a. Simple example
12549 Tables: 1b. No escaping needed
12558 Tables: 1c. No escaping needed
12567 Tables: 1d. No escaping needed
12576 Tables: 2a. Nested in td
12581 |<nowiki>foo|bar</nowiki>
12591 Tables: 2b. Nested in td
12596 |<nowiki>foo||bar</nowiki>
12597 |''it''<nowiki>foo||bar</nowiki>
12602 </td><td><i>it</i>foo||bar
12608 Tables: 2c. Nested in td -- no escaping needed
12623 Tables: 3a. Nested in th
12638 Tables: 3b. Nested in th
12643 !<nowiki>foo!!bar</nowiki>
12653 Tables: 3c. Nested in th -- no escaping needed
12668 Tables: 4a. Escape -
12676 |<nowiki>-bar</nowiki>
12680 <tr><th>-bar</th></tr>
12681 <tr><td>-bar</td></tr>
12686 Tables: 4b. Escape +
12694 |<nowiki>+bar</nowiki>
12698 <tr><th>+bar</th></tr>
12699 <tr><td>+bar</td></tr>
12704 Tables: 4c. No escaping needed
12718 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12719 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12723 #### --------------- Links ---------------
12724 #### 1. Quote marks in link text
12725 #### 2. Wikilinks: Escapes needed
12726 #### 3. Wikilinks: No escapes needed
12727 #### 4. Extlinks: Escapes needed
12728 #### 5. Extlinks: No escapes needed
12729 #### --------------------------------------
12731 Links 1. Quote marks in link text
12735 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12737 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12741 Links 2. WikiLinks: Escapes needed
12745 [[Foo|<nowiki>[Foobar]</nowiki>]]
12746 [[Foo|<nowiki>Foobar]</nowiki>]]
12747 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12748 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12749 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12750 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12751 [[Foo|<nowiki>|Bar</nowiki>]]
12753 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12754 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12755 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12756 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12757 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12758 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12759 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12763 Links 3. WikiLinks: No escapes needed
12770 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12771 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12775 Links 4. ExtLinks: Escapes needed
12779 [http://google.com <nowiki>[google]</nowiki>]
12780 [http://google.com <nowiki>google]</nowiki>]
12782 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12783 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12787 Links 5. ExtLinks: No escapes needed
12791 [http://google.com [google]
12793 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12796 #### --------------- Quotes ---------------
12797 #### 1. Quotes inside <b> and <i>
12798 #### 2. Link fragments separated by <i> and <b> tags
12799 #### 3. Link fragments inside <i> and <b>
12800 #### --------------------------------------
12802 1. Quotes inside <b> and <i>
12804 ''<nowiki>'foo'</nowiki>''
12805 ''<nowiki>''foo''</nowiki>''
12806 ''<nowiki>'''foo'''</nowiki>''
12807 '''<nowiki>'foo'</nowiki>'''
12808 '''<nowiki>''foo''</nowiki>'''
12809 '''<nowiki>'''foo'''</nowiki>'''
12810 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12818 <b>foo'<i>bar'</i>baz</b>
12823 2. Link fragments separated by <i> and <b> tags
12825 [[''foo''<nowiki>hello]]</nowiki>
12827 [['''foo'''<nowiki>hello]]</nowiki>
12829 <p>[[<i>foo</i>hello]]
12830 </p><p>[[<b>foo</b>hello]]
12835 2. Link fragments inside <i> and <b>
12836 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12837 this is one of the shortcomings of this format)
12839 ''[[foo''<nowiki>]]</nowiki>
12841 '''[[foo'''<nowiki>]]</nowiki>
12844 </p><p><b>[[foo</b>]]
12848 #### --------------- Paragraphs ---------------
12849 #### 1. No unnecessary escapes
12850 #### --------------------------------------
12853 1. No unnecessary escapes
12855 bar <span><nowiki>[[foo]]</nowiki></span>
12857 =bar <span><nowiki>[[foo]]</nowiki></span>
12859 [[bar <span><nowiki>[[foo]]</nowiki></span>
12861 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12863 <nowiki>=bar </nowiki><span>foo]]</span>=
12865 <p>bar <span>[[foo]]</span>
12866 </p><p>=bar <span>[[foo]]</span>
12867 </p><p>[[bar <span>[[foo]]</span>
12868 </p><p>]]bar <span>[[foo]]</span>
12869 </p><p>=bar <span>foo]]</span>=
12873 #### --------------- PRE ------------------
12874 #### 1. Leading space in SOL context should be escaped
12875 #### --------------------------------------
12877 1. Leading space in SOL context should be escaped
12881 <nowiki> foo</nowiki>
12882 <!--cmt--><nowiki> foo</nowiki>
12889 #### --------------- HTML tags ---------------
12892 #### 3. multi-line html tag
12893 #### --------------------------------------
12899 <a href="http://google.com">google</a>
12901 <a href="http://google.com">google</a>
12907 <nowiki><div>foo</div>
12908 <div style="color:red">foo</div></nowiki>
12910 <p><div>foo</div>
12911 <div style="color:red">foo</div>
12916 3. multi-line html tag
12928 #### --------------- Others ---------------
12932 <nowiki>foo</nowiki>
12934 <p><nowiki>foo</nowiki>
12939 Tag-like HTML structures are passed through as text
12961 </p><p>1<d e>f
12966 # This fails in the PHP parser (see bug 40670,
12967 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
12969 Tag names followed by punctuation should not be recognized as tags
12975 <p><s.ome> text
12985 Try for 100% code coverage