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]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
181 * plain''italic''plain
182 * plain''italic''plain''italic''plain
183 * plain'''bold'''plain
184 * plain'''bold'''plain'''bold'''plain
185 * plain''italic''plain'''bold'''plain
186 * plain'''bold'''plain''italic''plain
187 * plain''italic'''bold-italic'''italic''plain
188 * plain'''bold''bold-italic''bold'''plain
189 * plain'''''bold-italic'''italic''plain
190 * plain'''''bold-italic''bold'''plain
191 * plain''italic'''bold-italic'''''plain
192 * plain'''bold''bold-italic'''''plain
193 * plain l'''italic''plain
194 * plain l''''bold''' plain
197 </li><li> plain<i>italic</i>plain
198 </li><li> plain<i>italic</i>plain<i>italic</i>plain
199 </li><li> plain<b>bold</b>plain
200 </li><li> plain<b>bold</b>plain<b>bold</b>plain
201 </li><li> plain<i>italic</i>plain<b>bold</b>plain
202 </li><li> plain<b>bold</b>plain<i>italic</i>plain
203 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
204 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
205 </li><li> plain<i><b>bold-italic</b>italic</i>plain
206 </li><li> plain<b><i>bold-italic</i>bold</b>plain
207 </li><li> plain<i>italic<b>bold-italic</b></i>plain
208 </li><li> plain<b>bold<i>bold-italic</i></b>plain
209 </li><li> plain l'<i>italic</i>plain
210 </li><li> plain l'<b>bold</b> plain
216 ### 2-quote opening sequence tests
219 Italics and bold: 2-quote opening sequence: (2,2)
229 Italics and bold: 2-quote opening sequence: (2,3)
239 Italics and bold: 2-quote opening sequence: (2,4)
249 Italics and bold: 2-quote opening sequence: (2,5)
259 ### 3-quote opening sequence tests
263 Italics and bold: 3-quote opening sequence: (3,2)
273 Italics and bold: 3-quote opening sequence: (3,3)
283 Italics and bold: 3-quote opening sequence: (3,4)
293 Italics and bold: 3-quote opening sequence: (3,5)
303 ### 4-quote opening sequence tests
307 Italics and bold: 4-quote opening sequence: (4,2)
317 Italics and bold: 4-quote opening sequence: (4,3)
327 Italics and bold: 4-quote opening sequence: (4,4)
337 Italics and bold: 4-quote opening sequence: (4,5)
347 ### 5-quote opening sequence tests
351 Italics and bold: 5-quote opening sequence: (5,2)
361 Italics and bold: 5-quote opening sequence: (5,3)
371 Italics and bold: 5-quote opening sequence: (5,4)
375 <p><i><b>foo'</b></i>
381 Italics and bold: 5-quote opening sequence: (5,5)
390 ### multiple quote sequences in a line
393 Italics and bold: multiple quote sequences: (2,4,2)
397 <p><i>foo'<b>bar</b></i>
403 Italics and bold: multiple quote sequences: (2,4,3)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,4)
417 <p><i>foo'<b>bar'</b></i>
423 Italics and bold: multiple quote sequences: (3,4,2)
433 Italics and bold: multiple quote sequences: (3,4,3)
442 ### other quote tests
445 Italics and bold: other quote tests: (2,3,5)
447 ''this is about '''foo's family'''''
449 <p><i>this is about <b>foo's family</b></i>
455 Italics and bold: other quote tests: (2,(3,3),2)
457 ''this is about '''foo's''' family''
459 <p><i>this is about <b>foo's</b> family</i>
465 Italics and bold: other quote tests: (3,2,3,2)
467 '''this is about ''foo'''s family''
469 <p><b>this is about <i>foo</i></b><i>s family</i>
475 Italics and bold: other quote tests: (3,2,3,3)
477 '''this is about ''foo'''s family'''
479 <p>'<i>this is about </i>foo<b>s family</b>
486 Italics and bold: other quote tests: (3,(2,2),3)
488 '''this is about ''foo's'' family'''
490 <p><b>this is about <i>foo's</i> family</b>
495 ### <nowiki> test cases
499 <nowiki> unordered list
501 <nowiki>* This is not an unordered list item.</nowiki>
503 <p>* This is not an unordered list item.
510 <nowiki>Lorem ipsum dolor
531 :There is not nowiki.
532 :There is <nowiki>nowiki</nowiki>.
534 #There is not nowiki.
535 #There is <nowiki>nowiki</nowiki>.
537 *There is not nowiki.
538 *There is <nowiki>nowiki</nowiki>.
540 <dl><dd>There is not nowiki.
541 </dd><dd>There is nowiki.
543 <ol><li>There is not nowiki.
544 </li><li>There is nowiki.
546 <ul><li>There is not nowiki.
547 </li><li>There is nowiki.
557 Comments and Indent-Pre
559 <!-- comment 1 --> asdf
561 <!-- comment 1 --> asdf
564 <!-- comment 1 --> asdf
565 <!-- comment 2 -->xyz
567 <!-- comment 1 --> asdf
568 <!-- comment 2 --> xyz
624 asdf<!-- comment 1 -->jkl
634 <!-- foo --> b <!-- bar -->
648 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
654 Comment semantics and delimiters
656 <!-- --><!----><!-----><!------>
662 Comment semantics and delimiters, redux
664 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
665 -- foo -- funky huh? ... -->
671 Comment semantics and delimiters: directors cut
673 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
674 everything starting with < followed by !-- until the first -- and > we see,
675 that wouldn't be valid XML however, since in XML -- has to terminate a comment
683 Comment semantics: nesting
685 <!--<!-- no, we're not going to do anything fancy here -->-->
692 Comment semantics: unclosed comment at end
694 <!--This comment will run out to the end of the document
700 Comment in template title
709 Comment on its own line post-expand
721 Comment on its own line post-expand with non-significant whitespace
733 ### paragraph wraping tests
747 Block tag on one line
759 Block tag on both lines
771 Multiple lines without block tags
789 ### Preformatted text
798 And a [[Main Page|link]]
804 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
809 Ident preformatting with inline content
820 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
837 Regression with preformatted in <center>
850 # Expected output in the following test is not really expected (there should be
851 # <pre> in the output) -- it's only testing for well-formedness.
853 Bug 6200: Preformatted in <blockquote>
866 <pre> with attributes (bug 3202)
868 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
870 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
875 <pre> with width attribute (bug 3202)
877 <pre width="8">Narrow screen goodies</pre>
879 <pre width="8">Narrow screen goodies</pre>
884 <pre> with forbidden attribute (bug 3202)
886 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
888 <pre width="8">Narrow screen goodies</pre>
893 <pre> with forbidden attribute values (bug 3202)
895 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
897 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
902 <nowiki> inside <pre> (bug 13238)
910 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
918 <pre><nowiki>Foo</nowiki></pre>
923 <nowiki> and <pre> preference (first one wins)
956 <nowiki></pre></nowiki>
963 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
971 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
981 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
993 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1014 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1018 {{echo| foo}}{{echo| bar}}
1023 {{echo|<!--cmt--> foo}}
1025 <!--cmt-->{{echo| foo}}
1027 {{echo|{{echo| }}bar}}
1045 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1082 Templates: Single-line variant of parameter whitespace stripping test
1088 {{echo|{{echo| a}}}}
1090 {{echo|1={{echo| a}}}}
1103 Templates: Strip whitespace from named parameters, but not positional ones
1131 ### Parsoid-centric tests for testing RT edge cases for pre
1135 1a. Indent-Pre and Comments
1148 1b. Indent-Pre and Comments
1161 1c. Indent-Pre and Comments
1174 2a. Indent-Pre and tables
1195 2b. Indent-Pre and tables
1211 3a. Indent-Pre and block tags (single-line html)
1219 <pre><span> foo </span>
1224 3b. Indent-Pre and block tags (pre-content on separate line)
1276 4. Multiple spaces at start-of-line
1295 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1299 HTML-pre: 1. embedded newlines
1335 HTML-pre: 2: indented text
1348 HTML-pre: 3: other wikitext
1369 ### Definition lists
1376 <dl><dt> name </dt><dd> Definition
1382 Definition list for indentation only
1386 <dl><dd> Indented text
1392 Definition list with no space
1396 <dl><dt>name</dt><dd>Definition
1402 Definition list with URL link
1404 ; http://example.com/ : definition
1406 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1412 Definition list with bracketed URL link
1414 ;[http://www.example.com/ Example]:Something about it
1416 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1422 Definition list with wikilink containing colon
1424 ; [[Help:FAQ]]: The least-read page on Wikipedia
1426 <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
1431 # At Brion's and JeLuF's insistence... :)
1433 Definition list with news link containing colon
1435 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1437 <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!
1443 Malformed definition list with colon
1445 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1447 <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
1453 Definition lists: colon in external link text
1455 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1457 <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
1463 Definition lists: colon in HTML attribute
1465 ;<b style="display: inline">bold</b>
1467 <dl><dt><b style="display: inline">bold</b>
1473 Definition lists: self-closed tag
1475 ;one<br/>two : two-line fun
1477 <dl><dt>one<br />two </dt><dd> two-line fun
1483 Bug 11748: Literal closing tags
1487 <dd>test test test test test</dd>
1489 <dd>test test test test test</dd>
1494 <dd>test test test test test</dd>
1496 <dd>test test test test test</dd>
1502 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1505 ; term : description
1511 <dl><dt> term </dt><dd> description
1522 Definition list with empty definition and following paragraph
1527 <dl><dt> term</dt><dd>
1534 Nested definition lists using html syntax
1551 Definition Lists: No nesting: Multiple dd's
1565 Definition Lists: Indentation: Regular
1581 Definition Lists: Indentation: Missing 1st level
1595 Definition Lists: Indentation: Multi-level indent
1599 <dl><dd><dl><dd><dl><dd>i3
1607 Definition Lists: Hacky use to indent tables
1614 should be left alone
1616 <dl><dd><dl><dd><table>
1621 </td></tr></table></dd></dl></dd></dl>
1623 should be left alone
1626 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1627 ## as an empty dt item. It also ignores all but the last ";" when followed
1628 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1629 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1632 ## Ex: ";;t2 ::d2" is transformed into:
1644 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1645 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1656 ## All Parsoid only definition list tests have this difference.
1658 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1659 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1662 Table / list interaction: indented table with lists in table contents
1684 </td></tr></table></dd></dl>
1689 Table / list interaction: lists nested in tables nested in indented lists
1714 </td></tr></table></dd></dl>
1722 Definition Lists: Nesting: Multi-level (Parsoid only)
1752 Definition Lists: Nesting: Test 2 (Parsoid only)
1772 Definition Lists: Nesting: Test 3 (Parsoid only)
1800 Definition Lists: Nesting: Test 4
1805 <dl><dd><dl><dd><dl><dt>t3
1815 Definition Lists: Mixed Lists: Test 1
1821 <dl><dd><dl><dt><ul><li> foo
1833 Definition Lists: Mixed Lists: Test 2
1847 Definition Lists: Mixed Lists: Test 3
1852 <ul><li><dl><dd><dl><dd><dl><dd> d1
1863 Definition Lists: Mixed Lists: Test 4
1868 <ul><li><dl><dt>d1 </dt><dd>d2
1869 </dd><dt>d3 </dt><dd>d4
1877 Definition Lists: Mixed Lists: Test 5
1892 Definition Lists: Mixed Lists: Test 6
1897 <ol><li><ul><li><dl><dd>d1
1909 Definition Lists: Mixed Lists: Test 7
1923 Definition Lists: Mixed Lists: Test 8
1939 Definition Lists: Mixed Lists: Test 9
1943 <ul><li><dl><dt>foo </dt><dd>bar
1951 Definition Lists: Mixed Lists: Test 10
1955 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1964 Definition Lists: Mixed Lists: Test 11
1969 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1974 <dl><dt>boo </dt><dd>baz
1985 Definition Lists: Weird Ones: Test 1
1987 *#;*::;; foo : bar (who uses this?)
1989 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2005 External links: non-bracketed
2007 Non-bracketed: http://example.com
2009 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2014 External links: numbered
2016 Numbered: [http://example.com]
2017 Numbered: [http://example.net]
2018 Numbered: [http://example.com]
2020 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2021 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2022 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2027 External links: specified text
2029 Specified text: [http://example.com link]
2031 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2036 External links: trail
2038 Linktrails should not work for external links: [http://example.com link]s
2040 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2045 External links: dollar sign in URL
2047 http://example.com/1$2345
2049 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2054 External links: dollar sign in URL (named)
2056 [http://example.com/1$2345]
2058 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2063 External links: open square bracket forbidden in URL (bug 4377)
2065 http://example.com/1[2345
2067 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2072 External links: open square bracket forbidden in URL (named) (bug 4377)
2074 [http://example.com/1[2345]
2076 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2081 External links: nowiki in URL link text (bug 6230)
2083 [http://example.com/ <nowiki>''example site''</nowiki>]
2085 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2090 External links: newline forbidden in text (bug 6230 regression check)
2092 [http://example.com/ first
2095 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2101 External links: Pipe char between url and text
2103 [http://example.com | link]
2105 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2110 External links: protocol-relative URL in brackets
2112 [//example.com/ Test]
2114 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2119 External links: protocol-relative URL in brackets without text
2123 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2128 External links: protocol-relative URL in free text is left alone
2132 <p>//example.com/Foo
2137 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2139 foo//example.com/Foo
2141 <p>foo//example.com/Foo
2148 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2150 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2155 External image from https
2157 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2159 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2164 Link to non-http image, no img tag
2166 Link to non-http image, no img tag: ftp://example.com/test.jpg
2168 <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>
2173 External links: terminating separator
2175 Terminating separator: http://example.com/thing,
2177 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2182 External links: intervening separator
2184 Intervening separator: http://example.com/1,2,3
2186 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2191 External links: old bug with URL in query
2193 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2195 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2200 External links: old URL-in-URL bug, mixed protocols
2202 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2204 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2209 External links: URL in text
2211 URL in text: [http://example.com http://example.com]
2213 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2218 External links: Clickable images
2220 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2222 <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>
2227 External links: raw ampersand
2229 Old & use: http://x&y
2231 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2236 External links: encoded ampersand
2238 Old & use: http://x&y
2240 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2245 External links: encoded equals (bug 6102)
2247 http://example.com/?foo=bar
2249 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2254 External links: [raw ampersand]
2256 Old & use: [http://x&y]
2258 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2263 External links: [encoded ampersand]
2265 Old & use: [http://x&y]
2267 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2272 External links: [encoded equals] (bug 6102)
2274 [http://example.com/?foo=bar]
2276 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2281 External links: [IDN ignored character reference in hostname; strip it right off]
2283 [http://e‌xample.com/]
2285 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2289 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2290 # Where an external link could easily circumvent the sanitization of the text of
2291 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2292 # test demands a higher standard. That's a bit strange.
2296 # http://example.com -> [http://example.com|http://example.com]
2297 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2299 # The first example is sanitized, but the second is not. Any security benefits
2300 # from this production are trivial to circumvent. Either remove this test and
2301 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2302 # the test accordingly.
2307 External links: IDN ignored character reference in hostname; strip it right off
2309 http://e‌xample.com/
2311 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2316 External links: www.jpeg.org (bug 554)
2320 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2325 External links: URL within URL (original bug 2)
2327 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2329 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2334 BUG 361: URL inside bracketed URL
2336 [http://www.example.com/foo http://www.example.com/bar]
2338 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2343 BUG 361: URL within URL, not bracketed
2345 http://www.example.com/foo?=http://www.example.com/bar
2347 <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>
2352 BUG 289: ">"-token in URL-tail
2354 http://www.example.com/<hello>
2356 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2361 BUG 289: literal ">"-token in URL-tail
2363 http://www.example.com/<b>html</b>
2365 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2370 BUG 289: ">"-token in bracketed URL
2372 [http://www.example.com/<hello> stuff]
2374 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2379 BUG 289: literal ">"-token in bracketed URL
2381 [http://www.example.com/<b>html</b> stuff]
2383 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2388 BUG 289: literal double quote at end of URL
2390 http://www.example.com/"hello"
2392 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2397 BUG 289: literal double quote in bracketed URL
2399 [http://www.example.com/"hello" stuff]
2401 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2406 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2408 [http://www.example.com test]
2410 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2415 External links: wiki links within external link (Bug 3695)
2417 [http://example.com [[wikilink]] embedded in ext link]
2419 <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>
2424 BUG 787: Links with one slash after the url protocol are invalid
2428 [http:/example.com title]
2430 <p>http:/example.com
2431 </p><p>[http:/example.com title]
2436 Bracketed external links with template-generated invalid target
2438 [{{echo|http:/example.com}} title]
2440 <p>[http:/example.com title]
2445 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2447 ''[http://example.com text'']
2448 [http://example.com '''text]'''
2449 ''Something [http://example.com in italic'']
2450 ''Something [http://example.com mixed''''', even bold]'''
2451 '''''Now [http://example.com both''''']
2453 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2454 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2455 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2456 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2457 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2463 Bug 4781: %26 in URL
2465 http://www.example.com/?title=AT%26T
2467 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2471 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2472 # % is actually legal in HTML5. Any change in output would need testing though.
2474 Bug 4781, 5267: %25 in URL
2476 http://www.example.com/?title=100%25_Bran
2478 <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>
2483 Bug 4781, 5267: %28, %29 in URL
2485 http://www.example.com/?title=Ben-Hur_%281959_film%29
2487 <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>
2493 Bug 4781: %26 in autonumber URL
2495 [http://www.example.com/?title=AT%26T]
2497 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2502 Bug 4781, 5267: %26 in autonumber URL
2504 [http://www.example.com/?title=100%25_Bran]
2506 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2511 Bug 4781, 5267: %28, %29 in autonumber URL
2513 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2515 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2521 Bug 4781: %26 in bracketed URL
2523 [http://www.example.com/?title=AT%26T link]
2525 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2530 Bug 4781, 5267: %26 in bracketed URL
2532 [http://www.example.com/?title=100%25_Bran link]
2534 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2539 Bug 4781, 5267: %28, %29 in bracketed URL
2541 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2543 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2548 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2550 Some [http://example.com/ pretty ''italics'' and stuff]!
2552 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2557 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2559 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2561 <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>
2566 External link containing double-single-quotes with no space separating the url from text in italics
2568 [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]].]
2570 <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>
2575 URL-encoding in URL functions (single parameter)
2577 {{localurl:Some page|amp=&}}
2579 <p>/index.php?title=Some_page&amp=&
2584 URL-encoding in URL functions (multiple parameters)
2586 {{localurl:Some page|q=?&=&}}
2588 <p>/index.php?title=Some_page&q=?&amp=&
2595 http://example.com/index.php?foozoid%5B%5D=bar
2597 http://example.com/index.php?foozoid[]=bar
2599 <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>
2600 </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>
2605 IPv6 urls (bug 21261)
2609 http://[2404:130:0:1000::187:2]/index.php
2611 <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>
2616 Non-extlinks in brackets
2625 [{{echo|foo}} ''bar'']
2626 [{{echo|foo}}l's] errand
2627 [{{echo|foo}}l's errand]
2649 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2651 Normal text. '''''Bold italic text.''''' Normal text.
2653 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2654 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2660 Unclosed and unmatched quotes
2662 '''''Bold italic text '''with bold deactivated''' in between.'''''
2664 '''''Bold italic text ''with italic deactivated'' in between.'''''
2668 ..spanning two paragraphs (should not work).'''
2670 '''Bold tag left open
2672 ''Italic tag left open
2676 <!-- Unmatching number of opening, closing tags: -->
2677 '''This year''''s election ''should'' beat '''last year''''s.
2679 ''Tom'''s car is bigger than ''Susan'''s.
2681 Plain ''italic'''s plain
2683 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2684 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2685 </p><p><b>Bold text..</b>
2686 </p><p>..spanning two paragraphs (should not work).
2687 </p><p><b>Bold tag left open</b>
2688 </p><p><i>Italic tag left open</i>
2690 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2691 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2692 </p><p>Plain <i>italic'</i>s plain
2699 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2702 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2703 # is the bare minimun required by the spec, see:
2704 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2706 A table with no data.
2712 # A table with nothing but a caption is invalid XHTML, we might want to render
2713 # this as <p>caption</p>
2715 A table with nothing but a caption
2723 </caption><tr><td></td></tr></table>
2728 Table td-cell syntax variations
2732 | foo bar foo || baz
2733 | style='color:red;' | baz
2734 | style='color:red;' || baz
2741 <td> foo bar foo </td>
2744 <td style="color:red;"> baz
2746 <td> style='color:red;' </td>
2774 Simple table but with multiple dashes for row wikitext
2792 Multiplication table
2794 {| border="1" cellpadding="2"
2795 |+Multiplication table
2797 ! × !! 1 !! 2 !! 3
2815 <table border="1" cellpadding="2">
2816 <caption>Multiplication table
2863 Accept "||" in table headings
2878 Accept "||" in indented table headings
2888 </th></tr></table></dd></dl>
2893 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2910 Accept "| !" at start of line in tables (ignore !-attribute)
2914 | !style="color:red" | bar
2926 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 +/-
2930 |style='color:red;'|+1
2931 |style='color:blue;'|-1
2943 <td style="color:red;">+1
2945 <td style="color:blue;">-1
2969 |rowspan=2| Cell 2, row 1 (and 2)
2980 <td rowspan="2"> Cell 2, row 1 (and 2)
2998 {| bgcolor=#ABCDEF border=2
3003 |the original table again
3011 <table bgcolor="#ABCDEF" border="2">
3019 <td>the original table again
3025 Invalid attributes in table cell (bug 1830)
3040 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3043 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3047 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3048 <td>]" onmouseover="alert(document.cookie)">test
3057 Indented table markup mixed with indented pre content (proposed in bug 6200)
3062 Text that should be rendered preformatted
3070 <pre>Text that should be rendered preformatted
3079 Template-generated table cell attributes and cell content
3087 <td style="color: red"> Foo
3093 Table with row followed by newlines and table heading
3110 # FIXME: Preserve the attribute properly (with an empty string as value) in
3111 # the PHP parser. Parsoid implements the behavior below.
3113 Table attributes with empty value
3129 Wikitext table with a lot of comments
3155 Plain link, capitalized
3159 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3164 Plain link, uncapitalized
3168 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3175 [[Main Page|The Main Page]]
3177 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3186 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3191 Broken link with fragment
3193 [[Zigzagzogzagzig#zug]]
3195 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3200 Special page link with fragment
3202 [[Special:Version#anchor]]
3204 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3209 Nonexistent special page link with fragment
3211 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3213 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3220 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3222 <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>
3229 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3231 <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>!!!
3242 Bug 43661: Piped links with identical prefixes
3244 [[prefixed article|prefixed articles with spaces]]
3246 [[prefixed article|prefixed articlesaoeu]]
3248 [[Main Page|Main Page test]]
3250 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3251 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3252 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3258 Link with HTML entity in suffix / tail
3260 [[Main Page]]", [[Main Page]]a
3262 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3267 Link with 3 brackets
3276 Piped link with 3 brackets
3278 [[[main page|the main page]]]
3280 <p>[[[main page|the main page]]]
3285 Link with multiple pipes
3287 [[Main Page|The|Main|Page]]
3289 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3296 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3298 <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>
3303 Piped link to namespace
3305 [[Meta:Disclaimers|The disclaimers]]
3307 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3314 [[Usually caused by a typo (oops}]]
3316 <p>[[Usually caused by a typo (oops}]]
3321 Link containing % (not as a hex sequence)
3325 <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>
3330 Link containing % as a single hex sequence interpreted to char
3334 <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>
3339 Link containing % as a double hex sequence interpreted to hex sequence
3343 <p>[[7%2525 Solution]]
3348 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3349 Example for such a section: == < ==
3351 [[%23%3c]][[%23%3e]]
3353 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3358 Link containing "<#" and ">#" as a hex sequences
3360 [[%3c%23]][[%3e%23]]
3362 <p>[[%3c%23]][[%3e%23]]
3367 Link containing double-single-quotes '' (bug 4598)
3369 [[Lista d''e paise d''o munno]]
3371 <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>
3376 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3378 Some [[Link|pretty ''italics'' and stuff]]!
3380 <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>!
3385 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3387 ''Some [[Link|pretty ''italics'' and stuff]]!
3389 <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>
3394 Link with double quotes in title part (literal) and alternate part (interpreted)
3396 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3400 [[''Pentecoste''|Pentecoste]]
3402 [[''Pentecoste''|''Pentecoste'']]
3404 <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>
3405 </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>
3406 </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>
3407 </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>
3412 Broken image links with HTML captions (bug 39700)
3414 [[File:Nonexistent|<script></script>]]
3415 [[File:Nonexistent|100px|<script></script>]]
3416 [[File:Nonexistent|<]]
3417 [[File:Nonexistent|a<i>b</i>c]]
3419 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3420 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3421 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3422 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3429 [[http://www.example.com]]
3431 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3436 Plain link to URL with link text
3438 [[http://www.example.com Link text]]
3440 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3445 Plain link to protocol-relative URL
3447 [[//www.example.com]]
3449 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3454 Plain link to protocol-relative URL with link text
3456 [[//www.example.com Link text]]
3458 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3463 Plain link to page with question mark in title
3469 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3470 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3475 # I'm fairly sure the expected result here is wrong.
3476 # We want these to be URL links, not pseudo-pages with URLs for titles....
3477 # However the current output is also pretty screwy.
3480 # I'm changing it to match the current output--it arguably makes more
3481 # sense in the light of the test above. Old expected result was:
3482 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3484 # But I think this test is bordering on "garbage in, garbage out" anyway.
3489 Piped link to URL: [[http://www.example.com|an example URL]]
3491 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3496 BUG 2: [[page|http://url/]] should link to page, not http://url/
3498 [[Main Page|http://url/]]
3500 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3505 BUG 337: Escaped self-links should be bold
3509 [[Bug462]] [[Bug462]]
3511 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3516 Self-link to section should not be bold
3520 [[Main Page#section]]
3522 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3533 Self-link to numeric title
3539 <p><strong class="selflink">0</strong>
3544 Link to numeric-equivalent title
3550 <p><a href="/wiki/00" title="00">00</a>
3555 <nowiki> inside a link
3557 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3559 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3564 Non-breaking spaces in title
3566 [[ Main Page ]]
3568 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3573 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3579 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3584 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3590 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3595 Internal link with en linktrail: no apostrophes (bug 27473)
3601 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3606 Internal link with ca linktrail with apostrophes (bug 27473)
3612 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3617 Internal link with kaa linktrail with apostrophes (bug 27473)
3623 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3628 ### Interwiki links (see maintenance/interwiki.sql)
3632 Inline interwiki link
3634 [[MeatBall:SoftSecurity]]
3636 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3641 Inline interwiki link with empty title (bug 2372)
3645 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3650 Interwiki link encoding conversion (bug 1636)
3652 *[[Wikipedia:ro:Olteniţa]]
3653 *[[Wikipedia:ro:Olteniţa]]
3655 <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>
3656 </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>
3662 Interwiki link with fragment (bug 2130)
3664 [[MeatBall:SoftSecurity#foo]]
3666 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3681 Double interlanguage link
3692 Interlanguage link, with prefix links
3704 Double interlanguage link, with prefix links (bug 8897)
3717 Parsoid-specific test: Wikilinks with should RT properly
3723 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3741 Broken br tag sanitization
3750 Incorrecly removing closing slashes from correctly formed XHTML
3752 <br style="clear:both;" />
3754 <p><br style="clear:both;" />
3759 Failing to transform badly formed HTML into correct XHTML
3761 <br style="clear: left;">
3762 <br style="clear: right;">
3763 <br style="clear: both;">
3765 <p><br style="clear: left;" />
3766 <br style="clear: right;" />
3767 <br style="clear: both;" />
3772 Handling html with a div self-closing tag
3781 <p><div title />
3785 <p><div title=bar />
3786 <div title=bar/>
3788 <div title="bar/"></div>
3794 Handling html with a br self-closing tag
3803 <p><br title="title" />
3804 <br title="title" />
3813 Horizontal ruler (should it add that extra space?)
3827 Horizontal ruler -- 4+ dashes render hr
3836 Horizontal ruler -- eats additional dashes on the same line
3845 Horizontal ruler -- does not collaps dashes on consecutive lines
3856 Horizontal ruler -- <4 dashes render as plain text
3865 Horizontal ruler -- Supports content following dashes on same line
3874 ### Block-level elements
3897 <ol><li>Numbered list
3914 ***#Number on level 4
3916 **#Number on level 3
3917 **#Number on level 3
3921 #** Level 3, but ordered
3924 <ol><li> with numbers
3926 <ul><li> and bullets
3928 <ol><li> and numbers
3930 </li><li>bullets again
3931 <ul><li>bullet level 2
3932 <ul><li>bullet level 3
3933 <ol><li>Number on level 4
3936 </li><li>bullet level 2
3937 <ol><li>Number on level 3
3938 </li><li>Number on level 3
3941 <ol><li>number level 2
3944 <ul><li><ul><li> Level 3
3948 <ol><li><ul><li><ul><li> Level 3, but ordered
3982 Nested lists 3 (first element empty)
3995 Nested lists 4 (first element empty)
4008 Nested lists 5 (both elements empty)
4021 Nested lists 6 (both elements empty)
4034 Nested lists 7 (skip initial nesting levels)
4038 <ul><li><ul><li><ul><li> foo
4046 Nested lists 8 (multiple nesting transitions)
4054 <ul><li><ul><li> bar
4064 1. Lists with start-of-line-transparent tokens before bullets: Comments
4078 2. Lists with start-of-line-transparent tokens before bullets: Template close
4090 Unbalanced closing block tags break a list
4091 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4101 </li></ul></div><div>
4107 Unbalanced closing non-block tags don't break a list
4108 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4118 <ul><li>a<span></span>
4124 List items are not parsed correctly following a <pre> block (bug 785)
4130 <ul><li> <pre>foo</pre>
4131 </li><li> <pre>bar</pre>
4138 List items from template
4149 * notSOL{{inner list}}
4168 List interrupted by empty line or heading
4178 <ul><li><ul><li> bar
4181 <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>
4182 <ul><li> Another list item
4188 Multiple list tags generated by templates
4207 Magic Word: {{CURRENTDAY}}
4216 Magic Word: {{CURRENTDAY2}}
4225 Magic Word: {{CURRENTDAYNAME}}
4234 Magic Word: {{CURRENTDOW}}
4243 Magic Word: {{CURRENTMONTH}}
4252 Magic Word: {{CURRENTMONTHABBREV}}
4254 {{CURRENTMONTHABBREV}}
4261 Magic Word: {{CURRENTMONTHNAME}}
4263 {{CURRENTMONTHNAME}}
4270 Magic Word: {{CURRENTMONTHNAMEGEN}}
4272 {{CURRENTMONTHNAMEGEN}}
4279 Magic Word: {{CURRENTTIME}}
4288 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4297 Magic Word: {{CURRENTYEAR}}
4306 Magic Word: {{FULLPAGENAME}}
4308 title=[[User:Ævar Arnfjörð Bjarmason]]
4312 <p>User:Ævar Arnfjörð Bjarmason
4317 Magic Word: {{FULLPAGENAMEE}}
4319 title=[[User:Ævar Arnfjörð Bjarmason]]
4323 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4328 Magic Word: {{NAMESPACE}}
4330 title=[[User:Ævar Arnfjörð Bjarmason]]
4339 Magic Word: {{NAMESPACEE}}
4341 title=[[User:Ævar Arnfjörð Bjarmason]]
4350 Magic Word: {{NAMESPACENUMBER}}
4352 title=[[User:Ævar Arnfjörð Bjarmason]]
4361 Magic Word: {{NUMBEROFFILES}}
4370 Magic Word: {{PAGENAME}}
4372 title=[[User:Ævar Arnfjörð Bjarmason]]
4376 <p>Ævar Arnfjörð Bjarmason
4381 Magic Word: {{PAGENAME}} with metacharacters
4383 title=[['foo & bar = baz']]
4387 <p><i>'foo & bar = baz'</i>
4392 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4394 title=[[*RFC 1234 http://example.com/]]
4398 <p>*RFC 1234 http://example.com/
4403 Magic Word: {{PAGENAMEE}}
4405 title=[[User:Ævar Arnfjörð Bjarmason]]
4409 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4414 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4416 title=[[*RFC 1234 http://example.com/]]
4420 <p>*RFC_1234_http://example.com/
4425 Magic Word: {{REVISIONID}}
4434 Magic Word: {{SCRIPTPATH}}
4443 Magic Word: {{SERVER}}
4447 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4452 Magic Word: {{SERVERNAME}}
4461 Magic Word: {{SITENAME}}
4470 Namespace 1 {{ns:1}}
4479 Namespace 1 {{ns:01}}
4488 Namespace 0 {{ns:0}} (bug 4783)
4496 Namespace 0 {{ns:00}} (bug 4783)
4504 Namespace -1 {{ns:-1}}
4513 Namespace User {{ns:User}}
4522 Namespace User talk {{ns:User_talk}}
4531 Namespace User talk {{ns:uSeR tAlK}}
4540 Namespace File {{ns:File}}
4549 Namespace File {{ns:Image}}
4558 Namespace (lang=de) Benutzer {{ns:User}}
4569 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4575 <p>Benutzer Diskussion
4583 {{urlencode:hi world?!}}
4584 {{urlencode:hi world?!|WIKI}}
4585 {{urlencode:hi world?!|PATH}}
4586 {{urlencode:hi world?!|QUERY}}
4599 Magic links: internal link to RFC (bug 479)
4603 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4608 Magic links: RFC (bug 479)
4612 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4617 Magic links: ISBN (bug 1937)
4621 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4626 Magic links: PMID incorrectly converts space to underscore
4630 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4639 Nonexistent template
4641 {{thistemplatedoesnotexist}}
4643 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4648 Template with invalid target containing tags
4650 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4652 <p>{{a<b>b</b>|foo|a=b|a = b}}
4657 Template with invalid target containing unclosed tag
4659 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4661 <p>{{a<b>|foo|a=b|a = b}}</b>
4668 This is a test template
4676 <p>This is a test template
4681 Template with explicit namespace
4685 <p>This is a test template
4693 This is a test template with parameter {{{param}}}
4699 {{paramtest|param=foo}}
4701 <p>This is a test template with parameter foo
4706 Template:paramtestnum
4712 Template unnamed parameter
4714 {{paramtestnum|Main Page|the main page}}
4716 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4721 Template:templatesimple
4727 Template:templateredirect
4729 #redirect [[Template:templatesimple]]
4733 Template:templateasargtestnum
4739 Template:templateasargtest
4741 {{template{{{templ}}}}}
4745 Template:templateasargtest2
4751 Template with template name as unnamed argument
4753 {{templateasargtestnum|templatesimple}}
4760 Template with template name as argument
4762 {{templateasargtest|templ=simple}}
4769 Template with template name as argument (2)
4771 {{templateasargtest2|templ=templatesimple}}
4778 Template:templateasargtestdefault
4780 {{{{{templ|templatesimple}}}}}
4790 Template with default value
4792 {{templateasargtestdefault}}
4799 Template with default value (value set)
4801 {{templateasargtestdefault|templ=templa}}
4810 {{templateredirect}}
4817 Template with argument in separate line
4819 {{ templateasargtest |
4827 Template with complex template as argument
4830 param ={{ templateasargtest |
4833 <p>This is a test template with parameter (test)
4838 Template with thumb image (with link in description)
4841 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4843 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>
4848 Template:complextemplate
4850 {{{1}}} {{paramtest|
4851 param ={{{param}}}}}
4855 Template with complex arguments
4858 param ={{ templateasargtest |
4859 templ = simple }}|[[Template:complextemplate|link]]}}
4861 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4866 BUG 553: link with two variables in a piped link
4869 |[[{{{1}}}|{{{2}}}]]
4874 <td>[[{{{1}}}|{{{2}}}]]
4880 Magic variable as template parameter
4882 {{paramtest|param={{SITENAME}}}}
4884 <p>This is a test template with parameter MediaWiki
4891 [[{{{param}}}|link]]
4895 Template parameter as link source
4897 {{linktest|param=Main Page}}
4899 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4904 Template-generated attribute string (k='v')
4906 <span {{attr_str|id|v1}}>bar</span>
4908 <p><span id="v1">bar</span>
4915 including another template, {{paramtest|param={{{arg}}}}}
4919 Template passing argument to another template
4921 {{paramtest2|arg='hmm'}}
4923 <p>including another template, This is a test template with parameter 'hmm'
4934 Template as link source
4938 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4956 Template infinite loop
4960 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4965 Template from main namespace
4984 BUG 529: Template with table, not included at beginning of line
5003 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5023 BUG 41: Template parameters shown as broken links
5032 Template with targets containing wikilinks
5036 {{[[{{echo|foo}}]]}}
5038 {{{{echo|[[foo}}]]}}
5040 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5041 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5049 ''None'' of '''this''' should be
5051 but rather passed unmodified
5055 # hmm, fix this or just deprecate msgnw and document its behavior?
5061 {{msgnw:MSGNW test}}
5063 <p>''None'' of '''this''' should be
5065 but rather passed unmodified
5073 {{int:youhavenewmessages|lots of money|not!}}
5075 <p>You have lots of money (not!).
5082 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5086 <includeonly> and <noinclude> being included
5097 <onlyinclude>Foo</onlyinclude>bar
5101 <onlyinclude> being included
5113 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5117 <onlyinclude> and <includeonly> being included
5126 <includeonly> and <noinclude> on a page
5128 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5135 Un-closed <noinclude>
5142 <onlyinclude> on a page
5144 <onlyinclude>Foo</onlyinclude>bar
5151 Un-closed <onlyinclude>
5158 Self-closed noinclude, includeonly, onlyinclude tags
5169 Unbalanced includeonly and noinclude tags
5173 |b</noinclude></noinclude>
5174 |c</noinclude></includeonly>
5175 |d</includeonly></includeonly>
5184 <td>c</includeonly>
5186 <td>d</includeonly></includeonly>
5192 Template:Includeonly section
5195 ==Includeonly section==
5201 Bug 6563: Edit link generation for section shown by <includeonly>
5203 {{includeonly section}}
5205 <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>
5206 <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>
5210 # Uses same input as the contents of [[Template:Includeonly section]]
5212 Bug 6563: Section extraction for section shown by <includeonly>
5217 ==Includeonly section==
5225 Bug 6563: Edit link generation for section suppressed by <includeonly>
5228 ==Includeonly section==
5232 <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>
5237 Bug 6563: Section extraction for section suppressed by <includeonly>
5242 ==Includeonly section==
5250 Un-closed <includeonly>
5257 ### <includeonly> and <noinclude> in attributes
5260 0. includeonly around the entire attribute
5262 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5264 <p><span id="v2">bar</span>
5269 1. includeonly in html attr key
5271 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5273 <p><span id="foo">bar</span>
5278 2. includeonly in html attr value
5280 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5281 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5283 <p><span id="v1">bar</span>
5284 <span id="v1">bar</span>
5289 3. includeonly in part of an attr value
5291 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5293 <p><span style="color:red;">bar</span>
5298 ### Testing parsing of templates where a template arg
5299 ### has the same name as the template itself.
5309 Templates: Template Name/Arg clash: 1. Use of positional param
5318 Templates: Template Name/Arg clash: 2. Use of named param
5327 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5336 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5340 Templates: 1. Simple use
5349 Templates: 2. Inside a block tag
5351 <div>{{echo|Foo}}</div>
5358 Templates: P-wrapping: 1a. Templates on consecutive lines
5369 Templates: P-wrapping: 1b. Templates on consecutive lines
5383 Templates: P-wrapping: 1c. Templates on consecutive lines
5386 {{echo|bar}} <div>baz</div>
5395 Templates: Inline Text: 1. Multiple tmeplate uses
5397 {{echo|Foo}}bar{{echo|baz}}
5404 Templates: Inline Text: 2. Back-to-back template uses
5406 {{echo|Foo}}{{echo|bar}}
5413 Templates: Block Tags: 1. Multiple template uses
5415 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5417 <div>Foo</div><div>bar</div><div>baz</div>
5422 Templates: Block Tags: 2. Back-to-back template uses
5424 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5426 <div>Foo</div><div>bar</div>
5431 Templates: Links: 1. Simple example
5433 {{echo|[[Foo|bar]]}}
5435 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5440 Templates: Links: 2. Generation of link href
5442 [[{{echo|Foo}}|bar]]
5444 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5449 Templates: Links: 3. Generation of part of a link href
5451 [[Fo{{echo|o}}|bar]]
5453 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5458 Templates: Links: 4. Multiple templates generating link href
5460 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5462 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5467 Templates: Links: 5. Generation of link text
5469 [[Foo|{{echo|bar}}]]
5471 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5476 Templates: Links: 5. Nested templates (only outermost template should be marked)
5478 {{echo|[[{{echo|Foo}}|bar]]}}
5480 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5485 Templates: HTML Tag: 1. Generation of HTML attr. key
5487 <div {{echo|style}}="color:red;">foo</div>
5489 <div style="color:red;">foo</div>
5494 Templates: HTML Tag: 2. Generation of HTML attr. value
5496 <div style={{echo|'color:red;'}}>foo</div>
5498 <div style="color:red;">foo</div>
5503 Templates: HTML Tag: 3. Generation of HTML attr key and value
5505 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5507 <div style="color:red;">foo</div>
5512 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5514 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5516 <div title="This is a long title with just one piece templated">foo</div>
5521 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5523 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5525 <div title="This is a long title with just one piece templated">foo</div>
5530 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5532 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5534 <div title="This is a long title with just one piece templated">foo</div>
5539 Templates: HTML Tables: 1. Generating start of a HTML table
5541 {{echo|<table><tr><td>foo</td>}}</tr></table>
5543 <table><tr><td>foo</td></tr></table>
5548 Templates: HTML Tables: 2a. Generating middle of a HTML table
5550 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5552 <table><tr><td>foo</td></tr></table>
5557 Templates: HTML Tables: 2b. Generating middle of a HTML table
5559 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5561 <table><tr><td>foo</td></tr></table>
5566 Templates: HTML Tables: 3. Generating end of a HTML table
5568 <table><tr>{{echo|<td>foo</td></tr></table>}}
5570 <table><tr><td>foo</td></tr></table>
5575 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5577 {{echo|<table>}}<tr><td>foo</td></tr></table>
5579 <table><tr><td>foo</td></tr></table>
5584 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5586 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5588 <table><tr><td>foo</td></tr></table>
5593 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5595 <table><tr>{{echo|<td>}}foo</td></tr></table>
5597 <table><tr><td>foo</td></tr></table>
5602 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5604 <table><tr><td>foo{{echo|</td>}}</tr></table>
5606 <table><tr><td>foo</td></tr></table>
5611 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5613 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5615 <table><tr><td>foo</td></tr></table>
5620 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5622 <table><tr><td>foo</td></tr>{{echo|</table>}}
5624 <table><tr><td>foo</td></tr></table>
5629 Templates: Wiki Tables: 1. Fostering of entire template content
5637 <tr><td></td></tr></table>
5642 Templates: Wiki Tables: 2. Fostering of partial template content
5652 <tr><td></td></tr></table>
5657 Templates: Wiki Tables: 3. td-content via multiple templates
5660 {{echo|{{pipe}}a}}{{echo|b}}
5671 Templates: Wiki Tables: 4. Templated tags, no content
5677 <tr><td></td></tr></table>
5682 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5696 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5710 Templates: Lists: Multi-line list-items via templates
5712 *{{echo|a {{nonexistent|
5714 *{{echo|b {{nonexistent|
5717 <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>
5718 </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>
5724 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5726 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5728 <p><i>ab</i>c<i>d</i>e
5733 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5734 (PHP parser generates misnested html)
5738 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5740 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5744 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5745 (PHP parser generates misnested html)
5749 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5752 <div><i>b</i>c<i>d</i></div>
5757 Templates: Ugly nesting: 4. Divs opened/closed across templates
5759 a<div>b{{echo|c</div>d}}e
5766 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5772 |{{echo|foo</table>}}
5776 <table about="#mwt1" typeof="mw:Object/Template ">
5777 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5778 bar</span><span about="#mwt1">
5783 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5793 <td>1. {{echo|foo </table>}}</td>
5795 <td>2. {{echo|baz </table>}}</td>
5808 <table about="#mwt1" typeof="mw:Object/Template">
5813 <td >1. foo </td></tr></tbody></table></td>
5815 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5816 </span><span about="#mwt1">
5818 abc</span><span about="#mwt1">
5819 </span><span about="#mwt1">
5820 </span><span about="#mwt1">
5821 </span><span about="#mwt1">
5822 </span><span about="#mwt1">
5824 xyz</span><span about="#mwt1">
5825 </span><span about="#mwt1">
5830 Templates: Ugly templates: 3. newline-only template parameter
5839 # This looks like a bug: a single newline triggers p/br for some reason.
5841 Templates: Ugly templates: 4. newline-only template parameter inconsistency
5852 Parser Functions: 1. Simple example
5861 Parser Functions: 2. Nested use (only outermost should be marked up)
5870 ### Pre-save transform tests
5873 pre-save transform: subst:
5879 This is a test template
5883 pre-save transform: normal template
5893 pre-save transform: nonexistent template
5897 {{thistemplatedoesnotexist}}
5899 {{thistemplatedoesnotexist}}
5904 pre-save transform: subst magic variables
5913 # This is bug 89, which I fixed. -- wtm
5915 pre-save transform: subst: templates with parameters
5919 {{subst:paramtest|param="something else"}}
5921 This is a test template with parameter "something else"
5927 <nowiki>'''not wiki'''</nowiki>
5931 pre-save transform: nowiki in subst (bug 1188)
5935 {{subst:nowikitest}}
5937 <nowiki>'''not wiki'''</nowiki>
5942 Template:commenttest
5944 This template has <!-- a comment --> in it.
5948 pre-save transform: comment in subst (bug 1936)
5952 {{subst:commenttest}}
5954 This template has <!-- a comment --> in it.
5958 pre-save transform: unclosed tag
5962 <nowiki>'''not wiki'''
5964 <nowiki>'''not wiki'''
5968 pre-save transform: mixed tag case
5972 <NOwiki>'''not wiki'''</noWIKI>
5974 <NOwiki>'''not wiki'''</noWIKI>
5978 pre-save transform: unclosed comment in <nowiki>
5982 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5984 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5990 <span onmouseover="alert('crap')">Oh no</span>
5994 (confirming safety of fix for subst bug 1936)
5996 {{Template:dangerous}}
5998 <p><span>Oh no</span>
6003 pre-save transform: comment containing gallery (bug 5024)
6007 <!-- <gallery>data</gallery> -->
6009 <!-- <gallery>data</gallery> -->
6013 pre-save transform: comment containing extension
6017 <!-- <tag>data</tag> -->
6019 <!-- <tag>data</tag> -->
6023 pre-save transform: comment containing nowiki
6027 <!-- <nowiki>data</nowiki> -->
6029 <!-- <nowiki>data</nowiki> -->
6033 pre-save transform: <noinclude> in subst (bug 3298)
6043 pre-save transform: <onlyinclude> in subst (bug 3298)
6055 {{<includeonly>subst:</includeonly>Includes}}
6059 Template:SafeSubstTest
6061 {{<includeonly>safesubst:</includeonly>Includes}}
6065 bug 22297: safesubst: works during PST
6069 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6075 bug 22297: safesubst: works during normal parse
6084 subst: does not work during normal parse
6088 <p>{{subst:Includes}}
6093 pre-save transform: context links ("pipe trick")
6097 [[Article (context)|]]
6100 [[Bar:Article (context)|]]
6101 [[:Bar:Article (context)|]]
6103 [[|Article (context)]]
6107 [[Article (context)|Article]]
6108 [[Bar:Article|Article]]
6109 [[:Bar:Article|Article]]
6110 [[Bar:Article (context)|Article]]
6111 [[:Bar:Article (context)|Article]]
6113 [[Article (context)]]
6114 [[Bar:X (Y) Z|X (Y) Z]]
6115 [[:Bar:X (Y) Z|X (Y) Z]]
6119 pre-save transform: context links ("pipe trick") with interwiki prefix
6123 [[interwiki:Article|]]
6124 [[:interwiki:Article|]]
6125 [[interwiki:Bar:Article|]]
6126 [[:interwiki:Bar:Article|]]
6128 [[interwiki:Article|Article]]
6129 [[:interwiki:Article|Article]]
6130 [[interwiki:Bar:Article|Bar:Article]]
6131 [[:interwiki:Bar:Article|Bar:Article]]
6135 pre-save transform: context links ("pipe trick") with parens in title
6137 pst title=[[Somearticle (context)]]
6141 [[Article (context)|Article]]
6145 pre-save transform: context links ("pipe trick") with comma in title
6147 pst title=[[Someplace, Somewhere]]
6150 [[Otherplace, Elsewhere|]]
6151 [[Otherplace, Elsewhere, Anywhere|]]
6153 [[Otherplace, Somewhere|Otherplace]]
6154 [[Otherplace, Elsewhere|Otherplace]]
6155 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6159 pre-save transform: context links ("pipe trick") with parens and comma
6161 pst title=[[Someplace (IGNORED), Somewhere]]
6164 [[Otherplace (place), Elsewhere|]]
6166 [[Otherplace, Somewhere|Otherplace]]
6167 [[Otherplace (place), Elsewhere|Otherplace]]
6171 pre-save transform: context links ("pipe trick") with comma and parens
6173 pst title=[[Who, me? (context)]]
6176 [[Me, Myself, and I (1937 song)|]]
6178 [[Yes, you. (context)|Yes, you.]]
6179 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6183 pre-save transform: context links ("pipe trick") with namespace
6185 pst title=[[Ns:Somearticle]]
6189 [[Ns:Article|Article]]
6193 pre-save transform: context links ("pipe trick") with namespace and parens
6195 pst title=[[Ns:Somearticle (context)]]
6199 [[Ns:Article (context)|Article]]
6203 pre-save transform: context links ("pipe trick") with namespace and comma
6205 pst title=[[Ns:Somearticle, Context, Whatever]]
6209 [[Ns:Article, Context, Whatever|Article]]
6213 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6215 pst title=[[Ns:Somearticle, Context (context)]]
6219 [[Ns:Article (context)|Article]]
6223 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6225 pst title=[[Ns:Somearticle (IGNORED), Context]]
6229 [[Ns:Article, Context|Article]]
6233 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6237 [[Article(context)|]]
6238 [[Bar:Article(context)|]]
6239 [[:Bar:Article(context)|]]
6240 [[|Article(context)]]
6244 [[Article(context)|Article]]
6245 [[Bar:Article(context)|Article]]
6246 [[:Bar:Article(context)|Article]]
6247 [[Article(context)]]
6249 [[:Bar:X(Y)Z|X(Y)Z]]
6253 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6257 [[Article (context)|]]
6258 [[Bar:Article (context)|]]
6259 [[:Bar:Article (context)|]]
6260 [[|Article (context)]]
6264 [[Article (context)|Article]]
6265 [[Bar:Article (context)|Article]]
6266 [[:Bar:Article (context)|Article]]
6267 [[Article (context)]]
6268 [[Bar:X (Y) Z|X (Y) Z]]
6269 [[:Bar:X (Y) Z|X (Y) Z]]
6273 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6277 [[Article(context)|]]
6278 [[Bar:Article(context)|]]
6279 [[:Bar:Article(context)|]]
6280 [[|Article(context)]]
6284 [[Article(context)|Article]]
6285 [[Bar:Article(context)|Article]]
6286 [[:Bar:Article(context)|Article]]
6287 [[Article(context)]]
6289 [[:Bar:X(Y)Z|X(Y)Z]]
6293 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6297 [[Article (context), context|]]
6298 [[Article (context),context|]]
6299 [[Bar:Article (context), context|]]
6300 [[Bar:Article (context),context|]]
6301 [[:Bar:Article (context), context|]]
6302 [[:Bar:Article (context),context|]]
6304 [[Article (context), context|Article]]
6305 [[Article (context),context|Article]]
6306 [[Bar:Article (context), context|Article]]
6307 [[Bar:Article (context),context|Article]]
6308 [[:Bar:Article (context), context|Article]]
6309 [[:Bar:Article (context),context|Article]]
6313 pre-save transform: trim trailing empty lines
6317 Empty lines are trimmed
6323 Empty lines are trimmed
6327 pre-save transform: Signature expansion
6332 * <noinclude>~~~</noinclude>
6333 * <includeonly>~~~</includeonly>
6334 * <onlyinclude>~~~</onlyinclude>
6336 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6337 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6338 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6339 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6344 pre-save transform: Signature expansion in nowiki tags (bug 93)
6350 <nowiki>~~~~</nowiki>
6352 <includeonly><nowiki>~~~~</nowiki></includeonly>
6354 <noinclude><nowiki>~~~~</nowiki></noinclude>
6356 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6358 {{subst:Foo}} shall be converted to FOO
6360 As well as inside noinclude/onlyinclude
6361 <noinclude>{{subst:Foo}}</noinclude>
6362 <onlyinclude>{{subst:Foo}}</onlyinclude>
6364 But not inside includeonly
6365 <includeonly>{{subst:Foo}}</includeonly>
6369 <nowiki>~~~~</nowiki>
6371 <includeonly><nowiki>~~~~</nowiki></includeonly>
6373 <noinclude><nowiki>~~~~</nowiki></noinclude>
6375 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6377 FOO shall be converted to FOO
6379 As well as inside noinclude/onlyinclude
6380 <noinclude>FOO</noinclude>
6381 <onlyinclude>FOO</onlyinclude>
6383 But not inside includeonly
6384 <includeonly>{{subst:Foo}}</includeonly>
6388 ### Message transform tests
6391 message transform: magic variables
6401 message transform: should not transform wiki markup
6411 message transform: <noinclude> in transcluded template (bug 4926)
6421 message transform: <onlyinclude> in transcluded template (bug 4926)
6431 {{#special:}} page name, known
6435 {{#special:Recentchanges}}
6437 Special:RecentChanges
6441 {{#special:}} page name with subpage, known
6445 {{#special:Recentchanges/param}}
6447 Special:RecentChanges/param
6451 {{#special:}} page name, unknown
6455 {{#special:foobarnonexistent}}
6457 No such special page
6461 {{#speciale:}} page name, known
6465 {{#speciale:Recentchanges}}
6467 Special:RecentChanges
6471 {{#speciale:}} page name with subpage, known
6475 {{#speciale:Recentchanges/param}}
6477 Special:RecentChanges/param
6481 {{#speciale:}} page name, unknown
6485 {{#speciale:foobarnonexistent}}
6487 No_such_special_page
6496 [[Image:foobar.jpg]]
6498 <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>
6505 [[Image:foobar.jpg|right]]
6507 <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>
6512 Simple image (using File: namespace, now canonical)
6516 <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>
6523 [[Image:foobar.jpg|right|Caption text]]
6525 <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>
6530 Image with empty attribute
6532 [[Image:foobar.jpg|right||Caption text]]
6534 <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>
6539 Image with link tails
6541 123[[Image:foobar.jpg]]456
6542 123[[Image:foobar.jpg|right]]456
6543 123[[Image:foobar.jpg|thumb]]456
6545 <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
6547 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
6548 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
6553 Image with multiple captions -- only last one is accepted
6555 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6557 <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>
6562 Image with width attribute at different positions
6564 [[Image:foobar.jpg|200px|right|Caption]]
6565 [[Image:foobar.jpg|right|200px|Caption]]
6566 [[Image:foobar.jpg|right|Caption|200px]]
6568 <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>
6569 <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>
6570 <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>
6575 Image with link parameter, wiki target
6577 [[Image:foobar.jpg|link=Target page]]
6579 <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>
6584 Image with link parameter, URL target
6586 [[Image:foobar.jpg|link=http://example.com/]]
6588 <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>
6593 Image with link parameter, wgExternalLinkTarget
6595 [[Image:foobar.jpg|link=http://example.com/]]
6597 wgExternalLinkTarget='foobar'
6599 <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>
6604 Image with link parameter, wgNoFollowLinks set to false
6606 [[Image:foobar.jpg|link=http://example.com/]]
6608 wgNoFollowLinks=false
6610 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6615 Image with link parameter, wgNoFollowDomainExceptions
6617 [[Image:foobar.jpg|link=http://example.com/]]
6619 wgNoFollowDomainExceptions='example.com'
6621 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6626 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6628 [[Image:foobar.jpg|link=http://example.com/|Title]]
6630 wgExternalLinkTarget='foobar'
6632 <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>
6637 Image with empty link parameter
6639 [[Image:foobar.jpg|link=]]
6641 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6646 Image with link parameter (wiki target) and unnamed parameter
6648 [[Image:foobar.jpg|link=Target page|Title]]
6650 <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>
6655 Image with link parameter (URL target) and unnamed parameter
6657 [[Image:foobar.jpg|link=http://example.com/|Title]]
6659 <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>
6664 Thumbnail image with link parameter
6666 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6668 <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>
6673 Image with frame and link
6675 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6677 <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>
6682 Image with frame and link and explicit alt
6684 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6686 <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>
6691 Image with wiki markup in implicit alt
6693 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6695 <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>
6700 Image with wiki markup in explicit alt
6702 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6704 <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>
6709 Link to image page- image page normally doesn't exists, hence edit link
6710 Add test with existing image page
6711 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6715 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6720 bug 18784 Link to non-existent image page with caption should use caption as link text
6722 [[:Image:test|caption]]
6724 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6729 Frameless image caption with a free URL
6731 [[Image:foobar.jpg|http://example.com]]
6733 <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>
6738 Thumbnail image caption with a free URL
6740 [[Image:foobar.jpg|thumb|http://example.com]]
6742 <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>
6747 Thumbnail image caption with a free URL and explicit alt
6749 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6751 <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>
6756 BUG 1887: A ISBN with a thumbnail
6758 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6760 <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>
6765 BUG 1887: A RFC with a thumbnail
6767 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6769 <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>
6774 BUG 1887: A mailto link with a thumbnail
6776 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6778 <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>
6782 # Pending resolution to bug 368
6784 BUG 648: Frameless image caption with a link
6786 [[Image:foobar.jpg|text with a [[link]] in it]]
6788 <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>
6793 BUG 648: Frameless image caption with a link (suffix)
6795 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6797 <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>
6802 BUG 648: Frameless image caption with an interwiki link
6804 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6806 <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>
6811 BUG 648: Frameless image caption with a piped interwiki link
6813 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6815 <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>
6820 Escape HTML special chars in image alt text
6822 [[Image:foobar.jpg|& < > "]]
6824 <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>
6829 BUG 499: Alt text should have Ӓ, not &1234;
6831 [[Image:foobar.jpg|♀]]
6833 <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>
6838 Broken image caption with link
6840 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6842 <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.
6847 Image caption containing another image
6849 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6851 <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>
6856 Image caption containing a newline
6858 [[Image:Foobar.jpg|This
6861 <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>
6867 Bug 3090: External links other than http: in image captions
6869 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6871 <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>
6878 [[Image:foobar.jpg|a|class=b]]
6880 <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>
6887 #REDIRECT [[File:Barfoo.jpg]]
6893 [[Image:Barfoo.jpg]]
6895 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6900 Missing image with uploads disabled
6904 [[Image:Foobaz.jpg]]
6906 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6915 Subpage test/subpage
6923 subpage title=[[Subpage test]]
6927 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6932 Subpage noslash link
6934 subpage title=[[Subpage test]]
6938 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6947 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6952 BUG 561: {{/Subpage}}
6954 subpage title=[[Page]]
6958 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6966 Category:MediaWiki User's Guide
6974 [[:Category:MediaWiki User's Guide]]
6976 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6985 [[Category:MediaWiki User's Guide]]
6987 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6991 PAGESINCATEGORY invalid title fatal (r33546 fix)
6993 {{PAGESINCATEGORY:<bogus>}}
7000 Category with different sort key
7004 [[Category:MediaWiki User's Guide|Foo]]
7006 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7010 Category with identical sort key
7014 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7016 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7020 Category with empty sort key
7025 [[Category:MediaWiki User's Guide|]]
7027 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7031 Category with empty sort key and parentheses
7036 [[Category:Foo (bar)|]]
7038 [[Category:Foo (bar)|Foo]]
7042 Category with link tail
7047 123[[Category:Foo]]456
7049 123[[Category:Foo]]456
7053 Category with template
7058 [[Category:{{echo|Foo}}]]
7060 [[Category:{{echo|Foo}}]]
7064 Category with template in sort key
7069 [[Category:Foo|{{echo|Bar}}]]
7071 [[Category:Foo|{{echo|Bar}}]]
7075 Category with template in sort key and title
7080 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7082 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7086 Category / paragraph interactions
7088 Foo [[Category:Baz]] Bar
7090 Foo [[Category:Baz]]
7098 [[Category:Baz]] Bar
7111 {{echo|[[Category:Baz]]}}
7126 ### Inter-language links
7129 Inter-language links
7135 [[zh:食品]]
7137 es:Alimento fr:Nourriture zh:食品
7141 Duplicate interlanguage links (bug 24502)
7157 Basic section headings
7164 ===Smaller headline===
7167 <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>
7170 <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>
7173 <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>
7179 Section headings with TOC
7182 === Subheadline 1 ===
7183 ===== Skipping a level =====
7184 ====== Skipping a level ======
7188 ===Another headline===
7190 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7192 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7194 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7196 <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>
7198 <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>
7205 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7207 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7212 <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>
7213 <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>
7214 <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>
7215 <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>
7216 <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>
7219 <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>
7223 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7225 Handling of sections up to level 6 and beyond
7228 == Level 2 Heading==
7229 === Level 3 Heading===
7230 ==== Level 4 Heading====
7231 ===== Level 5 Heading=====
7232 ====== Level 6 Heading======
7233 ======= Level 7 Heading=======
7234 ======== Level 8 Heading========
7235 ========= Level 9 Heading=========
7236 ========== Level 10 Heading==========
7238 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7240 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7242 <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>
7244 <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>
7246 <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>
7248 <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>
7250 <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>
7251 <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>
7252 <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>
7253 <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>
7254 <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>
7267 <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>
7268 <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>
7269 <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>
7270 <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>
7271 <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>
7272 <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>
7273 <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>
7274 <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>
7275 <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>
7276 <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>
7281 TOC regression (bug 9764)
7285 ==== title 1.1.1 ====
7290 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7292 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7294 <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>
7296 <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>
7299 <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>
7302 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7304 <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>
7309 <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>
7310 <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>
7311 <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>
7312 <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>
7313 <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>
7314 <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>
7319 TOC with wgMaxTocLevel=3 (bug 6204)
7325 ==== title 1.1.1 ====
7330 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7332 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7334 <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>
7335 <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>
7338 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7340 <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>
7345 <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>
7346 <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>
7347 <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>
7348 <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>
7349 <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>
7350 <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>
7355 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7361 ====Section 1.1.1====
7362 ====Section 1.1.1.1====
7365 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7367 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7369 <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>
7372 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7375 <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>
7376 <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>
7377 <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>
7378 <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>
7379 <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>
7385 Resolving duplicate section names
7390 <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>
7391 <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>
7396 Resolving duplicate section names with differing case (bug 10721)
7401 <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>
7402 <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>
7414 Template with sections, __NOTOC__
7421 <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>
7422 <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>
7423 <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>
7424 <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>
7429 __NOEDITSECTION__ keyword
7435 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7436 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7441 Link inside a section heading
7443 ==Section with a [[Main Page|link]] in it==
7445 <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>
7450 TOC regression (bug 12077)
7457 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7459 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7461 <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>
7464 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7467 <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>
7468 <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>
7469 <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>
7474 BUG 1219 URL next to image (good)
7476 http://example.com [[Image:foobar.jpg]]
7478 <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>
7483 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7486 The line above must have a trailing space!
7489 But just in case it doesn't...
7491 <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>
7492 <p>The line above must have a trailing space!
7494 <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>
7495 <p>But just in case it doesn't...
7500 Header with special characters (bug 25462)
7502 The tooltips shall not show entities to the user (ie. be double escaped)
7519 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7521 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7523 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7524 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7525 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7526 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7527 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7530 <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>
7533 <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>
7536 <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>
7539 <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>
7542 <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>
7548 Headers with excess '=' characters
7549 (Are similar tests necessary beyond the 1st level?)
7553 =''italic'' heading==
7554 ==''italic'' heading=
7556 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7558 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7559 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7560 <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>
7561 <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>
7564 <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>
7565 <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>
7566 <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>
7567 <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>
7572 BUG 1219 URL next to image (broken)
7574 http://example.com[[Image:foobar.jpg]]
7576 <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>
7581 Bug 1186 news: in the middle of text
7583 http://en.wikinews.org/wiki/Wikinews:Workplace
7585 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7591 Namespaced link must have a title
7600 Namespaced link must have a title (bad fragment version)
7602 [[Project:#fragment]]
7604 <p>[[Project:#fragment]]
7610 ### HTML tags and HTML attributes
7614 div with no attributes
7616 <div>HTML rocks</div>
7618 <div>HTML rocks</div>
7623 div with double-quoted attribute
7625 <div id="rock">HTML rocks</div>
7627 <div id="rock">HTML rocks</div>
7632 div with single-quoted attribute
7634 <div id='rock'>HTML rocks</div>
7636 <div id="rock">HTML rocks</div>
7641 div with unquoted attribute
7643 <div id=rock>HTML rocks</div>
7645 <div id="rock">HTML rocks</div>
7650 div with illegal double attributes
7652 <div id="a" id="b">HTML rocks</div>
7654 <div id="b">HTML rocks</div>
7658 # FIXME: produce empty string instead of "class" in the PHP parser, following
7661 div with empty attribute value, space before equals
7665 <div class =>HTML rocks</div>
7667 <div class="">HTML rocks</div>
7671 # The PHP parser escapes the opening brace to { for some reason, so
7672 # disabled this test for it.
7674 div with braces in attribute value
7678 <div title="{}">Foo</div>
7680 <div title="{}">Foo</div>
7683 # This it very inconsistent in the PHP parser: it returns
7684 # class="class" if there is a space between the name and the equal sign (see
7685 # 'div with empty attribute value, space before equals'), but strips the
7686 # attribute completely if the space is missing. We hope that not much content
7687 # depends on this, so are implementing the behavior below in Parsoid for
7688 # consistencies' sake. Disabled for the PHP parser.
7689 # FIXME: fix this behavior in the PHP parser?
7691 div with empty attribute value, no space before equals
7695 <div class=>HTML rocks</div>
7697 <div class="">HTML rocks</div>
7702 HTML multiple attributes correction
7704 <p class="error" class="awesome">Awesome!</p>
7706 <p class="awesome">Awesome!</p>
7711 Table multiple attributes correction
7714 !+ class="error" class="awesome"| status
7719 <th class="awesome"> status
7727 <DIV ID="x">HTML ROCKS</DIV>
7729 <div id="x">HTML ROCKS</div>
7734 Non-ASCII pseudo-tags are rendered as text
7743 Pseudo-tag with URL 'name' renders as url link
7745 <http://example.com/>
7747 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7752 text with amp in the middle of nowhere
7756 <p>Remember AT&T?
7761 text with character entity: eacute
7763 I always thought é was a cute letter.
7765 <p>I always thought é was a cute letter.
7770 text with undefined character entity: xacute
7772 I always thought &xacute; was a cute letter.
7774 <p>I always thought &xacute; was a cute letter.
7786 [[Media:Foobar.jpg]]
7788 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7793 Media link with text
7795 [[Media:Foobar.jpg|A neat file to look at]]
7797 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7801 # FIXME: this is still bad HTML tag nesting
7803 Media link with nasty text
7804 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7806 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7808 <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>
7813 Media link to nonexistent file (bug 1702)
7815 [[Media:No such.jpg]]
7817 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7822 Image link to nonexistent file (bug 1850 - good)
7824 [[Image:No such.jpg]]
7826 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7831 :Image link to nonexistent file (bug 1850 - bad)
7833 [[:Image:No such.jpg]]
7835 <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>
7842 Character reference normalization in link text (bug 1938)
7844 [[Main Page|this&that]]
7846 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7853 Test for unicode normalization
7855 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7859 (bug 19451) Links should refer to the normalized form.
7867 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7868 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7869 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7870 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7871 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7876 Empty attribute crash test (bug 2067)
7878 <font color="">foo</font>
7880 <p><font color="">foo</font>
7885 Empty attribute crash test single-quotes (bug 2067)
7887 <font color=''>foo</font>
7889 <p><font color="">foo</font>
7894 Attribute test: equals, then nothing
7896 <font color=>foo</font>
7903 Attribute test: unquoted value
7905 <font color=x>foo</font>
7907 <p><font color="x">foo</font>
7912 Attribute test: unquoted but illegal value (hash)
7914 <font color=#x>foo</font>
7916 <p><font color="#x">foo</font>
7921 Attribute test: no value
7923 <font color>foo</font>
7925 <p><font color="color">foo</font>
7930 Bug 2095: link with three closing brackets
7934 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7939 Bug 2095: link with pipe and three closing brackets
7943 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7948 Bug 2095: link with pipe and three closing brackets, version 2
7950 [[Main Page|[http://example.com/]]]
7952 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7962 Template:Dangerous attribute
7964 " onmouseover="alert(document.cookie)
7968 Template:Dangerous style attribute
7970 border-size: expression(alert(document.cookie))
7976 <div style="float: right; {{{1}}}">Magic div</div>
7980 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7982 <div title="{{test}}"></div>
7984 <div title="This is a test template"></div>
7989 Bug 2304: HTML attribute safety (dangerous template; 2309)
7991 <div title="{{dangerous attribute}}"></div>
7993 <div title=""></div>
7998 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8000 <div style="{{dangerous style attribute}}"></div>
8002 <div style="/* insecure input */"></div>
8007 Bug 2304: HTML attribute safety (safe parameter; 2309)
8009 {{div style|width: 200px}}
8011 <div style="float: right; width: 200px">Magic div</div>
8016 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8018 {{div style|width: expression(alert(document.cookie))}}
8020 <div style="/* insecure input */">Magic div</div>
8025 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8027 {{div style|"><script>alert(document.cookie)</script>}}
8029 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8034 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8036 {{div style|" ><script>alert(document.cookie)</script>}}
8038 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8043 Bug 2304: HTML attribute safety (link)
8045 <div title="[[Main Page]]"></div>
8047 <div title="[[Main Page]]"></div>
8052 Bug 2304: HTML attribute safety (italics)
8054 <div title="''foobar''"></div>
8056 <div title="''foobar''"></div>
8061 Bug 2304: HTML attribute safety (bold)
8063 <div title="'''foobar'''"></div>
8065 <div title="'''foobar'''"></div>
8071 Bug 2304: HTML attribute safety (ISBN)
8073 <div title="ISBN 1234567890"></div>
8075 <div title="ISBN 1234567890"></div>
8080 Bug 2304: HTML attribute safety (RFC)
8082 <div title="RFC 1234"></div>
8084 <div title="RFC 1234"></div>
8089 Bug 2304: HTML attribute safety (PMID)
8091 <div title="PMID 1234567890"></div>
8093 <div title="PMID 1234567890"></div>
8098 Bug 2304: HTML attribute safety (web link)
8100 <div title="http://example.com/"></div>
8102 <div title="http://example.com/"></div>
8107 Bug 2304: HTML attribute safety (named web link)
8109 <div title="[http://example.com/ link]"></div>
8111 <div title="[http://example.com/ link]"></div>
8116 Bug 3244: HTML attribute safety (extension; safe)
8118 <div style="<nowiki>background:blue</nowiki>"></div>
8120 <div style="background:blue"></div>
8125 Bug 3244: HTML attribute safety (extension; unsafe)
8127 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8129 <div style="/* insecure input */"></div>
8133 # More MSIE fun discovered by Tom Gilder
8136 MSIE CSS safety test: spurious slash
8138 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8140 <div style="/* insecure input */">evil</div>
8145 MSIE CSS safety test: hex code
8147 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8149 <div style="/* insecure input */">evil</div>
8154 MSIE CSS safety test: comment in url
8156 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8158 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8163 MSIE CSS safety test: comment in expression
8165 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8167 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8173 Table attribute legitimate extension
8176 !+ style="<nowiki>color:blue</nowiki>"| status
8181 <th style="color:blue"> status
8187 Table attribute safety
8190 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8195 <th style="/* insecure input */"> status
8201 CSS line continuation 1
8203 <div style="background-image: u\ rl(test.jpg);"></div>
8205 <div style="/* insecure input */"></div>
8210 CSS line continuation 2
8212 <div style="background-image: u\ rl(test.jpg); "></div>
8214 <div style="/* insecure input */"></div>
8225 Expansion of multi-line templates in attribute values (bug 6255)
8227 <div style="background: {{identity|#00FF00}}">-</div>
8229 <div style="background: #00FF00">-</div>
8235 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8237 <div style="background:
8240 <div style="background: #00FF00">-</div>
8245 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8247 <div style="background: #00FF00">-</div>
8249 <div style="background: #00FF00">-</div>
8254 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8257 Parser hook: empty input
8270 Parser hook: empty input using terminated empty elements
8283 Parser hook: empty input using terminated empty elements (space before)
8296 Parser hook: basic input
8310 Parser hook: case insensitive
8324 Parser hook: case insensitive, redux
8337 Parser hook: nested tags
8341 <tag><tag></tag></tag>
8352 Parser hook: basic arguments
8354 <tag width=200 height = "100" depth = '50' square></tag>
8362 'square' => 'square',
8369 Parser hook: argument containing a forward slash (bug 5344)
8371 <tag filename='/tmp/bla'></tag>
8376 'filename' => '/tmp/bla',
8383 Parser hook: empty input using terminated empty elements (bug 2374)
8396 # </tag> should be output literally since there is no matching tag that begins it
8398 Parser hook: basic arguments using terminated empty elements (bug 2374)
8400 <tag width=200 height = "100" depth = '50' square/>
8410 'square' => 'square',
8419 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8423 Parser hook: static parser hook not inside a comment
8425 <statictag>hello, world</statictag>
8426 <statictag action=flush/>
8434 Parser hook: static parser hook inside a comment
8436 <!-- <statictag>hello, world</statictag> -->
8437 <statictag action=flush/>
8443 # Nested template calls; this case was broken by Parser.php rev 1.506,
8447 Template:One-parameter
8449 (My parameter is: {{{1}}})
8453 Template:Map-one-parameter
8459 Nested template calls
8461 {{Map-one-parameter|One-parameter|param}}
8463 <p>(My parameter is: param)
8472 Sanitizer: Closing of open tags
8474 <s></s><table></table>
8476 <s></s><table></table>
8481 Sanitizer: Closing of open but not closed tags
8490 Sanitizer: Closing of closed but not open tags
8499 Sanitizer: Closing of closed but not open table tags
8501 Table not started</td></tr></table>
8503 <p>Table not started</td></tr></table>
8508 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8510 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8512 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8517 Sanitizer: Validating the contents of the id attribute (bug 4515)
8523 Something, but definitely not <br id="9" />...
8527 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8531 <br id="foo" /><br id="foo" />
8533 Something need to be done. foo-2 ?
8537 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8540 <meta itemprop="hello" content="world">
8541 <meta http-equiv="refresh" content="5">
8542 <meta itemprop="hello" http-equiv="refresh" content="5">
8543 <link itemprop="hello" href="{{SERVER}}">
8544 <link rel="stylesheet" href="{{SERVER}}">
8545 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8548 <div itemscope="itemscope">
8549 <p> <meta itemprop="hello" content="world" />
8550 <meta http-equiv="refresh" content="5">
8551 <meta itemprop="hello" content="5" />
8553 <link itemprop="hello" href="http://Britney-Spears" />
8554 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8555 <link itemprop="hello" href="http://Britney-Spears" />
8561 Language converter: output gets cut off unexpectedly (bug 5757)
8565 this bit is safe: }-
8567 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8569 then we get cut off here: }-
8571 all additional text is vanished
8573 <p>this bit is safe: }-
8574 </p><p>but if we add a conversion instance: xxx
8575 </p><p>then we get cut off here: }-
8576 </p><p>all additional text is vanished
8581 Self closed html pairs (bug 5487)
8584 <center><font id="bug" />Centered text</center>
8585 <div><font id="bug2" />In div text</div>
8587 <center><font id="bug" />Centered text</center>
8588 <div><font id="bug2" />In div text</div>
8597 Punctuation: nbsp before exclamation
8601 <p>C'est grave !
8606 Punctuation: CSS !important (bug 11874)
8608 <div style="width:50% !important">important</div>
8610 <div style="width:50% !important">important</div>
8615 Punctuation: CSS ! important (bug 11874; with space after)
8617 <div style="width:50% ! important">important</div>
8619 <div style="width:50% ! important">important</div>
8625 HTML bullet list, closed tags (bug 5497)
8640 HTML bullet list, unclosed tags (bug 5497)
8657 HTML ordered list, closed tags (bug 5497)
8672 HTML ordered list, unclosed tags (bug 5497)
8689 HTML nested bullet list, closed tags (bug 5497)
8714 HTML nested bullet list, open tags (bug 5497)
8739 HTML nested ordered list, closed tags (bug 5497)
8764 HTML nested ordered list, open tags (bug 5497)
8789 HTML ordered list item with parameters oddity
8791 <ol><li id="fragment">One</li></ol>
8793 <ol><li id="fragment">One</li></ol>
8798 bug 5918: autonumbering
8800 [http://first/] [http://second] [ftp://ftp]
8804 [mailto:enclosed@mail.tld With target]
8806 [mailto:enclosed@mail.tld]
8808 mailto:inline@mail.tld
8810 <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>
8811 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8812 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8813 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8814 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8820 # Security and HTML correctness
8821 # From Nick Jenkins' fuzz testing
8825 Fuzz testing: Parser13
8840 Fuzz testing: Parser14
8845 <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>
8846 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8848 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8855 Fuzz testing: Parser14-table
8860 <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>
8861 <table style="__TOC__">
8867 # Known to produce bogus xml (extra </td>)
8869 Fuzz testing: Parser16
8889 Fuzz testing: Parser21
8892 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8897 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8907 Fuzz testing: Parser22
8909 http://===r:::https://b
8913 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8921 # Known to produce bad XML for now
8923 Fuzz testing: Parser24
8930 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8931 <br style="onmouseover='alert(document.cookie);' " />
8933 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8938 <u class="|">}}}} >
8939 <br style="onmouseover='alert(document.cookie);'" />
8941 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8950 # Note: the current result listed for this is not what the original one was,
8951 # but the original bug was JavaScript injection, which is fixed in any case.
8952 # It's not clear that the original result listed was any more correct than the
8953 # current one. Original result:
8956 # <li class="||">
8957 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8959 Fuzz testing: Parser25 (bug 6055)
8965 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8967 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8972 Fuzz testing: URL adjacent extension (with space, clean)
8975 http://example.com <nowiki>junk</nowiki>
8977 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8982 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8985 http://example.com<nowiki>junk</nowiki>
8987 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8992 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8995 http://example.com<pre>junk</pre>
8997 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9002 Fuzz testing: image with bogus manual thumbnail
9004 [[Image:foobar.jpg|thumbnail= ]]
9006 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9011 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9013 <pre dir=" "></pre>
9015 <pre dir=" "></pre>
9020 Parsing optional HTML elements (Bug 6171)
9025 <td> Some tabular data</td>
9026 <td> More tabular data ...
9027 <td> And yet som tabular data</td>
9033 <td> Some tabular data</td>
9034 <td> More tabular data ...
9035 </td><td> And yet som tabular data</td>
9042 Correct handling of <td>, <tr> (Bug 6171)
9047 <td> Some tabular data</td>
9048 <td> More tabular data ...</td>
9049 <td> And yet som tabular data</td>
9055 <td> Some tabular data</td>
9056 <td> More tabular data ...</td>
9057 <td> And yet som tabular data</td>
9065 Parsing crashing regression (fr:JavaScript)
9069 <p></body></x>
9074 Inline wiki vs wiki block nesting
9080 <p><b>Bold paragraph</b>
9081 </p><p>New wiki paragraph
9086 Inline HTML vs wiki block nesting
9094 <p><b>Bold paragraph</b>
9095 </p><p>New wiki paragraph
9099 # Original result was this:
9100 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9102 # While that might be marginally more intuitive, maybe, the six-apostrophe
9103 # construct is clearly pathological and the result stated here (which is what
9104 # the parser actually does) is about as reasonable as anything.
9106 Mixing markup for italics and bold
9109 '''bold''''''bold''bolditalics'''''
9111 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9119 Article for special page transclusion test
9123 Special page transclusion
9126 {{Special:Prefixindex/Xyzzyx}}
9128 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9133 Special page transclusion twice (bug 5021)
9136 {{Special:Prefixindex/Xyzzyx}}
9137 {{Special:Prefixindex/Xyzzyx}}
9139 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9140 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9145 Transclusion of default MediaWiki message
9147 {{MediaWiki:Mainpage}}
9154 Transclusion of nonexistent MediaWiki message
9156 {{MediaWiki:Mainpagexxx}}
9158 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9163 Transclusion of MediaWiki message with underscore
9165 {{MediaWiki:history_short}}
9172 Transclusion of MediaWiki message with space
9174 {{MediaWiki:history short}}
9181 Invalid header with following text
9191 Section extraction test (section 0)
9211 Section extraction test (section 1)
9233 Section extraction test (section 2)
9254 Section extraction test (section 3)
9274 Section extraction test (section 4)
9298 Section extraction test (section 5)
9318 Section extraction test (section 6)
9339 Section extraction test (section 7)
9359 Section extraction test (section 8)
9379 Section extraction test (section 9)
9400 Section extraction test (section 10)
9420 Section extraction test (nonexistent section 11)
9439 Section extraction test with bogus heading (section 1)
9444 ==bogus== not a legal section
9448 ==bogus== not a legal section
9452 Section extraction test with bogus heading (section 2)
9457 ==bogus== not a legal section
9464 Section extraction test with comment after heading (section 1)
9476 Section extraction test with comment after heading (section 2)
9488 Section extraction test with bogus <nowiki> heading (section 1)
9493 ==bogus== <nowiki>not a legal section</nowiki>
9497 ==bogus== <nowiki>not a legal section</nowiki>
9501 Section extraction test with bogus <nowiki> heading (section 2)
9506 ==bogus== <nowiki>not a legal section</nowiki>
9513 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9514 # instead of respecting commented sections
9516 Section extraction prefixed by comment (section 1)
9527 Section extraction prefixed by comment (section 2)
9538 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9539 # instead of respecting HTML-style headings
9541 Section extraction, mixed wiki and html (section 1)
9557 Section extraction, mixed wiki and html (section 2)
9573 # Formerly testing for bug 3342
9575 Section extraction, heading surrounded by <noinclude>
9579 <noinclude>==unmarked==</noinclude>
9585 # Test behaviour of bug 19910
9587 Sectiion with all-equals
9592 The line above must have a trailing space
9595 But just in case it doesn't...
9599 But just in case it doesn't...
9603 Section replacement test (section 0)
9634 Section replacement test (section 1)
9663 Section replacement test (section 2)
9693 Section replacement test (section 3)
9724 Section replacement test (section 4)
9751 Section replacement test (section 5)
9782 Section replacement test (section 6)
9812 Section replacement test (section 7)
9843 Section replacement test (section 8)
9874 Section replacement test (section 9)
9903 Section replacement test (section 10)
9933 Section replacement test with initial whitespace (bug 13728)
9937 Preformatted initial line
9941 Preformatted initial line
9948 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9960 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9973 Section extraction, <pre> around bogus header (bug 10309)
9990 Section replacement, <pre> around bogus header (bug 10309)
9992 noxml replace=2,"xxx"
10013 Handling of 
 in URLs
10017 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10024 5 quotes, code coverage +1 line
10031 Special:Search page linking.
10035 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10047 * {{BASEPAGENAMEE}}
10049 * {{TALKPAGENAMEE}}
10050 * {{SUBJECTPAGENAME}}
10051 * {{SUBJECTPAGENAMEE}}
10057 * {{SUBJECTSPACEE}}
10058 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10060 <ul><li> Parser test
10061 </li><li> Parser test
10062 </li><li> Parser test
10063 </li><li> Parser_test
10064 </li><li> Parser test
10065 </li><li> Parser_test
10066 </li><li> Talk:Parser test
10067 </li><li> Talk:Parser_test
10068 </li><li> Parser test
10069 </li><li> Parser_test
10076 </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>
10080 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10090 image4 |300px| centre
10091 image5.svg| http://///////
10096 <ul class="gallery">
10097 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10098 <div style="height: 150px;">Image1.png</div>
10099 <div class="gallerytext">
10102 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10103 <div style="height: 150px;">Image2.gif</div>
10104 <div class="gallerytext">
10109 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10110 <div style="height: 150px;">Image3</div>
10111 <div class="gallerytext">
10114 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10115 <div style="height: 150px;">Image4</div>
10116 <div class="gallerytext">
10121 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10122 <div style="height: 150px;">Image5.svg</div>
10123 <div class="gallerytext">
10124 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10128 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10129 <div style="height: 150px;">* image6</div>
10130 <div class="gallerytext">
10138 Gallery (with options)
10140 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10141 File:Nonexistant.jpg|caption
10142 File:Nonexistant.jpg
10143 image:foobar.jpg|some '''caption''' [[Main Page]]
10145 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10148 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10149 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10150 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10151 <div style="height: 70px;">Nonexistant.jpg</div>
10152 <div class="gallerytext">
10157 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10158 <div style="height: 70px;">Nonexistant.jpg</div>
10159 <div class="gallerytext">
10162 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10163 <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>
10164 <div class="gallerytext">
10165 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10169 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10170 <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>
10171 <div class="gallerytext">
10174 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10175 <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>
10176 <div class="gallerytext">
10186 Gallery with wikitext inside caption
10189 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10190 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10193 <ul class="gallery">
10194 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10195 <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>
10196 <div class="gallerytext">
10197 <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>
10201 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10202 <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>
10203 <div class="gallerytext">
10204 <p>This is a test template
10213 gallery (with showfilename option)
10215 <gallery showfilename>
10216 File:Nonexistant.jpg|caption
10217 File:Nonexistant.jpg
10218 image:foobar.jpg|some '''caption''' [[Main Page]]
10222 <ul class="gallery">
10223 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10224 <div style="height: 150px;">Nonexistant.jpg</div>
10225 <div class="gallerytext">
10226 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10231 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10232 <div style="height: 150px;">Nonexistant.jpg</div>
10233 <div class="gallerytext">
10234 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10238 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10239 <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>
10240 <div class="gallerytext">
10241 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10242 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10246 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10247 <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>
10248 <div class="gallerytext">
10249 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10258 Gallery (with namespace-less filenames)
10261 File:Nonexistant.jpg
10267 <ul class="gallery">
10268 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10269 <div style="height: 150px;">Nonexistant.jpg</div>
10270 <div class="gallerytext">
10273 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10274 <div style="height: 150px;">Nonexistant.jpg</div>
10275 <div class="gallerytext">
10278 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10279 <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>
10280 <div class="gallerytext">
10283 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10284 <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>
10285 <div class="gallerytext">
10293 HTML Hex character encoding (spells the word "JavaScript")
10295 JavaScript
10297 <p>JavaScript
10302 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10306 <p>&#xsee;&#XSEE;
10311 HTML Hex character encoding mixed case
10320 __FORCETOC__ override
10332 ISBN 978-0-1234-56 789
10334 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10339 ISBN followed by 5 spaces
10350 ISBN ISBN 1234567890
10352 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10357 Bug 22905: <abbr> followed by ISBN followed by </a>
10359 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10361 <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>
10370 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10375 Double RFC with a wiki link
10379 <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>
10388 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10393 Centre-aligned image
10395 [[Image:foobar.jpg|centre]]
10397 <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>
10404 [[Image:foobar.jpg|none]]
10406 <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>
10411 Width + Height sized image (using px) (height is ignored)
10413 [[Image:foobar.jpg|640x480px]]
10415 <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>
10420 Width-sized image (using px, no following whitespace)
10422 [[Image:foobar.jpg|640px]]
10424 <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>
10429 Width-sized image (using px, with following whitespace - test regression from r39467)
10431 [[Image:foobar.jpg|640px ]]
10433 <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>
10438 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10440 [[Image:foobar.jpg| 640px]]
10442 <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>
10447 Another italics / bold test
10455 # Note the results may be incorrect, as parserTest output included this:
10456 # XML error: Mismatched tag at byte 6120:
10457 # ...<dd> </dt></dl> </dd...
10465 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10476 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10478 Images with the "|" character in the comment
10480 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10482 <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>
10487 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10489 <html><script>alert(1);</script></html>
10491 <p><html><script>alert(1);</script></html>
10496 HTML with raw HTML ($wgRawHtml==true)
10500 <html><script>alert(1);</script></html>
10502 <p><script>alert(1);</script>
10507 Parents of subpages, one level up
10509 subpage title=[[Subpage test/L1/L2/L3]]
10513 <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>
10519 Parents of subpages, one level up, not named
10521 subpage title=[[Subpage test/L1/L2/L3]]
10525 <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>
10532 Parents of subpages, two levels up
10534 subpage title=[[Subpage test/L1/L2/L3]]
10540 <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
10541 </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>
10546 Parents of subpages, two levels up, without trailing slash or name.
10548 subpage title=[[Subpage test/L1/L2/L3]]
10557 Parents of subpages, two levels up, with lots of extra trailing slashes.
10559 subpage title=[[Subpage test/L1/L2/L3]]
10563 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10568 Definition list code coverage
10574 <dl><dt> title  </dt><dd> def
10575 </dd><dt> title </dt><dd> def
10576 </dd><dt>title</dt><dd> def
10582 Don't fall for the self-closing div
10584 <div>hello world</div/>
10586 <div>hello world</div>
10595 <p>[[:Template:Msg]]
10604 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10608 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10610 Always escape literal '>' in output, not just after '<'
10624 <p>This is a test template
10625 This is a test template
10637 Inclusion of !userCanEdit() content
10641 <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>
10647 Out-of-order TOC heading levels
10656 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10658 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10660 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10661 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10664 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10666 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10667 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10672 <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>
10673 <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>
10674 <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>
10675 <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>
10676 <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>
10677 <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>
10683 ISBN with a dummy number
10693 ISBN with space-delimited number
10697 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10703 ISBN with multiple spaces, no number
10722 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10723 </p><p>ISBN 12345678901
10729 ISBN with trailing year (bug 8110)
10731 ISBN 1-234-56789-0 - 2006
10733 ISBN 1 234 56789 0 - 2006
10735 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10736 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10744 {{anchorencode:foo bar©#%n}}
10746 <p>foo_bar.C2.A9.23.25n
10751 anchorencode trims spaces
10753 {{anchorencode: __pretty__please__}}
10760 anchorencode deals with links
10762 {{anchorencode: [[hello|world]] [[hi]]}}
10769 anchorencode deals with templates
10771 {{anchorencode: {{Foo}} }}
10778 anchorencode encodes like the TOC generator: (bug 18431)
10780 === _ +:.3A%3A&&]] ===
10781 {{anchorencode: _ +:.3A%3A&&]] }}
10784 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10785 <p>.2B:.3A.253A.26.26.5D.5D
10789 # Expected output in the following test is not necessarily expected (there
10790 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10791 # only testing for well-formedness.
10793 Bug 6200: blockquotes and paragraph formatting
10813 Bug 8293: Use of center tag ruins paragraph formatting
10835 ### Language variants related tests
10838 Self-link in language variants
10840 title=[[Dunav]] language=sr
10842 Both [[Dunav]] and [[Дунав]] are names for this river.
10844 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10850 Link to pages in language variants
10854 Main Page can be written as [[Маин Паге]]
10856 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10862 Multiple links to pages in language variants
10866 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10868 <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>.
10874 Simple template in language variants
10880 <p>This is a test template
10886 Template with explicit namespace in language variants
10892 <p>This is a test template
10898 Basic test for template parameter in language variants
10902 {{парамтест|param=foo}}
10904 <p>This is a test template with parameter foo
10910 Simple category in language variants
10914 [[Category:МедиаWики Усер'с Гуиде]]
10916 <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>
10933 Don't convert blue categorylinks to another variant (bug 33210)
10937 [[A]][[Category:分类]]
10939 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
10944 Stripping -{}- tags (language variants)
10948 Latin proverb: -{Ne nuntium necare}-
10950 <p>Latin proverb: Ne nuntium necare
10956 Prevent conversion with -{}- tags (language variants)
10958 language=sr variant=sr-ec
10960 Latinski: -{Ne nuntium necare}-
10962 <p>Латински: Ne nuntium necare
10968 Prevent conversion of text with -{}- tags (language variants)
10970 language=sr variant=sr-ec
10972 Latinski: -{Ne nuntium necare}-
10974 <p>Латински: Ne nuntium necare
10980 Prevent conversion of links with -{}- tags (language variants)
10982 language=sr variant=sr-ec
10986 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10992 -{}- tags within headlines (within html for parserConvert())
10994 language=sr variant=sr-ec
10998 <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>
11004 Explicit definition of language variant alternatives
11006 language=zh variant=zh-tw
11008 -{zh:China;zh-tw:Taiwan}-, not China
11010 <p>Taiwan, not China
11016 Conversion around HTML tags
11018 language=sr variant=sr-ec
11020 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11021 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11024 <span title="ЛаCтин">ски</span>
11030 Explicit session-wise language variant mapping (A flag and - flag)
11032 language=zh variant=zh-tw
11034 Taiwan is not China.
11035 But -{A|zh:China;zh-tw:Taiwan}- is China,
11036 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11037 and -{China}- is China.
11039 <p>Taiwan is not China.
11040 But Taiwan is Taiwan,
11041 (This should be stripped!)
11042 and China is China.
11047 Explicit session-wise language variant mapping (H flag for hide)
11049 language=zh variant=zh-tw
11051 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11054 <p>(This should be stripped!)
11060 Adding explicit conversion rule for title (T flag)
11062 language=zh variant=zh-tw showtitle
11064 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11067 <p>Should be stripped!
11072 Testing that changing the language variant here in the tests actually works
11074 language=zh variant=zh showtitle
11076 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11079 <p>Should be stripped!
11084 Recursive conversion of alt and title attrs shouldn't clear converter state
11086 language=zh variant=zh-cn showtitle
11088 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11089 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11093 Should be stripped<span title="Exclamation">!</span>
11098 Bug 24072: more test on conversion rule for title
11100 language=zh variant=zh-tw showtitle
11102 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11103 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11106 <p>This should be stripped!
11107 This won't take interferes with the title rule.
11112 Raw output of variant escape tags (R flag)
11114 language=zh variant=zh-tw
11116 Raw: -{R|zh:China;zh-tw:Taiwan}-
11118 <p>Raw: zh:China;zh-tw:Taiwan
11123 Nested using of manual convert syntax
11125 language=zh variant=zh-hk
11127 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11129 <p>Nested: Hello Hong Kong!
11134 Proper conversion of text in external links
11136 language=sr variant=sr-ec
11138 http://www.google.com
11139 gopher://www.google.com
11140 [http://www.google.com http://www.google.com]
11141 [gopher://www.google.com gopher://www.google.com]
11142 [https://www.google.com irc://www.google.com]
11143 [ftp://www.google.com www.google.com/ftp://dir]
11144 [//www.google.com www.google.com]
11146 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11147 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11148 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11149 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11150 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11151 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11152 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11157 Do not convert roman numbers to language variants
11159 language=sr variant=sr-ec
11163 <p>Фридрих IV је цар.
11168 Unclosed language converter markup "-{"
11179 Don't convert raw rule "-{R|=>}-" to "=>"
11196 Bug 529: Uncovered bullet
11206 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11207 # Templates in Wikipedia rely on this behavior, as tidy has always been
11208 # enabled there. These tests are normally run *without* tidy, so specify the
11209 # full output here.
11210 # To test realistic parsing behavior, apply a tidy-like transformation to both
11211 # the expected output and your parser's output.
11213 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11215 ******* Foo {{bullet}}
11217 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11230 Bug 529: Uncovered table already at line-start
11253 Bug 529: Uncovered bullet in parser function result
11255 * Foo {{lc:{{bullet}} }}
11264 Bug 5678: Double-parsed template argument
11266 {{lc:{{{1}}}|hello}}
11273 Bug 5678: Double-parsed template invocation
11275 {{lc:{{paramtest {{!}} param = hello }} }}
11277 <p>{{paramtest | param = hello }}
11282 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11285 title=[[Main Page]]
11287 {{PRVNÍVELKÉ:ěščř}}
11288 {{prvnívelké:ěščř}}
11308 Morwen/13: Unclosed link followed by heading
11315 <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>
11320 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11327 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11332 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11339 <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>
11354 Paragraphs inside divs (no extra line breaks)
11366 Paragraphs inside divs (extra line break on open)
11381 Paragraphs inside divs (extra line break on close)
11396 Paragraphs inside divs (extra line break on open and close)
11413 Nesting tags, paragraphs on lines which begin with <div>
11417 <div></div><strong>A
11426 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11428 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11432 <blockquote>Line one
11434 Line two</blockquote>
11436 <blockquote>Line one
11437 Line two</blockquote>
11442 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11449 Line two</blockquote>
11454 Line two</blockquote>
11459 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11463 <blockquote>Line one
11468 <blockquote>Line one
11476 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11495 Paragraphs inside blockquotes/divs (no extra line breaks)
11497 <blockquote><div>Line one
11499 Line two</div></blockquote>
11501 <blockquote><div>Line one
11502 Line two</div></blockquote>
11507 Paragraphs inside blockquotes/divs (extra line break on open)
11512 Line two</div></blockquote>
11517 Line two</div></blockquote>
11522 Paragraphs inside blockquotes/divs (extra line break on close)
11524 <blockquote><div>Line one
11527 </div></blockquote>
11529 <blockquote><div>Line one
11532 </div></blockquote>
11537 Paragraphs inside blockquotes/divs (extra line break on open and close)
11543 </div></blockquote>
11549 </div></blockquote>
11554 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11556 wgLinkHolderBatchSize=0
11562 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11563 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11564 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11569 Free external link invading image caption
11571 [[Image:Foobar.jpg|thumb|http://x|hello]]
11573 <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>
11578 Bug 15196: localised external link numbers
11582 [http://en.wikipedia.org/]
11584 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11589 Multibyte character in padleft
11591 {{padleft:-Hello|7|Æ}}
11598 Multibyte character in padright
11600 {{padright:Hello-|7|Æ}}
11609 wgUseDynamicDates=1
11613 <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>
11618 formatdate parser function
11620 {{#formatdate:2009-03-24}}
11622 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11627 formatdate parser function, with default format
11629 {{#formatdate:2009-03-24|mdy}}
11631 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11636 Linked date with autoformatting disabled
11638 wgUseDynamicDates=false
11642 <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>
11647 Spacing of numbers in formatted dates
11649 {{#formatdate:January 15}}
11651 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11656 Spacing of numbers in formatted dates (linked)
11658 wgUseDynamicDates=true
11662 <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>
11667 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
11669 language=nl title=[[MediaWiki:Common.css]]
11671 {{#formatdate:2009-03-24|dmy}}
11673 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11686 Edit comment with link
11690 I like the [[Main Page]] a lot
11692 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11696 Edit comment with link and link text
11700 I like the [[Main Page|best pages]] a lot
11702 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11706 Edit comment with link and link text with suffix
11710 I like the [[Main Page|best page]]s a lot
11712 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11716 Edit comment with section link (non-local, eg in history list)
11718 comment title=[[Main Page]]
11720 /* External links */ removed bogus entries
11722 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11726 Edit comment with section link and text before it (non-local, eg in history list)
11728 comment title=[[Main Page]]
11730 pre-comment text /* External links */ removed bogus entries
11732 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>
11736 Edit comment with section link (local, eg in diff view)
11738 comment local title=[[Main Page]]
11740 /* External links */ removed bogus entries
11742 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11746 Edit comment with subpage link (bug 14080)
11750 title=[[Subpage test]]
11752 Poked at a [[/subpage]] here...
11754 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11758 Edit comment with subpage link and link text (bug 14080)
11762 title=[[Subpage test]]
11764 Poked at a [[/subpage|neat little page]] here...
11766 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11770 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11773 title=[[Subpage test]]
11775 Poked at a [[/subpage]] here...
11777 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11781 Edit comment with bare anchor link (local, as on diff)
11785 title=[[Main Page]]
11789 <a href="#section">#section</a>
11793 Edit comment with bare anchor link (non-local, as on history)
11796 title=[[Main Page]]
11800 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11804 Anchor starting with underscore
11808 <p><a href="#_ref">One</a>
11813 Id starting with underscore
11815 <div id="_ref"></div>
11817 <div id="_ref"></div>
11822 Space normalisation on autocomment (bug 22784)
11825 title=[[Main Page]]
11827 /* __hello__world__ */
11829 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11833 percent-encoding and + signs in comments (Bug 26410)
11837 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11839 <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>
11843 Bad images - basic functionality
11852 Bad images - bug 16039: text after bad image disappears
11866 Verify that displaytitle works (bug #22501) no displaytitle
11870 wgAllowDisplayTitle=true
11871 wgRestrictDisplayTitle=false
11873 this is not the the title
11876 <p>this is not the the title
11881 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11886 wgAllowDisplayTitle=true
11887 wgRestrictDisplayTitle=false
11889 this is not the the title
11890 {{DISPLAYTITLE:whatever}}
11893 <p>this is not the the title
11898 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11903 wgAllowDisplayTitle=true
11904 wgRestrictDisplayTitle=true
11906 this is not the the title
11907 {{DISPLAYTITLE:whatever}}
11910 <p>this is not the the title
11915 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11920 wgAllowDisplayTitle=true
11921 wgRestrictDisplayTitle=true
11923 this is not the the title
11924 {{DISPLAYTITLE:screen}}
11927 <p>this is not the the title
11932 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11937 wgAllowDisplayTitle=false
11939 this is not the the title
11940 {{DISPLAYTITLE:screen}}
11943 <p>this is not the the title
11944 <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>
11949 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11954 wgAllowDisplayTitle=false
11956 this is not the the title
11959 <p>this is not the the title
11964 preload: check <noinclude> and <includeonly>
11968 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11974 preload: check <onlyinclude>
11978 Goodbye <onlyinclude>Hello world</onlyinclude>
11984 preload: can pass tags through if we want to
11988 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11990 <includeonly>Hello world</includeonly>
11994 preload: check that it doesn't try to do tricks
11998 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12000 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12004 Play a bit with r67090 and bug 3158
12008 <div style="width:50% !important"> </div>
12009 <div style="width:50% !important"> </div>
12010 <div style="width:50% !important"> </div>
12011 <div style="border : solid;"> </div>
12013 <div style="width:50% !important"> </div>
12014 <div style="width:50% !important"> </div>
12015 <div style="width:50% !important"> </div>
12016 <div style="border : solid;"> </div>
12021 HTML5 data attributes
12023 <span data-foo="bar">Baz</span>
12024 <p data-abc-def_hij="">Quuz</p>
12026 <p><span data-foo="bar">Baz</span>
12028 <p data-abc-def_hij="">Quuz</p>
12033 percent-encoding and + signs in internal links (Bug 26410)
12035 [[User:+%]] [[Page+title%]]
12036 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12037 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12038 [[%33%45]] [[%33%45+]]
12040 <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>
12041 <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>
12042 <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>
12043 <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>
12048 Special characters in embedded file links (bug 27679)
12050 [[File:Contains & ampersand.jpg]]
12051 [[File:Does not exist.jpg|Title with & ampersand]]
12053 <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>
12054 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12060 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12062 Text's been normalized?
12064 <p>Text's been normalized?
12069 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12071 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12073 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12078 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12080 [http://www.example.org/ ideograms]
12082 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12087 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12089 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12091 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12115 Bug 31098 Template which includes system messages which includes the template
12119 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12120 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12125 Bug31490 Turkish: ucfirst 'blah'
12136 Bug31490 Turkish: ucfirst 'ix'
12147 Bug31490 Turkish: lcfirst 'BLAH'
12158 Bug31490 Turkish: ucfırst (with a dotless i)
12164 <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>
12169 Bug31490 ucfırst (with a dotless i) with English language
12175 <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>
12180 Bug 26375: TOC with italics
12182 title=[[Main Page]]
12185 == ''Lost'' episodes ==
12187 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12189 <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>
12192 <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>
12197 Bug 26375: TOC with bold
12199 title=[[Main Page]]
12202 == '''should be bold''' then normal text ==
12204 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12206 <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>
12209 <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>
12214 Bug 33845: Headings become cursive in TOC when they contain an image
12216 title=[[Main Page]]
12219 == Image [[Image:foobar.jpg]] ==
12221 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12223 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12226 <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>
12231 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12233 title=[[Main Page]]
12236 == <blockquote>Quote</blockquote> ==
12238 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12240 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12243 <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>
12248 Unclosed tags in TOC
12250 title=[[Main Page]]
12254 <small>Hanc marginis exiguitas non caperet.</small>
12257 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12259 <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>
12262 <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>
12263 <p><small>Hanc marginis exiguitas non caperet.</small>
12269 Multiple tags in TOC
12272 == <i>Foo</i> <b>Bar</b> ==
12274 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12276 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12278 <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>
12279 <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>
12282 <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>
12283 <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>
12288 Tags with parameters in TOC
12291 == <sup class="in-h2">Hello</sup> ==
12293 == <sup class="a > b">Evilbye</sup> ==
12295 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12297 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12298 <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>
12301 <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>
12302 <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>
12307 span tags with directionality in TOC
12310 == <span dir="ltr">C++</span> ==
12312 == <span dir="rtl">זבנג!</span> ==
12314 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12316 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12318 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12320 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12322 <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>
12323 <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>
12324 <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>
12325 <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>
12326 <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>
12329 <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>
12330 <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>
12331 <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>
12332 <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>
12333 <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>
12340 == {{int:headline_sample}} ==
12344 Bug 32057: Title needed when expanding <h> nodes.
12346 title=[[Main Page]]
12350 <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>
12355 Strip marker in urlencode
12357 {{urlencode:x<nowiki/>y}}
12358 {{urlencode:x<nowiki/>y|wiki}}
12359 {{urlencode:x<nowiki/>y|path}}
12386 Strip marker in formatNum
12388 {{formatnum:1<nowiki/>2}}
12389 {{formatnum:1<nowiki/>2|R}}
12397 Strip marker in grammar
12401 {{grammar:elative|foo<nowiki/>bar}}
12408 Strip marker in padleft
12410 {{padleft:|2|x<nowiki/>y}}
12417 Strip marker in padright
12419 {{padright:|2|x<nowiki/>y}}
12426 Strip marker in anchorencode
12428 {{anchorencode:x<nowiki/>y}}
12435 nowiki inside link inside heading (bug 18295)
12437 ==[[foo|x<nowiki>y</nowiki>z]]==
12439 <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>
12444 new support for bdi element (bug 31817)
12446 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12448 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12453 Ignore pipe between table row attributes
12457 |- id=foo | style='color: red'
12465 <tr id="foo" style="color: red">
12472 Gallery override link with WikiLink (bug 34852)
12475 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12478 <ul class="gallery">
12479 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12480 <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>
12481 <div class="gallerytext">
12491 Gallery override link with absolute external link (bug 34852)
12494 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12497 <ul class="gallery">
12498 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12499 <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>
12500 <div class="gallerytext">
12510 Gallery override link with malicious javascript (bug 34852)
12513 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12516 <ul class="gallery">
12517 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12518 <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>
12519 <div class="gallerytext">
12529 Language parser function
12538 Padleft and padright as substr
12540 {{padleft:|3|abcde}}
12541 {{padright:|3|abcde}}
12549 Bug 34939 - Case insensitive link parsing ([HttP://])
12551 [HttP://MediaWiki.Org/]
12553 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12558 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12560 [HttP://MediaWiki.Org/ MediaWiki]
12562 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12567 Bug 34939 - Case insensitive link parsing (HttP://)
12569 HttP://MediaWiki.Org/
12571 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12576 ### Parsoids-specific tests
12577 ### Parsoid-PHP parser incompatibilities
12580 1. SOL-sensitive wikitext tokens as template-args
12594 #### The following section of tests are primarily to test
12595 #### wikitext escaping capabilities of Parsoid.
12596 #### A lot of the tests are disabled for the PHP parser either
12597 #### because of minor newline diffs or other reasons.
12598 #### As Parsoid serializer can handle newlines and other HTML
12599 #### more robustly, some of these tests might get reenabled
12600 #### for the PHP parser.
12602 #### --------------- Headings ---------------
12604 #### 1. Nested inside html <h1>=foo=</h1>
12605 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12606 #### 3. Nested inside html with wikitext split by html tags
12607 #### 4. No escape needed
12608 #### 5. Empty headings <h1></h1>
12609 #### 6. Heading chars in SOL context
12610 #### ----------------------------------------
12612 Headings: 0. Unnested
12614 <nowiki>=foo=</nowiki>
12616 <nowiki>=foo</nowiki>''a''=
12619 </p><p>=foo<i>a</i>=
12624 Headings: 1. Nested inside html
12628 =<nowiki>=foo=</nowiki>=
12629 ==<nowiki>=foo=</nowiki>==
12630 ===<nowiki>=foo=</nowiki>===
12631 ====<nowiki>=foo=</nowiki>====
12632 =====<nowiki>=foo=</nowiki>=====
12633 ======<nowiki>=foo=</nowiki>======
12644 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12649 <nowiki>*bar</nowiki>
12653 <nowiki>=bar=</nowiki>
12661 Headings: 3. Nested inside html with wikitext split by html tags
12665 =<nowiki>=</nowiki>'''bold'''foo==
12667 <h1>=<b>bold</b>foo=</h1>
12671 Headings: 4. No escaping needed (testing just h1 and h2)
12686 <h1><i>=</i>foo=</h1>
12691 Headings: 5. Empty headings
12695 =<nowiki></nowiki>=
12696 ==<nowiki></nowiki>==
12697 ===<nowiki></nowiki>===
12698 ====<nowiki></nowiki>====
12699 =====<nowiki></nowiki>=====
12700 ======<nowiki></nowiki>======
12711 Headings: 6. Heading chars in SOL context
12715 <!--cmt--><nowiki>=h1=</nowiki>
12721 #### --------------- Lists ---------------
12722 #### 0. Outside nests (*foo, etc.)
12723 #### 1. Nested inside html <ul><li>*foo</li></ul>
12724 #### 2. Inside definition lists
12725 #### 3. Only bullets at start should be escaped
12726 #### 4. No escapes needed
12727 #### 5. No unnecessary escapes
12728 #### 6. Escape bullets in SOL position
12729 #### 7. Escape bullets in a multi-line context
12730 #### ----------------------------------------
12733 Lists: 0. Outside nests
12735 <nowiki>*foo</nowiki>
12737 <nowiki>#foo</nowiki>
12745 Lists: 1. Nested inside html
12747 *<nowiki>*foo</nowiki>
12749 *<nowiki>#foo</nowiki>
12751 *<nowiki>:foo</nowiki>
12753 *<nowiki>;foo</nowiki>
12755 #<nowiki>*foo</nowiki>
12757 #<nowiki>#foo</nowiki>
12759 #<nowiki>:foo</nowiki>
12761 #<nowiki>;foo</nowiki>
12783 Lists: 2. Inside definition lists
12785 ;<nowiki>;foo</nowiki>
12787 ;<nowiki>:foo</nowiki>
12789 ;<nowiki>:foo</nowiki>
12792 :<nowiki>:foo</nowiki>
12807 Lists: 3. Only bullets at start of text should be escaped
12809 *<nowiki>*foo*bar</nowiki>
12811 *<nowiki>*foo</nowiki>''it''*bar
12815 <ul><li>*foo<i>it</i>*bar
12821 Lists: 4. No escapes needed
12833 <ul><li><i>foo</i>*bar
12835 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12840 Lists: 5. No unnecessary escapes
12842 * bar <span><nowiki>[[foo]]</nowiki></span>
12844 *=bar <span><nowiki>[[foo]]</nowiki></span>
12846 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12848 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12850 *=bar <span>foo]]</span>=
12852 <ul><li> bar <span>[[foo]]</span>
12854 <ul><li>=bar <span>[[foo]]</span>
12856 <ul><li>[[bar <span>[[foo]]</span>
12858 <ul><li>]]bar <span>[[foo]]</span>
12860 <ul><li>=bar <span>foo]]</span>=
12866 Lists: 6. Escape bullets in SOL position
12870 <!--cmt--><nowiki>*foo</nowiki>
12877 Lists: 7. Escape bullets in a multi-line context
12887 #### --------------- HRs ---------------
12888 #### 1. Single line
12889 #### -----------------------------------
12892 HRs: 1. Single line
12897 <nowiki>----</nowiki>
12899 <nowiki>=foo=</nowiki>
12901 <nowiki>*foo</nowiki>
12908 #### --------------- Tables ---------------
12909 #### 1a. Simple example
12910 #### 1b. No escaping needed (!foo)
12911 #### 1c. No escaping needed (|foo)
12912 #### 1d. No escaping needed (|}foo)
12914 #### 2a. Nested in td (<td>foo|bar</td>)
12915 #### 2b. Nested in td (<td>foo||bar</td>)
12916 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12918 #### 3a. Nested in th (<th>foo!bar</th>)
12919 #### 3b. Nested in th (<th>foo!!bar</th>)
12920 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12924 #### 4c. No escaping needed
12925 #### --------------------------------------
12928 Tables: 1a. Simple example
12939 Tables: 1b. No escaping needed
12948 Tables: 1c. No escaping needed
12957 Tables: 1d. No escaping needed
12966 Tables: 2a. Nested in td
12971 |<nowiki>foo|bar</nowiki>
12981 Tables: 2b. Nested in td
12986 |<nowiki>foo||bar</nowiki>
12987 |''it''<nowiki>foo||bar</nowiki>
12992 </td><td><i>it</i>foo||bar
12998 Tables: 2c. Nested in td -- no escaping needed
13013 Tables: 3a. Nested in th
13028 Tables: 3b. Nested in th
13033 !<nowiki>foo!!bar</nowiki>
13043 Tables: 3c. Nested in th -- no escaping needed
13058 Tables: 4a. Escape -
13066 |<nowiki>-bar</nowiki>
13070 <tr><th>-bar</th></tr>
13071 <tr><td>-bar</td></tr>
13076 Tables: 4b. Escape +
13084 |<nowiki>+bar</nowiki>
13088 <tr><th>+bar</th></tr>
13089 <tr><td>+bar</td></tr>
13094 Tables: 4c. No escaping needed
13108 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13109 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13113 #### --------------- Links ---------------
13114 #### 1. Quote marks in link text
13115 #### 2. Wikilinks: Escapes needed
13116 #### 3. Wikilinks: No escapes needed
13117 #### 4. Extlinks: Escapes needed
13118 #### 5. Extlinks: No escapes needed
13119 #### --------------------------------------
13121 Links 1. Quote marks in link text
13125 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13127 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13131 Links 2. WikiLinks: Escapes needed
13135 [[Foo|<nowiki>[Foobar]</nowiki>]]
13136 [[Foo|<nowiki>Foobar]</nowiki>]]
13137 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13138 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13139 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13140 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13141 [[Foo|<nowiki>|Bar</nowiki>]]
13143 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13144 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13145 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13146 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13147 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13148 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13149 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13153 Links 3. WikiLinks: No escapes needed
13160 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13161 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13165 Links 4. ExtLinks: Escapes needed
13169 [http://google.com <nowiki>[google]</nowiki>]
13170 [http://google.com <nowiki>google]</nowiki>]
13172 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13173 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13177 Links 5. ExtLinks: No escapes needed
13181 [http://google.com [google]
13183 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13186 #### --------------- Quotes ---------------
13187 #### 1. Quotes inside <b> and <i>
13188 #### 2. Link fragments separated by <i> and <b> tags
13189 #### 3. Link fragments inside <i> and <b>
13190 #### --------------------------------------
13192 1. Quotes inside <b> and <i>
13194 ''<nowiki>'foo'</nowiki>''
13195 ''<nowiki>''foo''</nowiki>''
13196 ''<nowiki>'''foo'''</nowiki>''
13197 '''<nowiki>'foo'</nowiki>'''
13198 '''<nowiki>''foo''</nowiki>'''
13199 '''<nowiki>'''foo'''</nowiki>'''
13200 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13208 <b>foo'<i>bar'</i>baz</b>
13213 2. Link fragments separated by <i> and <b> tags
13215 [[''foo''<nowiki>hello]]</nowiki>
13217 [['''foo'''<nowiki>hello]]</nowiki>
13219 <p>[[<i>foo</i>hello]]
13220 </p><p>[[<b>foo</b>hello]]
13225 2. Link fragments inside <i> and <b>
13226 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13227 this is one of the shortcomings of this format)
13229 ''[[foo''<nowiki>]]</nowiki>
13231 '''[[foo'''<nowiki>]]</nowiki>
13234 </p><p><b>[[foo</b>]]
13238 #### --------------- Paragraphs ---------------
13239 #### 1. No unnecessary escapes
13240 #### --------------------------------------
13243 1. No unnecessary escapes
13245 bar <span><nowiki>[[foo]]</nowiki></span>
13247 =bar <span><nowiki>[[foo]]</nowiki></span>
13249 [[bar <span><nowiki>[[foo]]</nowiki></span>
13251 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13253 <nowiki>=bar </nowiki><span>foo]]</span>=
13255 <p>bar <span>[[foo]]</span>
13256 </p><p>=bar <span>[[foo]]</span>
13257 </p><p>[[bar <span>[[foo]]</span>
13258 </p><p>]]bar <span>[[foo]]</span>
13259 </p><p>=bar <span>foo]]</span>=
13263 #### --------------- PRE ------------------
13264 #### 1. Leading space in SOL context should be escaped
13265 #### --------------------------------------
13267 1. Leading space in SOL context should be escaped
13271 <nowiki> foo</nowiki>
13272 <!--cmt--><nowiki> foo</nowiki>
13279 #### --------------- HTML tags ---------------
13282 #### 3. multi-line html tag
13283 #### --------------------------------------
13289 <a href="http://google.com">google</a>
13291 <a href="http://google.com">google</a>
13297 <nowiki><div>foo</div>
13298 <div style="color:red">foo</div></nowiki>
13300 <p><div>foo</div>
13301 <div style="color:red">foo</div>
13306 3. multi-line html tag
13318 #### --------------- Others ---------------
13322 <nowiki>foo</nowiki>
13324 <p><nowiki>foo</nowiki>
13329 Tag-like HTML structures are passed through as text
13351 </p><p>1<d e>f
13356 # This fails in the PHP parser (see bug 40670,
13357 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13359 Tag names followed by punctuation should not be recognized as tags
13365 <p><s.ome> text
13375 Try for 100% code coverage