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 3 brackets
3087 Piped link with 3 brackets
3089 [[[main page|the main page]]]
3091 <p>[[[main page|the main page]]]
3096 Link with multiple pipes
3098 [[Main Page|The|Main|Page]]
3100 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3107 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3109 <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>
3114 Piped link to namespace
3116 [[Meta:Disclaimers|The disclaimers]]
3118 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3125 [[Usually caused by a typo (oops}]]
3127 <p>[[Usually caused by a typo (oops}]]
3132 Link containing % (not as a hex sequence)
3136 <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>
3141 Link containing % as a single hex sequence interpreted to char
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 double hex sequence interpreted to hex sequence
3154 <p>[[7%2525 Solution]]
3159 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3160 Example for such a section: == < ==
3162 [[%23%3c]][[%23%3e]]
3164 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3169 Link containing "<#" and ">#" as a hex sequences
3171 [[%3c%23]][[%3e%23]]
3173 <p>[[%3c%23]][[%3e%23]]
3178 Link containing double-single-quotes '' (bug 4598)
3180 [[Lista d''e paise d''o munno]]
3182 <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>
3187 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3189 Some [[Link|pretty ''italics'' and stuff]]!
3191 <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>!
3196 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3198 ''Some [[Link|pretty ''italics'' and stuff]]!
3200 <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>
3205 Link with double quotes in title part (literal) and alternate part (interpreted)
3207 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3211 [[''Pentecoste''|Pentecoste]]
3213 [[''Pentecoste''|''Pentecoste'']]
3215 <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>
3216 </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>
3217 </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>
3218 </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>
3223 Broken image links with HTML captions (bug 39700)
3225 [[File:Nonexistent|<script></script>]]
3226 [[File:Nonexistent|100px|<script></script>]]
3227 [[File:Nonexistent|<]]
3228 [[File:Nonexistent|a<i>b</i>c]]
3230 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3231 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3232 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3233 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3240 [[http://www.example.com]]
3242 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3247 Plain link to URL with link text
3249 [[http://www.example.com Link text]]
3251 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3256 Plain link to protocol-relative URL
3258 [[//www.example.com]]
3260 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3265 Plain link to protocol-relative URL with link text
3267 [[//www.example.com Link text]]
3269 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3274 Plain link to page with question mark in title
3280 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3281 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3286 # I'm fairly sure the expected result here is wrong.
3287 # We want these to be URL links, not pseudo-pages with URLs for titles....
3288 # However the current output is also pretty screwy.
3291 # I'm changing it to match the current output--it arguably makes more
3292 # sense in the light of the test above. Old expected result was:
3293 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3295 # But I think this test is bordering on "garbage in, garbage out" anyway.
3300 Piped link to URL: [[http://www.example.com|an example URL]]
3302 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3307 BUG 2: [[page|http://url/]] should link to page, not http://url/
3309 [[Main Page|http://url/]]
3311 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3316 BUG 337: Escaped self-links should be bold
3320 [[Bug462]] [[Bug462]]
3322 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3327 Self-link to section should not be bold
3331 [[Main Page#section]]
3333 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3344 Self-link to numeric title
3350 <p><strong class="selflink">0</strong>
3355 Link to numeric-equivalent title
3361 <p><a href="/wiki/00" title="00">00</a>
3366 <nowiki> inside a link
3368 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3370 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3375 Non-breaking spaces in title
3377 [[ Main Page ]]
3379 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3384 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3390 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3395 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3401 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3406 Internal link with en linktrail: no apostrophes (bug 27473)
3412 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3417 Internal link with ca linktrail with apostrophes (bug 27473)
3423 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3428 Internal link with kaa linktrail with apostrophes (bug 27473)
3434 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3439 ### Interwiki links (see maintenance/interwiki.sql)
3443 Inline interwiki link
3445 [[MeatBall:SoftSecurity]]
3447 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3452 Inline interwiki link with empty title (bug 2372)
3456 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3461 Interwiki link encoding conversion (bug 1636)
3463 *[[Wikipedia:ro:Olteniţa]]
3464 *[[Wikipedia:ro:Olteniţa]]
3466 <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>
3467 </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>
3473 Interwiki link with fragment (bug 2130)
3475 [[MeatBall:SoftSecurity#foo]]
3477 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3492 Double interlanguage link
3503 Interlanguage link, with prefix links
3515 Double interlanguage link, with prefix links (bug 8897)
3528 Parsoid-specific test: Wikilinks with should RT properly
3534 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3552 Broken br tag sanitization
3561 Incorrecly removing closing slashes from correctly formed XHTML
3563 <br style="clear:both;" />
3565 <p><br style="clear:both;" />
3570 Failing to transform badly formed HTML into correct XHTML
3572 <br style="clear: left;">
3573 <br style="clear: right;">
3574 <br style="clear: both;">
3576 <p><br style="clear: left;" />
3577 <br style="clear: right;" />
3578 <br style="clear: both;" />
3583 Handling html with a div self-closing tag
3592 <p><div title />
3596 <p><div title=bar />
3597 <div title=bar/>
3599 <div title="bar/"></div>
3605 Handling html with a br self-closing tag
3614 <p><br title="title" />
3615 <br title="title" />
3624 Horizontal ruler (should it add that extra space?)
3638 Horizontal ruler -- 4+ dashes render hr
3647 Horizontal ruler -- eats additional dashes on the same line
3656 Horizontal ruler -- does not collaps dashes on consecutive lines
3667 Horizontal ruler -- <4 dashes render as plain text
3676 Horizontal ruler -- Supports content following dashes on same line
3685 ### Block-level elements
3708 <ol><li>Numbered list
3725 ***#Number on level 4
3727 **#Number on level 3
3728 **#Number on level 3
3732 #** Level 3, but ordered
3735 <ol><li> with numbers
3737 <ul><li> and bullets
3739 <ol><li> and numbers
3741 </li><li>bullets again
3742 <ul><li>bullet level 2
3743 <ul><li>bullet level 3
3744 <ol><li>Number on level 4
3747 </li><li>bullet level 2
3748 <ol><li>Number on level 3
3749 </li><li>Number on level 3
3752 <ol><li>number level 2
3755 <ul><li><ul><li> Level 3
3759 <ol><li><ul><li><ul><li> Level 3, but ordered
3793 Nested lists 3 (first element empty)
3806 Nested lists 4 (first element empty)
3819 Nested lists 5 (both elements empty)
3832 Nested lists 6 (both elements empty)
3845 Nested lists 7 (skip initial nesting levels)
3849 <ul><li><ul><li><ul><li> foo
3857 Nested lists 8 (multiple nesting transitions)
3865 <ul><li><ul><li> bar
3875 1. Lists with start-of-line-transparent tokens before bullets: Comments
3889 2. Lists with start-of-line-transparent tokens before bullets: Template close
3901 List items are not parsed correctly following a <pre> block (bug 785)
3907 <ul><li> <pre>foo</pre>
3908 </li><li> <pre>bar</pre>
3915 List items from template
3926 * notSOL{{inner list}}
3945 List interrupted by empty line or heading
3955 <ul><li><ul><li> bar
3958 <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>
3959 <ul><li> Another list item
3970 Magic Word: {{CURRENTDAY}}
3979 Magic Word: {{CURRENTDAY2}}
3988 Magic Word: {{CURRENTDAYNAME}}
3997 Magic Word: {{CURRENTDOW}}
4006 Magic Word: {{CURRENTMONTH}}
4015 Magic Word: {{CURRENTMONTHABBREV}}
4017 {{CURRENTMONTHABBREV}}
4024 Magic Word: {{CURRENTMONTHNAME}}
4026 {{CURRENTMONTHNAME}}
4033 Magic Word: {{CURRENTMONTHNAMEGEN}}
4035 {{CURRENTMONTHNAMEGEN}}
4042 Magic Word: {{CURRENTTIME}}
4051 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4060 Magic Word: {{CURRENTYEAR}}
4069 Magic Word: {{FULLPAGENAME}}
4071 title=[[User:Ævar Arnfjörð Bjarmason]]
4075 <p>User:Ævar Arnfjörð Bjarmason
4080 Magic Word: {{FULLPAGENAMEE}}
4082 title=[[User:Ævar Arnfjörð Bjarmason]]
4086 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4091 Magic Word: {{NAMESPACE}}
4093 title=[[User:Ævar Arnfjörð Bjarmason]]
4102 Magic Word: {{NAMESPACEE}}
4104 title=[[User:Ævar Arnfjörð Bjarmason]]
4113 Magic Word: {{NAMESPACENUMBER}}
4115 title=[[User:Ævar Arnfjörð Bjarmason]]
4124 Magic Word: {{NUMBEROFFILES}}
4133 Magic Word: {{PAGENAME}}
4135 title=[[User:Ævar Arnfjörð Bjarmason]]
4139 <p>Ævar Arnfjörð Bjarmason
4144 Magic Word: {{PAGENAME}} with metacharacters
4146 title=[['foo & bar = baz']]
4150 <p><i>'foo & bar = baz'</i>
4155 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4157 title=[[*RFC 1234 http://example.com/]]
4161 <p>*RFC 1234 http://example.com/
4166 Magic Word: {{PAGENAMEE}}
4168 title=[[User:Ævar Arnfjörð Bjarmason]]
4172 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4177 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4179 title=[[*RFC 1234 http://example.com/]]
4183 <p>*RFC_1234_http://example.com/
4188 Magic Word: {{REVISIONID}}
4197 Magic Word: {{SCRIPTPATH}}
4206 Magic Word: {{SERVER}}
4210 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4215 Magic Word: {{SERVERNAME}}
4224 Magic Word: {{SITENAME}}
4233 Namespace 1 {{ns:1}}
4242 Namespace 1 {{ns:01}}
4251 Namespace 0 {{ns:0}} (bug 4783)
4259 Namespace 0 {{ns:00}} (bug 4783)
4267 Namespace -1 {{ns:-1}}
4276 Namespace User {{ns:User}}
4285 Namespace User talk {{ns:User_talk}}
4294 Namespace User talk {{ns:uSeR tAlK}}
4303 Namespace File {{ns:File}}
4312 Namespace File {{ns:Image}}
4321 Namespace (lang=de) Benutzer {{ns:User}}
4332 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4338 <p>Benutzer Diskussion
4346 {{urlencode:hi world?!}}
4347 {{urlencode:hi world?!|WIKI}}
4348 {{urlencode:hi world?!|PATH}}
4349 {{urlencode:hi world?!|QUERY}}
4362 Magic links: internal link to RFC (bug 479)
4366 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4371 Magic links: RFC (bug 479)
4375 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4380 Magic links: ISBN (bug 1937)
4384 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4389 Magic links: PMID incorrectly converts space to underscore
4393 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4402 Nonexistent template
4404 {{thistemplatedoesnotexist}}
4406 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4411 Template with invalid target containing tags
4413 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4415 <p>{{a<b>b</b>|foo|a=b|a = b}}
4420 Template with invalid target containing unclosed tag
4422 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4424 <p>{{a<b>|foo|a=b|a = b}}</b>
4431 This is a test template
4439 <p>This is a test template
4444 Template with explicit namespace
4448 <p>This is a test template
4456 This is a test template with parameter {{{param}}}
4462 {{paramtest|param=foo}}
4464 <p>This is a test template with parameter foo
4469 Template:paramtestnum
4475 Template unnamed parameter
4477 {{paramtestnum|Main Page|the main page}}
4479 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4484 Template:templatesimple
4490 Template:templateredirect
4492 #redirect [[Template:templatesimple]]
4496 Template:templateasargtestnum
4502 Template:templateasargtest
4504 {{template{{{templ}}}}}
4508 Template:templateasargtest2
4514 Template with template name as unnamed argument
4516 {{templateasargtestnum|templatesimple}}
4523 Template with template name as argument
4525 {{templateasargtest|templ=simple}}
4532 Template with template name as argument (2)
4534 {{templateasargtest2|templ=templatesimple}}
4541 Template:templateasargtestdefault
4543 {{{{{templ|templatesimple}}}}}
4553 Template with default value
4555 {{templateasargtestdefault}}
4562 Template with default value (value set)
4564 {{templateasargtestdefault|templ=templa}}
4573 {{templateredirect}}
4580 Template with argument in separate line
4582 {{ templateasargtest |
4590 Template with complex template as argument
4593 param ={{ templateasargtest |
4596 <p>This is a test template with parameter (test)
4601 Template with thumb image (with link in description)
4604 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4606 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>
4611 Template:complextemplate
4613 {{{1}}} {{paramtest|
4614 param ={{{param}}}}}
4618 Template with complex arguments
4621 param ={{ templateasargtest |
4622 templ = simple }}|[[Template:complextemplate|link]]}}
4624 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4629 BUG 553: link with two variables in a piped link
4632 |[[{{{1}}}|{{{2}}}]]
4637 <td>[[{{{1}}}|{{{2}}}]]
4643 Magic variable as template parameter
4645 {{paramtest|param={{SITENAME}}}}
4647 <p>This is a test template with parameter MediaWiki
4654 [[{{{param}}}|link]]
4658 Template parameter as link source
4660 {{linktest|param=Main Page}}
4662 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4667 Template-generated attribute string (k='v')
4669 <span {{attr_str|id|v1}}>bar</span>
4671 <p><span id="v1">bar</span>
4678 including another template, {{paramtest|param={{{arg}}}}}
4682 Template passing argument to another template
4684 {{paramtest2|arg='hmm'}}
4686 <p>including another template, This is a test template with parameter 'hmm'
4697 Template as link source
4701 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4719 Template infinite loop
4723 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4728 Template from main namespace
4747 BUG 529: Template with table, not included at beginning of line
4766 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4786 BUG 41: Template parameters shown as broken links
4795 Template with targets containing wikilinks
4799 {{[[{{echo|foo}}]]}}
4801 {{{{echo|[[foo}}]]}}
4803 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4804 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4812 ''None'' of '''this''' should be
4814 but rather passed unmodified
4818 # hmm, fix this or just deprecate msgnw and document its behavior?
4824 {{msgnw:MSGNW test}}
4826 <p>''None'' of '''this''' should be
4828 but rather passed unmodified
4836 {{int:youhavenewmessages|lots of money|not!}}
4838 <p>You have lots of money (not!).
4845 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4849 <includeonly> and <noinclude> being included
4860 <onlyinclude>Foo</onlyinclude>bar
4864 <onlyinclude> being included
4876 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4880 <onlyinclude> and <includeonly> being included
4889 <includeonly> and <noinclude> on a page
4891 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4898 Un-closed <noinclude>
4905 <onlyinclude> on a page
4907 <onlyinclude>Foo</onlyinclude>bar
4914 Un-closed <onlyinclude>
4921 Template:Includeonly section
4924 ==Includeonly section==
4930 Bug 6563: Edit link generation for section shown by <includeonly>
4932 {{includeonly section}}
4934 <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>
4935 <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>
4939 # Uses same input as the contents of [[Template:Includeonly section]]
4941 Bug 6563: Section extraction for section shown by <includeonly>
4946 ==Includeonly section==
4954 Bug 6563: Edit link generation for section suppressed by <includeonly>
4957 ==Includeonly section==
4961 <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>
4966 Bug 6563: Section extraction for section suppressed by <includeonly>
4971 ==Includeonly section==
4979 Un-closed <includeonly>
4986 ### <includeonly> and <noinclude> in attributes
4989 0. includeonly around the entire attribute
4991 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4993 <p><span id="v2">bar</span>
4998 1. includeonly in html attr key
5000 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5002 <p><span id="foo">bar</span>
5007 2. includeonly in html attr value
5009 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5010 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5012 <p><span id="v1">bar</span>
5013 <span id="v1">bar</span>
5018 3. includeonly in part of an attr value
5020 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5022 <p><span style="color:red;">bar</span>
5027 ### Testing parsing of templates where a template arg
5028 ### has the same name as the template itself.
5038 Templates: Template Name/Arg clash: 1. Use of positional param
5047 Templates: Template Name/Arg clash: 2. Use of named param
5056 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5065 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5069 Templates: 1. Simple use
5078 Templates: 2. Inside a block tag
5080 <div>{{echo|Foo}}</div>
5087 Templates: P-wrapping: 1a. Templates on consecutive lines
5098 Templates: P-wrapping: 1b. Templates on consecutive lines
5112 Templates: P-wrapping: 1c. Templates on consecutive lines
5115 {{echo|bar}} <div>baz</div>
5124 Templates: Inline Text: 1. Multiple tmeplate uses
5126 {{echo|Foo}}bar{{echo|baz}}
5133 Templates: Inline Text: 2. Back-to-back template uses
5135 {{echo|Foo}}{{echo|bar}}
5142 Templates: Block Tags: 1. Multiple template uses
5144 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5146 <div>Foo</div><div>bar</div><div>baz</div>
5151 Templates: Block Tags: 2. Back-to-back template uses
5153 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5155 <div>Foo</div><div>bar</div>
5160 Templates: Links: 1. Simple example
5162 {{echo|[[Foo|bar]]}}
5164 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5169 Templates: Links: 2. Generation of link href
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: 3. Generation of part of a link href
5180 [[Fo{{echo|o}}|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: 4. Multiple templates generating link href
5189 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5191 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5196 Templates: Links: 5. Generation of link text
5198 [[Foo|{{echo|bar}}]]
5200 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5205 Templates: Links: 5. Nested templates (only outermost template should be marked)
5207 {{echo|[[{{echo|Foo}}|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: HTML Tag: 1. Generation of HTML attr. key
5216 <div {{echo|style}}="color:red;">foo</div>
5218 <div style="color:red;">foo</div>
5223 Templates: HTML Tag: 2. Generation of HTML attr. value
5225 <div style={{echo|'color:red;'}}>foo</div>
5227 <div style="color:red;">foo</div>
5232 Templates: HTML Tag: 3. Generation of HTML attr key and value
5234 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5236 <div style="color:red;">foo</div>
5241 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5243 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5245 <div title="This is a long title with just one piece templated">foo</div>
5250 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5252 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5254 <div title="This is a long title with just one piece templated">foo</div>
5259 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5261 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5263 <div title="This is a long title with just one piece templated">foo</div>
5268 Templates: HTML Tables: 1. Generating start of a HTML table
5270 {{echo|<table><tr><td>foo</td>}}</tr></table>
5272 <table><tr><td>foo</td></tr></table>
5277 Templates: HTML Tables: 2a. Generating middle of a HTML table
5279 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5281 <table><tr><td>foo</td></tr></table>
5286 Templates: HTML Tables: 2b. Generating middle of a HTML table
5288 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5290 <table><tr><td>foo</td></tr></table>
5295 Templates: HTML Tables: 3. Generating end of a HTML table
5297 <table><tr>{{echo|<td>foo</td></tr></table>}}
5299 <table><tr><td>foo</td></tr></table>
5304 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5306 {{echo|<table>}}<tr><td>foo</td></tr></table>
5308 <table><tr><td>foo</td></tr></table>
5313 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5315 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5317 <table><tr><td>foo</td></tr></table>
5322 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5324 <table><tr>{{echo|<td>}}foo</td></tr></table>
5326 <table><tr><td>foo</td></tr></table>
5331 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5333 <table><tr><td>foo{{echo|</td>}}</tr></table>
5335 <table><tr><td>foo</td></tr></table>
5340 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5342 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5344 <table><tr><td>foo</td></tr></table>
5349 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5351 <table><tr><td>foo</td></tr>{{echo|</table>}}
5353 <table><tr><td>foo</td></tr></table>
5358 Templates: Wiki Tables: 1. Fostering of entire template content
5366 <tr><td></td></tr></table>
5371 Templates: Wiki Tables: 2. Fostering of partial template content
5381 <tr><td></td></tr></table>
5386 Templates: Wiki Tables: 3. td-content via multiple templates
5389 {{echo|{{pipe}}a}}{{echo|b}}
5400 Templates: Lists: Multi-line list-items via templates
5402 *{{echo|a {{nonexistent|
5404 *{{echo|b {{nonexistent|
5407 <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>
5408 </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>
5414 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5416 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5418 <p><i>ab</i>c<i>d</i>e
5423 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5424 (PHP parser generates misnested html)
5428 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5430 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5434 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5435 (PHP parser generates misnested html)
5439 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5442 <div><i>b</i>c<i>d</i></div>
5447 Templates: Ugly nesting: 4. Divs opened/closed across templates
5449 a<div>b{{echo|c</div>d}}e
5456 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5462 |{{echo|foo</table>}}
5466 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5467 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5468 bar</span><span about="#mwt1">
5473 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5483 <td>1. {{echo|foo </table>}}</td>
5485 <td>2. {{echo|baz </table>}}</td>
5498 <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">
5499 <tbody><tr data-parsoid="{"stx":"html"}">
5500 <td data-parsoid="{"stx":"html"}">
5501 <table data-parsoid="{"stx":"html"}">
5502 <tbody><tr data-parsoid="{"stx":"html"}">
5503 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5504 <td data-parsoid="{"stx":"html"}"> bar </td>
5505 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5506 </span><span about="#mwt1">
5508 abc</span><span about="#mwt1">
5509 </span><span about="#mwt1">
5510 </span><span about="#mwt1">
5511 </span><span about="#mwt1">
5512 </span><span about="#mwt1">
5514 xyz</span><span about="#mwt1">
5515 </span><span about="#mwt1">
5520 Parser Functions: 1. Simple example
5529 Parser Functions: 2. Nested use (only outermost should be marked up)
5538 ### Pre-save transform tests
5541 pre-save transform: subst:
5547 This is a test template
5551 pre-save transform: normal template
5561 pre-save transform: nonexistent template
5565 {{thistemplatedoesnotexist}}
5567 {{thistemplatedoesnotexist}}
5572 pre-save transform: subst magic variables
5581 # This is bug 89, which I fixed. -- wtm
5583 pre-save transform: subst: templates with parameters
5587 {{subst:paramtest|param="something else"}}
5589 This is a test template with parameter "something else"
5595 <nowiki>'''not wiki'''</nowiki>
5599 pre-save transform: nowiki in subst (bug 1188)
5603 {{subst:nowikitest}}
5605 <nowiki>'''not wiki'''</nowiki>
5610 Template:commenttest
5612 This template has <!-- a comment --> in it.
5616 pre-save transform: comment in subst (bug 1936)
5620 {{subst:commenttest}}
5622 This template has <!-- a comment --> in it.
5626 pre-save transform: unclosed tag
5630 <nowiki>'''not wiki'''
5632 <nowiki>'''not wiki'''
5636 pre-save transform: mixed tag case
5640 <NOwiki>'''not wiki'''</noWIKI>
5642 <NOwiki>'''not wiki'''</noWIKI>
5646 pre-save transform: unclosed comment in <nowiki>
5650 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5652 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5658 <span onmouseover="alert('crap')">Oh no</span>
5662 (confirming safety of fix for subst bug 1936)
5664 {{Template:dangerous}}
5666 <p><span>Oh no</span>
5671 pre-save transform: comment containing gallery (bug 5024)
5675 <!-- <gallery>data</gallery> -->
5677 <!-- <gallery>data</gallery> -->
5681 pre-save transform: comment containing extension
5685 <!-- <tag>data</tag> -->
5687 <!-- <tag>data</tag> -->
5691 pre-save transform: comment containing nowiki
5695 <!-- <nowiki>data</nowiki> -->
5697 <!-- <nowiki>data</nowiki> -->
5701 pre-save transform: <noinclude> in subst (bug 3298)
5711 pre-save transform: <onlyinclude> in subst (bug 3298)
5723 {{<includeonly>subst:</includeonly>Includes}}
5727 Template:SafeSubstTest
5729 {{<includeonly>safesubst:</includeonly>Includes}}
5733 bug 22297: safesubst: works during PST
5737 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5743 bug 22297: safesubst: works during normal parse
5752 subst: does not work during normal parse
5756 <p>{{subst:Includes}}
5761 pre-save transform: context links ("pipe trick")
5765 [[Article (context)|]]
5768 [[Bar:Article (context)|]]
5769 [[:Bar:Article (context)|]]
5771 [[|Article (context)]]
5775 [[Article (context)|Article]]
5776 [[Bar:Article|Article]]
5777 [[:Bar:Article|Article]]
5778 [[Bar:Article (context)|Article]]
5779 [[:Bar:Article (context)|Article]]
5781 [[Article (context)]]
5782 [[Bar:X (Y) Z|X (Y) Z]]
5783 [[:Bar:X (Y) Z|X (Y) Z]]
5787 pre-save transform: context links ("pipe trick") with interwiki prefix
5791 [[interwiki:Article|]]
5792 [[:interwiki:Article|]]
5793 [[interwiki:Bar:Article|]]
5794 [[:interwiki:Bar:Article|]]
5796 [[interwiki:Article|Article]]
5797 [[:interwiki:Article|Article]]
5798 [[interwiki:Bar:Article|Bar:Article]]
5799 [[:interwiki:Bar:Article|Bar:Article]]
5803 pre-save transform: context links ("pipe trick") with parens in title
5805 pst title=[[Somearticle (context)]]
5809 [[Article (context)|Article]]
5813 pre-save transform: context links ("pipe trick") with comma in title
5815 pst title=[[Someplace, Somewhere]]
5818 [[Otherplace, Elsewhere|]]
5819 [[Otherplace, Elsewhere, Anywhere|]]
5821 [[Otherplace, Somewhere|Otherplace]]
5822 [[Otherplace, Elsewhere|Otherplace]]
5823 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5827 pre-save transform: context links ("pipe trick") with parens and comma
5829 pst title=[[Someplace (IGNORED), Somewhere]]
5832 [[Otherplace (place), Elsewhere|]]
5834 [[Otherplace, Somewhere|Otherplace]]
5835 [[Otherplace (place), Elsewhere|Otherplace]]
5839 pre-save transform: context links ("pipe trick") with comma and parens
5841 pst title=[[Who, me? (context)]]
5844 [[Me, Myself, and I (1937 song)|]]
5846 [[Yes, you. (context)|Yes, you.]]
5847 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5851 pre-save transform: context links ("pipe trick") with namespace
5853 pst title=[[Ns:Somearticle]]
5857 [[Ns:Article|Article]]
5861 pre-save transform: context links ("pipe trick") with namespace and parens
5863 pst title=[[Ns:Somearticle (context)]]
5867 [[Ns:Article (context)|Article]]
5871 pre-save transform: context links ("pipe trick") with namespace and comma
5873 pst title=[[Ns:Somearticle, Context, Whatever]]
5877 [[Ns:Article, Context, Whatever|Article]]
5881 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5883 pst title=[[Ns:Somearticle, Context (context)]]
5887 [[Ns:Article (context)|Article]]
5891 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5893 pst title=[[Ns:Somearticle (IGNORED), Context]]
5897 [[Ns:Article, Context|Article]]
5901 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5905 [[Article(context)|]]
5906 [[Bar:Article(context)|]]
5907 [[:Bar:Article(context)|]]
5908 [[|Article(context)]]
5912 [[Article(context)|Article]]
5913 [[Bar:Article(context)|Article]]
5914 [[:Bar:Article(context)|Article]]
5915 [[Article(context)]]
5917 [[:Bar:X(Y)Z|X(Y)Z]]
5921 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5925 [[Article (context)|]]
5926 [[Bar:Article (context)|]]
5927 [[:Bar:Article (context)|]]
5928 [[|Article (context)]]
5932 [[Article (context)|Article]]
5933 [[Bar:Article (context)|Article]]
5934 [[:Bar:Article (context)|Article]]
5935 [[Article (context)]]
5936 [[Bar:X (Y) Z|X (Y) Z]]
5937 [[:Bar:X (Y) Z|X (Y) Z]]
5941 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5945 [[Article(context)|]]
5946 [[Bar:Article(context)|]]
5947 [[:Bar:Article(context)|]]
5948 [[|Article(context)]]
5952 [[Article(context)|Article]]
5953 [[Bar:Article(context)|Article]]
5954 [[:Bar:Article(context)|Article]]
5955 [[Article(context)]]
5957 [[:Bar:X(Y)Z|X(Y)Z]]
5961 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5965 [[Article (context), context|]]
5966 [[Article (context),context|]]
5967 [[Bar:Article (context), context|]]
5968 [[Bar:Article (context),context|]]
5969 [[:Bar:Article (context), context|]]
5970 [[:Bar:Article (context),context|]]
5972 [[Article (context), context|Article]]
5973 [[Article (context),context|Article]]
5974 [[Bar:Article (context), context|Article]]
5975 [[Bar:Article (context),context|Article]]
5976 [[:Bar:Article (context), context|Article]]
5977 [[:Bar:Article (context),context|Article]]
5981 pre-save transform: trim trailing empty lines
5985 Empty lines are trimmed
5991 Empty lines are trimmed
5995 pre-save transform: Signature expansion
6000 * <noinclude>~~~</noinclude>
6001 * <includeonly>~~~</includeonly>
6002 * <onlyinclude>~~~</onlyinclude>
6004 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6005 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6006 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6007 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6012 pre-save transform: Signature expansion in nowiki tags (bug 93)
6018 <nowiki>~~~~</nowiki>
6020 <includeonly><nowiki>~~~~</nowiki></includeonly>
6022 <noinclude><nowiki>~~~~</nowiki></noinclude>
6024 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6026 {{subst:Foo}} shall be converted to FOO
6028 As well as inside noinclude/onlyinclude
6029 <noinclude>{{subst:Foo}}</noinclude>
6030 <onlyinclude>{{subst:Foo}}</onlyinclude>
6032 But not inside includeonly
6033 <includeonly>{{subst:Foo}}</includeonly>
6037 <nowiki>~~~~</nowiki>
6039 <includeonly><nowiki>~~~~</nowiki></includeonly>
6041 <noinclude><nowiki>~~~~</nowiki></noinclude>
6043 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6045 FOO shall be converted to FOO
6047 As well as inside noinclude/onlyinclude
6048 <noinclude>FOO</noinclude>
6049 <onlyinclude>FOO</onlyinclude>
6051 But not inside includeonly
6052 <includeonly>{{subst:Foo}}</includeonly>
6056 ### Message transform tests
6059 message transform: magic variables
6069 message transform: should not transform wiki markup
6079 message transform: <noinclude> in transcluded template (bug 4926)
6089 message transform: <onlyinclude> in transcluded template (bug 4926)
6099 {{#special:}} page name, known
6103 {{#special:Recentchanges}}
6105 Special:RecentChanges
6109 {{#special:}} page name with subpage, known
6113 {{#special:Recentchanges/param}}
6115 Special:RecentChanges/param
6119 {{#special:}} page name, unknown
6123 {{#special:foobarnonexistent}}
6125 No such special page
6129 {{#speciale:}} page name, known
6133 {{#speciale:Recentchanges}}
6135 Special:RecentChanges
6139 {{#speciale:}} page name with subpage, known
6143 {{#speciale:Recentchanges/param}}
6145 Special:RecentChanges/param
6149 {{#speciale:}} page name, unknown
6153 {{#speciale:foobarnonexistent}}
6155 No_such_special_page
6164 [[Image:foobar.jpg]]
6166 <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>
6173 [[Image:foobar.jpg|right]]
6175 <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>
6180 Simple image (using File: namespace, now canonical)
6184 <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>
6191 [[Image:foobar.jpg|right|Caption text]]
6193 <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>
6198 Image with empty attribute
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 link tails
6209 123[[Image:foobar.jpg]]456
6210 123[[Image:foobar.jpg|right]]456
6211 123[[Image:foobar.jpg|thumb]]456
6213 <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
6215 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
6216 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
6221 Image with multiple captions -- only last one is accepted
6223 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6225 <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>
6230 Image with width attribute at different positions
6232 [[Image:foobar.jpg|200px|right|Caption]]
6233 [[Image:foobar.jpg|right|200px|Caption]]
6234 [[Image:foobar.jpg|right|Caption|200px]]
6236 <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>
6237 <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>
6238 <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>
6243 Image with link parameter, wiki target
6245 [[Image:foobar.jpg|link=Target page]]
6247 <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>
6252 Image with link parameter, URL target
6254 [[Image:foobar.jpg|link=http://example.com/]]
6256 <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>
6261 Image with link parameter, wgExternalLinkTarget
6263 [[Image:foobar.jpg|link=http://example.com/]]
6265 wgExternalLinkTarget='foobar'
6267 <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>
6272 Image with link parameter, wgNoFollowLinks set to false
6274 [[Image:foobar.jpg|link=http://example.com/]]
6276 wgNoFollowLinks=false
6278 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6283 Image with link parameter, wgNoFollowDomainExceptions
6285 [[Image:foobar.jpg|link=http://example.com/]]
6287 wgNoFollowDomainExceptions='example.com'
6289 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6294 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6296 [[Image:foobar.jpg|link=http://example.com/|Title]]
6298 wgExternalLinkTarget='foobar'
6300 <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>
6305 Image with empty link parameter
6307 [[Image:foobar.jpg|link=]]
6309 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6314 Image with link parameter (wiki target) and unnamed parameter
6316 [[Image:foobar.jpg|link=Target page|Title]]
6318 <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>
6323 Image with link parameter (URL target) and unnamed parameter
6325 [[Image:foobar.jpg|link=http://example.com/|Title]]
6327 <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>
6332 Thumbnail image with link parameter
6334 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6336 <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>
6341 Image with frame and link
6343 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6345 <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>
6350 Image with frame and link and explicit alt
6352 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6354 <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>
6359 Image with wiki markup in implicit alt
6361 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6363 <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>
6368 Image with wiki markup in explicit alt
6370 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6372 <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>
6377 Link to image page- image page normally doesn't exists, hence edit link
6378 Add test with existing image page
6379 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6383 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6388 bug 18784 Link to non-existent image page with caption should use caption as link text
6390 [[:Image:test|caption]]
6392 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6397 Frameless image caption with a free URL
6399 [[Image:foobar.jpg|http://example.com]]
6401 <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>
6406 Thumbnail image caption with a free URL
6408 [[Image:foobar.jpg|thumb|http://example.com]]
6410 <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>
6415 Thumbnail image caption with a free URL and explicit alt
6417 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6419 <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>
6424 BUG 1887: A ISBN with a thumbnail
6426 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6428 <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>
6433 BUG 1887: A RFC with a thumbnail
6435 [[Image:foobar.jpg|thumb|This is RFC 12354]]
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>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6442 BUG 1887: A mailto link with a thumbnail
6444 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
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>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
6450 # Pending resolution to bug 368
6452 BUG 648: Frameless image caption with a link
6454 [[Image:foobar.jpg|text with a [[link]] in it]]
6456 <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>
6461 BUG 648: Frameless image caption with a link (suffix)
6463 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6465 <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>
6470 BUG 648: Frameless image caption with an interwiki link
6472 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6474 <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>
6479 BUG 648: Frameless image caption with a piped interwiki link
6481 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6483 <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>
6488 Escape HTML special chars in image alt text
6490 [[Image:foobar.jpg|& < > "]]
6492 <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>
6497 BUG 499: Alt text should have Ӓ, not &1234;
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 Broken image caption with link
6508 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6510 <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.
6515 Image caption containing another image
6517 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6519 <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>
6524 Image caption containing a newline
6526 [[Image:Foobar.jpg|This
6529 <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>
6535 Bug 3090: External links other than http: in image captions
6537 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6539 <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>
6546 [[Image:foobar.jpg|a|class=b]]
6548 <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>
6555 #REDIRECT [[File:Barfoo.jpg]]
6561 [[Image:Barfoo.jpg]]
6563 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6568 Missing image with uploads disabled
6572 [[Image:Foobaz.jpg]]
6574 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6583 Subpage test/subpage
6591 subpage title=[[Subpage test]]
6595 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6600 Subpage noslash link
6602 subpage title=[[Subpage test]]
6606 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6615 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6620 BUG 561: {{/Subpage}}
6622 subpage title=[[Page]]
6626 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6634 Category:MediaWiki User's Guide
6642 [[:Category:MediaWiki User's Guide]]
6644 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6653 [[Category:MediaWiki User's Guide]]
6655 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6659 PAGESINCATEGORY invalid title fatal (r33546 fix)
6661 {{PAGESINCATEGORY:<bogus>}}
6668 Category with different sort key
6672 [[Category:MediaWiki User's Guide|Foo]]
6674 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6678 Category with identical sort key
6682 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6684 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6688 Category with empty sort key
6693 [[Category:MediaWiki User's Guide|]]
6695 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6699 Category with empty sort key and parentheses
6704 [[Category:Foo (bar)|]]
6706 [[Category:Foo (bar)|Foo]]
6710 Category with link tail
6715 123[[Category:Foo]]456
6717 123[[Category:Foo]]456
6721 Category with template
6726 [[Category:{{echo|Foo}}]]
6728 [[Category:{{echo|Foo}}]]
6732 Category with template in sort key
6737 [[Category:Foo|{{echo|Bar}}]]
6739 [[Category:Foo|{{echo|Bar}}]]
6743 Category with template in sort key and title
6748 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6750 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6754 Category / paragraph interactions
6756 Foo [[Category:Baz]] Bar
6758 Foo [[Category:Baz]]
6766 [[Category:Baz]] Bar
6779 {{echo|[[Category:Baz]]}}
6794 ### Inter-language links
6797 Inter-language links
6803 [[zh:食品]]
6805 es:Alimento fr:Nourriture zh:食品
6809 Duplicate interlanguage links (bug 24502)
6825 Basic section headings
6832 ===Smaller headline===
6835 <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>
6838 <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>
6841 <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>
6847 Section headings with TOC
6850 === Subheadline 1 ===
6851 ===== Skipping a level =====
6852 ====== Skipping a level ======
6856 ===Another headline===
6858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6860 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6862 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6864 <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>
6866 <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>
6873 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6875 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6880 <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>
6881 <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>
6882 <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>
6883 <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>
6884 <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>
6887 <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>
6891 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6893 Handling of sections up to level 6 and beyond
6896 == Level 2 Heading==
6897 === Level 3 Heading===
6898 ==== Level 4 Heading====
6899 ===== Level 5 Heading=====
6900 ====== Level 6 Heading======
6901 ======= Level 7 Heading=======
6902 ======== Level 8 Heading========
6903 ========= Level 9 Heading=========
6904 ========== Level 10 Heading==========
6906 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6908 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6910 <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>
6912 <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>
6914 <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>
6916 <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>
6918 <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>
6919 <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>
6920 <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>
6921 <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>
6922 <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>
6935 <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>
6936 <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>
6937 <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>
6938 <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>
6939 <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>
6940 <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>
6941 <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>
6942 <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>
6943 <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>
6944 <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>
6949 TOC regression (bug 9764)
6953 ==== title 1.1.1 ====
6958 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6960 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6962 <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>
6964 <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>
6967 <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>
6970 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6972 <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>
6977 <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>
6978 <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>
6979 <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>
6980 <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>
6981 <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>
6982 <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>
6987 TOC with wgMaxTocLevel=3 (bug 6204)
6993 ==== title 1.1.1 ====
6998 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7000 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7002 <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>
7003 <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>
7006 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7008 <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>
7013 <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>
7014 <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>
7015 <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>
7016 <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>
7017 <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>
7018 <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>
7023 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7029 ====Section 1.1.1====
7030 ====Section 1.1.1.1====
7033 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7035 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7037 <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>
7040 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7043 <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>
7044 <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>
7045 <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>
7046 <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>
7047 <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>
7053 Resolving duplicate section names
7058 <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>
7059 <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>
7064 Resolving duplicate section names with differing case (bug 10721)
7069 <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>
7070 <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>
7082 Template with sections, __NOTOC__
7089 <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>
7090 <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>
7091 <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>
7092 <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>
7097 __NOEDITSECTION__ keyword
7103 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7104 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7109 Link inside a section heading
7111 ==Section with a [[Main Page|link]] in it==
7113 <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>
7118 TOC regression (bug 12077)
7125 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7127 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7129 <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>
7132 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7135 <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>
7136 <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>
7137 <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>
7142 BUG 1219 URL next to image (good)
7144 http://example.com [[Image:foobar.jpg]]
7146 <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>
7151 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7154 The line above must have a trailing space!
7157 But just in case it doesn't...
7159 <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>
7160 <p>The line above must have a trailing space!
7162 <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>
7163 <p>But just in case it doesn't...
7168 Header with special characters (bug 25462)
7170 The tooltips shall not show entities to the user (ie. be double escaped)
7187 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7189 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7191 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7192 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7193 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7194 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7195 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7198 <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>
7201 <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>
7204 <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>
7207 <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>
7210 <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>
7216 Headers with excess '=' characters
7217 (Are similar tests necessary beyond the 1st level?)
7221 =''italic'' heading==
7222 ==''italic'' heading=
7224 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7226 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7227 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7228 <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>
7229 <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>
7232 <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>
7233 <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>
7234 <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>
7235 <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>
7240 BUG 1219 URL next to image (broken)
7242 http://example.com[[Image:foobar.jpg]]
7244 <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>
7249 Bug 1186 news: in the middle of text
7251 http://en.wikinews.org/wiki/Wikinews:Workplace
7253 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7259 Namespaced link must have a title
7268 Namespaced link must have a title (bad fragment version)
7270 [[Project:#fragment]]
7272 <p>[[Project:#fragment]]
7278 div with no attributes
7280 <div>HTML rocks</div>
7282 <div>HTML rocks</div>
7287 div with double-quoted attribute
7289 <div id="rock">HTML rocks</div>
7291 <div id="rock">HTML rocks</div>
7296 div with single-quoted attribute
7298 <div id='rock'>HTML rocks</div>
7300 <div id="rock">HTML rocks</div>
7305 div with unquoted attribute
7307 <div id=rock>HTML rocks</div>
7309 <div id="rock">HTML rocks</div>
7314 div with illegal double attributes
7316 <div id="a" id="b">HTML rocks</div>
7318 <div id="b">HTML rocks</div>
7322 # FIXME: produce empty string instead of "class" in the PHP parser, following
7325 div with empty attribute value, space before equals
7329 <div class =>HTML rocks</div>
7331 <div class="">HTML rocks</div>
7335 # This it very inconsistent in the PHP parser: it returns
7336 # class="class" if there is a space between the name and the equal sign (see
7337 # 'div with empty attribute value, space before equals'), but strips the
7338 # attribute completely if the space is missing. We hope that not much content
7339 # depends on this, so are implementing the behavior below in Parsoid for
7340 # consistencies' sake. Disabled for the PHP parser.
7341 # FIXME: fix this behavior in the PHP parser?
7343 div with empty attribute value, no space before equals
7347 <div class=>HTML rocks</div>
7349 <div class="">HTML rocks</div>
7354 HTML multiple attributes correction
7356 <p class="error" class="awesome">Awesome!</p>
7358 <p class="awesome">Awesome!</p>
7363 Table multiple attributes correction
7366 !+ class="error" class="awesome"| status
7371 <th class="awesome"> status
7379 <DIV ID="x">HTML ROCKS</DIV>
7381 <div id="x">HTML ROCKS</div>
7386 Non-ASCII pseudo-tags are rendered as text
7395 Pseudo-tag with URL 'name' renders as url link
7397 <http://example.com/>
7399 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7404 text with amp in the middle of nowhere
7408 <p>Remember AT&T?
7413 text with character entity: eacute
7415 I always thought é was a cute letter.
7417 <p>I always thought é was a cute letter.
7422 text with undefined character entity: xacute
7424 I always thought &xacute; was a cute letter.
7426 <p>I always thought &xacute; was a cute letter.
7438 [[Media:Foobar.jpg]]
7440 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7445 Media link with text
7447 [[Media:Foobar.jpg|A neat file to look at]]
7449 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7453 # FIXME: this is still bad HTML tag nesting
7455 Media link with nasty text
7456 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7458 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7460 <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>
7465 Media link to nonexistent file (bug 1702)
7467 [[Media:No such.jpg]]
7469 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7474 Image link to nonexistent file (bug 1850 - good)
7476 [[Image:No such.jpg]]
7478 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7483 :Image link to nonexistent file (bug 1850 - bad)
7485 [[:Image:No such.jpg]]
7487 <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>
7494 Character reference normalization in link text (bug 1938)
7496 [[Main Page|this&that]]
7498 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7505 Test for unicode normalization
7507 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7511 (bug 19451) Links should refer to the normalized form.
7519 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7520 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7521 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7522 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7523 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7528 Empty attribute crash test (bug 2067)
7530 <font color="">foo</font>
7532 <p><font color="">foo</font>
7537 Empty attribute crash test single-quotes (bug 2067)
7539 <font color=''>foo</font>
7541 <p><font color="">foo</font>
7546 Attribute test: equals, then nothing
7548 <font color=>foo</font>
7555 Attribute test: unquoted value
7557 <font color=x>foo</font>
7559 <p><font color="x">foo</font>
7564 Attribute test: unquoted but illegal value (hash)
7566 <font color=#x>foo</font>
7568 <p><font color="#x">foo</font>
7573 Attribute test: no value
7575 <font color>foo</font>
7577 <p><font color="color">foo</font>
7582 Bug 2095: link with three closing brackets
7586 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7591 Bug 2095: link with pipe and three closing brackets
7595 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7600 Bug 2095: link with pipe and three closing brackets, version 2
7602 [[Main Page|[http://example.com/]]]
7604 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7614 Template:Dangerous attribute
7616 " onmouseover="alert(document.cookie)
7620 Template:Dangerous style attribute
7622 border-size: expression(alert(document.cookie))
7628 <div style="float: right; {{{1}}}">Magic div</div>
7632 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7634 <div title="{{test}}"></div>
7636 <div title="This is a test template"></div>
7641 Bug 2304: HTML attribute safety (dangerous template; 2309)
7643 <div title="{{dangerous attribute}}"></div>
7645 <div title=""></div>
7650 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7652 <div style="{{dangerous style attribute}}"></div>
7654 <div style="/* insecure input */"></div>
7659 Bug 2304: HTML attribute safety (safe parameter; 2309)
7661 {{div style|width: 200px}}
7663 <div style="float: right; width: 200px">Magic div</div>
7668 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7670 {{div style|width: expression(alert(document.cookie))}}
7672 <div style="/* insecure input */">Magic div</div>
7677 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7679 {{div style|"><script>alert(document.cookie)</script>}}
7681 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7686 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 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 (link)
7697 <div title="[[Main Page]]"></div>
7699 <div title="[[Main Page]]"></div>
7704 Bug 2304: HTML attribute safety (italics)
7706 <div title="''foobar''"></div>
7708 <div title="''foobar''"></div>
7713 Bug 2304: HTML attribute safety (bold)
7715 <div title="'''foobar'''"></div>
7717 <div title="'''foobar'''"></div>
7723 Bug 2304: HTML attribute safety (ISBN)
7725 <div title="ISBN 1234567890"></div>
7727 <div title="ISBN 1234567890"></div>
7732 Bug 2304: HTML attribute safety (RFC)
7734 <div title="RFC 1234"></div>
7736 <div title="RFC 1234"></div>
7741 Bug 2304: HTML attribute safety (PMID)
7743 <div title="PMID 1234567890"></div>
7745 <div title="PMID 1234567890"></div>
7750 Bug 2304: HTML attribute safety (web link)
7752 <div title="http://example.com/"></div>
7754 <div title="http://example.com/"></div>
7759 Bug 2304: HTML attribute safety (named web link)
7761 <div title="[http://example.com/ link]"></div>
7763 <div title="[http://example.com/ link]"></div>
7768 Bug 3244: HTML attribute safety (extension; safe)
7770 <div style="<nowiki>background:blue</nowiki>"></div>
7772 <div style="background:blue"></div>
7777 Bug 3244: HTML attribute safety (extension; unsafe)
7779 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7781 <div style="/* insecure input */"></div>
7785 # More MSIE fun discovered by Tom Gilder
7788 MSIE CSS safety test: spurious slash
7790 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7792 <div style="/* insecure input */">evil</div>
7797 MSIE CSS safety test: hex code
7799 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7801 <div style="/* insecure input */">evil</div>
7806 MSIE CSS safety test: comment in url
7808 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7810 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7815 MSIE CSS safety test: comment in expression
7817 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7819 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7825 Table attribute legitimate extension
7828 !+ style="<nowiki>color:blue</nowiki>"| status
7833 <th style="color:blue"> status
7839 Table attribute safety
7842 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7847 <th style="/* insecure input */"> status
7853 CSS line continuation 1
7855 <div style="background-image: u\ rl(test.jpg);"></div>
7857 <div style="/* insecure input */"></div>
7862 CSS line continuation 2
7864 <div style="background-image: u\ rl(test.jpg); "></div>
7866 <div style="/* insecure input */"></div>
7877 Expansion of multi-line templates in attribute values (bug 6255)
7879 <div style="background: {{identity|#00FF00}}">-</div>
7881 <div style="background: #00FF00">-</div>
7887 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7889 <div style="background:
7892 <div style="background: #00FF00">-</div>
7897 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7899 <div style="background: #00FF00">-</div>
7901 <div style="background: #00FF00">-</div>
7906 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7909 Parser hook: empty input
7922 Parser hook: empty input using terminated empty elements
7935 Parser hook: empty input using terminated empty elements (space before)
7948 Parser hook: basic input
7962 Parser hook: case insensitive
7976 Parser hook: case insensitive, redux
7989 Parser hook: nested tags
7993 <tag><tag></tag></tag>
8004 Parser hook: basic arguments
8006 <tag width=200 height = "100" depth = '50' square></tag>
8014 'square' => 'square',
8021 Parser hook: argument containing a forward slash (bug 5344)
8023 <tag filename='/tmp/bla'></tag>
8028 'filename' => '/tmp/bla',
8035 Parser hook: empty input using terminated empty elements (bug 2374)
8048 # </tag> should be output literally since there is no matching tag that begins it
8050 Parser hook: basic arguments using terminated empty elements (bug 2374)
8052 <tag width=200 height = "100" depth = '50' square/>
8062 'square' => 'square',
8071 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8075 Parser hook: static parser hook not inside a comment
8077 <statictag>hello, world</statictag>
8078 <statictag action=flush/>
8086 Parser hook: static parser hook inside a comment
8088 <!-- <statictag>hello, world</statictag> -->
8089 <statictag action=flush/>
8095 # Nested template calls; this case was broken by Parser.php rev 1.506,
8099 Template:One-parameter
8101 (My parameter is: {{{1}}})
8105 Template:Map-one-parameter
8111 Nested template calls
8113 {{Map-one-parameter|One-parameter|param}}
8115 <p>(My parameter is: param)
8124 Sanitizer: Closing of open tags
8126 <s></s><table></table>
8128 <s></s><table></table>
8133 Sanitizer: Closing of open but not closed tags
8142 Sanitizer: Closing of closed but not open tags
8151 Sanitizer: Closing of closed but not open table tags
8153 Table not started</td></tr></table>
8155 <p>Table not started</td></tr></table>
8160 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8162 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8164 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8169 Sanitizer: Validating the contents of the id attribute (bug 4515)
8175 Something, but definitely not <br id="9" />...
8179 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8183 <br id="foo" /><br id="foo" />
8185 Something need to be done. foo-2 ?
8189 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8192 <meta itemprop="hello" content="world">
8193 <meta http-equiv="refresh" content="5">
8194 <meta itemprop="hello" http-equiv="refresh" content="5">
8195 <link itemprop="hello" href="{{SERVER}}">
8196 <link rel="stylesheet" href="{{SERVER}}">
8197 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8200 <div itemscope="itemscope">
8201 <p> <meta itemprop="hello" content="world" />
8202 <meta http-equiv="refresh" content="5">
8203 <meta itemprop="hello" content="5" />
8205 <link itemprop="hello" href="http://Britney-Spears" />
8206 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8207 <link itemprop="hello" href="http://Britney-Spears" />
8213 Language converter: output gets cut off unexpectedly (bug 5757)
8217 this bit is safe: }-
8219 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8221 then we get cut off here: }-
8223 all additional text is vanished
8225 <p>this bit is safe: }-
8226 </p><p>but if we add a conversion instance: xxx
8227 </p><p>then we get cut off here: }-
8228 </p><p>all additional text is vanished
8233 Self closed html pairs (bug 5487)
8236 <center><font id="bug" />Centered text</center>
8237 <div><font id="bug2" />In div text</div>
8239 <center><font id="bug" />Centered text</center>
8240 <div><font id="bug2" />In div text</div>
8249 Punctuation: nbsp before exclamation
8253 <p>C'est grave !
8258 Punctuation: CSS !important (bug 11874)
8260 <div style="width:50% !important">important</div>
8262 <div style="width:50% !important">important</div>
8267 Punctuation: CSS ! important (bug 11874; with space after)
8269 <div style="width:50% ! important">important</div>
8271 <div style="width:50% ! important">important</div>
8277 HTML bullet list, closed tags (bug 5497)
8292 HTML bullet list, unclosed tags (bug 5497)
8309 HTML ordered list, closed tags (bug 5497)
8324 HTML ordered list, unclosed tags (bug 5497)
8341 HTML nested bullet list, closed tags (bug 5497)
8366 HTML nested bullet list, open tags (bug 5497)
8391 HTML nested ordered list, closed tags (bug 5497)
8416 HTML nested ordered list, open tags (bug 5497)
8441 HTML ordered list item with parameters oddity
8443 <ol><li id="fragment">One</li></ol>
8445 <ol><li id="fragment">One</li></ol>
8450 bug 5918: autonumbering
8452 [http://first/] [http://second] [ftp://ftp]
8456 [mailto:enclosed@mail.tld With target]
8458 [mailto:enclosed@mail.tld]
8460 mailto:inline@mail.tld
8462 <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>
8463 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8464 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8465 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8466 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8472 # Security and HTML correctness
8473 # From Nick Jenkins' fuzz testing
8477 Fuzz testing: Parser13
8492 Fuzz testing: Parser14
8497 <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>
8498 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8500 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8507 Fuzz testing: Parser14-table
8512 <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>
8513 <table style="__TOC__">
8519 # Known to produce bogus xml (extra </td>)
8521 Fuzz testing: Parser16
8541 Fuzz testing: Parser21
8544 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8549 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8559 Fuzz testing: Parser22
8561 http://===r:::https://b
8565 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8573 # Known to produce bad XML for now
8575 Fuzz testing: Parser24
8582 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8583 <br style="onmouseover='alert(document.cookie);' " />
8585 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8590 <u class="|">}}}} >
8591 <br style="onmouseover='alert(document.cookie);'" />
8593 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8602 # Note: the current result listed for this is not what the original one was,
8603 # but the original bug was JavaScript injection, which is fixed in any case.
8604 # It's not clear that the original result listed was any more correct than the
8605 # current one. Original result:
8608 # <li class="||">
8609 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8611 Fuzz testing: Parser25 (bug 6055)
8617 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8619 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8624 Fuzz testing: URL adjacent extension (with space, clean)
8627 http://example.com <nowiki>junk</nowiki>
8629 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8634 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8637 http://example.com<nowiki>junk</nowiki>
8639 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8644 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8647 http://example.com<pre>junk</pre>
8649 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8654 Fuzz testing: image with bogus manual thumbnail
8656 [[Image:foobar.jpg|thumbnail= ]]
8658 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8663 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8665 <pre dir=" "></pre>
8667 <pre dir=" "></pre>
8672 Parsing optional HTML elements (Bug 6171)
8677 <td> Some tabular data</td>
8678 <td> More tabular data ...
8679 <td> And yet som tabular data</td>
8685 <td> Some tabular data</td>
8686 <td> More tabular data ...
8687 </td><td> And yet som tabular data</td>
8694 Correct handling of <td>, <tr> (Bug 6171)
8699 <td> Some tabular data</td>
8700 <td> More tabular data ...</td>
8701 <td> And yet som tabular data</td>
8707 <td> Some tabular data</td>
8708 <td> More tabular data ...</td>
8709 <td> And yet som tabular data</td>
8717 Parsing crashing regression (fr:JavaScript)
8721 <p></body></x>
8726 Inline wiki vs wiki block nesting
8732 <p><b>Bold paragraph</b>
8733 </p><p>New wiki paragraph
8738 Inline HTML vs wiki block nesting
8746 <p><b>Bold paragraph</b>
8747 </p><p>New wiki paragraph
8751 # Original result was this:
8752 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8754 # While that might be marginally more intuitive, maybe, the six-apostrophe
8755 # construct is clearly pathological and the result stated here (which is what
8756 # the parser actually does) is about as reasonable as anything.
8758 Mixing markup for italics and bold
8761 '''bold''''''bold''bolditalics'''''
8763 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8771 Article for special page transclusion test
8775 Special page transclusion
8778 {{Special:Prefixindex/Xyzzyx}}
8780 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8785 Special page transclusion twice (bug 5021)
8788 {{Special:Prefixindex/Xyzzyx}}
8789 {{Special:Prefixindex/Xyzzyx}}
8791 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8792 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8797 Transclusion of default MediaWiki message
8799 {{MediaWiki:Mainpage}}
8806 Transclusion of nonexistent MediaWiki message
8808 {{MediaWiki:Mainpagexxx}}
8810 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8815 Transclusion of MediaWiki message with underscore
8817 {{MediaWiki:history_short}}
8824 Transclusion of MediaWiki message with space
8826 {{MediaWiki:history short}}
8833 Invalid header with following text
8843 Section extraction test (section 0)
8863 Section extraction test (section 1)
8885 Section extraction test (section 2)
8906 Section extraction test (section 3)
8926 Section extraction test (section 4)
8950 Section extraction test (section 5)
8970 Section extraction test (section 6)
8991 Section extraction test (section 7)
9011 Section extraction test (section 8)
9031 Section extraction test (section 9)
9052 Section extraction test (section 10)
9072 Section extraction test (nonexistent section 11)
9091 Section extraction test with bogus heading (section 1)
9096 ==bogus== not a legal section
9100 ==bogus== not a legal section
9104 Section extraction test with bogus heading (section 2)
9109 ==bogus== not a legal section
9116 Section extraction test with comment after heading (section 1)
9128 Section extraction test with comment after heading (section 2)
9140 Section extraction test with bogus <nowiki> heading (section 1)
9145 ==bogus== <nowiki>not a legal section</nowiki>
9149 ==bogus== <nowiki>not a legal section</nowiki>
9153 Section extraction test with bogus <nowiki> heading (section 2)
9158 ==bogus== <nowiki>not a legal section</nowiki>
9165 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9166 # instead of respecting commented sections
9168 Section extraction prefixed by comment (section 1)
9179 Section extraction prefixed by comment (section 2)
9190 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9191 # instead of respecting HTML-style headings
9193 Section extraction, mixed wiki and html (section 1)
9209 Section extraction, mixed wiki and html (section 2)
9225 # Formerly testing for bug 3342
9227 Section extraction, heading surrounded by <noinclude>
9231 <noinclude>==unmarked==</noinclude>
9237 # Test behaviour of bug 19910
9239 Sectiion with all-equals
9244 The line above must have a trailing space
9247 But just in case it doesn't...
9251 But just in case it doesn't...
9255 Section replacement test (section 0)
9286 Section replacement test (section 1)
9315 Section replacement test (section 2)
9345 Section replacement test (section 3)
9376 Section replacement test (section 4)
9403 Section replacement test (section 5)
9434 Section replacement test (section 6)
9464 Section replacement test (section 7)
9495 Section replacement test (section 8)
9526 Section replacement test (section 9)
9555 Section replacement test (section 10)
9585 Section replacement test with initial whitespace (bug 13728)
9589 Preformatted initial line
9593 Preformatted initial line
9600 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9612 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9625 Section extraction, <pre> around bogus header (bug 10309)
9642 Section replacement, <pre> around bogus header (bug 10309)
9644 noxml replace=2,"xxx"
9665 Handling of 
 in URLs
9669 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9676 5 quotes, code coverage +1 line
9683 Special:Search page linking.
9687 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9702 * {{SUBJECTPAGENAME}}
9703 * {{SUBJECTPAGENAMEE}}
9710 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9712 <ul><li> Parser test
9713 </li><li> Parser test
9714 </li><li> Parser test
9715 </li><li> Parser_test
9716 </li><li> Parser test
9717 </li><li> Parser_test
9718 </li><li> Talk:Parser test
9719 </li><li> Talk:Parser_test
9720 </li><li> Parser test
9721 </li><li> Parser_test
9728 </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>
9732 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9742 image4 |300px| centre
9743 image5.svg| http://///////
9748 <ul class="gallery">
9749 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9750 <div style="height: 150px;">Image1.png</div>
9751 <div class="gallerytext">
9754 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9755 <div style="height: 150px;">Image2.gif</div>
9756 <div class="gallerytext">
9761 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9762 <div style="height: 150px;">Image3</div>
9763 <div class="gallerytext">
9766 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9767 <div style="height: 150px;">Image4</div>
9768 <div class="gallerytext">
9773 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9774 <div style="height: 150px;">Image5.svg</div>
9775 <div class="gallerytext">
9776 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9780 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9781 <div style="height: 150px;">* image6</div>
9782 <div class="gallerytext">
9790 Gallery (with options)
9792 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9793 File:Nonexistant.jpg|caption
9794 File:Nonexistant.jpg
9795 image:foobar.jpg|some '''caption''' [[Main Page]]
9797 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9800 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9801 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9802 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9803 <div style="height: 70px;">Nonexistant.jpg</div>
9804 <div class="gallerytext">
9809 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9810 <div style="height: 70px;">Nonexistant.jpg</div>
9811 <div class="gallerytext">
9814 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9815 <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>
9816 <div class="gallerytext">
9817 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9821 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9822 <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>
9823 <div class="gallerytext">
9826 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9827 <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>
9828 <div class="gallerytext">
9838 Gallery with wikitext inside caption
9841 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9842 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9845 <ul class="gallery">
9846 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9847 <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>
9848 <div class="gallerytext">
9849 <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>
9853 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9854 <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>
9855 <div class="gallerytext">
9856 <p>This is a test template
9865 gallery (with showfilename option)
9867 <gallery showfilename>
9868 File:Nonexistant.jpg|caption
9869 File:Nonexistant.jpg
9870 image:foobar.jpg|some '''caption''' [[Main Page]]
9874 <ul class="gallery">
9875 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9876 <div style="height: 150px;">Nonexistant.jpg</div>
9877 <div class="gallerytext">
9878 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9883 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9884 <div style="height: 150px;">Nonexistant.jpg</div>
9885 <div class="gallerytext">
9886 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9890 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9891 <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>
9892 <div class="gallerytext">
9893 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9894 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9898 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9899 <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>
9900 <div class="gallerytext">
9901 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9910 Gallery (with namespace-less filenames)
9913 File:Nonexistant.jpg
9919 <ul class="gallery">
9920 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9921 <div style="height: 150px;">Nonexistant.jpg</div>
9922 <div class="gallerytext">
9925 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9926 <div style="height: 150px;">Nonexistant.jpg</div>
9927 <div class="gallerytext">
9930 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9931 <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>
9932 <div class="gallerytext">
9935 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9936 <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>
9937 <div class="gallerytext">
9945 HTML Hex character encoding (spells the word "JavaScript")
9947 JavaScript
9949 <p>JavaScript
9954 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9958 <p>&#xsee;&#XSEE;
9963 HTML Hex character encoding mixed case
9972 __FORCETOC__ override
9984 ISBN 978-0-1234-56 789
9986 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9991 ISBN followed by 5 spaces
10002 ISBN ISBN 1234567890
10004 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10009 Bug 22905: <abbr> followed by ISBN followed by </a>
10011 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10013 <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>
10022 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10027 Double RFC with a wiki link
10031 <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>
10040 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10045 Centre-aligned image
10047 [[Image:foobar.jpg|centre]]
10049 <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>
10056 [[Image:foobar.jpg|none]]
10058 <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>
10063 Width + Height sized image (using px) (height is ignored)
10065 [[Image:foobar.jpg|640x480px]]
10067 <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>
10072 Width-sized image (using px, no following whitespace)
10074 [[Image:foobar.jpg|640px]]
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, with following whitespace - test regression from r39467)
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 preceding 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 Another italics / bold test
10107 # Note the results may be incorrect, as parserTest output included this:
10108 # XML error: Mismatched tag at byte 6120:
10109 # ...<dd> </dt></dl> </dd...
10117 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10128 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10130 Images with the "|" character in the comment
10132 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10134 <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>
10139 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10141 <html><script>alert(1);</script></html>
10143 <p><html><script>alert(1);</script></html>
10148 HTML with raw HTML ($wgRawHtml==true)
10152 <html><script>alert(1);</script></html>
10154 <p><script>alert(1);</script>
10159 Parents of subpages, one level up
10161 subpage title=[[Subpage test/L1/L2/L3]]
10165 <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>
10171 Parents of subpages, one level up, not named
10173 subpage title=[[Subpage test/L1/L2/L3]]
10177 <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>
10184 Parents of subpages, two levels up
10186 subpage title=[[Subpage test/L1/L2/L3]]
10192 <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
10193 </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>
10198 Parents of subpages, two levels up, without trailing slash or name.
10200 subpage title=[[Subpage test/L1/L2/L3]]
10209 Parents of subpages, two levels up, with lots of extra trailing slashes.
10211 subpage title=[[Subpage test/L1/L2/L3]]
10215 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10220 Definition list code coverage
10226 <dl><dt> title  </dt><dd> def
10227 </dd><dt> title </dt><dd> def
10228 </dd><dt>title</dt><dd> def
10234 Don't fall for the self-closing div
10236 <div>hello world</div/>
10238 <div>hello world</div>
10247 <p>[[:Template:Msg]]
10256 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10260 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10262 Always escape literal '>' in output, not just after '<'
10276 <p>This is a test template
10277 This is a test template
10289 Inclusion of !userCanEdit() content
10293 <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>
10299 Out-of-order TOC heading levels
10308 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10310 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10312 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10313 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10316 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10318 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10319 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10324 <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>
10325 <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>
10326 <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>
10327 <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>
10328 <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>
10329 <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>
10335 ISBN with a dummy number
10345 ISBN with space-delimited number
10349 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10355 ISBN with multiple spaces, no number
10374 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10375 </p><p>ISBN 12345678901
10381 ISBN with trailing year (bug 8110)
10383 ISBN 1-234-56789-0 - 2006
10385 ISBN 1 234 56789 0 - 2006
10387 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10388 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10396 {{anchorencode:foo bar©#%n}}
10398 <p>foo_bar.C2.A9.23.25n
10403 anchorencode trims spaces
10405 {{anchorencode: __pretty__please__}}
10412 anchorencode deals with links
10414 {{anchorencode: [[hello|world]] [[hi]]}}
10421 anchorencode deals with templates
10423 {{anchorencode: {{Foo}} }}
10430 anchorencode encodes like the TOC generator: (bug 18431)
10432 === _ +:.3A%3A&&]] ===
10433 {{anchorencode: _ +:.3A%3A&&]] }}
10436 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10437 <p>.2B:.3A.253A.26.26.5D.5D
10441 # Expected output in the following test is not necessarily expected (there
10442 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10443 # only testing for well-formedness.
10445 Bug 6200: blockquotes and paragraph formatting
10465 Bug 8293: Use of center tag ruins paragraph formatting
10487 ### Language variants related tests
10490 Self-link in language variants
10492 title=[[Dunav]] language=sr
10494 Both [[Dunav]] and [[Дунав]] are names for this river.
10496 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10502 Link to pages in language variants
10506 Main Page can be written as [[Маин Паге]]
10508 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10514 Multiple links to pages in language variants
10518 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10520 <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>.
10526 Simple template in language variants
10532 <p>This is a test template
10538 Template with explicit namespace in language variants
10544 <p>This is a test template
10550 Basic test for template parameter in language variants
10554 {{парамтест|param=foo}}
10556 <p>This is a test template with parameter foo
10562 Simple category in language variants
10566 [[Category:МедиаWики Усер'с Гуиде]]
10568 <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>
10573 Stripping -{}- tags (language variants)
10577 Latin proverb: -{Ne nuntium necare}-
10579 <p>Latin proverb: Ne nuntium necare
10585 Prevent conversion with -{}- tags (language variants)
10587 language=sr variant=sr-ec
10589 Latinski: -{Ne nuntium necare}-
10591 <p>Латински: Ne nuntium necare
10597 Prevent conversion of text with -{}- tags (language variants)
10599 language=sr variant=sr-ec
10601 Latinski: -{Ne nuntium necare}-
10603 <p>Латински: Ne nuntium necare
10609 Prevent conversion of links with -{}- tags (language variants)
10611 language=sr variant=sr-ec
10615 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10621 -{}- tags within headlines (within html for parserConvert())
10623 language=sr variant=sr-ec
10627 <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>
10633 Explicit definition of language variant alternatives
10635 language=zh variant=zh-tw
10637 -{zh:China;zh-tw:Taiwan}-, not China
10639 <p>Taiwan, not China
10645 Explicit session-wise language variant mapping (A flag and - flag)
10647 language=zh variant=zh-tw
10649 Taiwan is not China.
10650 But -{A|zh:China;zh-tw:Taiwan}- is China,
10651 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10652 and -{China}- is China.
10654 <p>Taiwan is not China.
10655 But Taiwan is Taiwan,
10656 (This should be stripped!)
10657 and China is China.
10662 Explicit session-wise language variant mapping (H flag for hide)
10664 language=zh variant=zh-tw
10666 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10669 <p>(This should be stripped!)
10675 Adding explicit conversion rule for title (T flag)
10677 language=zh variant=zh-tw showtitle
10679 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10682 <p>Should be stripped!
10687 Testing that changing the language variant here in the tests actually works
10689 language=zh variant=zh showtitle
10691 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10694 <p>Should be stripped!
10699 Bug 24072: more test on conversion rule for title
10701 language=zh variant=zh-tw showtitle
10703 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10704 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10707 <p>This should be stripped!
10708 This won't take interferes with the title rule.
10713 Raw output of variant escape tags (R flag)
10715 language=zh variant=zh-tw
10717 Raw: -{R|zh:China;zh-tw:Taiwan}-
10719 <p>Raw: zh:China;zh-tw:Taiwan
10724 Nested using of manual convert syntax
10726 language=zh variant=zh-hk
10728 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10730 <p>Nested: Hello Hong Kong!
10735 Proper conversion of text in external links
10737 language=sr variant=sr-ec
10739 http://www.google.com
10740 gopher://www.google.com
10741 [http://www.google.com http://www.google.com]
10742 [gopher://www.google.com gopher://www.google.com]
10743 [https://www.google.com irc://www.google.com]
10744 [ftp://www.google.com www.google.com/ftp://dir]
10745 [//www.google.com www.google.com]
10747 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10748 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10749 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10750 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10751 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10752 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10753 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10758 Do not convert roman numbers to language variants
10760 language=sr variant=sr-ec
10764 <p>Фридрих IV је цар.
10769 Unclosed language converter markup "-{"
10780 Don't convert raw rule "-{R|=>}-" to "=>"
10797 Bug 529: Uncovered bullet
10807 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10808 # Templates in Wikipedia rely on this behavior, as tidy has always been
10809 # enabled there. These tests are normally run *without* tidy, so specify the
10810 # full output here.
10811 # To test realistic parsing behavior, apply a tidy-like transformation to both
10812 # the expected output and your parser's output.
10814 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10816 ******* Foo {{bullet}}
10818 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10831 Bug 529: Uncovered table already at line-start
10854 Bug 529: Uncovered bullet in parser function result
10856 * Foo {{lc:{{bullet}} }}
10865 Bug 5678: Double-parsed template argument
10867 {{lc:{{{1}}}|hello}}
10874 Bug 5678: Double-parsed template invocation
10876 {{lc:{{paramtest {{!}} param = hello }} }}
10878 <p>{{paramtest | param = hello }}
10883 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10886 title=[[Main Page]]
10888 {{PRVNÍVELKÉ:ěščř}}
10889 {{prvnívelké:ěščř}}
10909 Morwen/13: Unclosed link followed by heading
10916 <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>
10921 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10928 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10933 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10940 <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>
10955 Paragraphs inside divs (no extra line breaks)
10967 Paragraphs inside divs (extra line break on open)
10982 Paragraphs inside divs (extra line break on close)
10997 Paragraphs inside divs (extra line break on open and close)
11014 Nesting tags, paragraphs on lines which begin with <div>
11018 <div></div><strong>A
11027 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11029 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11033 <blockquote>Line one
11035 Line two</blockquote>
11037 <blockquote>Line one
11038 Line two</blockquote>
11043 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11050 Line two</blockquote>
11055 Line two</blockquote>
11060 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11064 <blockquote>Line one
11069 <blockquote>Line one
11077 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11096 Paragraphs inside blockquotes/divs (no extra line breaks)
11098 <blockquote><div>Line one
11100 Line two</div></blockquote>
11102 <blockquote><div>Line one
11103 Line two</div></blockquote>
11108 Paragraphs inside blockquotes/divs (extra line break on open)
11113 Line two</div></blockquote>
11118 Line two</div></blockquote>
11123 Paragraphs inside blockquotes/divs (extra line break on close)
11125 <blockquote><div>Line one
11128 </div></blockquote>
11130 <blockquote><div>Line one
11133 </div></blockquote>
11138 Paragraphs inside blockquotes/divs (extra line break on open and close)
11144 </div></blockquote>
11150 </div></blockquote>
11155 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11157 wgLinkHolderBatchSize=0
11163 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11164 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11165 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11170 Free external link invading image caption
11172 [[Image:Foobar.jpg|thumb|http://x|hello]]
11174 <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>
11179 Bug 15196: localised external link numbers
11183 [http://en.wikipedia.org/]
11185 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11190 Multibyte character in padleft
11192 {{padleft:-Hello|7|Æ}}
11199 Multibyte character in padright
11201 {{padright:Hello-|7|Æ}}
11210 wgUseDynamicDates=1
11214 <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>
11219 formatdate parser function
11221 {{#formatdate:2009-03-24}}
11223 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11228 formatdate parser function, with default format
11230 {{#formatdate:2009-03-24|mdy}}
11232 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11237 Linked date with autoformatting disabled
11239 wgUseDynamicDates=false
11243 <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>
11248 Spacing of numbers in formatted dates
11250 {{#formatdate:January 15}}
11252 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11257 Spacing of numbers in formatted dates (linked)
11259 wgUseDynamicDates=true
11263 <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>
11268 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
11270 language=nl title=[[MediaWiki:Common.css]]
11272 {{#formatdate:2009-03-24|dmy}}
11274 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11287 Edit comment with link
11291 I like the [[Main Page]] a lot
11293 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11297 Edit comment with link and link text
11301 I like the [[Main Page|best pages]] a lot
11303 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11307 Edit comment with link and link text with suffix
11311 I like the [[Main Page|best page]]s a lot
11313 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11317 Edit comment with section link (non-local, eg in history list)
11319 comment title=[[Main Page]]
11321 /* External links */ removed bogus entries
11323 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11327 Edit comment with section link and text before it (non-local, eg in history list)
11329 comment title=[[Main Page]]
11331 pre-comment text /* External links */ removed bogus entries
11333 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>
11337 Edit comment with section link (local, eg in diff view)
11339 comment local title=[[Main Page]]
11341 /* External links */ removed bogus entries
11343 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11347 Edit comment with subpage link (bug 14080)
11351 title=[[Subpage test]]
11353 Poked at a [[/subpage]] here...
11355 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11359 Edit comment with subpage link and link text (bug 14080)
11363 title=[[Subpage test]]
11365 Poked at a [[/subpage|neat little page]] here...
11367 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11371 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11374 title=[[Subpage test]]
11376 Poked at a [[/subpage]] here...
11378 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11382 Edit comment with bare anchor link (local, as on diff)
11386 title=[[Main Page]]
11390 <a href="#section">#section</a>
11394 Edit comment with bare anchor link (non-local, as on history)
11397 title=[[Main Page]]
11401 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11405 Anchor starting with underscore
11409 <p><a href="#_ref">One</a>
11414 Id starting with underscore
11416 <div id="_ref"></div>
11418 <div id="_ref"></div>
11423 Space normalisation on autocomment (bug 22784)
11426 title=[[Main Page]]
11428 /* __hello__world__ */
11430 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11434 percent-encoding and + signs in comments (Bug 26410)
11438 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11440 <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>
11444 Bad images - basic functionality
11453 Bad images - bug 16039: text after bad image disappears
11467 Verify that displaytitle works (bug #22501) no displaytitle
11471 wgAllowDisplayTitle=true
11472 wgRestrictDisplayTitle=false
11474 this is not the the title
11477 <p>this is not the the title
11482 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11487 wgAllowDisplayTitle=true
11488 wgRestrictDisplayTitle=false
11490 this is not the the title
11491 {{DISPLAYTITLE:whatever}}
11494 <p>this is not the the title
11499 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11504 wgAllowDisplayTitle=true
11505 wgRestrictDisplayTitle=true
11507 this is not the the title
11508 {{DISPLAYTITLE:whatever}}
11511 <p>this is not the the title
11516 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11521 wgAllowDisplayTitle=true
11522 wgRestrictDisplayTitle=true
11524 this is not the the title
11525 {{DISPLAYTITLE:screen}}
11528 <p>this is not the the title
11533 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11538 wgAllowDisplayTitle=false
11540 this is not the the title
11541 {{DISPLAYTITLE:screen}}
11544 <p>this is not the the title
11545 <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>
11550 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11555 wgAllowDisplayTitle=false
11557 this is not the the title
11560 <p>this is not the the title
11565 preload: check <noinclude> and <includeonly>
11569 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11575 preload: check <onlyinclude>
11579 Goodbye <onlyinclude>Hello world</onlyinclude>
11585 preload: can pass tags through if we want to
11589 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11591 <includeonly>Hello world</includeonly>
11595 preload: check that it doesn't try to do tricks
11599 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11601 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11605 Play a bit with r67090 and bug 3158
11609 <div style="width:50% !important"> </div>
11610 <div style="width:50% !important"> </div>
11611 <div style="width:50% !important"> </div>
11612 <div style="border : solid;"> </div>
11614 <div style="width:50% !important"> </div>
11615 <div style="width:50% !important"> </div>
11616 <div style="width:50% !important"> </div>
11617 <div style="border : solid;"> </div>
11622 HTML5 data attributes
11624 <span data-foo="bar">Baz</span>
11625 <p data-abc-def_hij="">Quuz</p>
11627 <p><span data-foo="bar">Baz</span>
11629 <p data-abc-def_hij="">Quuz</p>
11634 percent-encoding and + signs in internal links (Bug 26410)
11636 [[User:+%]] [[Page+title%]]
11637 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11638 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11639 [[%33%45]] [[%33%45+]]
11641 <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>
11642 <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>
11643 <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>
11644 <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>
11649 Special characters in embedded file links (bug 27679)
11651 [[File:Contains & ampersand.jpg]]
11652 [[File:Does not exist.jpg|Title with & ampersand]]
11654 <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>
11655 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11661 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11663 Text's been normalized?
11665 <p>Text's been normalized?
11670 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11672 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11674 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11679 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11681 [http://www.example.org/ ideograms]
11683 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11688 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11690 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11692 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11716 Bug 31098 Template which includes system messages which includes the template
11720 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11721 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11726 Bug31490 Turkish: ucfirst 'blah'
11737 Bug31490 Turkish: ucfirst 'ix'
11748 Bug31490 Turkish: lcfirst 'BLAH'
11759 Bug31490 Turkish: ucfırst (with a dotless i)
11765 <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>
11770 Bug31490 ucfırst (with a dotless i) with English language
11776 <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>
11781 Bug 26375: TOC with italics
11783 title=[[Main Page]]
11786 == ''Lost'' episodes ==
11788 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11790 <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>
11793 <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>
11798 Bug 26375: TOC with bold
11800 title=[[Main Page]]
11803 == '''should be bold''' then normal text ==
11805 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11807 <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>
11810 <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>
11815 Bug 33845: Headings become cursive in TOC when they contain an image
11817 title=[[Main Page]]
11820 == Image [[Image:foobar.jpg]] ==
11822 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11824 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11827 <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>
11832 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11834 title=[[Main Page]]
11837 == <blockquote>Quote</blockquote> ==
11839 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11841 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11844 <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>
11849 Unclosed tags in TOC
11851 title=[[Main Page]]
11855 <small>Hanc marginis exiguitas non caperet.</small>
11858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11860 <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>
11863 <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>
11864 <p><small>Hanc marginis exiguitas non caperet.</small>
11870 Multiple tags in TOC
11873 == <i>Foo</i> <b>Bar</b> ==
11875 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11877 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11879 <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>
11880 <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>
11883 <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>
11884 <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>
11889 Tags with parameters in TOC
11892 == <sup class="in-h2">Hello</sup> ==
11894 == <sup class="a > b">Evilbye</sup> ==
11896 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11898 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11899 <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>
11902 <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>
11903 <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>
11908 span tags with directionality in TOC
11911 == <span dir="ltr">C++</span> ==
11913 == <span dir="rtl">זבנג!</span> ==
11915 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11917 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11919 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11921 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11923 <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>
11924 <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>
11925 <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>
11926 <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>
11927 <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>
11930 <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>
11931 <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>
11932 <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>
11933 <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>
11934 <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>
11941 == {{int:headline_sample}} ==
11945 Bug 32057: Title needed when expanding <h> nodes.
11947 title=[[Main Page]]
11951 <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>
11956 Strip marker in urlencode
11958 {{urlencode:x<nowiki/>y}}
11959 {{urlencode:x<nowiki/>y|wiki}}
11960 {{urlencode:x<nowiki/>y|path}}
11987 Strip marker in formatNum
11989 {{formatnum:1<nowiki/>2}}
11990 {{formatnum:1<nowiki/>2|R}}
11998 Strip marker in grammar
12002 {{grammar:elative|foo<nowiki/>bar}}
12009 Strip marker in padleft
12011 {{padleft:|2|x<nowiki/>y}}
12018 Strip marker in padright
12020 {{padright:|2|x<nowiki/>y}}
12027 Strip marker in anchorencode
12029 {{anchorencode:x<nowiki/>y}}
12036 nowiki inside link inside heading (bug 18295)
12038 ==[[foo|x<nowiki>y</nowiki>z]]==
12040 <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>
12045 new support for bdi element (bug 31817)
12047 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12049 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12054 Ignore pipe between table row attributes
12058 |- id=foo | style='color: red'
12066 <tr id="foo" style="color: red">
12073 Gallery override link with WikiLink (bug 34852)
12076 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12079 <ul class="gallery">
12080 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12081 <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>
12082 <div class="gallerytext">
12092 Gallery override link with absolute external link (bug 34852)
12095 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12098 <ul class="gallery">
12099 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12100 <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>
12101 <div class="gallerytext">
12111 Gallery override link with malicious javascript (bug 34852)
12114 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12117 <ul class="gallery">
12118 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12119 <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>
12120 <div class="gallerytext">
12130 Language parser function
12139 Padleft and padright as substr
12141 {{padleft:|3|abcde}}
12142 {{padright:|3|abcde}}
12150 Bug 34939 - Case insensitive link parsing ([HttP://])
12152 [HttP://MediaWiki.Org/]
12154 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12159 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12161 [HttP://MediaWiki.Org/ MediaWiki]
12163 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12168 Bug 34939 - Case insensitive link parsing (HttP://)
12170 HttP://MediaWiki.Org/
12172 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12177 ### Parsoids-specific tests
12178 ### Parsoid-PHP parser incompatibilities
12181 1. SOL-sensitive wikitext tokens as template-args
12195 #### The following section of tests are primarily to test
12196 #### wikitext escaping capabilities of Parsoid.
12197 #### A lot of the tests are disabled for the PHP parser either
12198 #### because of minor newline diffs or other reasons.
12199 #### As Parsoid serializer can handle newlines and other HTML
12200 #### more robustly, some of these tests might get reenabled
12201 #### for the PHP parser.
12203 #### --------------- Headings ---------------
12205 #### 1. Nested inside html <h1>=foo=</h1>
12206 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12207 #### 3. Nested inside html with wikitext split by html tags
12208 #### 4. No escape needed
12209 #### 5. Empty headings <h1></h1>
12210 #### 6. Heading chars in SOL context
12211 #### ----------------------------------------
12213 Headings: 0. Unnested
12215 <nowiki>=foo=</nowiki>
12217 <nowiki>=foo</nowiki>''a''=
12220 </p><p>=foo<i>a</i>=
12225 Headings: 1. Nested inside html
12229 =<nowiki>=foo=</nowiki>=
12230 ==<nowiki>=foo=</nowiki>==
12231 ===<nowiki>=foo=</nowiki>===
12232 ====<nowiki>=foo=</nowiki>====
12233 =====<nowiki>=foo=</nowiki>=====
12234 ======<nowiki>=foo=</nowiki>======
12245 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12250 <nowiki>*bar</nowiki>
12254 <nowiki>=bar=</nowiki>
12262 Headings: 3. Nested inside html with wikitext split by html tags
12266 =<nowiki>=</nowiki>'''bold'''foo==
12268 <h1>=<b>bold</b>foo=</h1>
12272 Headings: 4. No escaping needed (testing just h1 and h2)
12287 <h1><i>=</i>foo=</h1>
12292 Headings: 5. Empty headings
12296 =<nowiki></nowiki>=
12297 ==<nowiki></nowiki>==
12298 ===<nowiki></nowiki>===
12299 ====<nowiki></nowiki>====
12300 =====<nowiki></nowiki>=====
12301 ======<nowiki></nowiki>======
12312 Headings: 6. Heading chars in SOL context
12316 <!--cmt--><nowiki>=h1=</nowiki>
12322 #### --------------- Lists ---------------
12323 #### 0. Outside nests (*foo, etc.)
12324 #### 1. Nested inside html <ul><li>*foo</li></ul>
12325 #### 2. Inside definition lists
12326 #### 3. Only bullets at start should be escaped
12327 #### 4. No escapes needed
12328 #### 5. No unnecessary escapes
12329 #### 6. Escape bullets in SOL position
12330 #### 7. Escape bullets in a multi-line context
12331 #### ----------------------------------------
12334 Lists: 0. Outside nests
12336 <nowiki>*foo</nowiki>
12338 <nowiki>#foo</nowiki>
12346 Lists: 1. Nested inside html
12348 *<nowiki>*foo</nowiki>
12350 *<nowiki>#foo</nowiki>
12352 *<nowiki>:foo</nowiki>
12354 *<nowiki>;foo</nowiki>
12356 #<nowiki>*foo</nowiki>
12358 #<nowiki>#foo</nowiki>
12360 #<nowiki>:foo</nowiki>
12362 #<nowiki>;foo</nowiki>
12384 Lists: 2. Inside definition lists
12386 ;<nowiki>;foo</nowiki>
12388 ;<nowiki>:foo</nowiki>
12390 ;<nowiki>:foo</nowiki>
12393 :<nowiki>:foo</nowiki>
12408 Lists: 3. Only bullets at start of text should be escaped
12410 *<nowiki>*foo*bar</nowiki>
12412 *<nowiki>*foo</nowiki>''it''*bar
12416 <ul><li>*foo<i>it</i>*bar
12422 Lists: 4. No escapes needed
12434 <ul><li><i>foo</i>*bar
12436 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12441 Lists: 5. No unnecessary escapes
12443 * bar <span><nowiki>[[foo]]</nowiki></span>
12445 *=bar <span><nowiki>[[foo]]</nowiki></span>
12447 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12449 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12451 *=bar <span>foo]]</span>=
12453 <ul><li> bar <span>[[foo]]</span>
12455 <ul><li>=bar <span>[[foo]]</span>
12457 <ul><li>[[bar <span>[[foo]]</span>
12459 <ul><li>]]bar <span>[[foo]]</span>
12461 <ul><li>=bar <span>foo]]</span>=
12467 Lists: 6. Escape bullets in SOL position
12471 <!--cmt--><nowiki>*foo</nowiki>
12478 Lists: 7. Escape bullets in a multi-line context
12488 #### --------------- HRs ---------------
12489 #### 1. Single line
12490 #### -----------------------------------
12493 HRs: 1. Single line
12498 <nowiki>----</nowiki>
12500 <nowiki>=foo=</nowiki>
12502 <nowiki>*foo</nowiki>
12509 #### --------------- Tables ---------------
12510 #### 1a. Simple example
12511 #### 1b. No escaping needed (!foo)
12512 #### 1c. No escaping needed (|foo)
12513 #### 1d. No escaping needed (|}foo)
12515 #### 2a. Nested in td (<td>foo|bar</td>)
12516 #### 2b. Nested in td (<td>foo||bar</td>)
12517 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12519 #### 3a. Nested in th (<th>foo!bar</th>)
12520 #### 3b. Nested in th (<th>foo!!bar</th>)
12521 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12525 #### 4c. No escaping needed
12526 #### --------------------------------------
12529 Tables: 1a. Simple example
12540 Tables: 1b. No escaping needed
12549 Tables: 1c. No escaping needed
12558 Tables: 1d. No escaping needed
12567 Tables: 2a. Nested in td
12572 |<nowiki>foo|bar</nowiki>
12582 Tables: 2b. Nested in td
12587 |<nowiki>foo||bar</nowiki>
12588 |''it''<nowiki>foo||bar</nowiki>
12593 </td><td><i>it</i>foo||bar
12599 Tables: 2c. Nested in td -- no escaping needed
12614 Tables: 3a. Nested in th
12629 Tables: 3b. Nested in th
12634 !<nowiki>foo!!bar</nowiki>
12644 Tables: 3c. Nested in th -- no escaping needed
12659 Tables: 4a. Escape -
12667 |<nowiki>-bar</nowiki>
12671 <tr><th>-bar</th></tr>
12672 <tr><td>-bar</td></tr>
12677 Tables: 4b. Escape +
12685 |<nowiki>+bar</nowiki>
12689 <tr><th>+bar</th></tr>
12690 <tr><td>+bar</td></tr>
12695 Tables: 4c. No escaping needed
12709 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12710 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12714 #### --------------- Links ---------------
12715 #### 1. Quote marks in link text
12716 #### 2. Wikilinks: Escapes needed
12717 #### 3. Wikilinks: No escapes needed
12718 #### 4. Extlinks: Escapes needed
12719 #### 5. Extlinks: No escapes needed
12720 #### --------------------------------------
12722 Links 1. Quote marks in link text
12726 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12728 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12732 Links 2. WikiLinks: Escapes needed
12736 [[Foo|<nowiki>[Foobar]</nowiki>]]
12737 [[Foo|<nowiki>Foobar]</nowiki>]]
12738 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12739 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12740 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12741 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12742 [[Foo|<nowiki>|Bar</nowiki>]]
12744 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12745 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12746 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12747 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12748 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12749 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12750 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12754 Links 3. WikiLinks: No escapes needed
12761 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12762 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12766 Links 4. ExtLinks: Escapes needed
12770 [http://google.com <nowiki>[google]</nowiki>]
12771 [http://google.com <nowiki>google]</nowiki>]
12773 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12774 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12778 Links 5. ExtLinks: No escapes needed
12782 [http://google.com [google]
12784 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12787 #### --------------- Quotes ---------------
12788 #### 1. Quotes inside <b> and <i>
12789 #### 2. Link fragments separated by <i> and <b> tags
12790 #### 3. Link fragments inside <i> and <b>
12791 #### --------------------------------------
12793 1. Quotes inside <b> and <i>
12795 ''<nowiki>'foo'</nowiki>''
12796 ''<nowiki>''foo''</nowiki>''
12797 ''<nowiki>'''foo'''</nowiki>''
12798 '''<nowiki>'foo'</nowiki>'''
12799 '''<nowiki>''foo''</nowiki>'''
12800 '''<nowiki>'''foo'''</nowiki>'''
12801 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12809 <b>foo'<i>bar'</i>baz</b>
12814 2. Link fragments separated by <i> and <b> tags
12816 [[''foo''<nowiki>hello]]</nowiki>
12818 [['''foo'''<nowiki>hello]]</nowiki>
12820 <p>[[<i>foo</i>hello]]
12821 </p><p>[[<b>foo</b>hello]]
12826 2. Link fragments inside <i> and <b>
12827 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12828 this is one of the shortcomings of this format)
12830 ''[[foo''<nowiki>]]</nowiki>
12832 '''[[foo'''<nowiki>]]</nowiki>
12835 </p><p><b>[[foo</b>]]
12839 #### --------------- Paragraphs ---------------
12840 #### 1. No unnecessary escapes
12841 #### --------------------------------------
12844 1. No unnecessary escapes
12846 bar <span><nowiki>[[foo]]</nowiki></span>
12848 =bar <span><nowiki>[[foo]]</nowiki></span>
12850 [[bar <span><nowiki>[[foo]]</nowiki></span>
12852 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12854 <nowiki>=bar </nowiki><span>foo]]</span>=
12856 <p>bar <span>[[foo]]</span>
12857 </p><p>=bar <span>[[foo]]</span>
12858 </p><p>[[bar <span>[[foo]]</span>
12859 </p><p>]]bar <span>[[foo]]</span>
12860 </p><p>=bar <span>foo]]</span>=
12864 #### --------------- PRE ------------------
12865 #### 1. Leading space in SOL context should be escaped
12866 #### --------------------------------------
12868 1. Leading space in SOL context should be escaped
12872 <nowiki> foo</nowiki>
12873 <!--cmt--><nowiki> foo</nowiki>
12880 #### --------------- HTML tags ---------------
12883 #### 3. multi-line html tag
12884 #### --------------------------------------
12890 <a href="http://google.com">google</a>
12892 <a href="http://google.com">google</a>
12898 <nowiki><div>foo</div>
12899 <div style="color:red">foo</div></nowiki>
12901 <p><div>foo</div>
12902 <div style="color:red">foo</div>
12907 3. multi-line html tag
12919 #### --------------- Others ---------------
12923 <nowiki>foo</nowiki>
12925 <p><nowiki>foo</nowiki>
12930 Tag-like HTML structures are passed through as text
12952 </p><p>1<d e>f
12957 # This fails in the PHP parser (see bug 40670,
12958 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
12960 Tag names followed by punctuation should not be recognized as tags
12966 <p><s.ome> text
12976 Try for 100% code coverage