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
168 http://fr.wikipedia.org/wiki/🍺
169 <!-- EasterEgg we love beer, better be able be able to link to it -->
171 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
191 * plain''italic''plain
192 * plain''italic''plain''italic''plain
193 * plain'''bold'''plain
194 * plain'''bold'''plain'''bold'''plain
195 * plain''italic''plain'''bold'''plain
196 * plain'''bold'''plain''italic''plain
197 * plain''italic'''bold-italic'''italic''plain
198 * plain'''bold''bold-italic''bold'''plain
199 * plain'''''bold-italic'''italic''plain
200 * plain'''''bold-italic''bold'''plain
201 * plain''italic'''bold-italic'''''plain
202 * plain'''bold''bold-italic'''''plain
203 * plain l'''italic''plain
204 * plain l''''bold''' plain
207 </li><li> plain<i>italic</i>plain
208 </li><li> plain<i>italic</i>plain<i>italic</i>plain
209 </li><li> plain<b>bold</b>plain
210 </li><li> plain<b>bold</b>plain<b>bold</b>plain
211 </li><li> plain<i>italic</i>plain<b>bold</b>plain
212 </li><li> plain<b>bold</b>plain<i>italic</i>plain
213 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
214 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
215 </li><li> plain<i><b>bold-italic</b>italic</i>plain
216 </li><li> plain<b><i>bold-italic</i>bold</b>plain
217 </li><li> plain<i>italic<b>bold-italic</b></i>plain
218 </li><li> plain<b>bold<i>bold-italic</i></b>plain
219 </li><li> plain l'<i>italic</i>plain
220 </li><li> plain l'<b>bold</b> plain
226 ### 2-quote opening sequence tests
229 Italics and bold: 2-quote opening sequence: (2,2)
239 Italics and bold: 2-quote opening sequence: (2,3)
249 Italics and bold: 2-quote opening sequence: (2,4)
259 Italics and bold: 2-quote opening sequence: (2,5)
269 ### 3-quote opening sequence tests
273 Italics and bold: 3-quote opening sequence: (3,2)
283 Italics and bold: 3-quote opening sequence: (3,3)
293 Italics and bold: 3-quote opening sequence: (3,4)
303 Italics and bold: 3-quote opening sequence: (3,5)
313 ### 4-quote opening sequence tests
317 Italics and bold: 4-quote opening sequence: (4,2)
327 Italics and bold: 4-quote opening sequence: (4,3)
337 Italics and bold: 4-quote opening sequence: (4,4)
347 Italics and bold: 4-quote opening sequence: (4,5)
357 ### 5-quote opening sequence tests
361 Italics and bold: 5-quote opening sequence: (5,2)
371 Italics and bold: 5-quote opening sequence: (5,3)
381 Italics and bold: 5-quote opening sequence: (5,4)
385 <p><i><b>foo'</b></i>
391 Italics and bold: 5-quote opening sequence: (5,5)
400 ### multiple quote sequences in a line
403 Italics and bold: multiple quote sequences: (2,4,2)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,3)
417 <p><i>foo'<b>bar</b></i>
423 Italics and bold: multiple quote sequences: (2,4,4)
427 <p><i>foo'<b>bar'</b></i>
433 Italics and bold: multiple quote sequences: (3,4,2)
443 Italics and bold: multiple quote sequences: (3,4,3)
452 ### other quote tests
455 Italics and bold: other quote tests: (2,3,5)
457 ''this is about '''foo's family'''''
459 <p><i>this is about <b>foo's family</b></i>
465 Italics and bold: other quote tests: (2,(3,3),2)
467 ''this is about '''foo's''' family''
469 <p><i>this is about <b>foo's</b> family</i>
475 Italics and bold: other quote tests: (3,2,3,2)
477 '''this is about ''foo'''s family''
479 <p><b>this is about <i>foo</i></b><i>s family</i>
485 Italics and bold: other quote tests: (3,2,3,3)
487 '''this is about ''foo'''s family'''
489 <p>'<i>this is about </i>foo<b>s family</b>
496 Italics and bold: other quote tests: (3,(2,2),3)
498 '''this is about ''foo's'' family'''
500 <p><b>this is about <i>foo's</i> family</b>
505 ### <nowiki> test cases
509 <nowiki> unordered list
511 <nowiki>* This is not an unordered list item.</nowiki>
513 <p>* This is not an unordered list item.
520 <nowiki>Lorem ipsum dolor
541 :There is not nowiki.
542 :There is <nowiki>nowiki</nowiki>.
544 #There is not nowiki.
545 #There is <nowiki>nowiki</nowiki>.
547 *There is not nowiki.
548 *There is <nowiki>nowiki</nowiki>.
550 <dl><dd>There is not nowiki.
551 </dd><dd>There is nowiki.
553 <ol><li>There is not nowiki.
554 </li><li>There is nowiki.
556 <ul><li>There is not nowiki.
557 </li><li>There is nowiki.
563 Entities inside <nowiki>
565 <nowiki><</nowiki>
576 Comments and Indent-Pre
578 <!-- comment 1 --> asdf
580 <!-- comment 1 --> asdf
583 <!-- comment 1 --> asdf
584 <!-- comment 2 -->xyz
586 <!-- comment 1 --> asdf
587 <!-- comment 2 --> xyz
643 asdf<!-- comment 1 -->jkl
653 <!-- foo --> b <!-- bar -->
667 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
673 Comment semantics and delimiters
675 <!-- --><!----><!-----><!------>
681 Comment semantics and delimiters, redux
683 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
684 -- foo -- funky huh? ... -->
690 Comment semantics and delimiters: directors cut
692 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
693 everything starting with < followed by !-- until the first -- and > we see,
694 that wouldn't be valid XML however, since in XML -- has to terminate a comment
702 Comment semantics: nesting
704 <!--<!-- no, we're not going to do anything fancy here -->-->
711 Comment semantics: unclosed comment at end
713 <!--This comment will run out to the end of the document
719 Comment in template title
728 Comment on its own line post-expand
740 Comment on its own line post-expand with non-significant whitespace
752 ### paragraph wraping tests
766 Block tag on one line
778 Block tag on both lines
790 Multiple lines without block tags
808 Empty lines between block tags to test open p-tags are closed between the block tags
826 ### Preformatted text
835 And a [[Main Page|link]]
841 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
846 Ident preformatting with inline content
857 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
874 Regression with preformatted in <center>
887 # Expected output in the following test is not really expected (there should be
888 # <pre> in the output) -- it's only testing for well-formedness.
890 Bug 6200: Preformatted in <blockquote>
903 <pre> with attributes (bug 3202)
905 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
907 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
912 <pre> with width attribute (bug 3202)
914 <pre width="8">Narrow screen goodies</pre>
916 <pre width="8">Narrow screen goodies</pre>
921 <pre> with forbidden attribute (bug 3202)
923 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
925 <pre width="8">Narrow screen goodies</pre>
930 Entities inside <pre>
939 <pre> with forbidden attribute values (bug 3202)
941 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
943 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
948 <nowiki> inside <pre> (bug 13238)
956 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
964 <pre><nowiki>Foo</nowiki></pre>
969 <nowiki> and <pre> preference (first one wins)
1000 </pre> inside nowiki
1002 <nowiki></pre></nowiki>
1009 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1017 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1027 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1039 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1060 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1064 {{echo| foo}}{{echo| bar}}
1069 {{echo|<!--cmt--> foo}}
1071 <!--cmt-->{{echo| foo}}
1073 {{echo|{{echo| }}bar}}
1091 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1128 Templates: Single-line variant of parameter whitespace stripping test
1134 {{echo|{{echo| a}}}}
1136 {{echo|1={{echo| a}}}}
1149 Templates: Strip whitespace from named parameters, but not positional ones
1177 ### Parsoid-centric tests for testing RT edge cases for pre
1181 1a. Indent-Pre and Comments
1194 1b. Indent-Pre and Comments
1207 1c. Indent-Pre and Comments
1220 2a. Indent-Pre and tables
1241 2b. Indent-Pre and tables
1257 2c. Indent-Pre and tables (bug 42252)
1274 3a. Indent-Pre and block tags (single-line html)
1282 <pre><span> foo </span>
1287 3b. Indent-Pre and block tags (pre-content on separate line)
1339 4. Multiple spaces at start-of-line
1358 5. White-space in indent-pre
1359 NOTE: the white-space char on 2nd line is significant
1372 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1376 HTML-pre: 1. embedded newlines
1412 HTML-pre: 2: indented text
1425 HTML-pre: 3: other wikitext
1446 ### Definition lists
1453 <dl><dt> name </dt><dd> Definition
1459 Definition list for indentation only
1463 <dl><dd> Indented text
1469 Definition list with no space
1473 <dl><dt>name</dt><dd>Definition
1479 Definition list with URL link
1481 ; http://example.com/ : definition
1483 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1489 Definition list with bracketed URL link
1491 ;[http://www.example.com/ Example]:Something about it
1493 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1499 Definition list with wikilink containing colon
1501 ; [[Help:FAQ]]: The least-read page on Wikipedia
1503 <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
1508 # At Brion's and JeLuF's insistence... :)
1510 Definition list with news link containing colon
1512 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1514 <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!
1520 Malformed definition list with colon
1522 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1524 <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
1530 Definition lists: colon in external link text
1532 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1534 <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
1540 Definition lists: colon in HTML attribute
1542 ;<b style="display: inline">bold</b>
1544 <dl><dt><b style="display: inline">bold</b>
1550 Definition lists: self-closed tag
1552 ;one<br/>two : two-line fun
1554 <dl><dt>one<br />two </dt><dd> two-line fun
1560 Bug 11748: Literal closing tags
1564 <dd>test test test test test</dd>
1566 <dd>test test test test test</dd>
1571 <dd>test test test test test</dd>
1573 <dd>test test test test test</dd>
1579 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1582 ; term : description
1588 <dl><dt> term </dt><dd> description
1599 Definition list with empty definition and following paragraph
1604 <dl><dt> term</dt><dd>
1611 Nested definition lists using html syntax
1628 Definition Lists: No nesting: Multiple dd's
1642 Definition Lists: Indentation: Regular
1658 Definition Lists: Indentation: Missing 1st level
1672 Definition Lists: Indentation: Multi-level indent
1676 <dl><dd><dl><dd><dl><dd>i3
1684 Definition Lists: Hacky use to indent tables
1691 should be left alone
1693 <dl><dd><dl><dd><table>
1698 </td></tr></table></dd></dl></dd></dl>
1700 should be left alone
1703 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1704 ## as an empty dt item. It also ignores all but the last ";" when followed
1705 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1706 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1709 ## Ex: ";;t2 ::d2" is transformed into:
1721 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1722 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1733 ## All Parsoid only definition list tests have this difference.
1735 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1736 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1739 Table / list interaction: indented table with lists in table contents
1761 </td></tr></table></dd></dl>
1766 Table / list interaction: lists nested in tables nested in indented lists
1791 </td></tr></table></dd></dl>
1799 Definition Lists: Nesting: Multi-level (Parsoid only)
1829 Definition Lists: Nesting: Test 2 (Parsoid only)
1849 Definition Lists: Nesting: Test 3 (Parsoid only)
1877 Definition Lists: Nesting: Test 4
1882 <dl><dd><dl><dd><dl><dt>t3
1892 Definition Lists: Mixed Lists: Test 1
1898 <dl><dd><dl><dt><ul><li> foo
1910 Definition Lists: Mixed Lists: Test 2
1924 Definition Lists: Mixed Lists: Test 3
1929 <ul><li><dl><dd><dl><dd><dl><dd> d1
1940 Definition Lists: Mixed Lists: Test 4
1945 <ul><li><dl><dt>d1 </dt><dd>d2
1946 </dd><dt>d3 </dt><dd>d4
1954 Definition Lists: Mixed Lists: Test 5
1969 Definition Lists: Mixed Lists: Test 6
1974 <ol><li><ul><li><dl><dd>d1
1986 Definition Lists: Mixed Lists: Test 7
2000 Definition Lists: Mixed Lists: Test 8
2016 Definition Lists: Mixed Lists: Test 9
2020 <ul><li><dl><dt>foo </dt><dd>bar
2028 Definition Lists: Mixed Lists: Test 10
2032 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2041 Definition Lists: Mixed Lists: Test 11
2046 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2051 <dl><dt>boo </dt><dd>baz
2062 Definition Lists: Weird Ones: Test 1
2064 *#;*::;; foo : bar (who uses this?)
2066 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2082 External links: non-bracketed
2084 Non-bracketed: http://example.com
2086 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2091 External links: numbered
2093 Numbered: [http://example.com]
2094 Numbered: [http://example.net]
2095 Numbered: [http://example.com]
2097 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2098 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2099 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2104 External links: specified text
2106 Specified text: [http://example.com link]
2108 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2113 External links: trail
2115 Linktrails should not work for external links: [http://example.com link]s
2117 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2122 External links: dollar sign in URL
2124 http://example.com/1$2345
2126 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2131 External links: dollar sign in URL (named)
2133 [http://example.com/1$2345]
2135 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2140 External links: open square bracket forbidden in URL (bug 4377)
2142 http://example.com/1[2345
2144 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2149 External links: open square bracket forbidden in URL (named) (bug 4377)
2151 [http://example.com/1[2345]
2153 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2158 External links: nowiki in URL link text (bug 6230)
2160 [http://example.com/ <nowiki>''example site''</nowiki>]
2162 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2167 External links: newline forbidden in text (bug 6230 regression check)
2169 [http://example.com/ first
2172 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2178 External links: Pipe char between url and text
2180 [http://example.com | link]
2182 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2187 External links: protocol-relative URL in brackets
2189 [//example.com/ Test]
2191 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2196 External links: protocol-relative URL in brackets without text
2200 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2205 External links: protocol-relative URL in free text is left alone
2209 <p>//example.com/Foo
2214 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2216 foo//example.com/Foo
2218 <p>foo//example.com/Foo
2225 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2227 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2232 External image from https
2234 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2236 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2241 Link to non-http image, no img tag
2243 Link to non-http image, no img tag: ftp://example.com/test.jpg
2245 <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>
2250 External links: terminating separator
2252 Terminating separator: http://example.com/thing,
2254 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2259 External links: intervening separator
2261 Intervening separator: http://example.com/1,2,3
2263 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2268 External links: old bug with URL in query
2270 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2272 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2277 External links: old URL-in-URL bug, mixed protocols
2279 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2281 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2286 External links: URL in text
2288 URL in text: [http://example.com http://example.com]
2290 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2295 External links: Clickable images
2297 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2299 <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>
2304 External links: raw ampersand
2306 Old & use: http://x&y
2308 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2313 External links: encoded ampersand
2315 Old & use: http://x&y
2317 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2322 External links: encoded equals (bug 6102)
2324 http://example.com/?foo=bar
2326 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2331 External links: [raw ampersand]
2333 Old & use: [http://x&y]
2335 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2340 External links: [encoded ampersand]
2342 Old & use: [http://x&y]
2344 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2349 External links: [encoded equals] (bug 6102)
2351 [http://example.com/?foo=bar]
2353 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2358 External links: [IDN ignored character reference in hostname; strip it right off]
2360 [http://e‌xample.com/]
2362 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2366 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2367 # Where an external link could easily circumvent the sanitization of the text of
2368 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2369 # test demands a higher standard. That's a bit strange.
2373 # http://example.com -> [http://example.com|http://example.com]
2374 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2376 # The first example is sanitized, but the second is not. Any security benefits
2377 # from this production are trivial to circumvent. Either remove this test and
2378 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2379 # the test accordingly.
2384 External links: IDN ignored character reference in hostname; strip it right off
2386 http://e‌xample.com/
2388 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2393 External links: www.jpeg.org (bug 554)
2397 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2402 External links: URL within URL (original bug 2)
2404 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2406 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2411 BUG 361: URL inside bracketed URL
2413 [http://www.example.com/foo http://www.example.com/bar]
2415 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2420 BUG 361: URL within URL, not bracketed
2422 http://www.example.com/foo?=http://www.example.com/bar
2424 <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>
2429 BUG 289: ">"-token in URL-tail
2431 http://www.example.com/<hello>
2433 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2438 BUG 289: literal ">"-token in URL-tail
2440 http://www.example.com/<b>html</b>
2442 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2447 BUG 289: ">"-token in bracketed URL
2449 [http://www.example.com/<hello> stuff]
2451 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2456 BUG 289: literal ">"-token in bracketed URL
2458 [http://www.example.com/<b>html</b> stuff]
2460 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2465 BUG 289: literal double quote at end of URL
2467 http://www.example.com/"hello"
2469 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2474 BUG 289: literal double quote in bracketed URL
2476 [http://www.example.com/"hello" stuff]
2478 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2483 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2485 [http://www.example.com test]
2487 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2492 External links: wiki links within external link (Bug 3695)
2494 [http://example.com [[wikilink]] embedded in ext link]
2496 <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>
2501 BUG 787: Links with one slash after the url protocol are invalid
2505 [http:/example.com title]
2507 <p>http:/example.com
2508 </p><p>[http:/example.com title]
2513 Bracketed external links with template-generated invalid target
2515 [{{echo|http:/example.com}} title]
2517 <p>[http:/example.com title]
2522 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2524 ''[http://example.com text'']
2525 [http://example.com '''text]'''
2526 ''Something [http://example.com in italic'']
2527 ''Something [http://example.com mixed''''', even bold]'''
2528 '''''Now [http://example.com both''''']
2530 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2531 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2532 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2533 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2534 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2540 Bug 4781: %26 in URL
2542 http://www.example.com/?title=AT%26T
2544 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2548 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2549 # % is actually legal in HTML5. Any change in output would need testing though.
2551 Bug 4781, 5267: %25 in URL
2553 http://www.example.com/?title=100%25_Bran
2555 <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>
2560 Bug 4781, 5267: %28, %29 in URL
2562 http://www.example.com/?title=Ben-Hur_%281959_film%29
2564 <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>
2570 Bug 4781: %26 in autonumber URL
2572 [http://www.example.com/?title=AT%26T]
2574 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2579 Bug 4781, 5267: %26 in autonumber URL
2581 [http://www.example.com/?title=100%25_Bran]
2583 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2588 Bug 4781, 5267: %28, %29 in autonumber URL
2590 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2592 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2598 Bug 4781: %26 in bracketed URL
2600 [http://www.example.com/?title=AT%26T link]
2602 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2607 Bug 4781, 5267: %26 in bracketed URL
2609 [http://www.example.com/?title=100%25_Bran link]
2611 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2616 Bug 4781, 5267: %28, %29 in bracketed URL
2618 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2620 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2625 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2627 Some [http://example.com/ pretty ''italics'' and stuff]!
2629 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2634 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2636 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2638 <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>
2643 External link containing double-single-quotes with no space separating the url from text in italics
2645 [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]].]
2647 <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>
2652 Text in square brackets that is not a link should parse as text
2657 [url=http://example.com]
2662 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
2667 URL-encoding in URL functions (single parameter)
2669 {{localurl:Some page|amp=&}}
2671 <p>/index.php?title=Some_page&amp=&
2676 URL-encoding in URL functions (multiple parameters)
2678 {{localurl:Some page|q=?&=&}}
2680 <p>/index.php?title=Some_page&q=?&amp=&
2687 http://example.com/index.php?foozoid%5B%5D=bar
2689 http://example.com/index.php?foozoid[]=bar
2691 <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>
2692 </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>
2697 IPv6 urls (bug 21261)
2701 http://[2404:130:0:1000::187:2]/index.php
2703 <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>
2708 Non-extlinks in brackets
2717 [{{echo|foo}} ''bar'']
2718 [{{echo|foo}}l's] errand
2719 [{{echo|foo}}l's errand]
2741 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2743 Normal text. '''''Bold italic text.''''' Normal text.
2745 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2746 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2752 Unclosed and unmatched quotes
2754 '''''Bold italic text '''with bold deactivated''' in between.'''''
2756 '''''Bold italic text ''with italic deactivated'' in between.'''''
2760 ..spanning two paragraphs (should not work).'''
2762 '''Bold tag left open
2764 ''Italic tag left open
2768 <!-- Unmatching number of opening, closing tags: -->
2769 '''This year''''s election ''should'' beat '''last year''''s.
2771 ''Tom'''s car is bigger than ''Susan'''s.
2773 Plain ''italic'''s plain
2775 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2776 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2777 </p><p><b>Bold text..</b>
2778 </p><p>..spanning two paragraphs (should not work).
2779 </p><p><b>Bold tag left open</b>
2780 </p><p><i>Italic tag left open</i>
2782 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2783 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2784 </p><p>Plain <i>italic'</i>s plain
2791 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2794 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2795 # is the bare minimun required by the spec, see:
2796 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2798 A table with no data.
2804 # A table with nothing but a caption is invalid XHTML, we might want to render
2805 # this as <p>caption</p>
2807 A table with nothing but a caption
2815 </caption><tr><td></td></tr></table>
2820 A table with caption with default-spaced attributes and a table row
2823 |+ style="color: red;" | caption1
2829 <caption style="color: red;"> caption1
2838 A table with captions with non-default spaced attributes and a table row
2841 |+style="color: red;"|caption2
2842 |+ style="color: red;"| caption3
2848 <caption style="color: red;">caption2
2850 <caption style="color: red;"> caption3
2859 Table td-cell syntax variations
2863 | foo bar foo || baz
2864 | style='color:red;' | baz
2865 | style='color:red;' || baz
2872 <td> foo bar foo </td>
2875 <td style="color:red;"> baz
2877 <td> style='color:red;' </td>
2905 Simple table but with multiple dashes for row wikitext
2923 Multiplication table
2925 {| border="1" cellpadding="2"
2926 |+Multiplication table
2928 ! × !! 1 !! 2 !! 3
2946 <table border="1" cellpadding="2">
2947 <caption>Multiplication table
2994 Accept "||" in table headings
3009 Accept "||" in indented table headings
3019 </th></tr></table></dd></dl>
3024 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3041 Accept "| !" at start of line in tables (ignore !-attribute)
3045 | !style="color:red" | bar
3057 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 +/-
3061 |style='color:red;'|+1
3062 |style='color:blue;'|-1
3074 <td style="color:red;">+1
3076 <td style="color:blue;">-1
3100 |rowspan=2| Cell 2, row 1 (and 2)
3111 <td rowspan="2"> Cell 2, row 1 (and 2)
3129 {| bgcolor=#ABCDEF border=2
3134 |the original table again
3142 <table bgcolor="#ABCDEF" border="2">
3150 <td>the original table again
3156 Invalid attributes in table cell (bug 1830)
3171 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3174 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3178 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3179 <td>]" onmouseover="alert(document.cookie)">test
3188 Indented table markup mixed with indented pre content (proposed in bug 6200)
3193 Text that should be rendered preformatted
3201 <pre>Text that should be rendered preformatted
3210 Template-generated table cell attributes and cell content
3218 <td style="color: red"> Foo
3224 Table with row followed by newlines and table heading
3241 # FIXME: Preserve the attribute properly (with an empty string as value) in
3242 # the PHP parser. Parsoid implements the behavior below.
3244 Table attributes with empty value
3260 Wikitext table with a lot of comments
3286 Plain link, capitalized
3290 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3295 Plain link, uncapitalized
3299 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3306 [[Main Page|The Main Page]]
3308 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3317 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3322 Broken link with fragment
3324 [[Zigzagzogzagzig#zug]]
3326 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3331 Special page link with fragment
3333 [[Special:Version#anchor]]
3335 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3340 Nonexistent special page link with fragment
3342 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3344 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3351 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3353 <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>
3360 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3362 <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>!!!
3373 Bug 43661: Piped links with identical prefixes
3375 [[prefixed article|prefixed articles with spaces]]
3377 [[prefixed article|prefixed articlesaoeu]]
3379 [[Main Page|Main Page test]]
3381 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3382 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3383 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3389 Link with HTML entity in suffix / tail
3391 [[Main Page]]", [[Main Page]]a
3393 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3398 Link with 3 brackets
3407 Piped link with 3 brackets
3409 [[[main page|the main page]]]
3411 <p>[[[main page|the main page]]]
3416 Link with multiple pipes
3418 [[Main Page|The|Main|Page]]
3420 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3427 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3429 <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>
3434 Piped link to namespace
3436 [[Meta:Disclaimers|The disclaimers]]
3438 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3445 [[Usually caused by a typo (oops}]]
3447 <p>[[Usually caused by a typo (oops}]]
3452 Link containing % (not as a hex sequence)
3456 <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>
3461 Link containing % as a single hex sequence interpreted to char
3465 <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>
3470 Link containing % as a double hex sequence interpreted to hex sequence
3474 <p>[[7%2525 Solution]]
3479 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3480 Example for such a section: == < ==
3482 [[%23%3c]][[%23%3e]]
3484 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3489 Link containing "<#" and ">#" as a hex sequences
3491 [[%3c%23]][[%3e%23]]
3493 <p>[[%3c%23]][[%3e%23]]
3498 Link containing double-single-quotes '' (bug 4598)
3500 [[Lista d''e paise d''o munno]]
3502 <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>
3507 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3509 Some [[Link|pretty ''italics'' and stuff]]!
3511 <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>!
3516 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3518 ''Some [[Link|pretty ''italics'' and stuff]]!
3520 <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>
3525 Link with double quotes in title part (literal) and alternate part (interpreted)
3527 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3531 [[''Pentecoste''|Pentecoste]]
3533 [[''Pentecoste''|''Pentecoste'']]
3535 <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>
3536 </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>
3537 </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>
3538 </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>
3543 Broken image links with HTML captions (bug 39700)
3545 [[File:Nonexistent|<script></script>]]
3546 [[File:Nonexistent|100px|<script></script>]]
3547 [[File:Nonexistent|<]]
3548 [[File:Nonexistent|a<i>b</i>c]]
3550 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3551 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3552 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3553 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3560 [[http://www.example.com]]
3562 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3567 Plain link to URL with link text
3569 [[http://www.example.com Link text]]
3571 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3576 Plain link to protocol-relative URL
3578 [[//www.example.com]]
3580 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3585 Plain link to protocol-relative URL with link text
3587 [[//www.example.com Link text]]
3589 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3594 Plain link to page with question mark in title
3600 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3601 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3606 # I'm fairly sure the expected result here is wrong.
3607 # We want these to be URL links, not pseudo-pages with URLs for titles....
3608 # However the current output is also pretty screwy.
3611 # I'm changing it to match the current output--it arguably makes more
3612 # sense in the light of the test above. Old expected result was:
3613 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3615 # But I think this test is bordering on "garbage in, garbage out" anyway.
3620 Piped link to URL: [[http://www.example.com|an example URL]]
3622 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3627 BUG 2: [[page|http://url/]] should link to page, not http://url/
3629 [[Main Page|http://url/]]
3631 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3636 BUG 337: Escaped self-links should be bold
3640 [[Bug462]] [[Bug462]]
3642 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3647 Self-link to section should not be bold
3651 [[Main Page#section]]
3653 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3664 Self-link to numeric title
3670 <p><strong class="selflink">0</strong>
3675 Link to numeric-equivalent title
3681 <p><a href="/wiki/00" title="00">00</a>
3686 <nowiki> inside a link
3688 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3690 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3695 Non-breaking spaces in title
3697 [[ Main Page ]]
3699 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3704 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3710 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3715 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3721 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3726 Internal link with en linktrail: no apostrophes (bug 27473)
3732 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3737 Internal link with ca linktrail with apostrophes (bug 27473)
3743 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3748 Internal link with kaa linktrail with apostrophes (bug 27473)
3754 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3759 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3767 [http://wp.org ''foo'']
3769 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3770 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3771 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3772 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3777 ### Interwiki links (see maintenance/interwiki.sql)
3781 Inline interwiki link
3783 [[MeatBall:SoftSecurity]]
3785 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3790 Inline interwiki link with empty title (bug 2372)
3794 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3799 Interwiki link encoding conversion (bug 1636)
3801 *[[Wikipedia:ro:Olteniţa]]
3802 *[[Wikipedia:ro:Olteniţa]]
3804 <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>
3805 </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>
3811 Interwiki link with fragment (bug 2130)
3813 [[MeatBall:SoftSecurity#foo]]
3815 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3830 Double interlanguage link
3841 Interlanguage link, with prefix links
3853 Double interlanguage link, with prefix links (bug 8897)
3866 Parsoid-specific test: Wikilinks with should RT properly
3872 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3890 Broken br tag sanitization
3899 Incorrecly removing closing slashes from correctly formed XHTML
3901 <br style="clear:both;" />
3903 <p><br style="clear:both;" />
3908 Failing to transform badly formed HTML into correct XHTML
3910 <br style="clear: left;">
3911 <br style="clear: right;">
3912 <br style="clear: both;">
3914 <p><br style="clear: left;" />
3915 <br style="clear: right;" />
3916 <br style="clear: both;" />
3921 Handling html with a div self-closing tag
3930 <p><div title />
3934 <p><div title=bar />
3935 <div title=bar/>
3937 <div title="bar/"></div>
3943 Handling html with a br self-closing tag
3952 <p><br title="title" />
3953 <br title="title" />
3962 Horizontal ruler (should it add that extra space?)
3976 Horizontal ruler -- 4+ dashes render hr
3985 Horizontal ruler -- eats additional dashes on the same line
3994 Horizontal ruler -- does not collaps dashes on consecutive lines
4005 Horizontal ruler -- <4 dashes render as plain text
4014 Horizontal ruler -- Supports content following dashes on same line
4023 ### Block-level elements
4046 <ol><li>Numbered list
4063 ***#Number on level 4
4065 **#Number on level 3
4066 **#Number on level 3
4070 #** Level 3, but ordered
4073 <ol><li> with numbers
4075 <ul><li> and bullets
4077 <ol><li> and numbers
4079 </li><li>bullets again
4080 <ul><li>bullet level 2
4081 <ul><li>bullet level 3
4082 <ol><li>Number on level 4
4085 </li><li>bullet level 2
4086 <ol><li>Number on level 3
4087 </li><li>Number on level 3
4090 <ol><li>number level 2
4093 <ul><li><ul><li> Level 3
4097 <ol><li><ul><li><ul><li> Level 3, but ordered
4131 Nested lists 3 (first element empty)
4144 Nested lists 4 (first element empty)
4157 Nested lists 5 (both elements empty)
4170 Nested lists 6 (both elements empty)
4183 Nested lists 7 (skip initial nesting levels)
4187 <ul><li><ul><li><ul><li> foo
4195 Nested lists 8 (multiple nesting transitions)
4203 <ul><li><ul><li> bar
4213 1. Lists with start-of-line-transparent tokens before bullets: Comments
4227 2. Lists with start-of-line-transparent tokens before bullets: Template close
4239 Unbalanced closing block tags break a list
4240 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4250 </li></ul></div><div>
4256 Unbalanced closing non-block tags don't break a list
4257 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4267 <ul><li>a<span></span>
4273 Unclosed formatting tags that straddle lists are closed and reopened
4274 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4282 </li><li> <s> b </s>
4287 List embedded in a non-block tag
4288 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4296 <p><small></small></p>
4302 <p><small></small></p>
4306 List items are not parsed correctly following a <pre> block (bug 785)
4312 <ul><li> <pre>foo</pre>
4313 </li><li> <pre>bar</pre>
4320 List items from template
4331 * notSOL{{inner list}}
4350 List interrupted by empty line or heading
4360 <ul><li><ul><li> bar
4363 <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>
4364 <ul><li> Another list item
4370 Multiple list tags generated by templates
4389 Magic Word: {{CURRENTDAY}}
4398 Magic Word: {{CURRENTDAY2}}
4407 Magic Word: {{CURRENTDAYNAME}}
4416 Magic Word: {{CURRENTDOW}}
4425 Magic Word: {{CURRENTMONTH}}
4434 Magic Word: {{CURRENTMONTHABBREV}}
4436 {{CURRENTMONTHABBREV}}
4443 Magic Word: {{CURRENTMONTHNAME}}
4445 {{CURRENTMONTHNAME}}
4452 Magic Word: {{CURRENTMONTHNAMEGEN}}
4454 {{CURRENTMONTHNAMEGEN}}
4461 Magic Word: {{CURRENTTIME}}
4470 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4479 Magic Word: {{CURRENTYEAR}}
4488 Magic Word: {{FULLPAGENAME}}
4490 title=[[User:Ævar Arnfjörð Bjarmason]]
4494 <p>User:Ævar Arnfjörð Bjarmason
4499 Magic Word: {{FULLPAGENAMEE}}
4501 title=[[User:Ævar Arnfjörð Bjarmason]]
4505 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4510 Magic Word: {{NAMESPACE}}
4512 title=[[User:Ævar Arnfjörð Bjarmason]]
4521 Magic Word: {{NAMESPACEE}}
4523 title=[[User:Ævar Arnfjörð Bjarmason]]
4532 Magic Word: {{NAMESPACENUMBER}}
4534 title=[[User:Ævar Arnfjörð Bjarmason]]
4543 Magic Word: {{NUMBEROFFILES}}
4552 Magic Word: {{PAGENAME}}
4554 title=[[User:Ævar Arnfjörð Bjarmason]]
4558 <p>Ævar Arnfjörð Bjarmason
4563 Magic Word: {{PAGENAME}} with metacharacters
4565 title=[['foo & bar = baz']]
4569 <p><i>'foo & bar = baz'</i>
4574 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4576 title=[[*RFC 1234 http://example.com/]]
4580 <p>*RFC 1234 http://example.com/
4585 Magic Word: {{PAGENAMEE}}
4587 title=[[User:Ævar Arnfjörð Bjarmason]]
4591 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4596 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4598 title=[[*RFC 1234 http://example.com/]]
4602 <p>*RFC_1234_http://example.com/
4607 Magic Word: {{REVISIONID}}
4616 Magic Word: {{SCRIPTPATH}}
4625 Magic Word: {{SERVER}}
4629 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
4634 Magic Word: {{SERVERNAME}}
4643 Magic Word: {{SITENAME}}
4652 Namespace 1 {{ns:1}}
4661 Namespace 1 {{ns:01}}
4670 Namespace 0 {{ns:0}} (bug 4783)
4678 Namespace 0 {{ns:00}} (bug 4783)
4686 Namespace -1 {{ns:-1}}
4695 Namespace User {{ns:User}}
4704 Namespace User talk {{ns:User_talk}}
4713 Namespace User talk {{ns:uSeR tAlK}}
4722 Namespace File {{ns:File}}
4731 Namespace File {{ns:Image}}
4740 Namespace (lang=de) Benutzer {{ns:User}}
4751 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4757 <p>Benutzer Diskussion
4765 {{urlencode:hi world?!}}
4766 {{urlencode:hi world?!|WIKI}}
4767 {{urlencode:hi world?!|PATH}}
4768 {{urlencode:hi world?!|QUERY}}
4781 Magic links: internal link to RFC (bug 479)
4785 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4790 Magic links: RFC (bug 479)
4794 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4799 Magic links: ISBN (bug 1937)
4803 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4808 Magic links: PMID incorrectly converts space to underscore
4812 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4821 Nonexistent template
4823 {{thistemplatedoesnotexist}}
4825 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4830 Template with invalid target containing tags
4832 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4834 <p>{{a<b>b</b>|foo|a=b|a = b}}
4839 Template with invalid target containing unclosed tag
4841 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4843 <p>{{a<b>|foo|a=b|a = b}}</b>
4850 This is a test template
4858 <p>This is a test template
4863 Template with explicit namespace
4867 <p>This is a test template
4875 This is a test template with parameter {{{param}}}
4881 {{paramtest|param=foo}}
4883 <p>This is a test template with parameter foo
4888 Template:paramtestnum
4894 Template unnamed parameter
4896 {{paramtestnum|Main Page|the main page}}
4898 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4903 Template:templatesimple
4909 Template:templateredirect
4911 #redirect [[Template:templatesimple]]
4915 Template:templateasargtestnum
4921 Template:templateasargtest
4923 {{template{{{templ}}}}}
4927 Template:templateasargtest2
4933 Template with template name as unnamed argument
4935 {{templateasargtestnum|templatesimple}}
4942 Template with template name as argument
4944 {{templateasargtest|templ=simple}}
4951 Template with template name as argument (2)
4953 {{templateasargtest2|templ=templatesimple}}
4960 Template:templateasargtestdefault
4962 {{{{{templ|templatesimple}}}}}
4972 Template with default value
4974 {{templateasargtestdefault}}
4981 Template with default value (value set)
4983 {{templateasargtestdefault|templ=templa}}
4992 {{templateredirect}}
4999 Template with argument in separate line
5001 {{ templateasargtest |
5009 Template with complex template as argument
5012 param ={{ templateasargtest |
5015 <p>This is a test template with parameter (test)
5020 Template with thumb image (with link in description)
5023 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5025 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>
5030 Template:complextemplate
5032 {{{1}}} {{paramtest|
5033 param ={{{param}}}}}
5037 Template with complex arguments
5040 param ={{ templateasargtest |
5041 templ = simple }}|[[Template:complextemplate|link]]}}
5043 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5048 BUG 553: link with two variables in a piped link
5051 |[[{{{1}}}|{{{2}}}]]
5056 <td>[[{{{1}}}|{{{2}}}]]
5062 Magic variable as template parameter
5064 {{paramtest|param={{SITENAME}}}}
5066 <p>This is a test template with parameter MediaWiki
5073 [[{{{param}}}|link]]
5077 Template parameter as link source
5079 {{linktest|param=Main Page}}
5081 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5086 Template-generated attribute string (k='v')
5088 <span {{attr_str|id|v1}}>bar</span>
5090 <p><span id="v1">bar</span>
5097 including another template, {{paramtest|param={{{arg}}}}}
5101 Template passing argument to another template
5103 {{paramtest2|arg='hmm'}}
5105 <p>including another template, This is a test template with parameter 'hmm'
5116 Template as link source
5120 [[{{linktest2}}|Main Page]]
5122 [[{{linktest2}}]]Page
5124 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5125 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5126 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5144 Template infinite loop
5148 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5153 Template from main namespace
5172 BUG 529: Template with table, not included at beginning of line
5191 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5211 BUG 41: Template parameters shown as broken links
5220 Template with targets containing wikilinks
5224 {{[[{{echo|foo}}]]}}
5226 {{{{echo|[[foo}}]]}}
5228 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5229 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5237 ''None'' of '''this''' should be
5239 but rather passed unmodified
5243 # hmm, fix this or just deprecate msgnw and document its behavior?
5249 {{msgnw:MSGNW test}}
5251 <p>''None'' of '''this''' should be
5253 but rather passed unmodified
5261 {{int:youhavenewmessages|lots of money|not!}}
5263 <p>You have lots of money (not!).
5270 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5274 <includeonly> and <noinclude> being included
5285 <onlyinclude>Foo</onlyinclude>bar
5289 <onlyinclude> being included
5301 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5305 <onlyinclude> and <includeonly> being included
5314 <includeonly> and <noinclude> on a page
5316 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5323 Un-closed <noinclude>
5330 <onlyinclude> on a page
5332 <onlyinclude>Foo</onlyinclude>bar
5339 Un-closed <onlyinclude>
5346 Self-closed noinclude, includeonly, onlyinclude tags
5357 Unbalanced includeonly and noinclude tags
5361 |b</noinclude></noinclude>
5362 |c</noinclude></includeonly>
5363 |d</includeonly></includeonly>
5372 <td>c</includeonly>
5374 <td>d</includeonly></includeonly>
5380 Template:Includeonly section
5383 ==Includeonly section==
5389 Bug 6563: Edit link generation for section shown by <includeonly>
5391 {{includeonly section}}
5393 <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>
5394 <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>
5398 # Uses same input as the contents of [[Template:Includeonly section]]
5400 Bug 6563: Section extraction for section shown by <includeonly>
5405 ==Includeonly section==
5413 Bug 6563: Edit link generation for section suppressed by <includeonly>
5416 ==Includeonly section==
5420 <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>
5425 Bug 6563: Section extraction for section suppressed by <includeonly>
5430 ==Includeonly section==
5438 Un-closed <includeonly>
5445 ### <includeonly> and <noinclude> in attributes
5448 0. includeonly around the entire attribute
5450 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5452 <p><span id="v2">bar</span>
5457 1. includeonly in html attr key
5459 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5461 <p><span id="foo">bar</span>
5466 2. includeonly in html attr value
5468 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5469 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5471 <p><span id="v1">bar</span>
5472 <span id="v1">bar</span>
5477 3. includeonly in part of an attr value
5479 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5481 <p><span style="color:red;">bar</span>
5486 ### Testing parsing of templates where a template arg
5487 ### has the same name as the template itself.
5497 Templates: Template Name/Arg clash: 1. Use of positional param
5506 Templates: Template Name/Arg clash: 2. Use of named param
5515 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5524 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5528 Templates: 1. Simple use
5537 Templates: 2. Inside a block tag
5539 <div>{{echo|Foo}}</div>
5546 Templates: P-wrapping: 1a. Templates on consecutive lines
5557 Templates: P-wrapping: 1b. Templates on consecutive lines
5571 Templates: P-wrapping: 1c. Templates on consecutive lines
5574 {{echo|bar}} <div>baz</div>
5583 Templates: Inline Text: 1. Multiple tmeplate uses
5585 {{echo|Foo}}bar{{echo|baz}}
5592 Templates: Inline Text: 2. Back-to-back template uses
5594 {{echo|Foo}}{{echo|bar}}
5601 Templates: Block Tags: 1. Multiple template uses
5603 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5605 <div>Foo</div><div>bar</div><div>baz</div>
5610 Templates: Block Tags: 2. Back-to-back template uses
5612 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5614 <div>Foo</div><div>bar</div>
5619 Templates: Links: 1. Simple example
5621 {{echo|[[Foo|bar]]}}
5623 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5628 Templates: Links: 2. Generation of link href
5630 [[{{echo|Foo}}|bar]]
5632 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5637 Templates: Links: 3. Generation of part of a link href
5639 [[Fo{{echo|o}}|bar]]
5643 [[Foo{{echo|bar}}baz]]
5645 [[Foo{{echo|bar}}|bar]]
5647 [[:Foo{{echo|bar}}]]
5649 [[:Foo{{echo|bar}}|bar]]
5651 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5652 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5653 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5654 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5655 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5656 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5661 Templates: Links: 4. Multiple templates generating link href
5663 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5665 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5670 Templates: Links: 5. Generation of link text
5672 [[Foo|{{echo|bar}}]]
5674 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5679 Templates: Links: 5. Nested templates (only outermost template should be marked)
5681 {{echo|[[{{echo|Foo}}|bar]]}}
5683 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5688 Templates: HTML Tag: 1. Generation of HTML attr. key
5690 <div {{echo|style}}="color:red;">foo</div>
5692 <div style="color:red;">foo</div>
5697 Templates: HTML Tag: 2. Generation of HTML attr. value
5699 <div style={{echo|'color:red;'}}>foo</div>
5701 <div style="color:red;">foo</div>
5706 Templates: HTML Tag: 3. Generation of HTML attr key and value
5708 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5710 <div style="color:red;">foo</div>
5715 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5717 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5719 <div title="This is a long title with just one piece templated">foo</div>
5724 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5726 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5728 <div title="This is a long title with just one piece templated">foo</div>
5733 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5735 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5737 <div title="This is a long title with just one piece templated">foo</div>
5742 Templates: HTML Tables: 1. Generating start of a HTML table
5744 {{echo|<table><tr><td>foo</td>}}</tr></table>
5746 <table><tr><td>foo</td></tr></table>
5751 Templates: HTML Tables: 2a. Generating middle of a HTML table
5753 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5755 <table><tr><td>foo</td></tr></table>
5760 Templates: HTML Tables: 2b. Generating middle of a HTML table
5762 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5764 <table><tr><td>foo</td></tr></table>
5769 Templates: HTML Tables: 3. Generating end of a HTML table
5771 <table><tr>{{echo|<td>foo</td></tr></table>}}
5773 <table><tr><td>foo</td></tr></table>
5778 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5780 {{echo|<table>}}<tr><td>foo</td></tr></table>
5782 <table><tr><td>foo</td></tr></table>
5787 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5789 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5791 <table><tr><td>foo</td></tr></table>
5796 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5798 <table><tr>{{echo|<td>}}foo</td></tr></table>
5800 <table><tr><td>foo</td></tr></table>
5805 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5807 <table><tr><td>foo{{echo|</td>}}</tr></table>
5809 <table><tr><td>foo</td></tr></table>
5814 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5816 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5818 <table><tr><td>foo</td></tr></table>
5823 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5825 <table><tr><td>foo</td></tr>{{echo|</table>}}
5827 <table><tr><td>foo</td></tr></table>
5832 Templates: Wiki Tables: 1. Fostering of entire template content
5840 <tr><td></td></tr></table>
5845 Templates: Wiki Tables: 2. Fostering of partial template content
5855 <tr><td></td></tr></table>
5860 Templates: Wiki Tables: 3. td-content via multiple templates
5863 {{echo|{{pipe}}a}}{{echo|b}}
5874 Templates: Wiki Tables: 4. Templated tags, no content
5880 <tr><td></td></tr></table>
5885 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5899 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5913 Templates: Lists: Multi-line list-items via templates
5915 *{{echo|a {{nonexistent|
5917 *{{echo|b {{nonexistent|
5920 <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>
5921 </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>
5927 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5929 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5931 <p><i>ab</i>c<i>d</i>e
5936 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5937 (PHP parser generates misnested html)
5941 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5943 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5947 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5948 (PHP parser generates misnested html)
5952 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5955 <div><i>b</i>c<i>d</i></div>
5960 Templates: Ugly nesting: 4. Divs opened/closed across templates
5962 a<div>b{{echo|c</div>d}}e
5969 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5975 |{{echo|foo</table>}}
5979 <table about="#mwt1" typeof="mw:Object/Template ">
5980 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5981 bar</span><span about="#mwt1">
5986 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5996 <td>1. {{echo|foo </table>}}</td>
5998 <td>2. {{echo|baz </table>}}</td>
6011 <table about="#mwt1" typeof="mw:Object/Template">
6016 <td >1. foo </td></tr></tbody></table></td>
6018 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6019 </span><span about="#mwt1">
6021 abc</span><span about="#mwt1">
6022 </span><span about="#mwt1">
6023 </span><span about="#mwt1">
6024 </span><span about="#mwt1">
6025 </span><span about="#mwt1">
6027 xyz</span><span about="#mwt1">
6028 </span><span about="#mwt1">
6033 Templates: Ugly templates: 3. newline-only template parameter
6042 # This looks like a bug: a single newline triggers p/br for some reason.
6044 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6055 Parser Functions: 1. Simple example
6064 Parser Functions: 2. Nested use (only outermost should be marked up)
6073 ### Pre-save transform tests
6076 pre-save transform: subst:
6082 This is a test template
6086 pre-save transform: normal template
6096 pre-save transform: nonexistent template
6100 {{thistemplatedoesnotexist}}
6102 {{thistemplatedoesnotexist}}
6107 pre-save transform: subst magic variables
6116 # This is bug 89, which I fixed. -- wtm
6118 pre-save transform: subst: templates with parameters
6122 {{subst:paramtest|param="something else"}}
6124 This is a test template with parameter "something else"
6130 <nowiki>'''not wiki'''</nowiki>
6134 pre-save transform: nowiki in subst (bug 1188)
6138 {{subst:nowikitest}}
6140 <nowiki>'''not wiki'''</nowiki>
6145 Template:commenttest
6147 This template has <!-- a comment --> in it.
6151 pre-save transform: comment in subst (bug 1936)
6155 {{subst:commenttest}}
6157 This template has <!-- a comment --> in it.
6161 pre-save transform: unclosed tag
6165 <nowiki>'''not wiki'''
6167 <nowiki>'''not wiki'''
6171 pre-save transform: mixed tag case
6175 <NOwiki>'''not wiki'''</noWIKI>
6177 <NOwiki>'''not wiki'''</noWIKI>
6181 pre-save transform: unclosed comment in <nowiki>
6185 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6187 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6193 <span onmouseover="alert('crap')">Oh no</span>
6197 (confirming safety of fix for subst bug 1936)
6199 {{Template:dangerous}}
6201 <p><span>Oh no</span>
6206 pre-save transform: comment containing gallery (bug 5024)
6210 <!-- <gallery>data</gallery> -->
6212 <!-- <gallery>data</gallery> -->
6216 pre-save transform: comment containing extension
6220 <!-- <tag>data</tag> -->
6222 <!-- <tag>data</tag> -->
6226 pre-save transform: comment containing nowiki
6230 <!-- <nowiki>data</nowiki> -->
6232 <!-- <nowiki>data</nowiki> -->
6236 pre-save transform: <noinclude> in subst (bug 3298)
6246 pre-save transform: <onlyinclude> in subst (bug 3298)
6258 {{<includeonly>subst:</includeonly>Includes}}
6262 Template:SafeSubstTest
6264 {{<includeonly>safesubst:</includeonly>Includes}}
6268 bug 22297: safesubst: works during PST
6272 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6278 bug 22297: safesubst: works during normal parse
6287 subst: does not work during normal parse
6291 <p>{{subst:Includes}}
6296 pre-save transform: context links ("pipe trick")
6300 [[Article (context)|]]
6303 [[Bar:Article (context)|]]
6304 [[:Bar:Article (context)|]]
6306 [[|Article (context)]]
6310 [[Article (context)|Article]]
6311 [[Bar:Article|Article]]
6312 [[:Bar:Article|Article]]
6313 [[Bar:Article (context)|Article]]
6314 [[:Bar:Article (context)|Article]]
6316 [[Article (context)]]
6317 [[Bar:X (Y) Z|X (Y) Z]]
6318 [[:Bar:X (Y) Z|X (Y) Z]]
6322 pre-save transform: context links ("pipe trick") with interwiki prefix
6326 [[interwiki:Article|]]
6327 [[:interwiki:Article|]]
6328 [[interwiki:Bar:Article|]]
6329 [[:interwiki:Bar:Article|]]
6331 [[interwiki:Article|Article]]
6332 [[:interwiki:Article|Article]]
6333 [[interwiki:Bar:Article|Bar:Article]]
6334 [[:interwiki:Bar:Article|Bar:Article]]
6338 pre-save transform: context links ("pipe trick") with parens in title
6340 pst title=[[Somearticle (context)]]
6344 [[Article (context)|Article]]
6348 pre-save transform: context links ("pipe trick") with comma in title
6350 pst title=[[Someplace, Somewhere]]
6353 [[Otherplace, Elsewhere|]]
6354 [[Otherplace, Elsewhere, Anywhere|]]
6356 [[Otherplace, Somewhere|Otherplace]]
6357 [[Otherplace, Elsewhere|Otherplace]]
6358 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6362 pre-save transform: context links ("pipe trick") with parens and comma
6364 pst title=[[Someplace (IGNORED), Somewhere]]
6367 [[Otherplace (place), Elsewhere|]]
6369 [[Otherplace, Somewhere|Otherplace]]
6370 [[Otherplace (place), Elsewhere|Otherplace]]
6374 pre-save transform: context links ("pipe trick") with comma and parens
6376 pst title=[[Who, me? (context)]]
6379 [[Me, Myself, and I (1937 song)|]]
6381 [[Yes, you. (context)|Yes, you.]]
6382 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6386 pre-save transform: context links ("pipe trick") with namespace
6388 pst title=[[Ns:Somearticle]]
6392 [[Ns:Article|Article]]
6396 pre-save transform: context links ("pipe trick") with namespace and parens
6398 pst title=[[Ns:Somearticle (context)]]
6402 [[Ns:Article (context)|Article]]
6406 pre-save transform: context links ("pipe trick") with namespace and comma
6408 pst title=[[Ns:Somearticle, Context, Whatever]]
6412 [[Ns:Article, Context, Whatever|Article]]
6416 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6418 pst title=[[Ns:Somearticle, Context (context)]]
6422 [[Ns:Article (context)|Article]]
6426 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6428 pst title=[[Ns:Somearticle (IGNORED), Context]]
6432 [[Ns:Article, Context|Article]]
6436 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6440 [[Article(context)|]]
6441 [[Bar:Article(context)|]]
6442 [[:Bar:Article(context)|]]
6443 [[|Article(context)]]
6447 [[Article(context)|Article]]
6448 [[Bar:Article(context)|Article]]
6449 [[:Bar:Article(context)|Article]]
6450 [[Article(context)]]
6452 [[:Bar:X(Y)Z|X(Y)Z]]
6456 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6460 [[Article (context)|]]
6461 [[Bar:Article (context)|]]
6462 [[:Bar:Article (context)|]]
6463 [[|Article (context)]]
6467 [[Article (context)|Article]]
6468 [[Bar:Article (context)|Article]]
6469 [[:Bar:Article (context)|Article]]
6470 [[Article (context)]]
6471 [[Bar:X (Y) Z|X (Y) Z]]
6472 [[:Bar:X (Y) Z|X (Y) Z]]
6476 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6480 [[Article(context)|]]
6481 [[Bar:Article(context)|]]
6482 [[:Bar:Article(context)|]]
6483 [[|Article(context)]]
6487 [[Article(context)|Article]]
6488 [[Bar:Article(context)|Article]]
6489 [[:Bar:Article(context)|Article]]
6490 [[Article(context)]]
6492 [[:Bar:X(Y)Z|X(Y)Z]]
6496 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6500 [[Article (context), context|]]
6501 [[Article (context),context|]]
6502 [[Bar:Article (context), context|]]
6503 [[Bar:Article (context),context|]]
6504 [[:Bar:Article (context), context|]]
6505 [[:Bar:Article (context),context|]]
6507 [[Article (context), context|Article]]
6508 [[Article (context),context|Article]]
6509 [[Bar:Article (context), context|Article]]
6510 [[Bar:Article (context),context|Article]]
6511 [[:Bar:Article (context), context|Article]]
6512 [[:Bar:Article (context),context|Article]]
6516 pre-save transform: trim trailing empty lines
6520 Empty lines are trimmed
6526 Empty lines are trimmed
6530 pre-save transform: Signature expansion
6535 * <noinclude>~~~</noinclude>
6536 * <includeonly>~~~</includeonly>
6537 * <onlyinclude>~~~</onlyinclude>
6539 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6540 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6541 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6542 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6547 pre-save transform: Signature expansion in nowiki tags (bug 93)
6553 <nowiki>~~~~</nowiki>
6555 <includeonly><nowiki>~~~~</nowiki></includeonly>
6557 <noinclude><nowiki>~~~~</nowiki></noinclude>
6559 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6561 {{subst:Foo}} shall be converted to FOO
6563 As well as inside noinclude/onlyinclude
6564 <noinclude>{{subst:Foo}}</noinclude>
6565 <onlyinclude>{{subst:Foo}}</onlyinclude>
6567 But not inside includeonly
6568 <includeonly>{{subst:Foo}}</includeonly>
6572 <nowiki>~~~~</nowiki>
6574 <includeonly><nowiki>~~~~</nowiki></includeonly>
6576 <noinclude><nowiki>~~~~</nowiki></noinclude>
6578 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6580 FOO shall be converted to FOO
6582 As well as inside noinclude/onlyinclude
6583 <noinclude>FOO</noinclude>
6584 <onlyinclude>FOO</onlyinclude>
6586 But not inside includeonly
6587 <includeonly>{{subst:Foo}}</includeonly>
6591 ### Message transform tests
6594 message transform: magic variables
6604 message transform: should not transform wiki markup
6614 message transform: <noinclude> in transcluded template (bug 4926)
6624 message transform: <onlyinclude> in transcluded template (bug 4926)
6634 {{#special:}} page name, known
6638 {{#special:Recentchanges}}
6640 Special:RecentChanges
6644 {{#special:}} page name with subpage, known
6648 {{#special:Recentchanges/param}}
6650 Special:RecentChanges/param
6654 {{#special:}} page name, unknown
6658 {{#special:foobarnonexistent}}
6660 No such special page
6664 {{#speciale:}} page name, known
6668 {{#speciale:Recentchanges}}
6670 Special:RecentChanges
6674 {{#speciale:}} page name with subpage, known
6678 {{#speciale:Recentchanges/param}}
6680 Special:RecentChanges/param
6684 {{#speciale:}} page name, unknown
6688 {{#speciale:foobarnonexistent}}
6690 No_such_special_page
6699 [[Image:foobar.jpg]]
6701 <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>
6708 [[Image:foobar.jpg|right]]
6710 <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>
6715 Simple image (using File: namespace, now canonical)
6719 <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>
6726 [[Image:foobar.jpg|right|Caption text]]
6728 <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>
6733 Image with empty attribute
6735 [[Image:foobar.jpg|right||Caption text]]
6737 <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>
6742 Image with link tails
6744 123[[Image:foobar.jpg]]456
6745 123[[Image:foobar.jpg|right]]456
6746 123[[Image:foobar.jpg|thumb]]456
6748 <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
6750 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
6751 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
6756 Image with multiple captions -- only last one is accepted
6758 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6760 <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>
6765 Image with width attribute at different positions
6767 [[Image:foobar.jpg|200px|right|Caption]]
6768 [[Image:foobar.jpg|right|200px|Caption]]
6769 [[Image:foobar.jpg|right|Caption|200px]]
6771 <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>
6772 <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>
6773 <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>
6778 Image with link parameter, wiki target
6780 [[Image:foobar.jpg|link=Target page]]
6782 <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>
6787 Image with link parameter, URL target
6789 [[Image:foobar.jpg|link=http://example.com/]]
6791 <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>
6796 Image with link parameter, wgExternalLinkTarget
6798 [[Image:foobar.jpg|link=http://example.com/]]
6800 wgExternalLinkTarget='foobar'
6802 <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>
6807 Image with link parameter, wgNoFollowLinks set to false
6809 [[Image:foobar.jpg|link=http://example.com/]]
6811 wgNoFollowLinks=false
6813 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6818 Image with link parameter, wgNoFollowDomainExceptions
6820 [[Image:foobar.jpg|link=http://example.com/]]
6822 wgNoFollowDomainExceptions='example.com'
6824 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6829 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6831 [[Image:foobar.jpg|link=http://example.com/|Title]]
6833 wgExternalLinkTarget='foobar'
6835 <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>
6840 Image with empty link parameter
6842 [[Image:foobar.jpg|link=]]
6844 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6849 Image with link parameter (wiki target) and unnamed parameter
6851 [[Image:foobar.jpg|link=Target page|Title]]
6853 <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>
6858 Image with link parameter (URL target) and unnamed parameter
6860 [[Image:foobar.jpg|link=http://example.com/|Title]]
6862 <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>
6867 Thumbnail image with link parameter
6869 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6871 <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>
6876 Image with frame and link
6878 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6880 <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>
6885 Image with frame and link and explicit alt
6887 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6889 <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>
6894 Image with wiki markup in implicit alt
6896 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6898 <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>
6903 Image with wiki markup in explicit alt
6905 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6907 <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>
6912 Link to image page- image page normally doesn't exists, hence edit link
6913 Add test with existing image page
6914 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6918 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6923 bug 18784 Link to non-existent image page with caption should use caption as link text
6925 [[:Image:test|caption]]
6927 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6932 Frameless image caption with a free URL
6934 [[Image:foobar.jpg|http://example.com]]
6936 <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>
6941 Thumbnail image caption with a free URL
6943 [[Image:foobar.jpg|thumb|http://example.com]]
6945 <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>
6950 Thumbnail image caption with a free URL and explicit alt
6952 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6954 <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>
6959 BUG 1887: A ISBN with a thumbnail
6961 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6963 <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>
6968 BUG 1887: A RFC with a thumbnail
6970 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6972 <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" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6977 BUG 1887: A mailto link with a thumbnail
6979 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6981 <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>
6985 # Pending resolution to bug 368
6987 BUG 648: Frameless image caption with a link
6989 [[Image:foobar.jpg|text with a [[link]] in it]]
6991 <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>
6996 BUG 648: Frameless image caption with a link (suffix)
6998 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7000 <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>
7005 BUG 648: Frameless image caption with an interwiki link
7007 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7009 <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>
7014 BUG 648: Frameless image caption with a piped interwiki link
7016 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7018 <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>
7023 Escape HTML special chars in image alt text
7025 [[Image:foobar.jpg|& < > "]]
7027 <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>
7032 BUG 499: Alt text should have Ӓ, not &1234;
7034 [[Image:foobar.jpg|♀]]
7036 <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>
7041 Broken image caption with link
7043 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7045 <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.
7050 Image caption containing another image
7052 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7054 <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>
7059 Image caption containing a newline
7061 [[Image:Foobar.jpg|This
7064 <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>
7069 Parsoid: Image caption containing leading space
7070 (The leading space should not trigger nowiki escaping in wt2wt mode)
7072 [[Image:Foobar.jpg|thumb| bar]]
7074 <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>bar</div></div></div>
7079 Bug 3090: External links other than http: in image captions
7081 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7083 <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>
7090 [[Image:foobar.jpg|a|class=b]]
7092 <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>
7099 #REDIRECT [[File:Barfoo.jpg]]
7105 [[Image:Barfoo.jpg]]
7107 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7112 Missing image with uploads disabled
7116 [[Image:Foobaz.jpg]]
7118 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7127 Subpage test/subpage
7135 subpage title=[[Subpage test]]
7139 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7144 Subpage noslash link
7146 subpage title=[[Subpage test]]
7150 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7159 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7164 BUG 561: {{/Subpage}}
7166 subpage title=[[Page]]
7170 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7178 Category:MediaWiki User's Guide
7186 [[:Category:MediaWiki User's Guide]]
7188 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7197 [[Category:MediaWiki User's Guide]]
7199 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7203 PAGESINCATEGORY invalid title fatal (r33546 fix)
7205 {{PAGESINCATEGORY:<bogus>}}
7212 Category with different sort key
7216 [[Category:MediaWiki User's Guide|Foo]]
7218 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7222 Category with identical sort key
7226 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7228 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7232 Category with empty sort key
7237 [[Category:MediaWiki User's Guide|]]
7239 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7243 Category with empty sort key and parentheses
7248 [[Category:Foo (bar)|]]
7250 [[Category:Foo (bar)|Foo]]
7254 Category with link tail
7259 123[[Category:Foo]]456
7261 123[[Category:Foo]]456
7265 Category with template
7270 [[Category:{{echo|Foo}}]]
7272 [[Category:{{echo|Foo}}]]
7276 Category with template in sort key
7281 [[Category:Foo|{{echo|Bar}}]]
7283 [[Category:Foo|{{echo|Bar}}]]
7287 Category with template in sort key and title
7292 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7294 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7298 Category / paragraph interactions
7300 Foo [[Category:Baz]] Bar
7302 Foo [[Category:Baz]]
7310 [[Category:Baz]] Bar
7323 {{echo|[[Category:Baz]]}}
7338 ### Inter-language links
7341 Inter-language links
7347 [[zh:食品]]
7349 es:Alimento fr:Nourriture zh:食品
7353 Duplicate interlanguage links (bug 24502)
7369 Basic section headings
7376 ===Smaller headline===
7379 <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>
7382 <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>
7385 <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>
7391 Section headings with TOC
7394 === Subheadline 1 ===
7395 ===== Skipping a level =====
7396 ====== Skipping a level ======
7400 ===Another headline===
7402 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7404 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7406 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7408 <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>
7410 <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>
7417 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7419 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7424 <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>
7425 <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>
7426 <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>
7427 <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>
7428 <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>
7431 <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>
7435 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7437 Handling of sections up to level 6 and beyond
7440 == Level 2 Heading==
7441 === Level 3 Heading===
7442 ==== Level 4 Heading====
7443 ===== Level 5 Heading=====
7444 ====== Level 6 Heading======
7445 ======= Level 7 Heading=======
7446 ======== Level 8 Heading========
7447 ========= Level 9 Heading=========
7448 ========== Level 10 Heading==========
7450 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7452 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7454 <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>
7456 <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>
7458 <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>
7460 <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>
7462 <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>
7463 <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>
7464 <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>
7465 <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>
7466 <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>
7479 <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>
7480 <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>
7481 <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>
7482 <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>
7483 <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>
7484 <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>
7485 <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>
7486 <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>
7487 <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>
7488 <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>
7493 TOC regression (bug 9764)
7497 ==== title 1.1.1 ====
7502 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7504 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7506 <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>
7508 <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>
7511 <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>
7514 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7516 <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>
7521 <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>
7522 <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>
7523 <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>
7524 <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>
7525 <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>
7526 <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>
7531 TOC with wgMaxTocLevel=3 (bug 6204)
7537 ==== title 1.1.1 ====
7542 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7544 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7546 <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>
7547 <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>
7550 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7552 <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>
7557 <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>
7558 <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>
7559 <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>
7560 <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>
7561 <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>
7562 <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>
7567 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7573 ====Section 1.1.1====
7574 ====Section 1.1.1.1====
7577 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7579 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7581 <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>
7584 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7587 <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>
7588 <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>
7589 <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>
7590 <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>
7591 <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>
7597 Resolving duplicate section names
7602 <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>
7603 <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>
7608 Resolving duplicate section names with differing case (bug 10721)
7613 <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>
7614 <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>
7626 Template with sections, __NOTOC__
7633 <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>
7634 <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>
7635 <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>
7636 <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>
7641 __NOEDITSECTION__ keyword
7647 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7648 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7653 Link inside a section heading
7655 ==Section with a [[Main Page|link]] in it==
7657 <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>
7662 TOC regression (bug 12077)
7669 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7671 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7673 <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>
7676 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7679 <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>
7680 <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>
7681 <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>
7686 BUG 1219 URL next to image (good)
7688 http://example.com [[Image:foobar.jpg]]
7690 <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>
7695 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7698 The line above must have a trailing space!
7701 But just in case it doesn't...
7703 <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>
7704 <p>The line above must have a trailing space!
7706 <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>
7707 <p>But just in case it doesn't...
7712 Header with special characters (bug 25462)
7714 The tooltips shall not show entities to the user (ie. be double escaped)
7731 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7733 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7735 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7736 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7737 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7738 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7739 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7742 <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>
7745 <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>
7748 <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>
7751 <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>
7754 <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>
7760 Headers with excess '=' characters
7761 (Are similar tests necessary beyond the 1st level?)
7765 =''italic'' heading==
7766 ==''italic'' heading=
7768 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7770 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7771 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7772 <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>
7773 <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>
7776 <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>
7777 <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>
7778 <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>
7779 <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>
7784 BUG 1219 URL next to image (broken)
7786 http://example.com[[Image:foobar.jpg]]
7788 <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>
7793 Bug 1186 news: in the middle of text
7795 http://en.wikinews.org/wiki/Wikinews:Workplace
7797 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7803 Namespaced link must have a title
7812 Namespaced link must have a title (bad fragment version)
7814 [[Project:#fragment]]
7816 <p>[[Project:#fragment]]
7822 ### HTML tags and HTML attributes
7826 div with no attributes
7828 <div>HTML rocks</div>
7830 <div>HTML rocks</div>
7835 div with double-quoted attribute
7837 <div id="rock">HTML rocks</div>
7839 <div id="rock">HTML rocks</div>
7844 div with single-quoted attribute
7846 <div id='rock'>HTML rocks</div>
7848 <div id="rock">HTML rocks</div>
7853 div with unquoted attribute
7855 <div id=rock>HTML rocks</div>
7857 <div id="rock">HTML rocks</div>
7862 div with illegal double attributes
7864 <div id="a" id="b">HTML rocks</div>
7866 <div id="b">HTML rocks</div>
7870 # FIXME: produce empty string instead of "class" in the PHP parser, following
7873 div with empty attribute value, space before equals
7877 <div class =>HTML rocks</div>
7879 <div class="">HTML rocks</div>
7883 # The PHP parser escapes the opening brace to { for some reason, so
7884 # disabled this test for it.
7886 div with braces in attribute value
7890 <div title="{}">Foo</div>
7892 <div title="{}">Foo</div>
7895 # This it very inconsistent in the PHP parser: it returns
7896 # class="class" if there is a space between the name and the equal sign (see
7897 # 'div with empty attribute value, space before equals'), but strips the
7898 # attribute completely if the space is missing. We hope that not much content
7899 # depends on this, so are implementing the behavior below in Parsoid for
7900 # consistencies' sake. Disabled for the PHP parser.
7901 # FIXME: fix this behavior in the PHP parser?
7903 div with empty attribute value, no space before equals
7907 <div class=>HTML rocks</div>
7909 <div class="">HTML rocks</div>
7914 HTML multiple attributes correction
7916 <p class="error" class="awesome">Awesome!</p>
7918 <p class="awesome">Awesome!</p>
7923 Table multiple attributes correction
7926 !+ class="error" class="awesome"| status
7931 <th class="awesome"> status
7939 <DIV ID="x">HTML ROCKS</DIV>
7941 <div id="x">HTML ROCKS</div>
7946 Non-ASCII pseudo-tags are rendered as text
7955 Pseudo-tag with URL 'name' renders as url link
7957 <http://example.com/>
7959 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7964 text with amp in the middle of nowhere
7968 <p>Remember AT&T?
7973 text with character entity: eacute
7975 I always thought é was a cute letter.
7977 <p>I always thought é was a cute letter.
7982 text with entity-escaped character entity-like string: eacute
7984 I always thought &eacute; was a cute letter.
7986 <p>I always thought &eacute; was a cute letter.
7991 text with undefined character entity: xacute
7993 I always thought &xacute; was a cute letter.
7995 <p>I always thought &xacute; was a cute letter.
8007 [[Media:Foobar.jpg]]
8009 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8014 Media link with text
8016 [[Media:Foobar.jpg|A neat file to look at]]
8018 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8022 # FIXME: this is still bad HTML tag nesting
8024 Media link with nasty text
8025 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8027 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8029 <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>
8034 Media link to nonexistent file (bug 1702)
8036 [[Media:No such.jpg]]
8038 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8043 Image link to nonexistent file (bug 1850 - good)
8045 [[Image:No such.jpg]]
8047 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8052 :Image link to nonexistent file (bug 1850 - bad)
8054 [[:Image:No such.jpg]]
8056 <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>
8063 Character reference normalization in link text (bug 1938)
8065 [[Main Page|this&that]]
8067 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8074 Test for unicode normalization
8076 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8080 (bug 19451) Links should refer to the normalized form.
8088 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8089 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8090 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8091 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8092 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8097 Empty attribute crash test (bug 2067)
8099 <font color="">foo</font>
8101 <p><font color="">foo</font>
8106 Empty attribute crash test single-quotes (bug 2067)
8108 <font color=''>foo</font>
8110 <p><font color="">foo</font>
8115 Attribute test: equals, then nothing
8117 <font color=>foo</font>
8124 Attribute test: unquoted value
8126 <font color=x>foo</font>
8128 <p><font color="x">foo</font>
8133 Attribute test: unquoted but illegal value (hash)
8135 <font color=#x>foo</font>
8137 <p><font color="#x">foo</font>
8142 Attribute test: no value
8144 <font color>foo</font>
8146 <p><font color="color">foo</font>
8151 Bug 2095: link with three closing brackets
8155 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8160 Bug 2095: link with pipe and three closing brackets
8164 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8169 Bug 2095: link with pipe and three closing brackets, version 2
8171 [[Main Page|[http://example.com/]]]
8173 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8183 Template:Dangerous attribute
8185 " onmouseover="alert(document.cookie)
8189 Template:Dangerous style attribute
8191 border-size: expression(alert(document.cookie))
8197 <div style="float: right; {{{1}}}">Magic div</div>
8201 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8203 <div title="{{test}}"></div>
8205 <div title="This is a test template"></div>
8210 Bug 2304: HTML attribute safety (dangerous template; 2309)
8212 <div title="{{dangerous attribute}}"></div>
8214 <div title=""></div>
8219 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8221 <div style="{{dangerous style attribute}}"></div>
8223 <div style="/* insecure input */"></div>
8228 Bug 2304: HTML attribute safety (safe parameter; 2309)
8230 {{div style|width: 200px}}
8232 <div style="float: right; width: 200px">Magic div</div>
8237 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8239 {{div style|width: expression(alert(document.cookie))}}
8241 <div style="/* insecure input */">Magic div</div>
8246 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8248 {{div style|"><script>alert(document.cookie)</script>}}
8250 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8255 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8257 {{div style|" ><script>alert(document.cookie)</script>}}
8259 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8264 Bug 2304: HTML attribute safety (link)
8266 <div title="[[Main Page]]"></div>
8268 <div title="[[Main Page]]"></div>
8273 Bug 2304: HTML attribute safety (italics)
8275 <div title="''foobar''"></div>
8277 <div title="''foobar''"></div>
8282 Bug 2304: HTML attribute safety (bold)
8284 <div title="'''foobar'''"></div>
8286 <div title="'''foobar'''"></div>
8292 Bug 2304: HTML attribute safety (ISBN)
8294 <div title="ISBN 1234567890"></div>
8296 <div title="ISBN 1234567890"></div>
8301 Bug 2304: HTML attribute safety (RFC)
8303 <div title="RFC 1234"></div>
8305 <div title="RFC 1234"></div>
8310 Bug 2304: HTML attribute safety (PMID)
8312 <div title="PMID 1234567890"></div>
8314 <div title="PMID 1234567890"></div>
8319 Bug 2304: HTML attribute safety (web link)
8321 <div title="http://example.com/"></div>
8323 <div title="http://example.com/"></div>
8328 Bug 2304: HTML attribute safety (named web link)
8330 <div title="[http://example.com/ link]"></div>
8332 <div title="[http://example.com/ link]"></div>
8337 Bug 3244: HTML attribute safety (extension; safe)
8339 <div style="<nowiki>background:blue</nowiki>"></div>
8341 <div style="background:blue"></div>
8346 Bug 3244: HTML attribute safety (extension; unsafe)
8348 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8350 <div style="/* insecure input */"></div>
8354 # More MSIE fun discovered by Tom Gilder
8357 MSIE CSS safety test: spurious slash
8359 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8361 <div style="/* insecure input */">evil</div>
8366 MSIE CSS safety test: hex code
8368 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8370 <div style="/* insecure input */">evil</div>
8375 MSIE CSS safety test: comment in url
8377 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8379 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8384 MSIE CSS safety test: comment in expression
8386 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8388 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8394 Table attribute legitimate extension
8397 !+ style="<nowiki>color:blue</nowiki>"| status
8402 <th style="color:blue"> status
8408 Table attribute safety
8411 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8416 <th style="/* insecure input */"> status
8422 CSS line continuation 1
8424 <div style="background-image: u\ rl(test.jpg);"></div>
8426 <div style="/* insecure input */"></div>
8431 CSS line continuation 2
8433 <div style="background-image: u\ rl(test.jpg); "></div>
8435 <div style="/* insecure input */"></div>
8446 Expansion of multi-line templates in attribute values (bug 6255)
8448 <div style="background: {{identity|#00FF00}}">-</div>
8450 <div style="background: #00FF00">-</div>
8456 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8458 <div style="background:
8461 <div style="background: #00FF00">-</div>
8466 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8468 <div style="background: #00FF00">-</div>
8470 <div style="background: #00FF00">-</div>
8475 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8478 Parser hook: empty input
8491 Parser hook: empty input using terminated empty elements
8504 Parser hook: empty input using terminated empty elements (space before)
8517 Parser hook: basic input
8531 Parser hook: case insensitive
8545 Parser hook: case insensitive, redux
8558 Parser hook: nested tags
8562 <tag><tag></tag></tag>
8573 Parser hook: basic arguments
8575 <tag width=200 height = "100" depth = '50' square></tag>
8583 'square' => 'square',
8590 Parser hook: argument containing a forward slash (bug 5344)
8592 <tag filename='/tmp/bla'></tag>
8597 'filename' => '/tmp/bla',
8604 Parser hook: empty input using terminated empty elements (bug 2374)
8617 # </tag> should be output literally since there is no matching tag that begins it
8619 Parser hook: basic arguments using terminated empty elements (bug 2374)
8621 <tag width=200 height = "100" depth = '50' square/>
8631 'square' => 'square',
8640 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8644 Parser hook: static parser hook not inside a comment
8646 <statictag>hello, world</statictag>
8647 <statictag action=flush/>
8655 Parser hook: static parser hook inside a comment
8657 <!-- <statictag>hello, world</statictag> -->
8658 <statictag action=flush/>
8664 # Nested template calls; this case was broken by Parser.php rev 1.506,
8668 Template:One-parameter
8670 (My parameter is: {{{1}}})
8674 Template:Map-one-parameter
8680 Nested template calls
8682 {{Map-one-parameter|One-parameter|param}}
8684 <p>(My parameter is: param)
8693 Sanitizer: Closing of open tags
8695 <s></s><table></table>
8697 <s></s><table></table>
8702 Sanitizer: Closing of open but not closed tags
8711 Sanitizer: Closing of closed but not open tags
8720 Sanitizer: Closing of closed but not open table tags
8722 Table not started</td></tr></table>
8724 <p>Table not started</td></tr></table>
8729 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8731 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8733 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8738 Sanitizer: Validating the contents of the id attribute (bug 4515)
8744 Something, but definitely not <br id="9" />...
8748 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8752 <br id="foo" /><br id="foo" />
8754 Something need to be done. foo-2 ?
8758 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8761 <meta itemprop="hello" content="world">
8762 <meta http-equiv="refresh" content="5">
8763 <meta itemprop="hello" http-equiv="refresh" content="5">
8764 <link itemprop="hello" href="{{SERVER}}">
8765 <link rel="stylesheet" href="{{SERVER}}">
8766 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8769 <div itemscope="itemscope">
8770 <p> <meta itemprop="hello" content="world" />
8771 <meta http-equiv="refresh" content="5">
8772 <meta itemprop="hello" content="5" />
8774 <link itemprop="hello" href="http://example.org" />
8775 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
8776 <link itemprop="hello" href="http://example.org" />
8782 Language converter: output gets cut off unexpectedly (bug 5757)
8786 this bit is safe: }-
8788 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8790 then we get cut off here: }-
8792 all additional text is vanished
8794 <p>this bit is safe: }-
8795 </p><p>but if we add a conversion instance: xxx
8796 </p><p>then we get cut off here: }-
8797 </p><p>all additional text is vanished
8802 Self closed html pairs (bug 5487)
8805 <center><font id="bug" />Centered text</center>
8806 <div><font id="bug2" />In div text</div>
8808 <center><font id="bug" />Centered text</center>
8809 <div><font id="bug2" />In div text</div>
8818 Punctuation: nbsp before exclamation
8822 <p>C'est grave !
8827 Punctuation: CSS !important (bug 11874)
8829 <div style="width:50% !important">important</div>
8831 <div style="width:50% !important">important</div>
8836 Punctuation: CSS ! important (bug 11874; with space after)
8838 <div style="width:50% ! important">important</div>
8840 <div style="width:50% ! important">important</div>
8846 HTML bullet list, closed tags (bug 5497)
8861 HTML bullet list, unclosed tags (bug 5497)
8878 HTML ordered list, closed tags (bug 5497)
8893 HTML ordered list, unclosed tags (bug 5497)
8910 HTML nested bullet list, closed tags (bug 5497)
8935 HTML nested bullet list, open tags (bug 5497)
8960 HTML nested ordered list, closed tags (bug 5497)
8985 HTML nested ordered list, open tags (bug 5497)
9010 HTML ordered list item with parameters oddity
9012 <ol><li id="fragment">One</li></ol>
9014 <ol><li id="fragment">One</li></ol>
9019 bug 5918: autonumbering
9021 [http://first/] [http://second] [ftp://ftp]
9025 [mailto:enclosed@mail.tld With target]
9027 [mailto:enclosed@mail.tld]
9029 mailto:inline@mail.tld
9031 <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>
9032 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9033 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9034 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9035 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9041 # Security and HTML correctness
9042 # From Nick Jenkins' fuzz testing
9046 Fuzz testing: Parser13
9061 Fuzz testing: Parser14
9066 <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>
9067 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9069 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9076 Fuzz testing: Parser14-table
9081 <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>
9082 <table style="__TOC__">
9088 # Known to produce bogus xml (extra </td>)
9090 Fuzz testing: Parser16
9110 Fuzz testing: Parser21
9113 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9118 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9128 Fuzz testing: Parser22
9130 http://===r:::https://b
9134 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9142 # Known to produce bad XML for now
9144 Fuzz testing: Parser24
9151 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9152 <br style="onmouseover='alert(document.cookie);' " />
9154 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9159 <u class="|">}}}} >
9160 <br style="onmouseover='alert(document.cookie);'" />
9162 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9171 # Note: the current result listed for this is not what the original one was,
9172 # but the original bug was JavaScript injection, which is fixed in any case.
9173 # It's not clear that the original result listed was any more correct than the
9174 # current one. Original result:
9177 # <li class="||">
9178 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9180 Fuzz testing: Parser25 (bug 6055)
9186 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9188 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9193 Fuzz testing: URL adjacent extension (with space, clean)
9196 http://example.com <nowiki>junk</nowiki>
9198 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9203 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9206 http://example.com<nowiki>junk</nowiki>
9208 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9213 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9216 http://example.com<pre>junk</pre>
9218 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9223 Fuzz testing: image with bogus manual thumbnail
9225 [[Image:foobar.jpg|thumbnail= ]]
9227 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9232 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9234 <pre dir=" "></pre>
9236 <pre dir=" "></pre>
9241 Parsing optional HTML elements (Bug 6171)
9246 <td> Some tabular data</td>
9247 <td> More tabular data ...
9248 <td> And yet som tabular data</td>
9254 <td> Some tabular data</td>
9255 <td> More tabular data ...
9256 </td><td> And yet som tabular data</td>
9263 Correct handling of <td>, <tr> (Bug 6171)
9268 <td> Some tabular data</td>
9269 <td> More tabular data ...</td>
9270 <td> And yet som tabular data</td>
9276 <td> Some tabular data</td>
9277 <td> More tabular data ...</td>
9278 <td> And yet som tabular data</td>
9286 Parsing crashing regression (fr:JavaScript)
9290 <p></body></x>
9295 Inline wiki vs wiki block nesting
9301 <p><b>Bold paragraph</b>
9302 </p><p>New wiki paragraph
9307 Inline HTML vs wiki block nesting
9315 <p><b>Bold paragraph</b>
9316 </p><p>New wiki paragraph
9320 # Original result was this:
9321 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9323 # While that might be marginally more intuitive, maybe, the six-apostrophe
9324 # construct is clearly pathological and the result stated here (which is what
9325 # the parser actually does) is about as reasonable as anything.
9327 Mixing markup for italics and bold
9330 '''bold''''''bold''bolditalics'''''
9332 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9340 Article for special page transclusion test
9344 Special page transclusion
9347 {{Special:Prefixindex/Xyzzyx}}
9349 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9354 Special page transclusion twice (bug 5021)
9357 {{Special:Prefixindex/Xyzzyx}}
9358 {{Special:Prefixindex/Xyzzyx}}
9360 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9361 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9366 Transclusion of default MediaWiki message
9368 {{MediaWiki:Mainpage}}
9375 Transclusion of nonexistent MediaWiki message
9377 {{MediaWiki:Mainpagexxx}}
9379 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9384 Transclusion of MediaWiki message with underscore
9386 {{MediaWiki:history_short}}
9393 Transclusion of MediaWiki message with space
9395 {{MediaWiki:history short}}
9402 Invalid header with following text
9412 Section extraction test (section 0)
9432 Section extraction test (section 1)
9454 Section extraction test (section 2)
9475 Section extraction test (section 3)
9495 Section extraction test (section 4)
9519 Section extraction test (section 5)
9539 Section extraction test (section 6)
9560 Section extraction test (section 7)
9580 Section extraction test (section 8)
9600 Section extraction test (section 9)
9621 Section extraction test (section 10)
9641 Section extraction test (nonexistent section 11)
9660 Section extraction test with bogus heading (section 1)
9665 ==bogus== not a legal section
9669 ==bogus== not a legal section
9673 Section extraction test with bogus heading (section 2)
9678 ==bogus== not a legal section
9685 Section extraction test with comment after heading (section 1)
9697 Section extraction test with comment after heading (section 2)
9709 Section extraction test with bogus <nowiki> heading (section 1)
9714 ==bogus== <nowiki>not a legal section</nowiki>
9718 ==bogus== <nowiki>not a legal section</nowiki>
9722 Section extraction test with bogus <nowiki> heading (section 2)
9727 ==bogus== <nowiki>not a legal section</nowiki>
9734 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9735 # instead of respecting commented sections
9737 Section extraction prefixed by comment (section 1)
9748 Section extraction prefixed by comment (section 2)
9759 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9760 # instead of respecting HTML-style headings
9762 Section extraction, mixed wiki and html (section 1)
9778 Section extraction, mixed wiki and html (section 2)
9794 # Formerly testing for bug 3342
9796 Section extraction, heading surrounded by <noinclude>
9800 <noinclude>==unmarked==</noinclude>
9806 # Test behaviour of bug 19910
9808 Sectiion with all-equals
9813 The line above must have a trailing space
9816 But just in case it doesn't...
9820 But just in case it doesn't...
9824 Section replacement test (section 0)
9855 Section replacement test (section 1)
9884 Section replacement test (section 2)
9914 Section replacement test (section 3)
9945 Section replacement test (section 4)
9972 Section replacement test (section 5)
10003 Section replacement test (section 6)
10033 Section replacement test (section 7)
10064 Section replacement test (section 8)
10095 Section replacement test (section 9)
10124 Section replacement test (section 10)
10154 Section replacement test with initial whitespace (bug 13728)
10158 Preformatted initial line
10162 Preformatted initial line
10169 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10181 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10194 Section extraction, <pre> around bogus header (bug 10309)
10211 Section replacement, <pre> around bogus header (bug 10309)
10213 noxml replace=2,"xxx"
10234 Handling of 
 in URLs
10238 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10245 5 quotes, code coverage +1 line
10252 Special:Search page linking.
10256 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10268 * {{BASEPAGENAMEE}}
10270 * {{TALKPAGENAMEE}}
10271 * {{SUBJECTPAGENAME}}
10272 * {{SUBJECTPAGENAMEE}}
10278 * {{SUBJECTSPACEE}}
10279 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10281 <ul><li> Parser test
10282 </li><li> Parser test
10283 </li><li> Parser test
10284 </li><li> Parser_test
10285 </li><li> Parser test
10286 </li><li> Parser_test
10287 </li><li> Talk:Parser test
10288 </li><li> Talk:Parser_test
10289 </li><li> Parser test
10290 </li><li> Parser_test
10297 </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>
10301 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10311 image4 |300px| centre
10312 image5.svg| http://///////
10317 <ul class="gallery">
10318 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10319 <div style="height: 150px;">Image1.png</div>
10320 <div class="gallerytext">
10323 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10324 <div style="height: 150px;">Image2.gif</div>
10325 <div class="gallerytext">
10330 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10331 <div style="height: 150px;">Image3</div>
10332 <div class="gallerytext">
10335 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10336 <div style="height: 150px;">Image4</div>
10337 <div class="gallerytext">
10342 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10343 <div style="height: 150px;">Image5.svg</div>
10344 <div class="gallerytext">
10345 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10349 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10350 <div style="height: 150px;">* image6</div>
10351 <div class="gallerytext">
10359 Gallery (with options)
10361 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10362 File:Nonexistant.jpg|caption
10363 File:Nonexistant.jpg
10364 image:foobar.jpg|some '''caption''' [[Main Page]]
10366 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10369 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10370 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10371 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10372 <div style="height: 70px;">Nonexistant.jpg</div>
10373 <div class="gallerytext">
10378 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10379 <div style="height: 70px;">Nonexistant.jpg</div>
10380 <div class="gallerytext">
10383 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10384 <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>
10385 <div class="gallerytext">
10386 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10390 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10391 <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>
10392 <div class="gallerytext">
10395 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10396 <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>
10397 <div class="gallerytext">
10407 Gallery with wikitext inside caption
10410 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10411 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10414 <ul class="gallery">
10415 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10416 <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>
10417 <div class="gallerytext">
10418 <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>
10422 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10423 <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>
10424 <div class="gallerytext">
10425 <p>This is a test template
10434 gallery (with showfilename option)
10436 <gallery showfilename>
10437 File:Nonexistant.jpg|caption
10438 File:Nonexistant.jpg
10439 image:foobar.jpg|some '''caption''' [[Main Page]]
10443 <ul class="gallery">
10444 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10445 <div style="height: 150px;">Nonexistant.jpg</div>
10446 <div class="gallerytext">
10447 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10452 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10453 <div style="height: 150px;">Nonexistant.jpg</div>
10454 <div class="gallerytext">
10455 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10459 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10460 <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>
10461 <div class="gallerytext">
10462 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10463 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10467 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10468 <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>
10469 <div class="gallerytext">
10470 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10479 Gallery (with namespace-less filenames)
10482 File:Nonexistant.jpg
10488 <ul class="gallery">
10489 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10490 <div style="height: 150px;">Nonexistant.jpg</div>
10491 <div class="gallerytext">
10494 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10495 <div style="height: 150px;">Nonexistant.jpg</div>
10496 <div class="gallerytext">
10499 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10500 <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>
10501 <div class="gallerytext">
10504 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10505 <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>
10506 <div class="gallerytext">
10514 HTML Hex character encoding (spells the word "JavaScript")
10516 JavaScript
10518 <p>JavaScript
10523 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10527 <p>&#xsee;&#XSEE;
10532 HTML Hex character encoding mixed case
10541 __FORCETOC__ override
10553 ISBN 978-0-1234-56 789
10555 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10560 ISBN followed by 5 spaces
10571 ISBN ISBN 1234567890
10573 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10578 Bug 22905: <abbr> followed by ISBN followed by </a>
10580 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10582 <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>
10591 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10596 Double RFC with a wiki link
10600 <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>
10609 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10614 Centre-aligned image
10616 [[Image:foobar.jpg|centre]]
10618 <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>
10625 [[Image:foobar.jpg|none]]
10627 <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>
10632 Width + Height sized image (using px) (height is ignored)
10634 [[Image:foobar.jpg|640x480px]]
10636 <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>
10641 Width-sized image (using px, no following whitespace)
10643 [[Image:foobar.jpg|640px]]
10645 <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>
10650 Width-sized image (using px, with following whitespace - test regression from r39467)
10652 [[Image:foobar.jpg|640px ]]
10654 <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>
10659 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10661 [[Image:foobar.jpg| 640px]]
10663 <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>
10668 Another italics / bold test
10676 # Note the results may be incorrect, as parserTest output included this:
10677 # XML error: Mismatched tag at byte 6120:
10678 # ...<dd> </dt></dl> </dd...
10686 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10697 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10699 Images with the "|" character in the comment
10701 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10703 <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>
10708 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10710 <html><script>alert(1);</script></html>
10712 <p><html><script>alert(1);</script></html>
10717 HTML with raw HTML ($wgRawHtml==true)
10721 <html><script>alert(1);</script></html>
10723 <p><script>alert(1);</script>
10728 Parents of subpages, one level up
10730 subpage title=[[Subpage test/L1/L2/L3]]
10734 <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>
10740 Parents of subpages, one level up, not named
10742 subpage title=[[Subpage test/L1/L2/L3]]
10746 <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>
10753 Parents of subpages, two levels up
10755 subpage title=[[Subpage test/L1/L2/L3]]
10761 <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
10762 </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>
10767 Parents of subpages, two levels up, without trailing slash or name.
10769 subpage title=[[Subpage test/L1/L2/L3]]
10778 Parents of subpages, two levels up, with lots of extra trailing slashes.
10780 subpage title=[[Subpage test/L1/L2/L3]]
10784 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10789 Definition list code coverage
10795 <dl><dt> title  </dt><dd> def
10796 </dd><dt> title </dt><dd> def
10797 </dd><dt>title</dt><dd> def
10803 Don't fall for the self-closing div
10805 <div>hello world</div/>
10807 <div>hello world</div>
10816 <p>[[:Template:Msg]]
10825 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10829 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10831 Always escape literal '>' in output, not just after '<'
10845 <p>This is a test template
10846 This is a test template
10858 Inclusion of !userCanEdit() content
10862 <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>
10868 Out-of-order TOC heading levels
10877 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10879 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10881 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10882 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10885 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10887 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10888 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10893 <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>
10894 <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>
10895 <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>
10896 <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>
10897 <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>
10898 <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>
10904 ISBN with a dummy number
10914 ISBN with space-delimited number
10918 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10924 ISBN with multiple spaces, no number
10943 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10944 </p><p>ISBN 12345678901
10950 ISBN with trailing year (bug 8110)
10952 ISBN 1-234-56789-0 - 2006
10954 ISBN 1 234 56789 0 - 2006
10956 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10957 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10965 {{anchorencode:foo bar©#%n}}
10967 <p>foo_bar.C2.A9.23.25n
10972 anchorencode trims spaces
10974 {{anchorencode: __pretty__please__}}
10981 anchorencode deals with links
10983 {{anchorencode: [[hello|world]] [[hi]]}}
10990 anchorencode deals with templates
10992 {{anchorencode: {{Foo}} }}
10999 anchorencode encodes like the TOC generator: (bug 18431)
11001 === _ +:.3A%3A&&]] ===
11002 {{anchorencode: _ +:.3A%3A&&]] }}
11005 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
11006 <p>.2B:.3A.253A.26.26.5D.5D
11010 # Expected output in the following test is not necessarily expected (there
11011 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11012 # only testing for well-formedness.
11014 Bug 6200: blockquotes and paragraph formatting
11034 Bug 8293: Use of center tag ruins paragraph formatting
11056 ### Language variants related tests
11059 Self-link in language variants
11061 title=[[Dunav]] language=sr
11063 Both [[Dunav]] and [[Дунав]] are names for this river.
11065 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11076 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11078 title=[[Duna]] language=sr
11080 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11082 <p><a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Дуна</a> is not a self-link while <strong class="selflink">Duna</strong> and <strong class="selflink">Dуна</strong> are still self-links.
11087 Link to pages in language variants
11091 Main Page can be written as [[Маин Паге]]
11093 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11099 Multiple links to pages in language variants
11103 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11105 <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>.
11111 Simple template in language variants
11117 <p>This is a test template
11123 Template with explicit namespace in language variants
11129 <p>This is a test template
11135 Basic test for template parameter in language variants
11139 {{парамтест|param=foo}}
11141 <p>This is a test template with parameter foo
11147 Simple category in language variants
11151 [[Category:МедиаWики Усер'с Гуиде]]
11153 <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>
11170 Don't convert blue categorylinks to another variant (bug 33210)
11174 [[A]][[Category:分类]]
11176 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11181 Stripping -{}- tags (language variants)
11185 Latin proverb: -{Ne nuntium necare}-
11187 <p>Latin proverb: Ne nuntium necare
11193 Prevent conversion with -{}- tags (language variants)
11195 language=sr variant=sr-ec
11197 Latinski: -{Ne nuntium necare}-
11199 <p>Латински: Ne nuntium necare
11205 Prevent conversion of text with -{}- tags (language variants)
11207 language=sr variant=sr-ec
11209 Latinski: -{Ne nuntium necare}-
11211 <p>Латински: Ne nuntium necare
11217 Prevent conversion of links with -{}- tags (language variants)
11219 language=sr variant=sr-ec
11223 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11229 -{}- tags within headlines (within html for parserConvert())
11231 language=sr variant=sr-ec
11235 <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>
11241 Explicit definition of language variant alternatives
11243 language=zh variant=zh-tw
11245 -{zh:China;zh-tw:Taiwan}-, not China
11247 <p>Taiwan, not China
11253 Conversion around HTML tags
11255 language=sr variant=sr-ec
11257 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11258 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11261 <span title="ЛаCтин">ски</span>
11267 Explicit session-wise language variant mapping (A flag and - flag)
11269 language=zh variant=zh-tw
11271 Taiwan is not China.
11272 But -{A|zh:China;zh-tw:Taiwan}- is China,
11273 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11274 and -{China}- is China.
11276 <p>Taiwan is not China.
11277 But Taiwan is Taiwan,
11278 (This should be stripped!)
11279 and China is China.
11284 Explicit session-wise language variant mapping (H flag for hide)
11286 language=zh variant=zh-tw
11288 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11291 <p>(This should be stripped!)
11297 Adding explicit conversion rule for title (T flag)
11299 language=zh variant=zh-tw showtitle
11301 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11304 <p>Should be stripped!
11309 Testing that changing the language variant here in the tests actually works
11311 language=zh variant=zh showtitle
11313 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11316 <p>Should be stripped!
11321 Recursive conversion of alt and title attrs shouldn't clear converter state
11323 language=zh variant=zh-cn showtitle
11325 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11326 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11330 Should be stripped<span title="Exclamation">!</span>
11335 Bug 24072: more test on conversion rule for title
11337 language=zh variant=zh-tw showtitle
11339 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11340 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11343 <p>This should be stripped!
11344 This won't take interferes with the title rule.
11349 Raw output of variant escape tags (R flag)
11351 language=zh variant=zh-tw
11353 Raw: -{R|zh:China;zh-tw:Taiwan}-
11355 <p>Raw: zh:China;zh-tw:Taiwan
11360 Nested using of manual convert syntax
11362 language=zh variant=zh-hk
11364 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11366 <p>Nested: Hello Hong Kong!
11371 Proper conversion of text in external links
11373 language=sr variant=sr-ec
11375 http://www.google.com
11376 gopher://www.google.com
11377 [http://www.google.com http://www.google.com]
11378 [gopher://www.google.com gopher://www.google.com]
11379 [https://www.google.com irc://www.google.com]
11380 [ftp://www.google.com www.google.com/ftp://dir]
11381 [//www.google.com www.google.com]
11383 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11384 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11385 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11386 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11387 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11388 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11389 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11394 Do not convert roman numbers to language variants
11396 language=sr variant=sr-ec
11400 <p>Фридрих IV је цар.
11405 Unclosed language converter markup "-{"
11416 Don't convert raw rule "-{R|=>}-" to "=>"
11433 Bug 529: Uncovered bullet
11443 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11444 # Templates in Wikipedia rely on this behavior, as tidy has always been
11445 # enabled there. These tests are normally run *without* tidy, so specify the
11446 # full output here.
11447 # To test realistic parsing behavior, apply a tidy-like transformation to both
11448 # the expected output and your parser's output.
11450 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11452 ******* Foo {{bullet}}
11454 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11467 Bug 529: Uncovered table already at line-start
11490 Bug 529: Uncovered bullet in parser function result
11492 * Foo {{lc:{{bullet}} }}
11501 Bug 5678: Double-parsed template argument
11503 {{lc:{{{1}}}|hello}}
11510 Bug 5678: Double-parsed template invocation
11512 {{lc:{{paramtest {{!}} param = hello }} }}
11514 <p>{{paramtest | param = hello }}
11519 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11522 title=[[Main Page]]
11524 {{PRVNÍVELKÉ:ěščř}}
11525 {{prvnívelké:ěščř}}
11545 Morwen/13: Unclosed link followed by heading
11552 <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>
11557 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11564 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11569 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11576 <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>
11591 Paragraphs inside divs (no extra line breaks)
11603 Paragraphs inside divs (extra line break on open)
11618 Paragraphs inside divs (extra line break on close)
11633 Paragraphs inside divs (extra line break on open and close)
11650 Nesting tags, paragraphs on lines which begin with <div>
11654 <div></div><strong>A
11663 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11665 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11669 <blockquote>Line one
11671 Line two</blockquote>
11673 <blockquote>Line one
11674 Line two</blockquote>
11679 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11686 Line two</blockquote>
11691 Line two</blockquote>
11696 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11700 <blockquote>Line one
11705 <blockquote>Line one
11713 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11732 Paragraphs inside blockquotes/divs (no extra line breaks)
11734 <blockquote><div>Line one
11736 Line two</div></blockquote>
11738 <blockquote><div>Line one
11739 Line two</div></blockquote>
11744 Paragraphs inside blockquotes/divs (extra line break on open)
11749 Line two</div></blockquote>
11754 Line two</div></blockquote>
11759 Paragraphs inside blockquotes/divs (extra line break on close)
11761 <blockquote><div>Line one
11764 </div></blockquote>
11766 <blockquote><div>Line one
11769 </div></blockquote>
11774 Paragraphs inside blockquotes/divs (extra line break on open and close)
11780 </div></blockquote>
11786 </div></blockquote>
11791 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11793 wgLinkHolderBatchSize=0
11799 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11800 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11801 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11806 Free external link invading image caption
11808 [[Image:Foobar.jpg|thumb|http://x|hello]]
11810 <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>
11815 Bug 15196: localised external link numbers
11819 [http://en.wikipedia.org/]
11821 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11826 Multibyte character in padleft
11828 {{padleft:-Hello|7|Æ}}
11835 Multibyte character in padright
11837 {{padright:Hello-|7|Æ}}
11844 formatdate parser function
11846 {{#formatdate:2009-03-24}}
11848 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11853 formatdate parser function, with default format
11855 {{#formatdate:2009-03-24|mdy}}
11857 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11862 Spacing of numbers in formatted dates
11864 {{#formatdate:January 15}}
11866 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11871 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
11873 language=nl title=[[MediaWiki:Common.css]]
11875 {{#formatdate:2009-03-24|dmy}}
11877 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11890 Edit comment with link
11894 I like the [[Main Page]] a lot
11896 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11900 Edit comment with link and link text
11904 I like the [[Main Page|best pages]] a lot
11906 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11910 Edit comment with link and link text with suffix
11914 I like the [[Main Page|best page]]s a lot
11916 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11920 Edit comment with section link (non-local, eg in history list)
11922 comment title=[[Main Page]]
11924 /* External links */ removed bogus entries
11926 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11930 Edit comment with section link and text before it (non-local, eg in history list)
11932 comment title=[[Main Page]]
11934 pre-comment text /* External links */ removed bogus entries
11936 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>
11940 Edit comment with section link (local, eg in diff view)
11942 comment local title=[[Main Page]]
11944 /* External links */ removed bogus entries
11946 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11950 Edit comment with subpage link (bug 14080)
11954 title=[[Subpage test]]
11956 Poked at a [[/subpage]] here...
11958 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11962 Edit comment with subpage link and link text (bug 14080)
11966 title=[[Subpage test]]
11968 Poked at a [[/subpage|neat little page]] here...
11970 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11974 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11977 title=[[Subpage test]]
11979 Poked at a [[/subpage]] here...
11981 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11985 Edit comment with bare anchor link (local, as on diff)
11989 title=[[Main Page]]
11993 <a href="#section">#section</a>
11997 Edit comment with bare anchor link (non-local, as on history)
12000 title=[[Main Page]]
12004 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12008 Anchor starting with underscore
12012 <p><a href="#_ref">One</a>
12017 Id starting with underscore
12019 <div id="_ref"></div>
12021 <div id="_ref"></div>
12026 Space normalisation on autocomment (bug 22784)
12029 title=[[Main Page]]
12031 /* __hello__world__ */
12033 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12037 percent-encoding and + signs in comments (Bug 26410)
12041 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12043 <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>
12047 Bad images - basic functionality
12056 Bad images - bug 16039: text after bad image disappears
12070 Verify that displaytitle works (bug #22501) no displaytitle
12074 wgAllowDisplayTitle=true
12075 wgRestrictDisplayTitle=false
12077 this is not the the title
12080 <p>this is not the the title
12085 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12090 wgAllowDisplayTitle=true
12091 wgRestrictDisplayTitle=false
12093 this is not the the title
12094 {{DISPLAYTITLE:whatever}}
12097 <p>this is not the the title
12102 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12107 wgAllowDisplayTitle=true
12108 wgRestrictDisplayTitle=true
12110 this is not the the title
12111 {{DISPLAYTITLE:whatever}}
12114 <p>this is not the the title
12119 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12124 wgAllowDisplayTitle=true
12125 wgRestrictDisplayTitle=true
12127 this is not the the title
12128 {{DISPLAYTITLE:screen}}
12131 <p>this is not the the title
12136 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12141 wgAllowDisplayTitle=false
12143 this is not the the title
12144 {{DISPLAYTITLE:screen}}
12147 <p>this is not the the title
12148 <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>
12153 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12158 wgAllowDisplayTitle=false
12160 this is not the the title
12163 <p>this is not the the title
12168 preload: check <noinclude> and <includeonly>
12172 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12178 preload: check <onlyinclude>
12182 Goodbye <onlyinclude>Hello world</onlyinclude>
12188 preload: can pass tags through if we want to
12192 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12194 <includeonly>Hello world</includeonly>
12198 preload: check that it doesn't try to do tricks
12202 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12204 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12208 Play a bit with r67090 and bug 3158
12212 <div style="width:50% !important"> </div>
12213 <div style="width:50% !important"> </div>
12214 <div style="width:50% !important"> </div>
12215 <div style="border : solid;"> </div>
12217 <div style="width:50% !important"> </div>
12218 <div style="width:50% !important"> </div>
12219 <div style="width:50% !important"> </div>
12220 <div style="border : solid;"> </div>
12225 HTML5 data attributes
12227 <span data-foo="bar">Baz</span>
12228 <p data-abc-def_hij="">Quuz</p>
12230 <p><span data-foo="bar">Baz</span>
12232 <p data-abc-def_hij="">Quuz</p>
12237 percent-encoding and + signs in internal links (Bug 26410)
12239 [[User:+%]] [[Page+title%]]
12240 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12241 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12242 [[%33%45]] [[%33%45+]]
12244 <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>
12245 <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>
12246 <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>
12247 <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>
12252 Special characters in embedded file links (bug 27679)
12254 [[File:Contains & ampersand.jpg]]
12255 [[File:Does not exist.jpg|Title with & ampersand]]
12257 <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>
12258 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12264 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12266 Text's been normalized?
12268 <p>Text's been normalized?
12273 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12275 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12277 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12282 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12284 [http://www.example.org/ ideograms]
12286 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12291 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12293 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12295 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12319 Bug 31098 Template which includes system messages which includes the template
12323 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12324 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12329 Bug31490 Turkish: ucfirst 'blah'
12340 Bug31490 Turkish: ucfirst 'ix'
12351 Bug31490 Turkish: lcfirst 'BLAH'
12362 Bug31490 Turkish: ucfırst (with a dotless i)
12368 <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>
12373 Bug31490 ucfırst (with a dotless i) with English language
12379 <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>
12384 Bug 26375: TOC with italics
12386 title=[[Main Page]]
12389 == ''Lost'' episodes ==
12391 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12393 <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>
12396 <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>
12401 Bug 26375: TOC with bold
12403 title=[[Main Page]]
12406 == '''should be bold''' then normal text ==
12408 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12410 <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>
12413 <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>
12418 Bug 33845: Headings become cursive in TOC when they contain an image
12420 title=[[Main Page]]
12423 == Image [[Image:foobar.jpg]] ==
12425 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12427 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12430 <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>
12435 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12437 title=[[Main Page]]
12440 == <blockquote>Quote</blockquote> ==
12442 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12444 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12447 <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>
12452 Unclosed tags in TOC
12454 title=[[Main Page]]
12458 <small>Hanc marginis exiguitas non caperet.</small>
12461 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12463 <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>
12466 <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>
12467 <p><small>Hanc marginis exiguitas non caperet.</small>
12473 Multiple tags in TOC
12476 == <i>Foo</i> <b>Bar</b> ==
12478 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12480 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12482 <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>
12483 <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>
12486 <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>
12487 <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>
12492 Tags with parameters in TOC
12495 == <sup class="in-h2">Hello</sup> ==
12497 == <sup class="a > b">Evilbye</sup> ==
12499 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12501 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12502 <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>
12505 <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>
12506 <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>
12511 span tags with directionality in TOC
12514 == <span dir="ltr">C++</span> ==
12516 == <span dir="rtl">זבנג!</span> ==
12518 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12520 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12522 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12524 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12526 <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>
12527 <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>
12528 <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>
12529 <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>
12530 <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>
12533 <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>
12534 <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>
12535 <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>
12536 <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>
12537 <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>
12544 == {{int:headline_sample}} ==
12548 Bug 32057: Title needed when expanding <h> nodes.
12550 title=[[Main Page]]
12554 <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>
12559 Strip marker in urlencode
12561 {{urlencode:x<nowiki/>y}}
12562 {{urlencode:x<nowiki/>y|wiki}}
12563 {{urlencode:x<nowiki/>y|path}}
12590 Strip marker in formatNum
12592 {{formatnum:1<nowiki/>2}}
12593 {{formatnum:1<nowiki/>2|R}}
12601 Strip marker in grammar
12605 {{grammar:elative|foo<nowiki/>bar}}
12612 Strip marker in padleft
12614 {{padleft:|2|x<nowiki/>y}}
12621 Strip marker in padright
12623 {{padright:|2|x<nowiki/>y}}
12630 Strip marker in anchorencode
12632 {{anchorencode:x<nowiki/>y}}
12639 nowiki inside link inside heading (bug 18295)
12641 ==[[foo|x<nowiki>y</nowiki>z]]==
12643 <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>
12648 new support for bdi element (bug 31817)
12650 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12652 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12657 Ignore pipe between table row attributes
12661 |- id=foo | style='color: red'
12669 <tr id="foo" style="color: red">
12676 Gallery override link with WikiLink (bug 34852)
12679 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12682 <ul class="gallery">
12683 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12684 <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>
12685 <div class="gallerytext">
12695 Gallery override link with absolute external link (bug 34852)
12698 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12701 <ul class="gallery">
12702 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12703 <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>
12704 <div class="gallerytext">
12714 Gallery override link with malicious javascript (bug 34852)
12717 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12720 <ul class="gallery">
12721 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12722 <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>
12723 <div class="gallerytext">
12733 Gallery with invalid title as link (bug 43964)
12736 File:foobar.jpg|link=<
12739 <ul class="gallery">
12740 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12741 <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>
12742 <div class="gallerytext">
12750 Language parser function
12759 Padleft and padright as substr
12761 {{padleft:|3|abcde}}
12762 {{padright:|3|abcde}}
12770 Bug 34939 - Case insensitive link parsing ([HttP://])
12772 [HttP://MediaWiki.Org/]
12774 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12779 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12781 [HttP://MediaWiki.Org/ MediaWiki]
12783 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12788 Bug 34939 - Case insensitive link parsing (HttP://)
12790 HttP://MediaWiki.Org/
12792 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12797 ### Parsoids-specific tests
12798 ### Parsoid-PHP parser incompatibilities
12801 1. SOL-sensitive wikitext tokens as template-args
12815 #### The following section of tests are primarily to test
12816 #### wikitext escaping capabilities of Parsoid.
12817 #### A lot of the tests are disabled for the PHP parser either
12818 #### because of minor newline diffs or other reasons.
12819 #### As Parsoid serializer can handle newlines and other HTML
12820 #### more robustly, some of these tests might get reenabled
12821 #### for the PHP parser.
12823 #### --------------- Headings ---------------
12825 #### 1. Nested inside html <h1>=foo=</h1>
12826 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12827 #### 3. Nested inside html with wikitext split by html tags
12828 #### 4. No escape needed
12829 #### 5. Empty headings <h1></h1>
12830 #### 6. Heading chars in SOL context
12831 #### ----------------------------------------
12833 Headings: 0. Unnested
12835 <nowiki>=foo=</nowiki>
12837 <nowiki>=foo</nowiki>''a''=
12840 </p><p>=foo<i>a</i>=
12845 Headings: 1. Nested inside html
12849 =<nowiki>=foo=</nowiki>=
12850 ==<nowiki>=foo=</nowiki>==
12851 ===<nowiki>=foo=</nowiki>===
12852 ====<nowiki>=foo=</nowiki>====
12853 =====<nowiki>=foo=</nowiki>=====
12854 ======<nowiki>=foo=</nowiki>======
12865 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12870 <nowiki>*bar</nowiki>
12874 <nowiki>=bar=</nowiki>
12882 Headings: 3. Nested inside html with wikitext split by html tags
12886 =<nowiki>=</nowiki>'''bold'''foo==
12888 <h1>=<b>bold</b>foo=</h1>
12892 Headings: 4. No escaping needed (testing just h1 and h2)
12907 <h1><i>=</i>foo=</h1>
12912 Headings: 5. Empty headings
12916 =<nowiki></nowiki>=
12917 ==<nowiki></nowiki>==
12918 ===<nowiki></nowiki>===
12919 ====<nowiki></nowiki>====
12920 =====<nowiki></nowiki>=====
12921 ======<nowiki></nowiki>======
12932 Headings: 6. Heading chars in SOL context
12936 <!--cmt--><nowiki>=h1=</nowiki>
12942 #### --------------- Lists ---------------
12943 #### 0. Outside nests (*foo, etc.)
12944 #### 1. Nested inside html <ul><li>*foo</li></ul>
12945 #### 2. Inside definition lists
12946 #### 3. Only bullets at start should be escaped
12947 #### 4. No escapes needed
12948 #### 5. No unnecessary escapes
12949 #### 6. Escape bullets in SOL position
12950 #### 7. Escape bullets in a multi-line context
12951 #### ----------------------------------------
12954 Lists: 0. Outside nests
12956 <nowiki>*foo</nowiki>
12958 <nowiki>#foo</nowiki>
12966 Lists: 1. Nested inside html
12968 *<nowiki>*foo</nowiki>
12970 *<nowiki>#foo</nowiki>
12972 *<nowiki>:foo</nowiki>
12974 *<nowiki>;foo</nowiki>
12976 #<nowiki>*foo</nowiki>
12978 #<nowiki>#foo</nowiki>
12980 #<nowiki>:foo</nowiki>
12982 #<nowiki>;foo</nowiki>
13004 Lists: 2. Inside definition lists
13006 ;<nowiki>;foo</nowiki>
13008 ;<nowiki>:foo</nowiki>
13010 ;<nowiki>:foo</nowiki>
13013 :<nowiki>:foo</nowiki>
13028 Lists: 3. Only bullets at start of text should be escaped
13030 *<nowiki>*foo*bar</nowiki>
13032 *<nowiki>*foo</nowiki>''it''*bar
13036 <ul><li>*foo<i>it</i>*bar
13042 Lists: 4. No escapes needed
13054 <ul><li><i>foo</i>*bar
13056 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13061 Lists: 5. No unnecessary escapes
13063 * bar <span><nowiki>[[foo]]</nowiki></span>
13065 *=bar <span><nowiki>[[foo]]</nowiki></span>
13067 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13069 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13071 *=bar <span>foo]]</span>=
13073 <ul><li> bar <span>[[foo]]</span>
13075 <ul><li>=bar <span>[[foo]]</span>
13077 <ul><li>[[bar <span>[[foo]]</span>
13079 <ul><li>]]bar <span>[[foo]]</span>
13081 <ul><li>=bar <span>foo]]</span>=
13087 Lists: 6. Escape bullets in SOL position
13091 <!--cmt--><nowiki>*foo</nowiki>
13098 Lists: 7. Escape bullets in a multi-line context
13108 #### --------------- HRs ---------------
13109 #### 1. Single line
13110 #### -----------------------------------
13113 HRs: 1. Single line
13118 <nowiki>----</nowiki>
13120 <nowiki>=foo=</nowiki>
13122 <nowiki>*foo</nowiki>
13129 #### --------------- Tables ---------------
13130 #### 1a. Simple example
13131 #### 1b. No escaping needed (!foo)
13132 #### 1c. No escaping needed (|foo)
13133 #### 1d. No escaping needed (|}foo)
13135 #### 2a. Nested in td (<td>foo|bar</td>)
13136 #### 2b. Nested in td (<td>foo||bar</td>)
13137 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13139 #### 3a. Nested in th (<th>foo!bar</th>)
13140 #### 3b. Nested in th (<th>foo!!bar</th>)
13141 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13145 #### 4c. No escaping needed
13146 #### --------------------------------------
13149 Tables: 1a. Simple example
13160 Tables: 1b. No escaping needed
13169 Tables: 1c. No escaping needed
13178 Tables: 1d. No escaping needed
13187 Tables: 2a. Nested in td
13192 |<nowiki>foo|bar</nowiki>
13202 Tables: 2b. Nested in td
13207 |<nowiki>foo||bar</nowiki>
13208 |''it''<nowiki>foo||bar</nowiki>
13213 </td><td><i>it</i>foo||bar
13219 Tables: 2c. Nested in td -- no escaping needed
13234 Tables: 3a. Nested in th
13249 Tables: 3b. Nested in th
13254 !<nowiki>foo!!bar</nowiki>
13264 Tables: 3c. Nested in th -- no escaping needed
13279 Tables: 4a. Escape -
13287 |<nowiki>-bar</nowiki>
13291 <tr><th>-bar</th></tr>
13292 <tr><td>-bar</td></tr>
13297 Tables: 4b. Escape +
13305 |<nowiki>+bar</nowiki>
13309 <tr><th>+bar</th></tr>
13310 <tr><td>+bar</td></tr>
13315 Tables: 4c. No escaping needed
13329 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13330 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13335 Tables: 4d. No escaping needed
13351 #### --------------- Links ---------------
13352 #### 1. Quote marks in link text
13353 #### 2. Wikilinks: Escapes needed
13354 #### 3. Wikilinks: No escapes needed
13355 #### 4. Extlinks: Escapes needed
13356 #### 5. Extlinks: No escapes needed
13357 #### --------------------------------------
13359 Links 1. Quote marks in link text
13363 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13365 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13369 Links 2. WikiLinks: Escapes needed
13373 [[Foo|<nowiki>[Foobar]</nowiki>]]
13374 [[Foo|<nowiki>Foobar]</nowiki>]]
13375 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13376 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13377 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13378 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13379 [[Foo|<nowiki>|Bar</nowiki>]]
13381 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13382 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13383 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13384 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13385 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13386 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13387 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13391 Links 3. WikiLinks: No escapes needed
13398 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13399 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13403 Links 4. ExtLinks: Escapes needed
13407 [http://google.com <nowiki>[google]</nowiki>]
13408 [http://google.com <nowiki>google]</nowiki>]
13410 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13411 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13415 Links 5. ExtLinks: No escapes needed
13419 [http://google.com [google]
13421 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13424 #### --------------- Quotes ---------------
13425 #### 1. Quotes inside <b> and <i>
13426 #### 2. Link fragments separated by <i> and <b> tags
13427 #### 3. Link fragments inside <i> and <b>
13428 #### --------------------------------------
13430 1. Quotes inside <b> and <i>
13432 ''<nowiki>'foo'</nowiki>''
13433 ''<nowiki>''foo''</nowiki>''
13434 ''<nowiki>'''foo'''</nowiki>''
13435 '''<nowiki>'foo'</nowiki>'''
13436 '''<nowiki>''foo''</nowiki>'''
13437 '''<nowiki>'''foo'''</nowiki>'''
13438 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13446 <b>foo'<i>bar'</i>baz</b>
13451 2. Link fragments separated by <i> and <b> tags
13453 [[''foo''<nowiki>hello]]</nowiki>
13455 [['''foo'''<nowiki>hello]]</nowiki>
13457 <p>[[<i>foo</i>hello]]
13458 </p><p>[[<b>foo</b>hello]]
13463 2. Link fragments inside <i> and <b>
13464 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13465 this is one of the shortcomings of this format)
13467 ''[[foo''<nowiki>]]</nowiki>
13469 '''[[foo'''<nowiki>]]</nowiki>
13472 </p><p><b>[[foo</b>]]
13476 #### --------------- Paragraphs ---------------
13477 #### 1. No unnecessary escapes
13478 #### --------------------------------------
13481 1. No unnecessary escapes
13483 bar <span><nowiki>[[foo]]</nowiki></span>
13485 =bar <span><nowiki>[[foo]]</nowiki></span>
13487 [[bar <span><nowiki>[[foo]]</nowiki></span>
13489 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13491 <nowiki>=bar </nowiki><span>foo]]</span>=
13493 <p>bar <span>[[foo]]</span>
13494 </p><p>=bar <span>[[foo]]</span>
13495 </p><p>[[bar <span>[[foo]]</span>
13496 </p><p>]]bar <span>[[foo]]</span>
13497 </p><p>=bar <span>foo]]</span>=
13501 #### --------------- PRE ------------------
13502 #### 1. Leading space in SOL context should be escaped
13503 #### --------------------------------------
13505 1. Leading space in SOL context should be escaped
13509 <nowiki> foo</nowiki>
13510 <!--cmt--><nowiki> foo</nowiki>
13517 #### --------------- HTML tags ---------------
13520 #### 3. multi-line html tag
13521 #### --------------------------------------
13527 <a href="http://google.com">google</a>
13529 <a href="http://google.com">google</a>
13535 <nowiki><div>foo</div>
13536 <div style="color:red">foo</div></nowiki>
13538 <p><div>foo</div>
13539 <div style="color:red">foo</div>
13544 3. multi-line html tag
13556 #### --------------- Others ---------------
13560 <nowiki>foo</nowiki>
13562 <p><nowiki>foo</nowiki>
13567 Tag-like HTML structures are passed through as text
13589 </p><p>1<d e>f
13594 # This fails in the PHP parser (see bug 40670,
13595 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13597 Tag names followed by punctuation should not be recognized as tags
13603 <p><s.ome> text
13608 HTML tag with necessary entities in attributes
13610 <span title="&amp;">foo</span>
13612 <p><span title="&amp;">foo</span>
13617 HTML tag with 'unnecessary' entity encoding in attributes
13619 <span title="&">foo</span>
13621 <p><span title="&">foo</span>
13626 HTML tag with broken attribute value quoting
13628 <span title="Hello world>Foo</span>
13630 <p><span>Foo</span>
13635 Parsoid-only: HTML tag with broken attribute value quoting
13639 <span title="Hello world>Foo</span>
13641 <p><span title="Hello world">Foo</span>
13646 Table with broken attribute value quoting
13649 | title="Hello world|Foo
13660 Table with broken attribute value quoting on consecutive lines
13663 | title="Hello world|Foo
13664 | style="color:red|Bar
13677 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13682 | title="Hello world|Foo
13683 | style="color:red|Bar
13688 <td title="Hello world">Foo
13689 </td><td style="color: red;">Bar
13695 Accept empty td cell attribute
13698 | align="center" | foo || |
13703 <td align="center"> foo </td>
13710 Non-empty attributes in th-cells
13713 ! Foo !! style="color: red" | Bar
13719 <th style="color: red"> Bar
13725 Accept empty attributes in th-cells
13744 Try for 100% code coverage