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.
545 Comments and Indent-Pre
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: Indent-Pre: 1a. Templates that break a line should suppress <pre>
959 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
969 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
981 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1002 Templates: Indent-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: Indent-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. Indent-Pre and Comments
1136 1b. Indent-Pre and Comments
1149 1c. Indent-Pre and Comments
1162 2a. Indent-Pre and tables
1183 2b. Indent-Pre and tables
1199 3a. Indent-Pre and block tags (single-line html)
1207 <pre><span> foo </span>
1212 3b. Indent-Pre and block tags (pre-content on separate line)
1264 4. Multiple spaces at start-of-line
1283 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1287 HTML-pre: 1. embedded newlines
1323 HTML-pre: 2: indented text
1336 HTML-pre: 3: other wikitext
1357 ### Definition lists
1364 <dl><dt> name </dt><dd> Definition
1370 Definition list for indentation only
1374 <dl><dd> Indented text
1380 Definition list with no space
1384 <dl><dt>name</dt><dd>Definition
1390 Definition list with URL link
1392 ; http://example.com/ : definition
1394 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1400 Definition list with bracketed URL link
1402 ;[http://www.example.com/ Example]:Something about it
1404 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1410 Definition list with wikilink containing colon
1412 ; [[Help:FAQ]]: The least-read page on Wikipedia
1414 <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
1419 # At Brion's and JeLuF's insistence... :)
1421 Definition list with news link containing colon
1423 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1425 <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!
1431 Malformed definition list with colon
1433 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1435 <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
1441 Definition lists: colon in external link text
1443 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1445 <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
1451 Definition lists: colon in HTML attribute
1453 ;<b style="display: inline">bold</b>
1455 <dl><dt><b style="display: inline">bold</b>
1461 Definition lists: self-closed tag
1463 ;one<br/>two : two-line fun
1465 <dl><dt>one<br />two </dt><dd> two-line fun
1471 Bug 11748: Literal closing tags
1475 <dd>test test test test test</dd>
1477 <dd>test test test test test</dd>
1482 <dd>test test test test test</dd>
1484 <dd>test test test test test</dd>
1490 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1493 ; term : description
1499 <dl><dt> term </dt><dd> description
1510 Definition list with empty definition and following paragraph
1515 <dl><dt> term</dt><dd>
1522 Nested definition lists using html syntax
1539 Definition Lists: No nesting: Multiple dd's
1553 Definition Lists: Indentation: Regular
1569 Definition Lists: Indentation: Missing 1st level
1583 Definition Lists: Indentation: Multi-level indent
1587 <dl><dd><dl><dd><dl><dd>i3
1595 Definition Lists: Hacky use to indent tables
1602 should be left alone
1604 <dl><dd><dl><dd><table>
1609 </td></tr></table></dd></dl></dd></dl>
1611 should be left alone
1614 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1615 ## as an empty dt item. It also ignores all but the last ";" when followed
1616 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1617 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1620 ## Ex: ";;t2 ::d2" is transformed into:
1632 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1633 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1644 ## All Parsoid only definition list tests have this difference.
1646 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1647 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1650 Table / list interaction: indented table with lists in table contents
1672 </td></tr></table></dd></dl>
1677 Definition Lists: Nesting: Multi-level (Parsoid only)
1707 Definition Lists: Nesting: Test 2 (Parsoid only)
1727 Definition Lists: Nesting: Test 3 (Parsoid only)
1755 Definition Lists: Nesting: Test 4
1760 <dl><dd><dl><dd><dl><dt>t3
1770 Definition Lists: Mixed Lists: Test 1
1776 <dl><dd><dl><dt><ul><li> foo
1788 Definition Lists: Mixed Lists: Test 2
1802 Definition Lists: Mixed Lists: Test 3
1807 <ul><li><dl><dd><dl><dd><dl><dd> d1
1818 Definition Lists: Mixed Lists: Test 4
1823 <ul><li><dl><dt>d1 </dt><dd>d2
1824 </dd><dt>d3 </dt><dd>d4
1832 Definition Lists: Mixed Lists: Test 5
1847 Definition Lists: Mixed Lists: Test 6
1852 <ol><li><ul><li><dl><dd>d1
1864 Definition Lists: Mixed Lists: Test 7
1878 Definition Lists: Mixed Lists: Test 8
1894 Definition Lists: Mixed Lists: Test 9
1898 <ul><li><dl><dt>foo </dt><dd>bar
1906 Definition Lists: Mixed Lists: Test 10
1910 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1919 Definition Lists: Mixed Lists: Test 11
1924 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1929 <dl><dt>boo </dt><dd>baz
1940 Definition Lists: Weird Ones: Test 1
1942 *#;*::;; foo : bar (who uses this?)
1944 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1960 External links: non-bracketed
1962 Non-bracketed: http://example.com
1964 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1969 External links: numbered
1971 Numbered: [http://example.com]
1972 Numbered: [http://example.net]
1973 Numbered: [http://example.com]
1975 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1976 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1977 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1982 External links: specified text
1984 Specified text: [http://example.com link]
1986 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1991 External links: trail
1993 Linktrails should not work for external links: [http://example.com link]s
1995 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2000 External links: dollar sign in URL
2002 http://example.com/1$2345
2004 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2009 External links: dollar sign in URL (named)
2011 [http://example.com/1$2345]
2013 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2018 External links: open square bracket forbidden in URL (bug 4377)
2020 http://example.com/1[2345
2022 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2027 External links: open square bracket forbidden in URL (named) (bug 4377)
2029 [http://example.com/1[2345]
2031 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2036 External links: nowiki in URL link text (bug 6230)
2038 [http://example.com/ <nowiki>''example site''</nowiki>]
2040 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2045 External links: newline forbidden in text (bug 6230 regression check)
2047 [http://example.com/ first
2050 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2056 External links: Pipe char between url and text
2058 [http://example.com | link]
2060 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2065 External links: protocol-relative URL in brackets
2067 [//example.com/ Test]
2069 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2074 External links: protocol-relative URL in brackets without text
2078 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2083 External links: protocol-relative URL in free text is left alone
2087 <p>//example.com/Foo
2092 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2094 foo//example.com/Foo
2096 <p>foo//example.com/Foo
2103 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2105 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2110 External image from https
2112 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2114 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2119 Link to non-http image, no img tag
2121 Link to non-http image, no img tag: ftp://example.com/test.jpg
2123 <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>
2128 External links: terminating separator
2130 Terminating separator: http://example.com/thing,
2132 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2137 External links: intervening separator
2139 Intervening separator: http://example.com/1,2,3
2141 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2146 External links: old bug with URL in query
2148 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2150 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2155 External links: old URL-in-URL bug, mixed protocols
2157 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2159 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2164 External links: URL in text
2166 URL in text: [http://example.com http://example.com]
2168 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2173 External links: Clickable images
2175 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2177 <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>
2182 External links: raw ampersand
2184 Old & use: http://x&y
2186 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2191 External links: encoded ampersand
2193 Old & use: http://x&y
2195 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2200 External links: encoded equals (bug 6102)
2202 http://example.com/?foo=bar
2204 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2209 External links: [raw ampersand]
2211 Old & use: [http://x&y]
2213 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2218 External links: [encoded ampersand]
2220 Old & use: [http://x&y]
2222 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2227 External links: [encoded equals] (bug 6102)
2229 [http://example.com/?foo=bar]
2231 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2236 External links: [IDN ignored character reference in hostname; strip it right off]
2238 [http://e‌xample.com/]
2240 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2244 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2245 # Where an external link could easily circumvent the sanitization of the text of
2246 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2247 # test demands a higher standard. That's a bit strange.
2251 # http://example.com -> [http://example.com|http://example.com]
2252 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2254 # The first example is sanitized, but the second is not. Any security benefits
2255 # from this production are trivial to circumvent. Either remove this test and
2256 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2257 # the test accordingly.
2262 External links: IDN ignored character reference in hostname; strip it right off
2264 http://e‌xample.com/
2266 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2271 External links: www.jpeg.org (bug 554)
2275 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2280 External links: URL within URL (original bug 2)
2282 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2284 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2289 BUG 361: URL inside bracketed URL
2291 [http://www.example.com/foo http://www.example.com/bar]
2293 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2298 BUG 361: URL within URL, not bracketed
2300 http://www.example.com/foo?=http://www.example.com/bar
2302 <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>
2307 BUG 289: ">"-token in URL-tail
2309 http://www.example.com/<hello>
2311 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2316 BUG 289: literal ">"-token in URL-tail
2318 http://www.example.com/<b>html</b>
2320 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2325 BUG 289: ">"-token in bracketed URL
2327 [http://www.example.com/<hello> stuff]
2329 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2334 BUG 289: literal ">"-token in bracketed URL
2336 [http://www.example.com/<b>html</b> stuff]
2338 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2343 BUG 289: literal double quote at end of URL
2345 http://www.example.com/"hello"
2347 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2352 BUG 289: literal double quote in bracketed URL
2354 [http://www.example.com/"hello" stuff]
2356 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2361 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2363 [http://www.example.com test]
2365 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2370 External links: wiki links within external link (Bug 3695)
2372 [http://example.com [[wikilink]] embedded in ext link]
2374 <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>
2379 BUG 787: Links with one slash after the url protocol are invalid
2383 [http:/example.com title]
2385 <p>http:/example.com
2386 </p><p>[http:/example.com title]
2391 Bracketed external links with template-generated invalid target
2393 [{{echo|http:/example.com}} title]
2395 <p>[http:/example.com title]
2400 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2402 ''[http://example.com text'']
2403 [http://example.com '''text]'''
2404 ''Something [http://example.com in italic'']
2405 ''Something [http://example.com mixed''''', even bold]'''
2406 '''''Now [http://example.com both''''']
2408 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2409 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2410 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2411 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2412 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2418 Bug 4781: %26 in URL
2420 http://www.example.com/?title=AT%26T
2422 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2426 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2427 # % is actually legal in HTML5. Any change in output would need testing though.
2429 Bug 4781, 5267: %25 in URL
2431 http://www.example.com/?title=100%25_Bran
2433 <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>
2438 Bug 4781, 5267: %28, %29 in URL
2440 http://www.example.com/?title=Ben-Hur_%281959_film%29
2442 <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>
2448 Bug 4781: %26 in autonumber URL
2450 [http://www.example.com/?title=AT%26T]
2452 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2457 Bug 4781, 5267: %26 in autonumber URL
2459 [http://www.example.com/?title=100%25_Bran]
2461 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2466 Bug 4781, 5267: %28, %29 in autonumber URL
2468 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2470 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2476 Bug 4781: %26 in bracketed URL
2478 [http://www.example.com/?title=AT%26T link]
2480 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2485 Bug 4781, 5267: %26 in bracketed URL
2487 [http://www.example.com/?title=100%25_Bran link]
2489 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2494 Bug 4781, 5267: %28, %29 in bracketed URL
2496 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2498 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2503 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2505 Some [http://example.com/ pretty ''italics'' and stuff]!
2507 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2512 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2514 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2516 <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>
2521 External link containing double-single-quotes with no space separating the url from text in italics
2523 [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]].]
2525 <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>
2530 URL-encoding in URL functions (single parameter)
2532 {{localurl:Some page|amp=&}}
2534 <p>/index.php?title=Some_page&amp=&
2539 URL-encoding in URL functions (multiple parameters)
2541 {{localurl:Some page|q=?&=&}}
2543 <p>/index.php?title=Some_page&q=?&amp=&
2550 http://example.com/index.php?foozoid%5B%5D=bar
2552 http://example.com/index.php?foozoid[]=bar
2554 <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>
2555 </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>
2560 IPv6 urls (bug 21261)
2564 http://[2404:130:0:1000::187:2]/index.php
2566 <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>
2571 Non-extlinks in brackets
2580 [{{echo|foo}} ''bar'']
2581 [{{echo|foo}}l's] errand
2582 [{{echo|foo}}l's errand]
2604 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2606 Normal text. '''''Bold italic text.''''' Normal text.
2608 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2609 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2615 Unclosed and unmatched quotes
2617 '''''Bold italic text '''with bold deactivated''' in between.'''''
2619 '''''Bold italic text ''with italic deactivated'' in between.'''''
2623 ..spanning two paragraphs (should not work).'''
2625 '''Bold tag left open
2627 ''Italic tag left open
2631 <!-- Unmatching number of opening, closing tags: -->
2632 '''This year''''s election ''should'' beat '''last year''''s.
2634 ''Tom'''s car is bigger than ''Susan'''s.
2636 Plain ''italic'''s plain
2638 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2639 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2640 </p><p><b>Bold text..</b>
2641 </p><p>..spanning two paragraphs (should not work).
2642 </p><p><b>Bold tag left open</b>
2643 </p><p><i>Italic tag left open</i>
2645 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2646 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2647 </p><p>Plain <i>italic'</i>s plain
2654 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2657 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2658 # is the bare minimun required by the spec, see:
2659 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2661 A table with no data.
2667 # A table with nothing but a caption is invalid XHTML, we might want to render
2668 # this as <p>caption</p>
2670 A table with nothing but a caption
2678 </caption><tr><td></td></tr></table>
2683 Table td-cell syntax variations
2687 | foo bar foo || baz
2688 | style='color:red;' | baz
2689 | style='color:red;' || baz
2696 <td> foo bar foo </td>
2699 <td style="color:red;"> baz
2701 <td> style='color:red;' </td>
2729 Simple table but with multiple dashes for row wikitext
2747 Multiplication table
2749 {| border="1" cellpadding="2"
2750 |+Multiplication table
2752 ! × !! 1 !! 2 !! 3
2770 <table border="1" cellpadding="2">
2771 <caption>Multiplication table
2818 Accept "||" in table headings
2833 Accept "||" in indented table headings
2843 </th></tr></table></dd></dl>
2848 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2865 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 +/-
2869 |style='color:red;'|+1
2870 |style='color:blue;'|-1
2882 <td style="color:red;">+1
2884 <td style="color:blue;">-1
2908 |rowspan=2| Cell 2, row 1 (and 2)
2919 <td rowspan="2"> Cell 2, row 1 (and 2)
2937 {| bgcolor=#ABCDEF border=2
2942 |the original table again
2950 <table bgcolor="#ABCDEF" border="2">
2958 <td>the original table again
2964 Invalid attributes in table cell (bug 1830)
2979 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2982 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2986 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2987 <td>]" onmouseover="alert(document.cookie)">test
2996 Indented table markup mixed with indented pre content (proposed in bug 6200)
3001 Text that should be rendered preformatted
3009 <pre>Text that should be rendered preformatted
3018 Template-generated table cell attributes and cell content
3026 <td style="color: red"> Foo
3032 Table with row followed by newlines and table heading
3049 # FIXME: Preserve the attribute properly (with an empty string as value) in
3050 # the PHP parser. Parsoid implements the behavior below.
3052 Table attributes with empty value
3071 Plain link, capitalized
3075 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3080 Plain link, uncapitalized
3084 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3091 [[Main Page|The Main Page]]
3093 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3102 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3107 Broken link with fragment
3109 [[Zigzagzogzagzig#zug]]
3111 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3116 Special page link with fragment
3118 [[Special:Version#anchor]]
3120 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3125 Nonexistent special page link with fragment
3127 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3129 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3136 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3138 <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>
3145 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3147 <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>!!!
3152 Link with HTML entity in suffix / tail
3154 [[Main Page]]", [[Main Page]]a
3156 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3161 Link with 3 brackets
3170 Piped link with 3 brackets
3172 [[[main page|the main page]]]
3174 <p>[[[main page|the main page]]]
3179 Link with multiple pipes
3181 [[Main Page|The|Main|Page]]
3183 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3190 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3192 <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>
3197 Piped link to namespace
3199 [[Meta:Disclaimers|The disclaimers]]
3201 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3208 [[Usually caused by a typo (oops}]]
3210 <p>[[Usually caused by a typo (oops}]]
3215 Link containing % (not as a hex sequence)
3219 <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>
3224 Link containing % as a single hex sequence interpreted to char
3228 <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>
3233 Link containing % as a double hex sequence interpreted to hex sequence
3237 <p>[[7%2525 Solution]]
3242 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3243 Example for such a section: == < ==
3245 [[%23%3c]][[%23%3e]]
3247 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3252 Link containing "<#" and ">#" as a hex sequences
3254 [[%3c%23]][[%3e%23]]
3256 <p>[[%3c%23]][[%3e%23]]
3261 Link containing double-single-quotes '' (bug 4598)
3263 [[Lista d''e paise d''o munno]]
3265 <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>
3270 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3272 Some [[Link|pretty ''italics'' and stuff]]!
3274 <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>!
3279 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3281 ''Some [[Link|pretty ''italics'' and stuff]]!
3283 <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>
3288 Link with double quotes in title part (literal) and alternate part (interpreted)
3290 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3294 [[''Pentecoste''|Pentecoste]]
3296 [[''Pentecoste''|''Pentecoste'']]
3298 <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>
3299 </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>
3300 </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>
3301 </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>
3306 Broken image links with HTML captions (bug 39700)
3308 [[File:Nonexistent|<script></script>]]
3309 [[File:Nonexistent|100px|<script></script>]]
3310 [[File:Nonexistent|<]]
3311 [[File:Nonexistent|a<i>b</i>c]]
3313 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3314 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3315 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3316 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3323 [[http://www.example.com]]
3325 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3330 Plain link to URL with link text
3332 [[http://www.example.com Link text]]
3334 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3339 Plain link to protocol-relative URL
3341 [[//www.example.com]]
3343 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3348 Plain link to protocol-relative URL with link text
3350 [[//www.example.com Link text]]
3352 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3357 Plain link to page with question mark in title
3363 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3364 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3369 # I'm fairly sure the expected result here is wrong.
3370 # We want these to be URL links, not pseudo-pages with URLs for titles....
3371 # However the current output is also pretty screwy.
3374 # I'm changing it to match the current output--it arguably makes more
3375 # sense in the light of the test above. Old expected result was:
3376 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3378 # But I think this test is bordering on "garbage in, garbage out" anyway.
3383 Piped link to URL: [[http://www.example.com|an example URL]]
3385 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3390 BUG 2: [[page|http://url/]] should link to page, not http://url/
3392 [[Main Page|http://url/]]
3394 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3399 BUG 337: Escaped self-links should be bold
3403 [[Bug462]] [[Bug462]]
3405 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3410 Self-link to section should not be bold
3414 [[Main Page#section]]
3416 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3427 Self-link to numeric title
3433 <p><strong class="selflink">0</strong>
3438 Link to numeric-equivalent title
3444 <p><a href="/wiki/00" title="00">00</a>
3449 <nowiki> inside a link
3451 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3453 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3458 Non-breaking spaces in title
3460 [[ Main Page ]]
3462 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3467 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3473 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3478 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3484 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3489 Internal link with en linktrail: no apostrophes (bug 27473)
3495 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3500 Internal link with ca linktrail with apostrophes (bug 27473)
3506 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3511 Internal link with kaa linktrail with apostrophes (bug 27473)
3517 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3522 ### Interwiki links (see maintenance/interwiki.sql)
3526 Inline interwiki link
3528 [[MeatBall:SoftSecurity]]
3530 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3535 Inline interwiki link with empty title (bug 2372)
3539 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3544 Interwiki link encoding conversion (bug 1636)
3546 *[[Wikipedia:ro:Olteniţa]]
3547 *[[Wikipedia:ro:Olteniţa]]
3549 <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>
3550 </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>
3556 Interwiki link with fragment (bug 2130)
3558 [[MeatBall:SoftSecurity#foo]]
3560 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3575 Double interlanguage link
3586 Interlanguage link, with prefix links
3598 Double interlanguage link, with prefix links (bug 8897)
3611 Parsoid-specific test: Wikilinks with should RT properly
3617 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3635 Broken br tag sanitization
3644 Incorrecly removing closing slashes from correctly formed XHTML
3646 <br style="clear:both;" />
3648 <p><br style="clear:both;" />
3653 Failing to transform badly formed HTML into correct XHTML
3655 <br style="clear: left;">
3656 <br style="clear: right;">
3657 <br style="clear: both;">
3659 <p><br style="clear: left;" />
3660 <br style="clear: right;" />
3661 <br style="clear: both;" />
3666 Handling html with a div self-closing tag
3675 <p><div title />
3679 <p><div title=bar />
3680 <div title=bar/>
3682 <div title="bar/"></div>
3688 Handling html with a br self-closing tag
3697 <p><br title="title" />
3698 <br title="title" />
3707 Horizontal ruler (should it add that extra space?)
3721 Horizontal ruler -- 4+ dashes render hr
3730 Horizontal ruler -- eats additional dashes on the same line
3739 Horizontal ruler -- does not collaps dashes on consecutive lines
3750 Horizontal ruler -- <4 dashes render as plain text
3759 Horizontal ruler -- Supports content following dashes on same line
3768 ### Block-level elements
3791 <ol><li>Numbered list
3808 ***#Number on level 4
3810 **#Number on level 3
3811 **#Number on level 3
3815 #** Level 3, but ordered
3818 <ol><li> with numbers
3820 <ul><li> and bullets
3822 <ol><li> and numbers
3824 </li><li>bullets again
3825 <ul><li>bullet level 2
3826 <ul><li>bullet level 3
3827 <ol><li>Number on level 4
3830 </li><li>bullet level 2
3831 <ol><li>Number on level 3
3832 </li><li>Number on level 3
3835 <ol><li>number level 2
3838 <ul><li><ul><li> Level 3
3842 <ol><li><ul><li><ul><li> Level 3, but ordered
3876 Nested lists 3 (first element empty)
3889 Nested lists 4 (first element empty)
3902 Nested lists 5 (both elements empty)
3915 Nested lists 6 (both elements empty)
3928 Nested lists 7 (skip initial nesting levels)
3932 <ul><li><ul><li><ul><li> foo
3940 Nested lists 8 (multiple nesting transitions)
3948 <ul><li><ul><li> bar
3958 1. Lists with start-of-line-transparent tokens before bullets: Comments
3972 2. Lists with start-of-line-transparent tokens before bullets: Template close
3984 List items are not parsed correctly following a <pre> block (bug 785)
3990 <ul><li> <pre>foo</pre>
3991 </li><li> <pre>bar</pre>
3998 List items from template
4009 * notSOL{{inner list}}
4028 List interrupted by empty line or heading
4038 <ul><li><ul><li> bar
4041 <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>
4042 <ul><li> Another list item
4053 Magic Word: {{CURRENTDAY}}
4062 Magic Word: {{CURRENTDAY2}}
4071 Magic Word: {{CURRENTDAYNAME}}
4080 Magic Word: {{CURRENTDOW}}
4089 Magic Word: {{CURRENTMONTH}}
4098 Magic Word: {{CURRENTMONTHABBREV}}
4100 {{CURRENTMONTHABBREV}}
4107 Magic Word: {{CURRENTMONTHNAME}}
4109 {{CURRENTMONTHNAME}}
4116 Magic Word: {{CURRENTMONTHNAMEGEN}}
4118 {{CURRENTMONTHNAMEGEN}}
4125 Magic Word: {{CURRENTTIME}}
4134 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4143 Magic Word: {{CURRENTYEAR}}
4152 Magic Word: {{FULLPAGENAME}}
4154 title=[[User:Ævar Arnfjörð Bjarmason]]
4158 <p>User:Ævar Arnfjörð Bjarmason
4163 Magic Word: {{FULLPAGENAMEE}}
4165 title=[[User:Ævar Arnfjörð Bjarmason]]
4169 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4174 Magic Word: {{NAMESPACE}}
4176 title=[[User:Ævar Arnfjörð Bjarmason]]
4185 Magic Word: {{NAMESPACEE}}
4187 title=[[User:Ævar Arnfjörð Bjarmason]]
4196 Magic Word: {{NAMESPACENUMBER}}
4198 title=[[User:Ævar Arnfjörð Bjarmason]]
4207 Magic Word: {{NUMBEROFFILES}}
4216 Magic Word: {{PAGENAME}}
4218 title=[[User:Ævar Arnfjörð Bjarmason]]
4222 <p>Ævar Arnfjörð Bjarmason
4227 Magic Word: {{PAGENAME}} with metacharacters
4229 title=[['foo & bar = baz']]
4233 <p><i>'foo & bar = baz'</i>
4238 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4240 title=[[*RFC 1234 http://example.com/]]
4244 <p>*RFC 1234 http://example.com/
4249 Magic Word: {{PAGENAMEE}}
4251 title=[[User:Ævar Arnfjörð Bjarmason]]
4255 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4260 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4262 title=[[*RFC 1234 http://example.com/]]
4266 <p>*RFC_1234_http://example.com/
4271 Magic Word: {{REVISIONID}}
4280 Magic Word: {{SCRIPTPATH}}
4289 Magic Word: {{SERVER}}
4293 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4298 Magic Word: {{SERVERNAME}}
4307 Magic Word: {{SITENAME}}
4316 Namespace 1 {{ns:1}}
4325 Namespace 1 {{ns:01}}
4334 Namespace 0 {{ns:0}} (bug 4783)
4342 Namespace 0 {{ns:00}} (bug 4783)
4350 Namespace -1 {{ns:-1}}
4359 Namespace User {{ns:User}}
4368 Namespace User talk {{ns:User_talk}}
4377 Namespace User talk {{ns:uSeR tAlK}}
4386 Namespace File {{ns:File}}
4395 Namespace File {{ns:Image}}
4404 Namespace (lang=de) Benutzer {{ns:User}}
4415 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4421 <p>Benutzer Diskussion
4429 {{urlencode:hi world?!}}
4430 {{urlencode:hi world?!|WIKI}}
4431 {{urlencode:hi world?!|PATH}}
4432 {{urlencode:hi world?!|QUERY}}
4445 Magic links: internal link to RFC (bug 479)
4449 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4454 Magic links: RFC (bug 479)
4458 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4463 Magic links: ISBN (bug 1937)
4467 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4472 Magic links: PMID incorrectly converts space to underscore
4476 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4485 Nonexistent template
4487 {{thistemplatedoesnotexist}}
4489 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4494 Template with invalid target containing tags
4496 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4498 <p>{{a<b>b</b>|foo|a=b|a = b}}
4503 Template with invalid target containing unclosed tag
4505 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4507 <p>{{a<b>|foo|a=b|a = b}}</b>
4514 This is a test template
4522 <p>This is a test template
4527 Template with explicit namespace
4531 <p>This is a test template
4539 This is a test template with parameter {{{param}}}
4545 {{paramtest|param=foo}}
4547 <p>This is a test template with parameter foo
4552 Template:paramtestnum
4558 Template unnamed parameter
4560 {{paramtestnum|Main Page|the main page}}
4562 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4567 Template:templatesimple
4573 Template:templateredirect
4575 #redirect [[Template:templatesimple]]
4579 Template:templateasargtestnum
4585 Template:templateasargtest
4587 {{template{{{templ}}}}}
4591 Template:templateasargtest2
4597 Template with template name as unnamed argument
4599 {{templateasargtestnum|templatesimple}}
4606 Template with template name as argument
4608 {{templateasargtest|templ=simple}}
4615 Template with template name as argument (2)
4617 {{templateasargtest2|templ=templatesimple}}
4624 Template:templateasargtestdefault
4626 {{{{{templ|templatesimple}}}}}
4636 Template with default value
4638 {{templateasargtestdefault}}
4645 Template with default value (value set)
4647 {{templateasargtestdefault|templ=templa}}
4656 {{templateredirect}}
4663 Template with argument in separate line
4665 {{ templateasargtest |
4673 Template with complex template as argument
4676 param ={{ templateasargtest |
4679 <p>This is a test template with parameter (test)
4684 Template with thumb image (with link in description)
4687 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4689 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>
4694 Template:complextemplate
4696 {{{1}}} {{paramtest|
4697 param ={{{param}}}}}
4701 Template with complex arguments
4704 param ={{ templateasargtest |
4705 templ = simple }}|[[Template:complextemplate|link]]}}
4707 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4712 BUG 553: link with two variables in a piped link
4715 |[[{{{1}}}|{{{2}}}]]
4720 <td>[[{{{1}}}|{{{2}}}]]
4726 Magic variable as template parameter
4728 {{paramtest|param={{SITENAME}}}}
4730 <p>This is a test template with parameter MediaWiki
4737 [[{{{param}}}|link]]
4741 Template parameter as link source
4743 {{linktest|param=Main Page}}
4745 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4750 Template-generated attribute string (k='v')
4752 <span {{attr_str|id|v1}}>bar</span>
4754 <p><span id="v1">bar</span>
4761 including another template, {{paramtest|param={{{arg}}}}}
4765 Template passing argument to another template
4767 {{paramtest2|arg='hmm'}}
4769 <p>including another template, This is a test template with parameter 'hmm'
4780 Template as link source
4784 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4802 Template infinite loop
4806 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4811 Template from main namespace
4830 BUG 529: Template with table, not included at beginning of line
4849 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4869 BUG 41: Template parameters shown as broken links
4878 Template with targets containing wikilinks
4882 {{[[{{echo|foo}}]]}}
4884 {{{{echo|[[foo}}]]}}
4886 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4887 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4895 ''None'' of '''this''' should be
4897 but rather passed unmodified
4901 # hmm, fix this or just deprecate msgnw and document its behavior?
4907 {{msgnw:MSGNW test}}
4909 <p>''None'' of '''this''' should be
4911 but rather passed unmodified
4919 {{int:youhavenewmessages|lots of money|not!}}
4921 <p>You have lots of money (not!).
4928 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4932 <includeonly> and <noinclude> being included
4943 <onlyinclude>Foo</onlyinclude>bar
4947 <onlyinclude> being included
4959 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4963 <onlyinclude> and <includeonly> being included
4972 <includeonly> and <noinclude> on a page
4974 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4981 Un-closed <noinclude>
4988 <onlyinclude> on a page
4990 <onlyinclude>Foo</onlyinclude>bar
4997 Un-closed <onlyinclude>
5004 Template:Includeonly section
5007 ==Includeonly section==
5013 Bug 6563: Edit link generation for section shown by <includeonly>
5015 {{includeonly section}}
5017 <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>
5018 <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>
5022 # Uses same input as the contents of [[Template:Includeonly section]]
5024 Bug 6563: Section extraction for section shown by <includeonly>
5029 ==Includeonly section==
5037 Bug 6563: Edit link generation for section suppressed by <includeonly>
5040 ==Includeonly section==
5044 <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>
5049 Bug 6563: Section extraction for section suppressed by <includeonly>
5054 ==Includeonly section==
5062 Un-closed <includeonly>
5069 ### <includeonly> and <noinclude> in attributes
5072 0. includeonly around the entire attribute
5074 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5076 <p><span id="v2">bar</span>
5081 1. includeonly in html attr key
5083 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5085 <p><span id="foo">bar</span>
5090 2. includeonly in html attr value
5092 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5093 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5095 <p><span id="v1">bar</span>
5096 <span id="v1">bar</span>
5101 3. includeonly in part of an attr value
5103 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5105 <p><span style="color:red;">bar</span>
5110 ### Testing parsing of templates where a template arg
5111 ### has the same name as the template itself.
5121 Templates: Template Name/Arg clash: 1. Use of positional param
5130 Templates: Template Name/Arg clash: 2. Use of named param
5139 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5148 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5152 Templates: 1. Simple use
5161 Templates: 2. Inside a block tag
5163 <div>{{echo|Foo}}</div>
5170 Templates: P-wrapping: 1a. Templates on consecutive lines
5181 Templates: P-wrapping: 1b. Templates on consecutive lines
5195 Templates: P-wrapping: 1c. Templates on consecutive lines
5198 {{echo|bar}} <div>baz</div>
5207 Templates: Inline Text: 1. Multiple tmeplate uses
5209 {{echo|Foo}}bar{{echo|baz}}
5216 Templates: Inline Text: 2. Back-to-back template uses
5218 {{echo|Foo}}{{echo|bar}}
5225 Templates: Block Tags: 1. Multiple template uses
5227 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5229 <div>Foo</div><div>bar</div><div>baz</div>
5234 Templates: Block Tags: 2. Back-to-back template uses
5236 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5238 <div>Foo</div><div>bar</div>
5243 Templates: Links: 1. Simple example
5245 {{echo|[[Foo|bar]]}}
5247 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5252 Templates: Links: 2. Generation of link href
5254 [[{{echo|Foo}}|bar]]
5256 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5261 Templates: Links: 3. Generation of part of a link href
5263 [[Fo{{echo|o}}|bar]]
5265 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5270 Templates: Links: 4. Multiple templates generating link href
5272 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5274 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5279 Templates: Links: 5. Generation of link text
5281 [[Foo|{{echo|bar}}]]
5283 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5288 Templates: Links: 5. Nested templates (only outermost template should be marked)
5290 {{echo|[[{{echo|Foo}}|bar]]}}
5292 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5297 Templates: HTML Tag: 1. Generation of HTML attr. key
5299 <div {{echo|style}}="color:red;">foo</div>
5301 <div style="color:red;">foo</div>
5306 Templates: HTML Tag: 2. Generation of HTML attr. value
5308 <div style={{echo|'color:red;'}}>foo</div>
5310 <div style="color:red;">foo</div>
5315 Templates: HTML Tag: 3. Generation of HTML attr key and value
5317 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5319 <div style="color:red;">foo</div>
5324 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5326 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5328 <div title="This is a long title with just one piece templated">foo</div>
5333 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5335 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5337 <div title="This is a long title with just one piece templated">foo</div>
5342 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5344 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5346 <div title="This is a long title with just one piece templated">foo</div>
5351 Templates: HTML Tables: 1. Generating start of a HTML table
5353 {{echo|<table><tr><td>foo</td>}}</tr></table>
5355 <table><tr><td>foo</td></tr></table>
5360 Templates: HTML Tables: 2a. Generating middle of a HTML table
5362 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5364 <table><tr><td>foo</td></tr></table>
5369 Templates: HTML Tables: 2b. Generating middle of a HTML table
5371 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5373 <table><tr><td>foo</td></tr></table>
5378 Templates: HTML Tables: 3. Generating end of a HTML table
5380 <table><tr>{{echo|<td>foo</td></tr></table>}}
5382 <table><tr><td>foo</td></tr></table>
5387 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5389 {{echo|<table>}}<tr><td>foo</td></tr></table>
5391 <table><tr><td>foo</td></tr></table>
5396 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5398 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5400 <table><tr><td>foo</td></tr></table>
5405 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5407 <table><tr>{{echo|<td>}}foo</td></tr></table>
5409 <table><tr><td>foo</td></tr></table>
5414 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5416 <table><tr><td>foo{{echo|</td>}}</tr></table>
5418 <table><tr><td>foo</td></tr></table>
5423 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5425 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5427 <table><tr><td>foo</td></tr></table>
5432 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5434 <table><tr><td>foo</td></tr>{{echo|</table>}}
5436 <table><tr><td>foo</td></tr></table>
5441 Templates: Wiki Tables: 1. Fostering of entire template content
5449 <tr><td></td></tr></table>
5454 Templates: Wiki Tables: 2. Fostering of partial template content
5464 <tr><td></td></tr></table>
5469 Templates: Wiki Tables: 3. td-content via multiple templates
5472 {{echo|{{pipe}}a}}{{echo|b}}
5483 Templates: Lists: Multi-line list-items via templates
5485 *{{echo|a {{nonexistent|
5487 *{{echo|b {{nonexistent|
5490 <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>
5491 </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>
5497 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5499 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5501 <p><i>ab</i>c<i>d</i>e
5506 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5507 (PHP parser generates misnested html)
5511 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5513 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5517 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5518 (PHP parser generates misnested html)
5522 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5525 <div><i>b</i>c<i>d</i></div>
5530 Templates: Ugly nesting: 4. Divs opened/closed across templates
5532 a<div>b{{echo|c</div>d}}e
5539 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5545 |{{echo|foo</table>}}
5549 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5550 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5551 bar</span><span about="#mwt1">
5556 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5566 <td>1. {{echo|foo </table>}}</td>
5568 <td>2. {{echo|baz </table>}}</td>
5581 <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">
5582 <tbody><tr data-parsoid="{"stx":"html"}">
5583 <td data-parsoid="{"stx":"html"}">
5584 <table data-parsoid="{"stx":"html"}">
5585 <tbody><tr data-parsoid="{"stx":"html"}">
5586 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5587 <td data-parsoid="{"stx":"html"}"> bar </td>
5588 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5589 </span><span about="#mwt1">
5591 abc</span><span about="#mwt1">
5592 </span><span about="#mwt1">
5593 </span><span about="#mwt1">
5594 </span><span about="#mwt1">
5595 </span><span about="#mwt1">
5597 xyz</span><span about="#mwt1">
5598 </span><span about="#mwt1">
5603 Parser Functions: 1. Simple example
5612 Parser Functions: 2. Nested use (only outermost should be marked up)
5621 ### Pre-save transform tests
5624 pre-save transform: subst:
5630 This is a test template
5634 pre-save transform: normal template
5644 pre-save transform: nonexistent template
5648 {{thistemplatedoesnotexist}}
5650 {{thistemplatedoesnotexist}}
5655 pre-save transform: subst magic variables
5664 # This is bug 89, which I fixed. -- wtm
5666 pre-save transform: subst: templates with parameters
5670 {{subst:paramtest|param="something else"}}
5672 This is a test template with parameter "something else"
5678 <nowiki>'''not wiki'''</nowiki>
5682 pre-save transform: nowiki in subst (bug 1188)
5686 {{subst:nowikitest}}
5688 <nowiki>'''not wiki'''</nowiki>
5693 Template:commenttest
5695 This template has <!-- a comment --> in it.
5699 pre-save transform: comment in subst (bug 1936)
5703 {{subst:commenttest}}
5705 This template has <!-- a comment --> in it.
5709 pre-save transform: unclosed tag
5713 <nowiki>'''not wiki'''
5715 <nowiki>'''not wiki'''
5719 pre-save transform: mixed tag case
5723 <NOwiki>'''not wiki'''</noWIKI>
5725 <NOwiki>'''not wiki'''</noWIKI>
5729 pre-save transform: unclosed comment in <nowiki>
5733 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5735 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5741 <span onmouseover="alert('crap')">Oh no</span>
5745 (confirming safety of fix for subst bug 1936)
5747 {{Template:dangerous}}
5749 <p><span>Oh no</span>
5754 pre-save transform: comment containing gallery (bug 5024)
5758 <!-- <gallery>data</gallery> -->
5760 <!-- <gallery>data</gallery> -->
5764 pre-save transform: comment containing extension
5768 <!-- <tag>data</tag> -->
5770 <!-- <tag>data</tag> -->
5774 pre-save transform: comment containing nowiki
5778 <!-- <nowiki>data</nowiki> -->
5780 <!-- <nowiki>data</nowiki> -->
5784 pre-save transform: <noinclude> in subst (bug 3298)
5794 pre-save transform: <onlyinclude> in subst (bug 3298)
5806 {{<includeonly>subst:</includeonly>Includes}}
5810 Template:SafeSubstTest
5812 {{<includeonly>safesubst:</includeonly>Includes}}
5816 bug 22297: safesubst: works during PST
5820 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5826 bug 22297: safesubst: works during normal parse
5835 subst: does not work during normal parse
5839 <p>{{subst:Includes}}
5844 pre-save transform: context links ("pipe trick")
5848 [[Article (context)|]]
5851 [[Bar:Article (context)|]]
5852 [[:Bar:Article (context)|]]
5854 [[|Article (context)]]
5858 [[Article (context)|Article]]
5859 [[Bar:Article|Article]]
5860 [[:Bar:Article|Article]]
5861 [[Bar:Article (context)|Article]]
5862 [[:Bar:Article (context)|Article]]
5864 [[Article (context)]]
5865 [[Bar:X (Y) Z|X (Y) Z]]
5866 [[:Bar:X (Y) Z|X (Y) Z]]
5870 pre-save transform: context links ("pipe trick") with interwiki prefix
5874 [[interwiki:Article|]]
5875 [[:interwiki:Article|]]
5876 [[interwiki:Bar:Article|]]
5877 [[:interwiki:Bar:Article|]]
5879 [[interwiki:Article|Article]]
5880 [[:interwiki:Article|Article]]
5881 [[interwiki:Bar:Article|Bar:Article]]
5882 [[:interwiki:Bar:Article|Bar:Article]]
5886 pre-save transform: context links ("pipe trick") with parens in title
5888 pst title=[[Somearticle (context)]]
5892 [[Article (context)|Article]]
5896 pre-save transform: context links ("pipe trick") with comma in title
5898 pst title=[[Someplace, Somewhere]]
5901 [[Otherplace, Elsewhere|]]
5902 [[Otherplace, Elsewhere, Anywhere|]]
5904 [[Otherplace, Somewhere|Otherplace]]
5905 [[Otherplace, Elsewhere|Otherplace]]
5906 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5910 pre-save transform: context links ("pipe trick") with parens and comma
5912 pst title=[[Someplace (IGNORED), Somewhere]]
5915 [[Otherplace (place), Elsewhere|]]
5917 [[Otherplace, Somewhere|Otherplace]]
5918 [[Otherplace (place), Elsewhere|Otherplace]]
5922 pre-save transform: context links ("pipe trick") with comma and parens
5924 pst title=[[Who, me? (context)]]
5927 [[Me, Myself, and I (1937 song)|]]
5929 [[Yes, you. (context)|Yes, you.]]
5930 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5934 pre-save transform: context links ("pipe trick") with namespace
5936 pst title=[[Ns:Somearticle]]
5940 [[Ns:Article|Article]]
5944 pre-save transform: context links ("pipe trick") with namespace and parens
5946 pst title=[[Ns:Somearticle (context)]]
5950 [[Ns:Article (context)|Article]]
5954 pre-save transform: context links ("pipe trick") with namespace and comma
5956 pst title=[[Ns:Somearticle, Context, Whatever]]
5960 [[Ns:Article, Context, Whatever|Article]]
5964 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5966 pst title=[[Ns:Somearticle, Context (context)]]
5970 [[Ns:Article (context)|Article]]
5974 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5976 pst title=[[Ns:Somearticle (IGNORED), Context]]
5980 [[Ns:Article, Context|Article]]
5984 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5988 [[Article(context)|]]
5989 [[Bar:Article(context)|]]
5990 [[:Bar:Article(context)|]]
5991 [[|Article(context)]]
5995 [[Article(context)|Article]]
5996 [[Bar:Article(context)|Article]]
5997 [[:Bar:Article(context)|Article]]
5998 [[Article(context)]]
6000 [[:Bar:X(Y)Z|X(Y)Z]]
6004 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6008 [[Article (context)|]]
6009 [[Bar:Article (context)|]]
6010 [[:Bar:Article (context)|]]
6011 [[|Article (context)]]
6015 [[Article (context)|Article]]
6016 [[Bar:Article (context)|Article]]
6017 [[:Bar:Article (context)|Article]]
6018 [[Article (context)]]
6019 [[Bar:X (Y) Z|X (Y) Z]]
6020 [[:Bar:X (Y) Z|X (Y) Z]]
6024 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6028 [[Article(context)|]]
6029 [[Bar:Article(context)|]]
6030 [[:Bar:Article(context)|]]
6031 [[|Article(context)]]
6035 [[Article(context)|Article]]
6036 [[Bar:Article(context)|Article]]
6037 [[:Bar:Article(context)|Article]]
6038 [[Article(context)]]
6040 [[:Bar:X(Y)Z|X(Y)Z]]
6044 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6048 [[Article (context), context|]]
6049 [[Article (context),context|]]
6050 [[Bar:Article (context), context|]]
6051 [[Bar:Article (context),context|]]
6052 [[:Bar:Article (context), context|]]
6053 [[:Bar:Article (context),context|]]
6055 [[Article (context), context|Article]]
6056 [[Article (context),context|Article]]
6057 [[Bar:Article (context), context|Article]]
6058 [[Bar:Article (context),context|Article]]
6059 [[:Bar:Article (context), context|Article]]
6060 [[:Bar:Article (context),context|Article]]
6064 pre-save transform: trim trailing empty lines
6068 Empty lines are trimmed
6074 Empty lines are trimmed
6078 pre-save transform: Signature expansion
6083 * <noinclude>~~~</noinclude>
6084 * <includeonly>~~~</includeonly>
6085 * <onlyinclude>~~~</onlyinclude>
6087 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6088 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6089 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6090 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6095 pre-save transform: Signature expansion in nowiki tags (bug 93)
6101 <nowiki>~~~~</nowiki>
6103 <includeonly><nowiki>~~~~</nowiki></includeonly>
6105 <noinclude><nowiki>~~~~</nowiki></noinclude>
6107 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6109 {{subst:Foo}} shall be converted to FOO
6111 As well as inside noinclude/onlyinclude
6112 <noinclude>{{subst:Foo}}</noinclude>
6113 <onlyinclude>{{subst:Foo}}</onlyinclude>
6115 But not inside includeonly
6116 <includeonly>{{subst:Foo}}</includeonly>
6120 <nowiki>~~~~</nowiki>
6122 <includeonly><nowiki>~~~~</nowiki></includeonly>
6124 <noinclude><nowiki>~~~~</nowiki></noinclude>
6126 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6128 FOO shall be converted to FOO
6130 As well as inside noinclude/onlyinclude
6131 <noinclude>FOO</noinclude>
6132 <onlyinclude>FOO</onlyinclude>
6134 But not inside includeonly
6135 <includeonly>{{subst:Foo}}</includeonly>
6139 ### Message transform tests
6142 message transform: magic variables
6152 message transform: should not transform wiki markup
6162 message transform: <noinclude> in transcluded template (bug 4926)
6172 message transform: <onlyinclude> in transcluded template (bug 4926)
6182 {{#special:}} page name, known
6186 {{#special:Recentchanges}}
6188 Special:RecentChanges
6192 {{#special:}} page name with subpage, known
6196 {{#special:Recentchanges/param}}
6198 Special:RecentChanges/param
6202 {{#special:}} page name, unknown
6206 {{#special:foobarnonexistent}}
6208 No such special page
6212 {{#speciale:}} page name, known
6216 {{#speciale:Recentchanges}}
6218 Special:RecentChanges
6222 {{#speciale:}} page name with subpage, known
6226 {{#speciale:Recentchanges/param}}
6228 Special:RecentChanges/param
6232 {{#speciale:}} page name, unknown
6236 {{#speciale:foobarnonexistent}}
6238 No_such_special_page
6247 [[Image:foobar.jpg]]
6249 <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>
6256 [[Image:foobar.jpg|right]]
6258 <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>
6263 Simple image (using File: namespace, now canonical)
6267 <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>
6274 [[Image:foobar.jpg|right|Caption text]]
6276 <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>
6281 Image with empty attribute
6283 [[Image:foobar.jpg|right||Caption text]]
6285 <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>
6290 Image with link tails
6292 123[[Image:foobar.jpg]]456
6293 123[[Image:foobar.jpg|right]]456
6294 123[[Image:foobar.jpg|thumb]]456
6296 <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
6298 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
6299 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
6304 Image with multiple captions -- only last one is accepted
6306 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6308 <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>
6313 Image with width attribute at different positions
6315 [[Image:foobar.jpg|200px|right|Caption]]
6316 [[Image:foobar.jpg|right|200px|Caption]]
6317 [[Image:foobar.jpg|right|Caption|200px]]
6319 <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>
6320 <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>
6321 <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>
6326 Image with link parameter, wiki target
6328 [[Image:foobar.jpg|link=Target page]]
6330 <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>
6335 Image with link parameter, URL target
6337 [[Image:foobar.jpg|link=http://example.com/]]
6339 <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>
6344 Image with link parameter, wgExternalLinkTarget
6346 [[Image:foobar.jpg|link=http://example.com/]]
6348 wgExternalLinkTarget='foobar'
6350 <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>
6355 Image with link parameter, wgNoFollowLinks set to false
6357 [[Image:foobar.jpg|link=http://example.com/]]
6359 wgNoFollowLinks=false
6361 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6366 Image with link parameter, wgNoFollowDomainExceptions
6368 [[Image:foobar.jpg|link=http://example.com/]]
6370 wgNoFollowDomainExceptions='example.com'
6372 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6377 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6379 [[Image:foobar.jpg|link=http://example.com/|Title]]
6381 wgExternalLinkTarget='foobar'
6383 <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>
6388 Image with empty link parameter
6390 [[Image:foobar.jpg|link=]]
6392 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6397 Image with link parameter (wiki target) and unnamed parameter
6399 [[Image:foobar.jpg|link=Target page|Title]]
6401 <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>
6406 Image with link parameter (URL target) and unnamed parameter
6408 [[Image:foobar.jpg|link=http://example.com/|Title]]
6410 <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>
6415 Thumbnail image with link parameter
6417 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6419 <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>
6424 Image with frame and link
6426 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6428 <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>
6433 Image with frame and link and explicit alt
6435 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6437 <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>
6442 Image with wiki markup in implicit alt
6444 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6446 <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>
6451 Image with wiki markup in explicit alt
6453 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6455 <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>
6460 Link to image page- image page normally doesn't exists, hence edit link
6461 Add test with existing image page
6462 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6466 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6471 bug 18784 Link to non-existent image page with caption should use caption as link text
6473 [[:Image:test|caption]]
6475 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6480 Frameless image caption with a free URL
6482 [[Image:foobar.jpg|http://example.com]]
6484 <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>
6489 Thumbnail image caption with a free URL
6491 [[Image:foobar.jpg|thumb|http://example.com]]
6493 <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>
6498 Thumbnail image caption with a free URL and explicit alt
6500 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6502 <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>
6507 BUG 1887: A ISBN with a thumbnail
6509 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6511 <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>
6516 BUG 1887: A RFC with a thumbnail
6518 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6520 <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>
6525 BUG 1887: A mailto link with a thumbnail
6527 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6529 <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>
6533 # Pending resolution to bug 368
6535 BUG 648: Frameless image caption with a link
6537 [[Image:foobar.jpg|text with a [[link]] in it]]
6539 <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>
6544 BUG 648: Frameless image caption with a link (suffix)
6546 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6548 <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>
6553 BUG 648: Frameless image caption with an interwiki link
6555 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6557 <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>
6562 BUG 648: Frameless image caption with a piped interwiki link
6564 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6566 <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>
6571 Escape HTML special chars in image alt text
6573 [[Image:foobar.jpg|& < > "]]
6575 <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>
6580 BUG 499: Alt text should have Ӓ, not &1234;
6582 [[Image:foobar.jpg|♀]]
6584 <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>
6589 Broken image caption with link
6591 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6593 <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.
6598 Image caption containing another image
6600 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6602 <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>
6607 Image caption containing a newline
6609 [[Image:Foobar.jpg|This
6612 <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>
6618 Bug 3090: External links other than http: in image captions
6620 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6622 <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>
6629 [[Image:foobar.jpg|a|class=b]]
6631 <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>
6638 #REDIRECT [[File:Barfoo.jpg]]
6644 [[Image:Barfoo.jpg]]
6646 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6651 Missing image with uploads disabled
6655 [[Image:Foobaz.jpg]]
6657 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6666 Subpage test/subpage
6674 subpage title=[[Subpage test]]
6678 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6683 Subpage noslash link
6685 subpage title=[[Subpage test]]
6689 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6698 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6703 BUG 561: {{/Subpage}}
6705 subpage title=[[Page]]
6709 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6717 Category:MediaWiki User's Guide
6725 [[:Category:MediaWiki User's Guide]]
6727 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6736 [[Category:MediaWiki User's Guide]]
6738 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6742 PAGESINCATEGORY invalid title fatal (r33546 fix)
6744 {{PAGESINCATEGORY:<bogus>}}
6751 Category with different sort key
6755 [[Category:MediaWiki User's Guide|Foo]]
6757 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6761 Category with identical sort key
6765 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6767 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6771 Category with empty sort key
6776 [[Category:MediaWiki User's Guide|]]
6778 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6782 Category with empty sort key and parentheses
6787 [[Category:Foo (bar)|]]
6789 [[Category:Foo (bar)|Foo]]
6793 Category with link tail
6798 123[[Category:Foo]]456
6800 123[[Category:Foo]]456
6804 Category with template
6809 [[Category:{{echo|Foo}}]]
6811 [[Category:{{echo|Foo}}]]
6815 Category with template in sort key
6820 [[Category:Foo|{{echo|Bar}}]]
6822 [[Category:Foo|{{echo|Bar}}]]
6826 Category with template in sort key and title
6831 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6833 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6837 Category / paragraph interactions
6839 Foo [[Category:Baz]] Bar
6841 Foo [[Category:Baz]]
6849 [[Category:Baz]] Bar
6862 {{echo|[[Category:Baz]]}}
6877 ### Inter-language links
6880 Inter-language links
6886 [[zh:食品]]
6888 es:Alimento fr:Nourriture zh:食品
6892 Duplicate interlanguage links (bug 24502)
6908 Basic section headings
6915 ===Smaller headline===
6918 <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>
6921 <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>
6924 <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>
6930 Section headings with TOC
6933 === Subheadline 1 ===
6934 ===== Skipping a level =====
6935 ====== Skipping a level ======
6939 ===Another headline===
6941 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6943 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6945 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6947 <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>
6949 <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>
6956 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6958 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6963 <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>
6964 <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>
6965 <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>
6966 <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>
6967 <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>
6970 <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>
6974 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6976 Handling of sections up to level 6 and beyond
6979 == Level 2 Heading==
6980 === Level 3 Heading===
6981 ==== Level 4 Heading====
6982 ===== Level 5 Heading=====
6983 ====== Level 6 Heading======
6984 ======= Level 7 Heading=======
6985 ======== Level 8 Heading========
6986 ========= Level 9 Heading=========
6987 ========== Level 10 Heading==========
6989 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6991 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6993 <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>
6995 <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>
6997 <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>
6999 <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>
7001 <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>
7002 <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>
7003 <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>
7004 <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>
7005 <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>
7018 <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>
7019 <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>
7020 <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>
7021 <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>
7022 <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>
7023 <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>
7024 <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>
7025 <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>
7026 <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>
7027 <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>
7032 TOC regression (bug 9764)
7036 ==== title 1.1.1 ====
7041 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7043 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7045 <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>
7047 <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>
7050 <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>
7053 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7055 <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>
7060 <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>
7061 <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>
7062 <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>
7063 <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>
7064 <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>
7065 <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>
7070 TOC with wgMaxTocLevel=3 (bug 6204)
7076 ==== title 1.1.1 ====
7081 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7083 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7085 <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>
7086 <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>
7089 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7091 <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>
7096 <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>
7097 <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>
7098 <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>
7099 <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>
7100 <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>
7101 <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>
7106 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7112 ====Section 1.1.1====
7113 ====Section 1.1.1.1====
7116 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7118 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7120 <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>
7123 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7126 <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>
7127 <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>
7128 <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>
7129 <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>
7130 <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>
7136 Resolving duplicate section names
7141 <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>
7142 <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>
7147 Resolving duplicate section names with differing case (bug 10721)
7152 <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>
7153 <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>
7165 Template with sections, __NOTOC__
7172 <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>
7173 <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>
7174 <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>
7175 <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>
7180 __NOEDITSECTION__ keyword
7186 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7187 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7192 Link inside a section heading
7194 ==Section with a [[Main Page|link]] in it==
7196 <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>
7201 TOC regression (bug 12077)
7208 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7210 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7212 <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>
7215 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7218 <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>
7219 <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>
7220 <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>
7225 BUG 1219 URL next to image (good)
7227 http://example.com [[Image:foobar.jpg]]
7229 <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>
7234 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7237 The line above must have a trailing space!
7240 But just in case it doesn't...
7242 <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>
7243 <p>The line above must have a trailing space!
7245 <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>
7246 <p>But just in case it doesn't...
7251 Header with special characters (bug 25462)
7253 The tooltips shall not show entities to the user (ie. be double escaped)
7270 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7272 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7274 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7275 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7276 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7277 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7278 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7281 <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>
7284 <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>
7287 <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>
7290 <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>
7293 <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>
7299 Headers with excess '=' characters
7300 (Are similar tests necessary beyond the 1st level?)
7304 =''italic'' heading==
7305 ==''italic'' heading=
7307 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7309 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7310 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7311 <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>
7312 <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>
7315 <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>
7316 <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>
7317 <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>
7318 <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>
7323 BUG 1219 URL next to image (broken)
7325 http://example.com[[Image:foobar.jpg]]
7327 <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>
7332 Bug 1186 news: in the middle of text
7334 http://en.wikinews.org/wiki/Wikinews:Workplace
7336 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7342 Namespaced link must have a title
7351 Namespaced link must have a title (bad fragment version)
7353 [[Project:#fragment]]
7355 <p>[[Project:#fragment]]
7361 div with no attributes
7363 <div>HTML rocks</div>
7365 <div>HTML rocks</div>
7370 div with double-quoted attribute
7372 <div id="rock">HTML rocks</div>
7374 <div id="rock">HTML rocks</div>
7379 div with single-quoted attribute
7381 <div id='rock'>HTML rocks</div>
7383 <div id="rock">HTML rocks</div>
7388 div with unquoted attribute
7390 <div id=rock>HTML rocks</div>
7392 <div id="rock">HTML rocks</div>
7397 div with illegal double attributes
7399 <div id="a" id="b">HTML rocks</div>
7401 <div id="b">HTML rocks</div>
7405 # FIXME: produce empty string instead of "class" in the PHP parser, following
7408 div with empty attribute value, space before equals
7412 <div class =>HTML rocks</div>
7414 <div class="">HTML rocks</div>
7418 # This it very inconsistent in the PHP parser: it returns
7419 # class="class" if there is a space between the name and the equal sign (see
7420 # 'div with empty attribute value, space before equals'), but strips the
7421 # attribute completely if the space is missing. We hope that not much content
7422 # depends on this, so are implementing the behavior below in Parsoid for
7423 # consistencies' sake. Disabled for the PHP parser.
7424 # FIXME: fix this behavior in the PHP parser?
7426 div with empty attribute value, no space before equals
7430 <div class=>HTML rocks</div>
7432 <div class="">HTML rocks</div>
7437 HTML multiple attributes correction
7439 <p class="error" class="awesome">Awesome!</p>
7441 <p class="awesome">Awesome!</p>
7446 Table multiple attributes correction
7449 !+ class="error" class="awesome"| status
7454 <th class="awesome"> status
7462 <DIV ID="x">HTML ROCKS</DIV>
7464 <div id="x">HTML ROCKS</div>
7469 Non-ASCII pseudo-tags are rendered as text
7478 Pseudo-tag with URL 'name' renders as url link
7480 <http://example.com/>
7482 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7487 text with amp in the middle of nowhere
7491 <p>Remember AT&T?
7496 text with character entity: eacute
7498 I always thought é was a cute letter.
7500 <p>I always thought é was a cute letter.
7505 text with undefined character entity: xacute
7507 I always thought &xacute; was a cute letter.
7509 <p>I always thought &xacute; was a cute letter.
7521 [[Media:Foobar.jpg]]
7523 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7528 Media link with text
7530 [[Media:Foobar.jpg|A neat file to look at]]
7532 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7536 # FIXME: this is still bad HTML tag nesting
7538 Media link with nasty text
7539 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7541 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7543 <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>
7548 Media link to nonexistent file (bug 1702)
7550 [[Media:No such.jpg]]
7552 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7557 Image link to nonexistent file (bug 1850 - good)
7559 [[Image:No such.jpg]]
7561 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7566 :Image link to nonexistent file (bug 1850 - bad)
7568 [[:Image:No such.jpg]]
7570 <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>
7577 Character reference normalization in link text (bug 1938)
7579 [[Main Page|this&that]]
7581 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7588 Test for unicode normalization
7590 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7594 (bug 19451) Links should refer to the normalized form.
7602 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7603 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7604 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7605 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7606 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7611 Empty attribute crash test (bug 2067)
7613 <font color="">foo</font>
7615 <p><font color="">foo</font>
7620 Empty attribute crash test single-quotes (bug 2067)
7622 <font color=''>foo</font>
7624 <p><font color="">foo</font>
7629 Attribute test: equals, then nothing
7631 <font color=>foo</font>
7638 Attribute test: unquoted value
7640 <font color=x>foo</font>
7642 <p><font color="x">foo</font>
7647 Attribute test: unquoted but illegal value (hash)
7649 <font color=#x>foo</font>
7651 <p><font color="#x">foo</font>
7656 Attribute test: no value
7658 <font color>foo</font>
7660 <p><font color="color">foo</font>
7665 Bug 2095: link with three closing brackets
7669 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7674 Bug 2095: link with pipe and three closing brackets
7678 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7683 Bug 2095: link with pipe and three closing brackets, version 2
7685 [[Main Page|[http://example.com/]]]
7687 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7697 Template:Dangerous attribute
7699 " onmouseover="alert(document.cookie)
7703 Template:Dangerous style attribute
7705 border-size: expression(alert(document.cookie))
7711 <div style="float: right; {{{1}}}">Magic div</div>
7715 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7717 <div title="{{test}}"></div>
7719 <div title="This is a test template"></div>
7724 Bug 2304: HTML attribute safety (dangerous template; 2309)
7726 <div title="{{dangerous attribute}}"></div>
7728 <div title=""></div>
7733 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7735 <div style="{{dangerous style attribute}}"></div>
7737 <div style="/* insecure input */"></div>
7742 Bug 2304: HTML attribute safety (safe parameter; 2309)
7744 {{div style|width: 200px}}
7746 <div style="float: right; width: 200px">Magic div</div>
7751 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7753 {{div style|width: expression(alert(document.cookie))}}
7755 <div style="/* insecure input */">Magic div</div>
7760 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7762 {{div style|"><script>alert(document.cookie)</script>}}
7764 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7769 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7771 {{div style|" ><script>alert(document.cookie)</script>}}
7773 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7778 Bug 2304: HTML attribute safety (link)
7780 <div title="[[Main Page]]"></div>
7782 <div title="[[Main Page]]"></div>
7787 Bug 2304: HTML attribute safety (italics)
7789 <div title="''foobar''"></div>
7791 <div title="''foobar''"></div>
7796 Bug 2304: HTML attribute safety (bold)
7798 <div title="'''foobar'''"></div>
7800 <div title="'''foobar'''"></div>
7806 Bug 2304: HTML attribute safety (ISBN)
7808 <div title="ISBN 1234567890"></div>
7810 <div title="ISBN 1234567890"></div>
7815 Bug 2304: HTML attribute safety (RFC)
7817 <div title="RFC 1234"></div>
7819 <div title="RFC 1234"></div>
7824 Bug 2304: HTML attribute safety (PMID)
7826 <div title="PMID 1234567890"></div>
7828 <div title="PMID 1234567890"></div>
7833 Bug 2304: HTML attribute safety (web link)
7835 <div title="http://example.com/"></div>
7837 <div title="http://example.com/"></div>
7842 Bug 2304: HTML attribute safety (named web link)
7844 <div title="[http://example.com/ link]"></div>
7846 <div title="[http://example.com/ link]"></div>
7851 Bug 3244: HTML attribute safety (extension; safe)
7853 <div style="<nowiki>background:blue</nowiki>"></div>
7855 <div style="background:blue"></div>
7860 Bug 3244: HTML attribute safety (extension; unsafe)
7862 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7864 <div style="/* insecure input */"></div>
7868 # More MSIE fun discovered by Tom Gilder
7871 MSIE CSS safety test: spurious slash
7873 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7875 <div style="/* insecure input */">evil</div>
7880 MSIE CSS safety test: hex code
7882 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7884 <div style="/* insecure input */">evil</div>
7889 MSIE CSS safety test: comment in url
7891 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7893 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7898 MSIE CSS safety test: comment in expression
7900 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7902 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7908 Table attribute legitimate extension
7911 !+ style="<nowiki>color:blue</nowiki>"| status
7916 <th style="color:blue"> status
7922 Table attribute safety
7925 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7930 <th style="/* insecure input */"> status
7936 CSS line continuation 1
7938 <div style="background-image: u\ rl(test.jpg);"></div>
7940 <div style="/* insecure input */"></div>
7945 CSS line continuation 2
7947 <div style="background-image: u\ rl(test.jpg); "></div>
7949 <div style="/* insecure input */"></div>
7960 Expansion of multi-line templates in attribute values (bug 6255)
7962 <div style="background: {{identity|#00FF00}}">-</div>
7964 <div style="background: #00FF00">-</div>
7970 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7972 <div style="background:
7975 <div style="background: #00FF00">-</div>
7980 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7982 <div style="background: #00FF00">-</div>
7984 <div style="background: #00FF00">-</div>
7989 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7992 Parser hook: empty input
8005 Parser hook: empty input using terminated empty elements
8018 Parser hook: empty input using terminated empty elements (space before)
8031 Parser hook: basic input
8045 Parser hook: case insensitive
8059 Parser hook: case insensitive, redux
8072 Parser hook: nested tags
8076 <tag><tag></tag></tag>
8087 Parser hook: basic arguments
8089 <tag width=200 height = "100" depth = '50' square></tag>
8097 'square' => 'square',
8104 Parser hook: argument containing a forward slash (bug 5344)
8106 <tag filename='/tmp/bla'></tag>
8111 'filename' => '/tmp/bla',
8118 Parser hook: empty input using terminated empty elements (bug 2374)
8131 # </tag> should be output literally since there is no matching tag that begins it
8133 Parser hook: basic arguments using terminated empty elements (bug 2374)
8135 <tag width=200 height = "100" depth = '50' square/>
8145 'square' => 'square',
8154 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8158 Parser hook: static parser hook not inside a comment
8160 <statictag>hello, world</statictag>
8161 <statictag action=flush/>
8169 Parser hook: static parser hook inside a comment
8171 <!-- <statictag>hello, world</statictag> -->
8172 <statictag action=flush/>
8178 # Nested template calls; this case was broken by Parser.php rev 1.506,
8182 Template:One-parameter
8184 (My parameter is: {{{1}}})
8188 Template:Map-one-parameter
8194 Nested template calls
8196 {{Map-one-parameter|One-parameter|param}}
8198 <p>(My parameter is: param)
8207 Sanitizer: Closing of open tags
8209 <s></s><table></table>
8211 <s></s><table></table>
8216 Sanitizer: Closing of open but not closed tags
8225 Sanitizer: Closing of closed but not open tags
8234 Sanitizer: Closing of closed but not open table tags
8236 Table not started</td></tr></table>
8238 <p>Table not started</td></tr></table>
8243 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8245 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8247 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8252 Sanitizer: Validating the contents of the id attribute (bug 4515)
8258 Something, but definitely not <br id="9" />...
8262 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8266 <br id="foo" /><br id="foo" />
8268 Something need to be done. foo-2 ?
8272 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8275 <meta itemprop="hello" content="world">
8276 <meta http-equiv="refresh" content="5">
8277 <meta itemprop="hello" http-equiv="refresh" content="5">
8278 <link itemprop="hello" href="{{SERVER}}">
8279 <link rel="stylesheet" href="{{SERVER}}">
8280 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8283 <div itemscope="itemscope">
8284 <p> <meta itemprop="hello" content="world" />
8285 <meta http-equiv="refresh" content="5">
8286 <meta itemprop="hello" content="5" />
8288 <link itemprop="hello" href="http://Britney-Spears" />
8289 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8290 <link itemprop="hello" href="http://Britney-Spears" />
8296 Language converter: output gets cut off unexpectedly (bug 5757)
8300 this bit is safe: }-
8302 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8304 then we get cut off here: }-
8306 all additional text is vanished
8308 <p>this bit is safe: }-
8309 </p><p>but if we add a conversion instance: xxx
8310 </p><p>then we get cut off here: }-
8311 </p><p>all additional text is vanished
8316 Self closed html pairs (bug 5487)
8319 <center><font id="bug" />Centered text</center>
8320 <div><font id="bug2" />In div text</div>
8322 <center><font id="bug" />Centered text</center>
8323 <div><font id="bug2" />In div text</div>
8332 Punctuation: nbsp before exclamation
8336 <p>C'est grave !
8341 Punctuation: CSS !important (bug 11874)
8343 <div style="width:50% !important">important</div>
8345 <div style="width:50% !important">important</div>
8350 Punctuation: CSS ! important (bug 11874; with space after)
8352 <div style="width:50% ! important">important</div>
8354 <div style="width:50% ! important">important</div>
8360 HTML bullet list, closed tags (bug 5497)
8375 HTML bullet list, unclosed tags (bug 5497)
8392 HTML ordered list, closed tags (bug 5497)
8407 HTML ordered list, unclosed tags (bug 5497)
8424 HTML nested bullet list, closed tags (bug 5497)
8449 HTML nested bullet list, open tags (bug 5497)
8474 HTML nested ordered list, closed tags (bug 5497)
8499 HTML nested ordered list, open tags (bug 5497)
8524 HTML ordered list item with parameters oddity
8526 <ol><li id="fragment">One</li></ol>
8528 <ol><li id="fragment">One</li></ol>
8533 bug 5918: autonumbering
8535 [http://first/] [http://second] [ftp://ftp]
8539 [mailto:enclosed@mail.tld With target]
8541 [mailto:enclosed@mail.tld]
8543 mailto:inline@mail.tld
8545 <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>
8546 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8547 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8548 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8549 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8555 # Security and HTML correctness
8556 # From Nick Jenkins' fuzz testing
8560 Fuzz testing: Parser13
8575 Fuzz testing: Parser14
8580 <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>
8581 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8583 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8590 Fuzz testing: Parser14-table
8595 <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>
8596 <table style="__TOC__">
8602 # Known to produce bogus xml (extra </td>)
8604 Fuzz testing: Parser16
8624 Fuzz testing: Parser21
8627 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8632 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8642 Fuzz testing: Parser22
8644 http://===r:::https://b
8648 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8656 # Known to produce bad XML for now
8658 Fuzz testing: Parser24
8665 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8666 <br style="onmouseover='alert(document.cookie);' " />
8668 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8673 <u class="|">}}}} >
8674 <br style="onmouseover='alert(document.cookie);'" />
8676 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8685 # Note: the current result listed for this is not what the original one was,
8686 # but the original bug was JavaScript injection, which is fixed in any case.
8687 # It's not clear that the original result listed was any more correct than the
8688 # current one. Original result:
8691 # <li class="||">
8692 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8694 Fuzz testing: Parser25 (bug 6055)
8700 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8702 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8707 Fuzz testing: URL adjacent extension (with space, clean)
8710 http://example.com <nowiki>junk</nowiki>
8712 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8717 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8720 http://example.com<nowiki>junk</nowiki>
8722 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8727 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8730 http://example.com<pre>junk</pre>
8732 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8737 Fuzz testing: image with bogus manual thumbnail
8739 [[Image:foobar.jpg|thumbnail= ]]
8741 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8746 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8748 <pre dir=" "></pre>
8750 <pre dir=" "></pre>
8755 Parsing optional HTML elements (Bug 6171)
8760 <td> Some tabular data</td>
8761 <td> More tabular data ...
8762 <td> And yet som tabular data</td>
8768 <td> Some tabular data</td>
8769 <td> More tabular data ...
8770 </td><td> And yet som tabular data</td>
8777 Correct handling of <td>, <tr> (Bug 6171)
8782 <td> Some tabular data</td>
8783 <td> More tabular data ...</td>
8784 <td> And yet som tabular data</td>
8790 <td> Some tabular data</td>
8791 <td> More tabular data ...</td>
8792 <td> And yet som tabular data</td>
8800 Parsing crashing regression (fr:JavaScript)
8804 <p></body></x>
8809 Inline wiki vs wiki block nesting
8815 <p><b>Bold paragraph</b>
8816 </p><p>New wiki paragraph
8821 Inline HTML vs wiki block nesting
8829 <p><b>Bold paragraph</b>
8830 </p><p>New wiki paragraph
8834 # Original result was this:
8835 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8837 # While that might be marginally more intuitive, maybe, the six-apostrophe
8838 # construct is clearly pathological and the result stated here (which is what
8839 # the parser actually does) is about as reasonable as anything.
8841 Mixing markup for italics and bold
8844 '''bold''''''bold''bolditalics'''''
8846 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8854 Article for special page transclusion test
8858 Special page transclusion
8861 {{Special:Prefixindex/Xyzzyx}}
8863 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8868 Special page transclusion twice (bug 5021)
8871 {{Special:Prefixindex/Xyzzyx}}
8872 {{Special:Prefixindex/Xyzzyx}}
8874 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8875 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8880 Transclusion of default MediaWiki message
8882 {{MediaWiki:Mainpage}}
8889 Transclusion of nonexistent MediaWiki message
8891 {{MediaWiki:Mainpagexxx}}
8893 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8898 Transclusion of MediaWiki message with underscore
8900 {{MediaWiki:history_short}}
8907 Transclusion of MediaWiki message with space
8909 {{MediaWiki:history short}}
8916 Invalid header with following text
8926 Section extraction test (section 0)
8946 Section extraction test (section 1)
8968 Section extraction test (section 2)
8989 Section extraction test (section 3)
9009 Section extraction test (section 4)
9033 Section extraction test (section 5)
9053 Section extraction test (section 6)
9074 Section extraction test (section 7)
9094 Section extraction test (section 8)
9114 Section extraction test (section 9)
9135 Section extraction test (section 10)
9155 Section extraction test (nonexistent section 11)
9174 Section extraction test with bogus heading (section 1)
9179 ==bogus== not a legal section
9183 ==bogus== not a legal section
9187 Section extraction test with bogus heading (section 2)
9192 ==bogus== not a legal section
9199 Section extraction test with comment after heading (section 1)
9211 Section extraction test with comment after heading (section 2)
9223 Section extraction test with bogus <nowiki> heading (section 1)
9228 ==bogus== <nowiki>not a legal section</nowiki>
9232 ==bogus== <nowiki>not a legal section</nowiki>
9236 Section extraction test with bogus <nowiki> heading (section 2)
9241 ==bogus== <nowiki>not a legal section</nowiki>
9248 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9249 # instead of respecting commented sections
9251 Section extraction prefixed by comment (section 1)
9262 Section extraction prefixed by comment (section 2)
9273 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9274 # instead of respecting HTML-style headings
9276 Section extraction, mixed wiki and html (section 1)
9292 Section extraction, mixed wiki and html (section 2)
9308 # Formerly testing for bug 3342
9310 Section extraction, heading surrounded by <noinclude>
9314 <noinclude>==unmarked==</noinclude>
9320 # Test behaviour of bug 19910
9322 Sectiion with all-equals
9327 The line above must have a trailing space
9330 But just in case it doesn't...
9334 But just in case it doesn't...
9338 Section replacement test (section 0)
9369 Section replacement test (section 1)
9398 Section replacement test (section 2)
9428 Section replacement test (section 3)
9459 Section replacement test (section 4)
9486 Section replacement test (section 5)
9517 Section replacement test (section 6)
9547 Section replacement test (section 7)
9578 Section replacement test (section 8)
9609 Section replacement test (section 9)
9638 Section replacement test (section 10)
9668 Section replacement test with initial whitespace (bug 13728)
9672 Preformatted initial line
9676 Preformatted initial line
9683 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9695 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9708 Section extraction, <pre> around bogus header (bug 10309)
9725 Section replacement, <pre> around bogus header (bug 10309)
9727 noxml replace=2,"xxx"
9748 Handling of 
 in URLs
9752 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9759 5 quotes, code coverage +1 line
9766 Special:Search page linking.
9770 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9785 * {{SUBJECTPAGENAME}}
9786 * {{SUBJECTPAGENAMEE}}
9793 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9795 <ul><li> Parser test
9796 </li><li> Parser test
9797 </li><li> Parser test
9798 </li><li> Parser_test
9799 </li><li> Parser test
9800 </li><li> Parser_test
9801 </li><li> Talk:Parser test
9802 </li><li> Talk:Parser_test
9803 </li><li> Parser test
9804 </li><li> Parser_test
9811 </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>
9815 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9825 image4 |300px| centre
9826 image5.svg| http://///////
9831 <ul class="gallery">
9832 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9833 <div style="height: 150px;">Image1.png</div>
9834 <div class="gallerytext">
9837 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9838 <div style="height: 150px;">Image2.gif</div>
9839 <div class="gallerytext">
9844 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9845 <div style="height: 150px;">Image3</div>
9846 <div class="gallerytext">
9849 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9850 <div style="height: 150px;">Image4</div>
9851 <div class="gallerytext">
9856 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9857 <div style="height: 150px;">Image5.svg</div>
9858 <div class="gallerytext">
9859 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9863 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9864 <div style="height: 150px;">* image6</div>
9865 <div class="gallerytext">
9873 Gallery (with options)
9875 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9876 File:Nonexistant.jpg|caption
9877 File:Nonexistant.jpg
9878 image:foobar.jpg|some '''caption''' [[Main Page]]
9880 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9883 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9884 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9885 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9886 <div style="height: 70px;">Nonexistant.jpg</div>
9887 <div class="gallerytext">
9892 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9893 <div style="height: 70px;">Nonexistant.jpg</div>
9894 <div class="gallerytext">
9897 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9898 <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>
9899 <div class="gallerytext">
9900 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9904 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9905 <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>
9906 <div class="gallerytext">
9909 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9910 <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>
9911 <div class="gallerytext">
9921 Gallery with wikitext inside caption
9924 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9925 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9928 <ul class="gallery">
9929 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9930 <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>
9931 <div class="gallerytext">
9932 <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>
9936 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9937 <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>
9938 <div class="gallerytext">
9939 <p>This is a test template
9948 gallery (with showfilename option)
9950 <gallery showfilename>
9951 File:Nonexistant.jpg|caption
9952 File:Nonexistant.jpg
9953 image:foobar.jpg|some '''caption''' [[Main Page]]
9957 <ul class="gallery">
9958 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9959 <div style="height: 150px;">Nonexistant.jpg</div>
9960 <div class="gallerytext">
9961 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9966 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9967 <div style="height: 150px;">Nonexistant.jpg</div>
9968 <div class="gallerytext">
9969 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9973 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9974 <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>
9975 <div class="gallerytext">
9976 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9977 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9981 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9982 <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>
9983 <div class="gallerytext">
9984 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9993 Gallery (with namespace-less filenames)
9996 File:Nonexistant.jpg
10002 <ul class="gallery">
10003 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10004 <div style="height: 150px;">Nonexistant.jpg</div>
10005 <div class="gallerytext">
10008 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10009 <div style="height: 150px;">Nonexistant.jpg</div>
10010 <div class="gallerytext">
10013 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10014 <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>
10015 <div class="gallerytext">
10018 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10019 <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>
10020 <div class="gallerytext">
10028 HTML Hex character encoding (spells the word "JavaScript")
10030 JavaScript
10032 <p>JavaScript
10037 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10041 <p>&#xsee;&#XSEE;
10046 HTML Hex character encoding mixed case
10055 __FORCETOC__ override
10067 ISBN 978-0-1234-56 789
10069 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10074 ISBN followed by 5 spaces
10085 ISBN ISBN 1234567890
10087 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10092 Bug 22905: <abbr> followed by ISBN followed by </a>
10094 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10096 <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>
10105 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10110 Double RFC with a wiki link
10114 <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>
10123 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10128 Centre-aligned image
10130 [[Image:foobar.jpg|centre]]
10132 <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>
10139 [[Image:foobar.jpg|none]]
10141 <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>
10146 Width + Height sized image (using px) (height is ignored)
10148 [[Image:foobar.jpg|640x480px]]
10150 <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>
10155 Width-sized image (using px, no following whitespace)
10157 [[Image:foobar.jpg|640px]]
10159 <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>
10164 Width-sized image (using px, with following whitespace - test regression from r39467)
10166 [[Image:foobar.jpg|640px ]]
10168 <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>
10173 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10175 [[Image:foobar.jpg| 640px]]
10177 <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>
10182 Another italics / bold test
10190 # Note the results may be incorrect, as parserTest output included this:
10191 # XML error: Mismatched tag at byte 6120:
10192 # ...<dd> </dt></dl> </dd...
10200 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10211 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10213 Images with the "|" character in the comment
10215 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10217 <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>
10222 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10224 <html><script>alert(1);</script></html>
10226 <p><html><script>alert(1);</script></html>
10231 HTML with raw HTML ($wgRawHtml==true)
10235 <html><script>alert(1);</script></html>
10237 <p><script>alert(1);</script>
10242 Parents of subpages, one level up
10244 subpage title=[[Subpage test/L1/L2/L3]]
10248 <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>
10254 Parents of subpages, one level up, not named
10256 subpage title=[[Subpage test/L1/L2/L3]]
10260 <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>
10267 Parents of subpages, two levels up
10269 subpage title=[[Subpage test/L1/L2/L3]]
10275 <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
10276 </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>
10281 Parents of subpages, two levels up, without trailing slash or name.
10283 subpage title=[[Subpage test/L1/L2/L3]]
10292 Parents of subpages, two levels up, with lots of extra trailing slashes.
10294 subpage title=[[Subpage test/L1/L2/L3]]
10298 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10303 Definition list code coverage
10309 <dl><dt> title  </dt><dd> def
10310 </dd><dt> title </dt><dd> def
10311 </dd><dt>title</dt><dd> def
10317 Don't fall for the self-closing div
10319 <div>hello world</div/>
10321 <div>hello world</div>
10330 <p>[[:Template:Msg]]
10339 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10343 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10345 Always escape literal '>' in output, not just after '<'
10359 <p>This is a test template
10360 This is a test template
10372 Inclusion of !userCanEdit() content
10376 <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>
10382 Out-of-order TOC heading levels
10391 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10393 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10395 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10396 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10399 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10401 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10402 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10407 <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>
10408 <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>
10409 <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>
10410 <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>
10411 <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>
10412 <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>
10418 ISBN with a dummy number
10428 ISBN with space-delimited number
10432 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10438 ISBN with multiple spaces, no number
10457 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10458 </p><p>ISBN 12345678901
10464 ISBN with trailing year (bug 8110)
10466 ISBN 1-234-56789-0 - 2006
10468 ISBN 1 234 56789 0 - 2006
10470 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10471 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10479 {{anchorencode:foo bar©#%n}}
10481 <p>foo_bar.C2.A9.23.25n
10486 anchorencode trims spaces
10488 {{anchorencode: __pretty__please__}}
10495 anchorencode deals with links
10497 {{anchorencode: [[hello|world]] [[hi]]}}
10504 anchorencode deals with templates
10506 {{anchorencode: {{Foo}} }}
10513 anchorencode encodes like the TOC generator: (bug 18431)
10515 === _ +:.3A%3A&&]] ===
10516 {{anchorencode: _ +:.3A%3A&&]] }}
10519 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10520 <p>.2B:.3A.253A.26.26.5D.5D
10524 # Expected output in the following test is not necessarily expected (there
10525 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10526 # only testing for well-formedness.
10528 Bug 6200: blockquotes and paragraph formatting
10548 Bug 8293: Use of center tag ruins paragraph formatting
10570 ### Language variants related tests
10573 Self-link in language variants
10575 title=[[Dunav]] language=sr
10577 Both [[Dunav]] and [[Дунав]] are names for this river.
10579 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10585 Link to pages in language variants
10589 Main Page can be written as [[Маин Паге]]
10591 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10597 Multiple links to pages in language variants
10601 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10603 <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>.
10609 Simple template in language variants
10615 <p>This is a test template
10621 Template with explicit namespace in language variants
10627 <p>This is a test template
10633 Basic test for template parameter in language variants
10637 {{парамтест|param=foo}}
10639 <p>This is a test template with parameter foo
10645 Simple category in language variants
10649 [[Category:МедиаWики Усер'с Гуиде]]
10651 <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>
10656 Stripping -{}- tags (language variants)
10660 Latin proverb: -{Ne nuntium necare}-
10662 <p>Latin proverb: Ne nuntium necare
10668 Prevent conversion with -{}- tags (language variants)
10670 language=sr variant=sr-ec
10672 Latinski: -{Ne nuntium necare}-
10674 <p>Латински: Ne nuntium necare
10680 Prevent conversion of text with -{}- tags (language variants)
10682 language=sr variant=sr-ec
10684 Latinski: -{Ne nuntium necare}-
10686 <p>Латински: Ne nuntium necare
10692 Prevent conversion of links with -{}- tags (language variants)
10694 language=sr variant=sr-ec
10698 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10704 -{}- tags within headlines (within html for parserConvert())
10706 language=sr variant=sr-ec
10710 <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>
10716 Explicit definition of language variant alternatives
10718 language=zh variant=zh-tw
10720 -{zh:China;zh-tw:Taiwan}-, not China
10722 <p>Taiwan, not China
10728 Explicit session-wise language variant mapping (A flag and - flag)
10730 language=zh variant=zh-tw
10732 Taiwan is not China.
10733 But -{A|zh:China;zh-tw:Taiwan}- is China,
10734 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10735 and -{China}- is China.
10737 <p>Taiwan is not China.
10738 But Taiwan is Taiwan,
10739 (This should be stripped!)
10740 and China is China.
10745 Explicit session-wise language variant mapping (H flag for hide)
10747 language=zh variant=zh-tw
10749 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10752 <p>(This should be stripped!)
10758 Adding explicit conversion rule for title (T flag)
10760 language=zh variant=zh-tw showtitle
10762 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10765 <p>Should be stripped!
10770 Testing that changing the language variant here in the tests actually works
10772 language=zh variant=zh showtitle
10774 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10777 <p>Should be stripped!
10782 Bug 24072: more test on conversion rule for title
10784 language=zh variant=zh-tw showtitle
10786 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10787 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10790 <p>This should be stripped!
10791 This won't take interferes with the title rule.
10796 Raw output of variant escape tags (R flag)
10798 language=zh variant=zh-tw
10800 Raw: -{R|zh:China;zh-tw:Taiwan}-
10802 <p>Raw: zh:China;zh-tw:Taiwan
10807 Nested using of manual convert syntax
10809 language=zh variant=zh-hk
10811 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10813 <p>Nested: Hello Hong Kong!
10818 Proper conversion of text in external links
10820 language=sr variant=sr-ec
10822 http://www.google.com
10823 gopher://www.google.com
10824 [http://www.google.com http://www.google.com]
10825 [gopher://www.google.com gopher://www.google.com]
10826 [https://www.google.com irc://www.google.com]
10827 [ftp://www.google.com www.google.com/ftp://dir]
10828 [//www.google.com www.google.com]
10830 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10831 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10832 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10833 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10834 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10835 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10836 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10841 Do not convert roman numbers to language variants
10843 language=sr variant=sr-ec
10847 <p>Фридрих IV је цар.
10852 Unclosed language converter markup "-{"
10863 Don't convert raw rule "-{R|=>}-" to "=>"
10880 Bug 529: Uncovered bullet
10890 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10891 # Templates in Wikipedia rely on this behavior, as tidy has always been
10892 # enabled there. These tests are normally run *without* tidy, so specify the
10893 # full output here.
10894 # To test realistic parsing behavior, apply a tidy-like transformation to both
10895 # the expected output and your parser's output.
10897 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10899 ******* Foo {{bullet}}
10901 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10914 Bug 529: Uncovered table already at line-start
10937 Bug 529: Uncovered bullet in parser function result
10939 * Foo {{lc:{{bullet}} }}
10948 Bug 5678: Double-parsed template argument
10950 {{lc:{{{1}}}|hello}}
10957 Bug 5678: Double-parsed template invocation
10959 {{lc:{{paramtest {{!}} param = hello }} }}
10961 <p>{{paramtest | param = hello }}
10966 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10969 title=[[Main Page]]
10971 {{PRVNÍVELKÉ:ěščř}}
10972 {{prvnívelké:ěščř}}
10992 Morwen/13: Unclosed link followed by heading
10999 <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>
11004 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11011 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11016 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11023 <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>
11038 Paragraphs inside divs (no extra line breaks)
11050 Paragraphs inside divs (extra line break on open)
11065 Paragraphs inside divs (extra line break on close)
11080 Paragraphs inside divs (extra line break on open and close)
11097 Nesting tags, paragraphs on lines which begin with <div>
11101 <div></div><strong>A
11110 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11112 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11116 <blockquote>Line one
11118 Line two</blockquote>
11120 <blockquote>Line one
11121 Line two</blockquote>
11126 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11133 Line two</blockquote>
11138 Line two</blockquote>
11143 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11147 <blockquote>Line one
11152 <blockquote>Line one
11160 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11179 Paragraphs inside blockquotes/divs (no extra line breaks)
11181 <blockquote><div>Line one
11183 Line two</div></blockquote>
11185 <blockquote><div>Line one
11186 Line two</div></blockquote>
11191 Paragraphs inside blockquotes/divs (extra line break on open)
11196 Line two</div></blockquote>
11201 Line two</div></blockquote>
11206 Paragraphs inside blockquotes/divs (extra line break on close)
11208 <blockquote><div>Line one
11211 </div></blockquote>
11213 <blockquote><div>Line one
11216 </div></blockquote>
11221 Paragraphs inside blockquotes/divs (extra line break on open and close)
11227 </div></blockquote>
11233 </div></blockquote>
11238 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11240 wgLinkHolderBatchSize=0
11246 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11247 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11248 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11253 Free external link invading image caption
11255 [[Image:Foobar.jpg|thumb|http://x|hello]]
11257 <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>
11262 Bug 15196: localised external link numbers
11266 [http://en.wikipedia.org/]
11268 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11273 Multibyte character in padleft
11275 {{padleft:-Hello|7|Æ}}
11282 Multibyte character in padright
11284 {{padright:Hello-|7|Æ}}
11293 wgUseDynamicDates=1
11297 <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>
11302 formatdate parser function
11304 {{#formatdate:2009-03-24}}
11306 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11311 formatdate parser function, with default format
11313 {{#formatdate:2009-03-24|mdy}}
11315 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11320 Linked date with autoformatting disabled
11322 wgUseDynamicDates=false
11326 <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>
11331 Spacing of numbers in formatted dates
11333 {{#formatdate:January 15}}
11335 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11340 Spacing of numbers in formatted dates (linked)
11342 wgUseDynamicDates=true
11346 <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>
11351 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
11353 language=nl title=[[MediaWiki:Common.css]]
11355 {{#formatdate:2009-03-24|dmy}}
11357 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11370 Edit comment with link
11374 I like the [[Main Page]] a lot
11376 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11380 Edit comment with link and link text
11384 I like the [[Main Page|best pages]] a lot
11386 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11390 Edit comment with link and link text with suffix
11394 I like the [[Main Page|best page]]s a lot
11396 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11400 Edit comment with section link (non-local, eg in history list)
11402 comment title=[[Main Page]]
11404 /* External links */ removed bogus entries
11406 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11410 Edit comment with section link and text before it (non-local, eg in history list)
11412 comment title=[[Main Page]]
11414 pre-comment text /* External links */ removed bogus entries
11416 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>
11420 Edit comment with section link (local, eg in diff view)
11422 comment local title=[[Main Page]]
11424 /* External links */ removed bogus entries
11426 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11430 Edit comment with subpage link (bug 14080)
11434 title=[[Subpage test]]
11436 Poked at a [[/subpage]] here...
11438 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11442 Edit comment with subpage link and link text (bug 14080)
11446 title=[[Subpage test]]
11448 Poked at a [[/subpage|neat little page]] here...
11450 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11454 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11457 title=[[Subpage test]]
11459 Poked at a [[/subpage]] here...
11461 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11465 Edit comment with bare anchor link (local, as on diff)
11469 title=[[Main Page]]
11473 <a href="#section">#section</a>
11477 Edit comment with bare anchor link (non-local, as on history)
11480 title=[[Main Page]]
11484 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11488 Anchor starting with underscore
11492 <p><a href="#_ref">One</a>
11497 Id starting with underscore
11499 <div id="_ref"></div>
11501 <div id="_ref"></div>
11506 Space normalisation on autocomment (bug 22784)
11509 title=[[Main Page]]
11511 /* __hello__world__ */
11513 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11517 percent-encoding and + signs in comments (Bug 26410)
11521 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11523 <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>
11527 Bad images - basic functionality
11536 Bad images - bug 16039: text after bad image disappears
11550 Verify that displaytitle works (bug #22501) no displaytitle
11554 wgAllowDisplayTitle=true
11555 wgRestrictDisplayTitle=false
11557 this is not the the title
11560 <p>this is not the the title
11565 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11570 wgAllowDisplayTitle=true
11571 wgRestrictDisplayTitle=false
11573 this is not the the title
11574 {{DISPLAYTITLE:whatever}}
11577 <p>this is not the the title
11582 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11587 wgAllowDisplayTitle=true
11588 wgRestrictDisplayTitle=true
11590 this is not the the title
11591 {{DISPLAYTITLE:whatever}}
11594 <p>this is not the the title
11599 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11604 wgAllowDisplayTitle=true
11605 wgRestrictDisplayTitle=true
11607 this is not the the title
11608 {{DISPLAYTITLE:screen}}
11611 <p>this is not the the title
11616 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11621 wgAllowDisplayTitle=false
11623 this is not the the title
11624 {{DISPLAYTITLE:screen}}
11627 <p>this is not the the title
11628 <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>
11633 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11638 wgAllowDisplayTitle=false
11640 this is not the the title
11643 <p>this is not the the title
11648 preload: check <noinclude> and <includeonly>
11652 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11658 preload: check <onlyinclude>
11662 Goodbye <onlyinclude>Hello world</onlyinclude>
11668 preload: can pass tags through if we want to
11672 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11674 <includeonly>Hello world</includeonly>
11678 preload: check that it doesn't try to do tricks
11682 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11684 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11688 Play a bit with r67090 and bug 3158
11692 <div style="width:50% !important"> </div>
11693 <div style="width:50% !important"> </div>
11694 <div style="width:50% !important"> </div>
11695 <div style="border : solid;"> </div>
11697 <div style="width:50% !important"> </div>
11698 <div style="width:50% !important"> </div>
11699 <div style="width:50% !important"> </div>
11700 <div style="border : solid;"> </div>
11705 HTML5 data attributes
11707 <span data-foo="bar">Baz</span>
11708 <p data-abc-def_hij="">Quuz</p>
11710 <p><span data-foo="bar">Baz</span>
11712 <p data-abc-def_hij="">Quuz</p>
11717 percent-encoding and + signs in internal links (Bug 26410)
11719 [[User:+%]] [[Page+title%]]
11720 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11721 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11722 [[%33%45]] [[%33%45+]]
11724 <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>
11725 <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>
11726 <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>
11727 <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>
11732 Special characters in embedded file links (bug 27679)
11734 [[File:Contains & ampersand.jpg]]
11735 [[File:Does not exist.jpg|Title with & ampersand]]
11737 <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>
11738 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11744 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11746 Text's been normalized?
11748 <p>Text's been normalized?
11753 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11755 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11757 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11762 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11764 [http://www.example.org/ ideograms]
11766 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11771 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11773 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11775 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11799 Bug 31098 Template which includes system messages which includes the template
11803 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11804 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11809 Bug31490 Turkish: ucfirst 'blah'
11820 Bug31490 Turkish: ucfirst 'ix'
11831 Bug31490 Turkish: lcfirst 'BLAH'
11842 Bug31490 Turkish: ucfırst (with a dotless i)
11848 <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>
11853 Bug31490 ucfırst (with a dotless i) with English language
11859 <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>
11864 Bug 26375: TOC with italics
11866 title=[[Main Page]]
11869 == ''Lost'' episodes ==
11871 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11873 <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>
11876 <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>
11881 Bug 26375: TOC with bold
11883 title=[[Main Page]]
11886 == '''should be bold''' then normal text ==
11888 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11890 <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>
11893 <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>
11898 Bug 33845: Headings become cursive in TOC when they contain an image
11900 title=[[Main Page]]
11903 == Image [[Image:foobar.jpg]] ==
11905 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11907 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11910 <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>
11915 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11917 title=[[Main Page]]
11920 == <blockquote>Quote</blockquote> ==
11922 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11924 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11927 <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>
11932 Unclosed tags in TOC
11934 title=[[Main Page]]
11938 <small>Hanc marginis exiguitas non caperet.</small>
11941 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11943 <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>
11946 <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>
11947 <p><small>Hanc marginis exiguitas non caperet.</small>
11953 Multiple tags in TOC
11956 == <i>Foo</i> <b>Bar</b> ==
11958 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11960 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11962 <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>
11963 <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>
11966 <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>
11967 <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>
11972 Tags with parameters in TOC
11975 == <sup class="in-h2">Hello</sup> ==
11977 == <sup class="a > b">Evilbye</sup> ==
11979 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11981 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11982 <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>
11985 <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>
11986 <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>
11991 span tags with directionality in TOC
11994 == <span dir="ltr">C++</span> ==
11996 == <span dir="rtl">זבנג!</span> ==
11998 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12000 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12002 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12004 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12006 <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>
12007 <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>
12008 <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>
12009 <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>
12010 <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>
12013 <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>
12014 <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>
12015 <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>
12016 <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>
12017 <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>
12024 == {{int:headline_sample}} ==
12028 Bug 32057: Title needed when expanding <h> nodes.
12030 title=[[Main Page]]
12034 <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>
12039 Strip marker in urlencode
12041 {{urlencode:x<nowiki/>y}}
12042 {{urlencode:x<nowiki/>y|wiki}}
12043 {{urlencode:x<nowiki/>y|path}}
12070 Strip marker in formatNum
12072 {{formatnum:1<nowiki/>2}}
12073 {{formatnum:1<nowiki/>2|R}}
12081 Strip marker in grammar
12085 {{grammar:elative|foo<nowiki/>bar}}
12092 Strip marker in padleft
12094 {{padleft:|2|x<nowiki/>y}}
12101 Strip marker in padright
12103 {{padright:|2|x<nowiki/>y}}
12110 Strip marker in anchorencode
12112 {{anchorencode:x<nowiki/>y}}
12119 nowiki inside link inside heading (bug 18295)
12121 ==[[foo|x<nowiki>y</nowiki>z]]==
12123 <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>
12128 new support for bdi element (bug 31817)
12130 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12132 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12137 Ignore pipe between table row attributes
12141 |- id=foo | style='color: red'
12149 <tr id="foo" style="color: red">
12156 Gallery override link with WikiLink (bug 34852)
12159 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12162 <ul class="gallery">
12163 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12164 <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>
12165 <div class="gallerytext">
12175 Gallery override link with absolute external link (bug 34852)
12178 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12181 <ul class="gallery">
12182 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12183 <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>
12184 <div class="gallerytext">
12194 Gallery override link with malicious javascript (bug 34852)
12197 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12200 <ul class="gallery">
12201 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12202 <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>
12203 <div class="gallerytext">
12213 Language parser function
12222 Padleft and padright as substr
12224 {{padleft:|3|abcde}}
12225 {{padright:|3|abcde}}
12233 Bug 34939 - Case insensitive link parsing ([HttP://])
12235 [HttP://MediaWiki.Org/]
12237 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12242 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12244 [HttP://MediaWiki.Org/ MediaWiki]
12246 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12251 Bug 34939 - Case insensitive link parsing (HttP://)
12253 HttP://MediaWiki.Org/
12255 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12260 ### Parsoids-specific tests
12261 ### Parsoid-PHP parser incompatibilities
12264 1. SOL-sensitive wikitext tokens as template-args
12278 #### The following section of tests are primarily to test
12279 #### wikitext escaping capabilities of Parsoid.
12280 #### A lot of the tests are disabled for the PHP parser either
12281 #### because of minor newline diffs or other reasons.
12282 #### As Parsoid serializer can handle newlines and other HTML
12283 #### more robustly, some of these tests might get reenabled
12284 #### for the PHP parser.
12286 #### --------------- Headings ---------------
12288 #### 1. Nested inside html <h1>=foo=</h1>
12289 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12290 #### 3. Nested inside html with wikitext split by html tags
12291 #### 4. No escape needed
12292 #### 5. Empty headings <h1></h1>
12293 #### 6. Heading chars in SOL context
12294 #### ----------------------------------------
12296 Headings: 0. Unnested
12298 <nowiki>=foo=</nowiki>
12300 <nowiki>=foo</nowiki>''a''=
12303 </p><p>=foo<i>a</i>=
12308 Headings: 1. Nested inside html
12312 =<nowiki>=foo=</nowiki>=
12313 ==<nowiki>=foo=</nowiki>==
12314 ===<nowiki>=foo=</nowiki>===
12315 ====<nowiki>=foo=</nowiki>====
12316 =====<nowiki>=foo=</nowiki>=====
12317 ======<nowiki>=foo=</nowiki>======
12328 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12333 <nowiki>*bar</nowiki>
12337 <nowiki>=bar=</nowiki>
12345 Headings: 3. Nested inside html with wikitext split by html tags
12349 =<nowiki>=</nowiki>'''bold'''foo==
12351 <h1>=<b>bold</b>foo=</h1>
12355 Headings: 4. No escaping needed (testing just h1 and h2)
12370 <h1><i>=</i>foo=</h1>
12375 Headings: 5. Empty headings
12379 =<nowiki></nowiki>=
12380 ==<nowiki></nowiki>==
12381 ===<nowiki></nowiki>===
12382 ====<nowiki></nowiki>====
12383 =====<nowiki></nowiki>=====
12384 ======<nowiki></nowiki>======
12395 Headings: 6. Heading chars in SOL context
12399 <!--cmt--><nowiki>=h1=</nowiki>
12405 #### --------------- Lists ---------------
12406 #### 0. Outside nests (*foo, etc.)
12407 #### 1. Nested inside html <ul><li>*foo</li></ul>
12408 #### 2. Inside definition lists
12409 #### 3. Only bullets at start should be escaped
12410 #### 4. No escapes needed
12411 #### 5. No unnecessary escapes
12412 #### 6. Escape bullets in SOL position
12413 #### 7. Escape bullets in a multi-line context
12414 #### ----------------------------------------
12417 Lists: 0. Outside nests
12419 <nowiki>*foo</nowiki>
12421 <nowiki>#foo</nowiki>
12429 Lists: 1. Nested inside html
12431 *<nowiki>*foo</nowiki>
12433 *<nowiki>#foo</nowiki>
12435 *<nowiki>:foo</nowiki>
12437 *<nowiki>;foo</nowiki>
12439 #<nowiki>*foo</nowiki>
12441 #<nowiki>#foo</nowiki>
12443 #<nowiki>:foo</nowiki>
12445 #<nowiki>;foo</nowiki>
12467 Lists: 2. Inside definition lists
12469 ;<nowiki>;foo</nowiki>
12471 ;<nowiki>:foo</nowiki>
12473 ;<nowiki>:foo</nowiki>
12476 :<nowiki>:foo</nowiki>
12491 Lists: 3. Only bullets at start of text should be escaped
12493 *<nowiki>*foo*bar</nowiki>
12495 *<nowiki>*foo</nowiki>''it''*bar
12499 <ul><li>*foo<i>it</i>*bar
12505 Lists: 4. No escapes needed
12517 <ul><li><i>foo</i>*bar
12519 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12524 Lists: 5. No unnecessary escapes
12526 * bar <span><nowiki>[[foo]]</nowiki></span>
12528 *=bar <span><nowiki>[[foo]]</nowiki></span>
12530 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12532 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12534 *=bar <span>foo]]</span>=
12536 <ul><li> bar <span>[[foo]]</span>
12538 <ul><li>=bar <span>[[foo]]</span>
12540 <ul><li>[[bar <span>[[foo]]</span>
12542 <ul><li>]]bar <span>[[foo]]</span>
12544 <ul><li>=bar <span>foo]]</span>=
12550 Lists: 6. Escape bullets in SOL position
12554 <!--cmt--><nowiki>*foo</nowiki>
12561 Lists: 7. Escape bullets in a multi-line context
12571 #### --------------- HRs ---------------
12572 #### 1. Single line
12573 #### -----------------------------------
12576 HRs: 1. Single line
12581 <nowiki>----</nowiki>
12583 <nowiki>=foo=</nowiki>
12585 <nowiki>*foo</nowiki>
12592 #### --------------- Tables ---------------
12593 #### 1a. Simple example
12594 #### 1b. No escaping needed (!foo)
12595 #### 1c. No escaping needed (|foo)
12596 #### 1d. No escaping needed (|}foo)
12598 #### 2a. Nested in td (<td>foo|bar</td>)
12599 #### 2b. Nested in td (<td>foo||bar</td>)
12600 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12602 #### 3a. Nested in th (<th>foo!bar</th>)
12603 #### 3b. Nested in th (<th>foo!!bar</th>)
12604 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12608 #### 4c. No escaping needed
12609 #### --------------------------------------
12612 Tables: 1a. Simple example
12623 Tables: 1b. No escaping needed
12632 Tables: 1c. No escaping needed
12641 Tables: 1d. No escaping needed
12650 Tables: 2a. Nested in td
12655 |<nowiki>foo|bar</nowiki>
12665 Tables: 2b. Nested in td
12670 |<nowiki>foo||bar</nowiki>
12671 |''it''<nowiki>foo||bar</nowiki>
12676 </td><td><i>it</i>foo||bar
12682 Tables: 2c. Nested in td -- no escaping needed
12697 Tables: 3a. Nested in th
12712 Tables: 3b. Nested in th
12717 !<nowiki>foo!!bar</nowiki>
12727 Tables: 3c. Nested in th -- no escaping needed
12742 Tables: 4a. Escape -
12750 |<nowiki>-bar</nowiki>
12754 <tr><th>-bar</th></tr>
12755 <tr><td>-bar</td></tr>
12760 Tables: 4b. Escape +
12768 |<nowiki>+bar</nowiki>
12772 <tr><th>+bar</th></tr>
12773 <tr><td>+bar</td></tr>
12778 Tables: 4c. No escaping needed
12792 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12793 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12797 #### --------------- Links ---------------
12798 #### 1. Quote marks in link text
12799 #### 2. Wikilinks: Escapes needed
12800 #### 3. Wikilinks: No escapes needed
12801 #### 4. Extlinks: Escapes needed
12802 #### 5. Extlinks: No escapes needed
12803 #### --------------------------------------
12805 Links 1. Quote marks in link text
12809 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12811 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12815 Links 2. WikiLinks: Escapes needed
12819 [[Foo|<nowiki>[Foobar]</nowiki>]]
12820 [[Foo|<nowiki>Foobar]</nowiki>]]
12821 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12822 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12823 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12824 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12825 [[Foo|<nowiki>|Bar</nowiki>]]
12827 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12828 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12829 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12830 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12831 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12832 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12833 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12837 Links 3. WikiLinks: No escapes needed
12844 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12845 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12849 Links 4. ExtLinks: Escapes needed
12853 [http://google.com <nowiki>[google]</nowiki>]
12854 [http://google.com <nowiki>google]</nowiki>]
12856 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12857 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12861 Links 5. ExtLinks: No escapes needed
12865 [http://google.com [google]
12867 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12870 #### --------------- Quotes ---------------
12871 #### 1. Quotes inside <b> and <i>
12872 #### 2. Link fragments separated by <i> and <b> tags
12873 #### 3. Link fragments inside <i> and <b>
12874 #### --------------------------------------
12876 1. Quotes inside <b> and <i>
12878 ''<nowiki>'foo'</nowiki>''
12879 ''<nowiki>''foo''</nowiki>''
12880 ''<nowiki>'''foo'''</nowiki>''
12881 '''<nowiki>'foo'</nowiki>'''
12882 '''<nowiki>''foo''</nowiki>'''
12883 '''<nowiki>'''foo'''</nowiki>'''
12884 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12892 <b>foo'<i>bar'</i>baz</b>
12897 2. Link fragments separated by <i> and <b> tags
12899 [[''foo''<nowiki>hello]]</nowiki>
12901 [['''foo'''<nowiki>hello]]</nowiki>
12903 <p>[[<i>foo</i>hello]]
12904 </p><p>[[<b>foo</b>hello]]
12909 2. Link fragments inside <i> and <b>
12910 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12911 this is one of the shortcomings of this format)
12913 ''[[foo''<nowiki>]]</nowiki>
12915 '''[[foo'''<nowiki>]]</nowiki>
12918 </p><p><b>[[foo</b>]]
12922 #### --------------- Paragraphs ---------------
12923 #### 1. No unnecessary escapes
12924 #### --------------------------------------
12927 1. No unnecessary escapes
12929 bar <span><nowiki>[[foo]]</nowiki></span>
12931 =bar <span><nowiki>[[foo]]</nowiki></span>
12933 [[bar <span><nowiki>[[foo]]</nowiki></span>
12935 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12937 <nowiki>=bar </nowiki><span>foo]]</span>=
12939 <p>bar <span>[[foo]]</span>
12940 </p><p>=bar <span>[[foo]]</span>
12941 </p><p>[[bar <span>[[foo]]</span>
12942 </p><p>]]bar <span>[[foo]]</span>
12943 </p><p>=bar <span>foo]]</span>=
12947 #### --------------- PRE ------------------
12948 #### 1. Leading space in SOL context should be escaped
12949 #### --------------------------------------
12951 1. Leading space in SOL context should be escaped
12955 <nowiki> foo</nowiki>
12956 <!--cmt--><nowiki> foo</nowiki>
12963 #### --------------- HTML tags ---------------
12966 #### 3. multi-line html tag
12967 #### --------------------------------------
12973 <a href="http://google.com">google</a>
12975 <a href="http://google.com">google</a>
12981 <nowiki><div>foo</div>
12982 <div style="color:red">foo</div></nowiki>
12984 <p><div>foo</div>
12985 <div style="color:red">foo</div>
12990 3. multi-line html tag
13002 #### --------------- Others ---------------
13006 <nowiki>foo</nowiki>
13008 <p><nowiki>foo</nowiki>
13013 Tag-like HTML structures are passed through as text
13035 </p><p>1<d e>f
13040 # This fails in the PHP parser (see bug 40670,
13041 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13043 Tag names followed by punctuation should not be recognized as tags
13049 <p><s.ome> text
13059 Try for 100% code coverage