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 URL-encoding in URL functions (single parameter)
2654 {{localurl:Some page|amp=&}}
2656 <p>/index.php?title=Some_page&amp=&
2661 URL-encoding in URL functions (multiple parameters)
2663 {{localurl:Some page|q=?&=&}}
2665 <p>/index.php?title=Some_page&q=?&amp=&
2672 http://example.com/index.php?foozoid%5B%5D=bar
2674 http://example.com/index.php?foozoid[]=bar
2676 <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>
2677 </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>
2682 IPv6 urls (bug 21261)
2686 http://[2404:130:0:1000::187:2]/index.php
2688 <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>
2693 Non-extlinks in brackets
2702 [{{echo|foo}} ''bar'']
2703 [{{echo|foo}}l's] errand
2704 [{{echo|foo}}l's errand]
2726 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2728 Normal text. '''''Bold italic text.''''' Normal text.
2730 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2731 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2737 Unclosed and unmatched quotes
2739 '''''Bold italic text '''with bold deactivated''' in between.'''''
2741 '''''Bold italic text ''with italic deactivated'' in between.'''''
2745 ..spanning two paragraphs (should not work).'''
2747 '''Bold tag left open
2749 ''Italic tag left open
2753 <!-- Unmatching number of opening, closing tags: -->
2754 '''This year''''s election ''should'' beat '''last year''''s.
2756 ''Tom'''s car is bigger than ''Susan'''s.
2758 Plain ''italic'''s plain
2760 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2761 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2762 </p><p><b>Bold text..</b>
2763 </p><p>..spanning two paragraphs (should not work).
2764 </p><p><b>Bold tag left open</b>
2765 </p><p><i>Italic tag left open</i>
2767 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2768 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2769 </p><p>Plain <i>italic'</i>s plain
2776 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2779 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2780 # is the bare minimun required by the spec, see:
2781 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2783 A table with no data.
2789 # A table with nothing but a caption is invalid XHTML, we might want to render
2790 # this as <p>caption</p>
2792 A table with nothing but a caption
2800 </caption><tr><td></td></tr></table>
2805 A table with caption with default-spaced attributes and a table row
2808 |+ style="color: red;" | caption1
2814 <caption style="color: red;"> caption1
2823 A table with captions with non-default spaced attributes and a table row
2826 |+style="color: red;"|caption2
2827 |+ style="color: red;"| caption3
2833 <caption style="color: red;">caption2
2835 <caption style="color: red;"> caption3
2844 Table td-cell syntax variations
2848 | foo bar foo || baz
2849 | style='color:red;' | baz
2850 | style='color:red;' || baz
2857 <td> foo bar foo </td>
2860 <td style="color:red;"> baz
2862 <td> style='color:red;' </td>
2890 Simple table but with multiple dashes for row wikitext
2908 Multiplication table
2910 {| border="1" cellpadding="2"
2911 |+Multiplication table
2913 ! × !! 1 !! 2 !! 3
2931 <table border="1" cellpadding="2">
2932 <caption>Multiplication table
2979 Accept "||" in table headings
2994 Accept "||" in indented table headings
3004 </th></tr></table></dd></dl>
3009 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3026 Accept "| !" at start of line in tables (ignore !-attribute)
3030 | !style="color:red" | bar
3042 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 +/-
3046 |style='color:red;'|+1
3047 |style='color:blue;'|-1
3059 <td style="color:red;">+1
3061 <td style="color:blue;">-1
3085 |rowspan=2| Cell 2, row 1 (and 2)
3096 <td rowspan="2"> Cell 2, row 1 (and 2)
3114 {| bgcolor=#ABCDEF border=2
3119 |the original table again
3127 <table bgcolor="#ABCDEF" border="2">
3135 <td>the original table again
3141 Invalid attributes in table cell (bug 1830)
3156 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3159 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3163 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3164 <td>]" onmouseover="alert(document.cookie)">test
3173 Indented table markup mixed with indented pre content (proposed in bug 6200)
3178 Text that should be rendered preformatted
3186 <pre>Text that should be rendered preformatted
3195 Template-generated table cell attributes and cell content
3203 <td style="color: red"> Foo
3209 Table with row followed by newlines and table heading
3226 # FIXME: Preserve the attribute properly (with an empty string as value) in
3227 # the PHP parser. Parsoid implements the behavior below.
3229 Table attributes with empty value
3245 Wikitext table with a lot of comments
3271 Plain link, capitalized
3275 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3280 Plain link, uncapitalized
3284 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3291 [[Main Page|The Main Page]]
3293 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3302 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3307 Broken link with fragment
3309 [[Zigzagzogzagzig#zug]]
3311 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3316 Special page link with fragment
3318 [[Special:Version#anchor]]
3320 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3325 Nonexistent special page link with fragment
3327 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3329 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3336 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3338 <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>
3345 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3347 <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>!!!
3358 Bug 43661: Piped links with identical prefixes
3360 [[prefixed article|prefixed articles with spaces]]
3362 [[prefixed article|prefixed articlesaoeu]]
3364 [[Main Page|Main Page test]]
3366 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3367 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3368 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3374 Link with HTML entity in suffix / tail
3376 [[Main Page]]", [[Main Page]]a
3378 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3383 Link with 3 brackets
3392 Piped link with 3 brackets
3394 [[[main page|the main page]]]
3396 <p>[[[main page|the main page]]]
3401 Link with multiple pipes
3403 [[Main Page|The|Main|Page]]
3405 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3412 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3414 <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>
3419 Piped link to namespace
3421 [[Meta:Disclaimers|The disclaimers]]
3423 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3430 [[Usually caused by a typo (oops}]]
3432 <p>[[Usually caused by a typo (oops}]]
3437 Link containing % (not as a hex sequence)
3441 <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>
3446 Link containing % as a single hex sequence interpreted to char
3450 <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>
3455 Link containing % as a double hex sequence interpreted to hex sequence
3459 <p>[[7%2525 Solution]]
3464 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3465 Example for such a section: == < ==
3467 [[%23%3c]][[%23%3e]]
3469 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3474 Link containing "<#" and ">#" as a hex sequences
3476 [[%3c%23]][[%3e%23]]
3478 <p>[[%3c%23]][[%3e%23]]
3483 Link containing double-single-quotes '' (bug 4598)
3485 [[Lista d''e paise d''o munno]]
3487 <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>
3492 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3494 Some [[Link|pretty ''italics'' and stuff]]!
3496 <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>!
3501 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3503 ''Some [[Link|pretty ''italics'' and stuff]]!
3505 <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>
3510 Link with double quotes in title part (literal) and alternate part (interpreted)
3512 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3516 [[''Pentecoste''|Pentecoste]]
3518 [[''Pentecoste''|''Pentecoste'']]
3520 <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>
3521 </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>
3522 </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>
3523 </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>
3528 Broken image links with HTML captions (bug 39700)
3530 [[File:Nonexistent|<script></script>]]
3531 [[File:Nonexistent|100px|<script></script>]]
3532 [[File:Nonexistent|<]]
3533 [[File:Nonexistent|a<i>b</i>c]]
3535 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3536 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3537 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3538 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3545 [[http://www.example.com]]
3547 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3552 Plain link to URL with link text
3554 [[http://www.example.com Link text]]
3556 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3561 Plain link to protocol-relative URL
3563 [[//www.example.com]]
3565 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3570 Plain link to protocol-relative URL with link text
3572 [[//www.example.com Link text]]
3574 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3579 Plain link to page with question mark in title
3585 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3586 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3591 # I'm fairly sure the expected result here is wrong.
3592 # We want these to be URL links, not pseudo-pages with URLs for titles....
3593 # However the current output is also pretty screwy.
3596 # I'm changing it to match the current output--it arguably makes more
3597 # sense in the light of the test above. Old expected result was:
3598 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3600 # But I think this test is bordering on "garbage in, garbage out" anyway.
3605 Piped link to URL: [[http://www.example.com|an example URL]]
3607 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3612 BUG 2: [[page|http://url/]] should link to page, not http://url/
3614 [[Main Page|http://url/]]
3616 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3621 BUG 337: Escaped self-links should be bold
3625 [[Bug462]] [[Bug462]]
3627 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3632 Self-link to section should not be bold
3636 [[Main Page#section]]
3638 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3649 Self-link to numeric title
3655 <p><strong class="selflink">0</strong>
3660 Link to numeric-equivalent title
3666 <p><a href="/wiki/00" title="00">00</a>
3671 <nowiki> inside a link
3673 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3675 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3680 Non-breaking spaces in title
3682 [[ Main Page ]]
3684 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3689 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3695 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3700 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3706 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3711 Internal link with en linktrail: no apostrophes (bug 27473)
3717 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3722 Internal link with ca linktrail with apostrophes (bug 27473)
3728 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3733 Internal link with kaa linktrail with apostrophes (bug 27473)
3739 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3744 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3752 [http://wp.org ''foo'']
3754 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3755 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3756 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3757 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3762 ### Interwiki links (see maintenance/interwiki.sql)
3766 Inline interwiki link
3768 [[MeatBall:SoftSecurity]]
3770 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3775 Inline interwiki link with empty title (bug 2372)
3779 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3784 Interwiki link encoding conversion (bug 1636)
3786 *[[Wikipedia:ro:Olteniţa]]
3787 *[[Wikipedia:ro:Olteniţa]]
3789 <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>
3790 </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>
3796 Interwiki link with fragment (bug 2130)
3798 [[MeatBall:SoftSecurity#foo]]
3800 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3815 Double interlanguage link
3826 Interlanguage link, with prefix links
3838 Double interlanguage link, with prefix links (bug 8897)
3851 Parsoid-specific test: Wikilinks with should RT properly
3857 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3875 Broken br tag sanitization
3884 Incorrecly removing closing slashes from correctly formed XHTML
3886 <br style="clear:both;" />
3888 <p><br style="clear:both;" />
3893 Failing to transform badly formed HTML into correct XHTML
3895 <br style="clear: left;">
3896 <br style="clear: right;">
3897 <br style="clear: both;">
3899 <p><br style="clear: left;" />
3900 <br style="clear: right;" />
3901 <br style="clear: both;" />
3906 Handling html with a div self-closing tag
3915 <p><div title />
3919 <p><div title=bar />
3920 <div title=bar/>
3922 <div title="bar/"></div>
3928 Handling html with a br self-closing tag
3937 <p><br title="title" />
3938 <br title="title" />
3947 Horizontal ruler (should it add that extra space?)
3961 Horizontal ruler -- 4+ dashes render hr
3970 Horizontal ruler -- eats additional dashes on the same line
3979 Horizontal ruler -- does not collaps dashes on consecutive lines
3990 Horizontal ruler -- <4 dashes render as plain text
3999 Horizontal ruler -- Supports content following dashes on same line
4008 ### Block-level elements
4031 <ol><li>Numbered list
4048 ***#Number on level 4
4050 **#Number on level 3
4051 **#Number on level 3
4055 #** Level 3, but ordered
4058 <ol><li> with numbers
4060 <ul><li> and bullets
4062 <ol><li> and numbers
4064 </li><li>bullets again
4065 <ul><li>bullet level 2
4066 <ul><li>bullet level 3
4067 <ol><li>Number on level 4
4070 </li><li>bullet level 2
4071 <ol><li>Number on level 3
4072 </li><li>Number on level 3
4075 <ol><li>number level 2
4078 <ul><li><ul><li> Level 3
4082 <ol><li><ul><li><ul><li> Level 3, but ordered
4116 Nested lists 3 (first element empty)
4129 Nested lists 4 (first element empty)
4142 Nested lists 5 (both elements empty)
4155 Nested lists 6 (both elements empty)
4168 Nested lists 7 (skip initial nesting levels)
4172 <ul><li><ul><li><ul><li> foo
4180 Nested lists 8 (multiple nesting transitions)
4188 <ul><li><ul><li> bar
4198 1. Lists with start-of-line-transparent tokens before bullets: Comments
4212 2. Lists with start-of-line-transparent tokens before bullets: Template close
4224 Unbalanced closing block tags break a list
4225 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4235 </li></ul></div><div>
4241 Unbalanced closing non-block tags don't break a list
4242 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4252 <ul><li>a<span></span>
4258 Unclosed formatting tags that straddle lists are closed and reopened
4259 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4267 </li><li> <s> b </s>
4272 List embedded in a non-block tag
4273 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4281 <p><small></small></p>
4287 <p><small></small></p>
4291 List items are not parsed correctly following a <pre> block (bug 785)
4297 <ul><li> <pre>foo</pre>
4298 </li><li> <pre>bar</pre>
4305 List items from template
4316 * notSOL{{inner list}}
4335 List interrupted by empty line or heading
4345 <ul><li><ul><li> bar
4348 <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>
4349 <ul><li> Another list item
4355 Multiple list tags generated by templates
4374 Magic Word: {{CURRENTDAY}}
4383 Magic Word: {{CURRENTDAY2}}
4392 Magic Word: {{CURRENTDAYNAME}}
4401 Magic Word: {{CURRENTDOW}}
4410 Magic Word: {{CURRENTMONTH}}
4419 Magic Word: {{CURRENTMONTHABBREV}}
4421 {{CURRENTMONTHABBREV}}
4428 Magic Word: {{CURRENTMONTHNAME}}
4430 {{CURRENTMONTHNAME}}
4437 Magic Word: {{CURRENTMONTHNAMEGEN}}
4439 {{CURRENTMONTHNAMEGEN}}
4446 Magic Word: {{CURRENTTIME}}
4455 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4464 Magic Word: {{CURRENTYEAR}}
4473 Magic Word: {{FULLPAGENAME}}
4475 title=[[User:Ævar Arnfjörð Bjarmason]]
4479 <p>User:Ævar Arnfjörð Bjarmason
4484 Magic Word: {{FULLPAGENAMEE}}
4486 title=[[User:Ævar Arnfjörð Bjarmason]]
4490 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4495 Magic Word: {{NAMESPACE}}
4497 title=[[User:Ævar Arnfjörð Bjarmason]]
4506 Magic Word: {{NAMESPACEE}}
4508 title=[[User:Ævar Arnfjörð Bjarmason]]
4517 Magic Word: {{NAMESPACENUMBER}}
4519 title=[[User:Ævar Arnfjörð Bjarmason]]
4528 Magic Word: {{NUMBEROFFILES}}
4537 Magic Word: {{PAGENAME}}
4539 title=[[User:Ævar Arnfjörð Bjarmason]]
4543 <p>Ævar Arnfjörð Bjarmason
4548 Magic Word: {{PAGENAME}} with metacharacters
4550 title=[['foo & bar = baz']]
4554 <p><i>'foo & bar = baz'</i>
4559 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4561 title=[[*RFC 1234 http://example.com/]]
4565 <p>*RFC 1234 http://example.com/
4570 Magic Word: {{PAGENAMEE}}
4572 title=[[User:Ævar Arnfjörð Bjarmason]]
4576 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4581 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4583 title=[[*RFC 1234 http://example.com/]]
4587 <p>*RFC_1234_http://example.com/
4592 Magic Word: {{REVISIONID}}
4601 Magic Word: {{SCRIPTPATH}}
4610 Magic Word: {{SERVER}}
4614 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4619 Magic Word: {{SERVERNAME}}
4628 Magic Word: {{SITENAME}}
4637 Namespace 1 {{ns:1}}
4646 Namespace 1 {{ns:01}}
4655 Namespace 0 {{ns:0}} (bug 4783)
4663 Namespace 0 {{ns:00}} (bug 4783)
4671 Namespace -1 {{ns:-1}}
4680 Namespace User {{ns:User}}
4689 Namespace User talk {{ns:User_talk}}
4698 Namespace User talk {{ns:uSeR tAlK}}
4707 Namespace File {{ns:File}}
4716 Namespace File {{ns:Image}}
4725 Namespace (lang=de) Benutzer {{ns:User}}
4736 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4742 <p>Benutzer Diskussion
4750 {{urlencode:hi world?!}}
4751 {{urlencode:hi world?!|WIKI}}
4752 {{urlencode:hi world?!|PATH}}
4753 {{urlencode:hi world?!|QUERY}}
4766 Magic links: internal link to RFC (bug 479)
4770 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4775 Magic links: RFC (bug 479)
4779 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4784 Magic links: ISBN (bug 1937)
4788 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4793 Magic links: PMID incorrectly converts space to underscore
4797 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4806 Nonexistent template
4808 {{thistemplatedoesnotexist}}
4810 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4815 Template with invalid target containing tags
4817 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4819 <p>{{a<b>b</b>|foo|a=b|a = b}}
4824 Template with invalid target containing unclosed tag
4826 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4828 <p>{{a<b>|foo|a=b|a = b}}</b>
4835 This is a test template
4843 <p>This is a test template
4848 Template with explicit namespace
4852 <p>This is a test template
4860 This is a test template with parameter {{{param}}}
4866 {{paramtest|param=foo}}
4868 <p>This is a test template with parameter foo
4873 Template:paramtestnum
4879 Template unnamed parameter
4881 {{paramtestnum|Main Page|the main page}}
4883 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4888 Template:templatesimple
4894 Template:templateredirect
4896 #redirect [[Template:templatesimple]]
4900 Template:templateasargtestnum
4906 Template:templateasargtest
4908 {{template{{{templ}}}}}
4912 Template:templateasargtest2
4918 Template with template name as unnamed argument
4920 {{templateasargtestnum|templatesimple}}
4927 Template with template name as argument
4929 {{templateasargtest|templ=simple}}
4936 Template with template name as argument (2)
4938 {{templateasargtest2|templ=templatesimple}}
4945 Template:templateasargtestdefault
4947 {{{{{templ|templatesimple}}}}}
4957 Template with default value
4959 {{templateasargtestdefault}}
4966 Template with default value (value set)
4968 {{templateasargtestdefault|templ=templa}}
4977 {{templateredirect}}
4984 Template with argument in separate line
4986 {{ templateasargtest |
4994 Template with complex template as argument
4997 param ={{ templateasargtest |
5000 <p>This is a test template with parameter (test)
5005 Template with thumb image (with link in description)
5008 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5010 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>
5015 Template:complextemplate
5017 {{{1}}} {{paramtest|
5018 param ={{{param}}}}}
5022 Template with complex arguments
5025 param ={{ templateasargtest |
5026 templ = simple }}|[[Template:complextemplate|link]]}}
5028 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5033 BUG 553: link with two variables in a piped link
5036 |[[{{{1}}}|{{{2}}}]]
5041 <td>[[{{{1}}}|{{{2}}}]]
5047 Magic variable as template parameter
5049 {{paramtest|param={{SITENAME}}}}
5051 <p>This is a test template with parameter MediaWiki
5058 [[{{{param}}}|link]]
5062 Template parameter as link source
5064 {{linktest|param=Main Page}}
5066 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5071 Template-generated attribute string (k='v')
5073 <span {{attr_str|id|v1}}>bar</span>
5075 <p><span id="v1">bar</span>
5082 including another template, {{paramtest|param={{{arg}}}}}
5086 Template passing argument to another template
5088 {{paramtest2|arg='hmm'}}
5090 <p>including another template, This is a test template with parameter 'hmm'
5101 Template as link source
5105 [[{{linktest2}}|Main Page]]
5107 [[{{linktest2}}]]Page
5109 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5110 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5111 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5129 Template infinite loop
5133 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5138 Template from main namespace
5157 BUG 529: Template with table, not included at beginning of line
5176 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5196 BUG 41: Template parameters shown as broken links
5205 Template with targets containing wikilinks
5209 {{[[{{echo|foo}}]]}}
5211 {{{{echo|[[foo}}]]}}
5213 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5214 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5222 ''None'' of '''this''' should be
5224 but rather passed unmodified
5228 # hmm, fix this or just deprecate msgnw and document its behavior?
5234 {{msgnw:MSGNW test}}
5236 <p>''None'' of '''this''' should be
5238 but rather passed unmodified
5246 {{int:youhavenewmessages|lots of money|not!}}
5248 <p>You have lots of money (not!).
5255 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5259 <includeonly> and <noinclude> being included
5270 <onlyinclude>Foo</onlyinclude>bar
5274 <onlyinclude> being included
5286 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5290 <onlyinclude> and <includeonly> being included
5299 <includeonly> and <noinclude> on a page
5301 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5308 Un-closed <noinclude>
5315 <onlyinclude> on a page
5317 <onlyinclude>Foo</onlyinclude>bar
5324 Un-closed <onlyinclude>
5331 Self-closed noinclude, includeonly, onlyinclude tags
5342 Unbalanced includeonly and noinclude tags
5346 |b</noinclude></noinclude>
5347 |c</noinclude></includeonly>
5348 |d</includeonly></includeonly>
5357 <td>c</includeonly>
5359 <td>d</includeonly></includeonly>
5365 Template:Includeonly section
5368 ==Includeonly section==
5374 Bug 6563: Edit link generation for section shown by <includeonly>
5376 {{includeonly section}}
5378 <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>
5379 <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>
5383 # Uses same input as the contents of [[Template:Includeonly section]]
5385 Bug 6563: Section extraction for section shown by <includeonly>
5390 ==Includeonly section==
5398 Bug 6563: Edit link generation for section suppressed by <includeonly>
5401 ==Includeonly section==
5405 <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>
5410 Bug 6563: Section extraction for section suppressed by <includeonly>
5415 ==Includeonly section==
5423 Un-closed <includeonly>
5430 ### <includeonly> and <noinclude> in attributes
5433 0. includeonly around the entire attribute
5435 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5437 <p><span id="v2">bar</span>
5442 1. includeonly in html attr key
5444 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5446 <p><span id="foo">bar</span>
5451 2. includeonly in html attr value
5453 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5454 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5456 <p><span id="v1">bar</span>
5457 <span id="v1">bar</span>
5462 3. includeonly in part of an attr value
5464 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5466 <p><span style="color:red;">bar</span>
5471 ### Testing parsing of templates where a template arg
5472 ### has the same name as the template itself.
5482 Templates: Template Name/Arg clash: 1. Use of positional param
5491 Templates: Template Name/Arg clash: 2. Use of named param
5500 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5509 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5513 Templates: 1. Simple use
5522 Templates: 2. Inside a block tag
5524 <div>{{echo|Foo}}</div>
5531 Templates: P-wrapping: 1a. Templates on consecutive lines
5542 Templates: P-wrapping: 1b. Templates on consecutive lines
5556 Templates: P-wrapping: 1c. Templates on consecutive lines
5559 {{echo|bar}} <div>baz</div>
5568 Templates: Inline Text: 1. Multiple tmeplate uses
5570 {{echo|Foo}}bar{{echo|baz}}
5577 Templates: Inline Text: 2. Back-to-back template uses
5579 {{echo|Foo}}{{echo|bar}}
5586 Templates: Block Tags: 1. Multiple template uses
5588 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5590 <div>Foo</div><div>bar</div><div>baz</div>
5595 Templates: Block Tags: 2. Back-to-back template uses
5597 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5599 <div>Foo</div><div>bar</div>
5604 Templates: Links: 1. Simple example
5606 {{echo|[[Foo|bar]]}}
5608 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5613 Templates: Links: 2. Generation of link href
5615 [[{{echo|Foo}}|bar]]
5617 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5622 Templates: Links: 3. Generation of part of a link href
5624 [[Fo{{echo|o}}|bar]]
5628 [[Foo{{echo|bar}}baz]]
5630 [[Foo{{echo|bar}}|bar]]
5632 [[:Foo{{echo|bar}}]]
5634 [[:Foo{{echo|bar}}|bar]]
5636 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5637 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5638 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5639 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5640 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5641 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5646 Templates: Links: 4. Multiple templates generating link href
5648 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5650 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5655 Templates: Links: 5. Generation of link text
5657 [[Foo|{{echo|bar}}]]
5659 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5664 Templates: Links: 5. Nested templates (only outermost template should be marked)
5666 {{echo|[[{{echo|Foo}}|bar]]}}
5668 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5673 Templates: HTML Tag: 1. Generation of HTML attr. key
5675 <div {{echo|style}}="color:red;">foo</div>
5677 <div style="color:red;">foo</div>
5682 Templates: HTML Tag: 2. Generation of HTML attr. value
5684 <div style={{echo|'color:red;'}}>foo</div>
5686 <div style="color:red;">foo</div>
5691 Templates: HTML Tag: 3. Generation of HTML attr key and value
5693 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5695 <div style="color:red;">foo</div>
5700 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5702 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5704 <div title="This is a long title with just one piece templated">foo</div>
5709 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5711 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5713 <div title="This is a long title with just one piece templated">foo</div>
5718 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5720 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5722 <div title="This is a long title with just one piece templated">foo</div>
5727 Templates: HTML Tables: 1. Generating start of a HTML table
5729 {{echo|<table><tr><td>foo</td>}}</tr></table>
5731 <table><tr><td>foo</td></tr></table>
5736 Templates: HTML Tables: 2a. Generating middle of a HTML table
5738 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5740 <table><tr><td>foo</td></tr></table>
5745 Templates: HTML Tables: 2b. Generating middle of a HTML table
5747 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5749 <table><tr><td>foo</td></tr></table>
5754 Templates: HTML Tables: 3. Generating end of a HTML table
5756 <table><tr>{{echo|<td>foo</td></tr></table>}}
5758 <table><tr><td>foo</td></tr></table>
5763 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5765 {{echo|<table>}}<tr><td>foo</td></tr></table>
5767 <table><tr><td>foo</td></tr></table>
5772 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5774 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5776 <table><tr><td>foo</td></tr></table>
5781 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5783 <table><tr>{{echo|<td>}}foo</td></tr></table>
5785 <table><tr><td>foo</td></tr></table>
5790 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5792 <table><tr><td>foo{{echo|</td>}}</tr></table>
5794 <table><tr><td>foo</td></tr></table>
5799 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5801 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5803 <table><tr><td>foo</td></tr></table>
5808 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5810 <table><tr><td>foo</td></tr>{{echo|</table>}}
5812 <table><tr><td>foo</td></tr></table>
5817 Templates: Wiki Tables: 1. Fostering of entire template content
5825 <tr><td></td></tr></table>
5830 Templates: Wiki Tables: 2. Fostering of partial template content
5840 <tr><td></td></tr></table>
5845 Templates: Wiki Tables: 3. td-content via multiple templates
5848 {{echo|{{pipe}}a}}{{echo|b}}
5859 Templates: Wiki Tables: 4. Templated tags, no content
5865 <tr><td></td></tr></table>
5870 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5884 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5898 Templates: Lists: Multi-line list-items via templates
5900 *{{echo|a {{nonexistent|
5902 *{{echo|b {{nonexistent|
5905 <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>
5906 </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>
5912 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5914 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5916 <p><i>ab</i>c<i>d</i>e
5921 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5922 (PHP parser generates misnested html)
5926 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5928 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5932 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5933 (PHP parser generates misnested html)
5937 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5940 <div><i>b</i>c<i>d</i></div>
5945 Templates: Ugly nesting: 4. Divs opened/closed across templates
5947 a<div>b{{echo|c</div>d}}e
5954 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5960 |{{echo|foo</table>}}
5964 <table about="#mwt1" typeof="mw:Object/Template ">
5965 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5966 bar</span><span about="#mwt1">
5971 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5981 <td>1. {{echo|foo </table>}}</td>
5983 <td>2. {{echo|baz </table>}}</td>
5996 <table about="#mwt1" typeof="mw:Object/Template">
6001 <td >1. foo </td></tr></tbody></table></td>
6003 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6004 </span><span about="#mwt1">
6006 abc</span><span about="#mwt1">
6007 </span><span about="#mwt1">
6008 </span><span about="#mwt1">
6009 </span><span about="#mwt1">
6010 </span><span about="#mwt1">
6012 xyz</span><span about="#mwt1">
6013 </span><span about="#mwt1">
6018 Templates: Ugly templates: 3. newline-only template parameter
6027 # This looks like a bug: a single newline triggers p/br for some reason.
6029 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6040 Parser Functions: 1. Simple example
6049 Parser Functions: 2. Nested use (only outermost should be marked up)
6058 ### Pre-save transform tests
6061 pre-save transform: subst:
6067 This is a test template
6071 pre-save transform: normal template
6081 pre-save transform: nonexistent template
6085 {{thistemplatedoesnotexist}}
6087 {{thistemplatedoesnotexist}}
6092 pre-save transform: subst magic variables
6101 # This is bug 89, which I fixed. -- wtm
6103 pre-save transform: subst: templates with parameters
6107 {{subst:paramtest|param="something else"}}
6109 This is a test template with parameter "something else"
6115 <nowiki>'''not wiki'''</nowiki>
6119 pre-save transform: nowiki in subst (bug 1188)
6123 {{subst:nowikitest}}
6125 <nowiki>'''not wiki'''</nowiki>
6130 Template:commenttest
6132 This template has <!-- a comment --> in it.
6136 pre-save transform: comment in subst (bug 1936)
6140 {{subst:commenttest}}
6142 This template has <!-- a comment --> in it.
6146 pre-save transform: unclosed tag
6150 <nowiki>'''not wiki'''
6152 <nowiki>'''not wiki'''
6156 pre-save transform: mixed tag case
6160 <NOwiki>'''not wiki'''</noWIKI>
6162 <NOwiki>'''not wiki'''</noWIKI>
6166 pre-save transform: unclosed comment in <nowiki>
6170 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6172 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6178 <span onmouseover="alert('crap')">Oh no</span>
6182 (confirming safety of fix for subst bug 1936)
6184 {{Template:dangerous}}
6186 <p><span>Oh no</span>
6191 pre-save transform: comment containing gallery (bug 5024)
6195 <!-- <gallery>data</gallery> -->
6197 <!-- <gallery>data</gallery> -->
6201 pre-save transform: comment containing extension
6205 <!-- <tag>data</tag> -->
6207 <!-- <tag>data</tag> -->
6211 pre-save transform: comment containing nowiki
6215 <!-- <nowiki>data</nowiki> -->
6217 <!-- <nowiki>data</nowiki> -->
6221 pre-save transform: <noinclude> in subst (bug 3298)
6231 pre-save transform: <onlyinclude> in subst (bug 3298)
6243 {{<includeonly>subst:</includeonly>Includes}}
6247 Template:SafeSubstTest
6249 {{<includeonly>safesubst:</includeonly>Includes}}
6253 bug 22297: safesubst: works during PST
6257 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6263 bug 22297: safesubst: works during normal parse
6272 subst: does not work during normal parse
6276 <p>{{subst:Includes}}
6281 pre-save transform: context links ("pipe trick")
6285 [[Article (context)|]]
6288 [[Bar:Article (context)|]]
6289 [[:Bar:Article (context)|]]
6291 [[|Article (context)]]
6295 [[Article (context)|Article]]
6296 [[Bar:Article|Article]]
6297 [[:Bar:Article|Article]]
6298 [[Bar:Article (context)|Article]]
6299 [[:Bar:Article (context)|Article]]
6301 [[Article (context)]]
6302 [[Bar:X (Y) Z|X (Y) Z]]
6303 [[:Bar:X (Y) Z|X (Y) Z]]
6307 pre-save transform: context links ("pipe trick") with interwiki prefix
6311 [[interwiki:Article|]]
6312 [[:interwiki:Article|]]
6313 [[interwiki:Bar:Article|]]
6314 [[:interwiki:Bar:Article|]]
6316 [[interwiki:Article|Article]]
6317 [[:interwiki:Article|Article]]
6318 [[interwiki:Bar:Article|Bar:Article]]
6319 [[:interwiki:Bar:Article|Bar:Article]]
6323 pre-save transform: context links ("pipe trick") with parens in title
6325 pst title=[[Somearticle (context)]]
6329 [[Article (context)|Article]]
6333 pre-save transform: context links ("pipe trick") with comma in title
6335 pst title=[[Someplace, Somewhere]]
6338 [[Otherplace, Elsewhere|]]
6339 [[Otherplace, Elsewhere, Anywhere|]]
6341 [[Otherplace, Somewhere|Otherplace]]
6342 [[Otherplace, Elsewhere|Otherplace]]
6343 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6347 pre-save transform: context links ("pipe trick") with parens and comma
6349 pst title=[[Someplace (IGNORED), Somewhere]]
6352 [[Otherplace (place), Elsewhere|]]
6354 [[Otherplace, Somewhere|Otherplace]]
6355 [[Otherplace (place), Elsewhere|Otherplace]]
6359 pre-save transform: context links ("pipe trick") with comma and parens
6361 pst title=[[Who, me? (context)]]
6364 [[Me, Myself, and I (1937 song)|]]
6366 [[Yes, you. (context)|Yes, you.]]
6367 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6371 pre-save transform: context links ("pipe trick") with namespace
6373 pst title=[[Ns:Somearticle]]
6377 [[Ns:Article|Article]]
6381 pre-save transform: context links ("pipe trick") with namespace and parens
6383 pst title=[[Ns:Somearticle (context)]]
6387 [[Ns:Article (context)|Article]]
6391 pre-save transform: context links ("pipe trick") with namespace and comma
6393 pst title=[[Ns:Somearticle, Context, Whatever]]
6397 [[Ns:Article, Context, Whatever|Article]]
6401 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6403 pst title=[[Ns:Somearticle, Context (context)]]
6407 [[Ns:Article (context)|Article]]
6411 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6413 pst title=[[Ns:Somearticle (IGNORED), Context]]
6417 [[Ns:Article, Context|Article]]
6421 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6425 [[Article(context)|]]
6426 [[Bar:Article(context)|]]
6427 [[:Bar:Article(context)|]]
6428 [[|Article(context)]]
6432 [[Article(context)|Article]]
6433 [[Bar:Article(context)|Article]]
6434 [[:Bar:Article(context)|Article]]
6435 [[Article(context)]]
6437 [[:Bar:X(Y)Z|X(Y)Z]]
6441 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6445 [[Article (context)|]]
6446 [[Bar:Article (context)|]]
6447 [[:Bar:Article (context)|]]
6448 [[|Article (context)]]
6452 [[Article (context)|Article]]
6453 [[Bar:Article (context)|Article]]
6454 [[:Bar:Article (context)|Article]]
6455 [[Article (context)]]
6456 [[Bar:X (Y) Z|X (Y) Z]]
6457 [[:Bar:X (Y) Z|X (Y) Z]]
6461 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6465 [[Article(context)|]]
6466 [[Bar:Article(context)|]]
6467 [[:Bar:Article(context)|]]
6468 [[|Article(context)]]
6472 [[Article(context)|Article]]
6473 [[Bar:Article(context)|Article]]
6474 [[:Bar:Article(context)|Article]]
6475 [[Article(context)]]
6477 [[:Bar:X(Y)Z|X(Y)Z]]
6481 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6485 [[Article (context), context|]]
6486 [[Article (context),context|]]
6487 [[Bar:Article (context), context|]]
6488 [[Bar:Article (context),context|]]
6489 [[:Bar:Article (context), context|]]
6490 [[:Bar:Article (context),context|]]
6492 [[Article (context), context|Article]]
6493 [[Article (context),context|Article]]
6494 [[Bar:Article (context), context|Article]]
6495 [[Bar:Article (context),context|Article]]
6496 [[:Bar:Article (context), context|Article]]
6497 [[:Bar:Article (context),context|Article]]
6501 pre-save transform: trim trailing empty lines
6505 Empty lines are trimmed
6511 Empty lines are trimmed
6515 pre-save transform: Signature expansion
6520 * <noinclude>~~~</noinclude>
6521 * <includeonly>~~~</includeonly>
6522 * <onlyinclude>~~~</onlyinclude>
6524 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6525 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6526 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6527 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6532 pre-save transform: Signature expansion in nowiki tags (bug 93)
6538 <nowiki>~~~~</nowiki>
6540 <includeonly><nowiki>~~~~</nowiki></includeonly>
6542 <noinclude><nowiki>~~~~</nowiki></noinclude>
6544 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6546 {{subst:Foo}} shall be converted to FOO
6548 As well as inside noinclude/onlyinclude
6549 <noinclude>{{subst:Foo}}</noinclude>
6550 <onlyinclude>{{subst:Foo}}</onlyinclude>
6552 But not inside includeonly
6553 <includeonly>{{subst:Foo}}</includeonly>
6557 <nowiki>~~~~</nowiki>
6559 <includeonly><nowiki>~~~~</nowiki></includeonly>
6561 <noinclude><nowiki>~~~~</nowiki></noinclude>
6563 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6565 FOO shall be converted to FOO
6567 As well as inside noinclude/onlyinclude
6568 <noinclude>FOO</noinclude>
6569 <onlyinclude>FOO</onlyinclude>
6571 But not inside includeonly
6572 <includeonly>{{subst:Foo}}</includeonly>
6576 ### Message transform tests
6579 message transform: magic variables
6589 message transform: should not transform wiki markup
6599 message transform: <noinclude> in transcluded template (bug 4926)
6609 message transform: <onlyinclude> in transcluded template (bug 4926)
6619 {{#special:}} page name, known
6623 {{#special:Recentchanges}}
6625 Special:RecentChanges
6629 {{#special:}} page name with subpage, known
6633 {{#special:Recentchanges/param}}
6635 Special:RecentChanges/param
6639 {{#special:}} page name, unknown
6643 {{#special:foobarnonexistent}}
6645 No such special page
6649 {{#speciale:}} page name, known
6653 {{#speciale:Recentchanges}}
6655 Special:RecentChanges
6659 {{#speciale:}} page name with subpage, known
6663 {{#speciale:Recentchanges/param}}
6665 Special:RecentChanges/param
6669 {{#speciale:}} page name, unknown
6673 {{#speciale:foobarnonexistent}}
6675 No_such_special_page
6684 [[Image:foobar.jpg]]
6686 <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>
6693 [[Image:foobar.jpg|right]]
6695 <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>
6700 Simple image (using File: namespace, now canonical)
6704 <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>
6711 [[Image:foobar.jpg|right|Caption text]]
6713 <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>
6718 Image with empty attribute
6720 [[Image:foobar.jpg|right||Caption text]]
6722 <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>
6727 Image with link tails
6729 123[[Image:foobar.jpg]]456
6730 123[[Image:foobar.jpg|right]]456
6731 123[[Image:foobar.jpg|thumb]]456
6733 <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
6735 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
6736 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
6741 Image with multiple captions -- only last one is accepted
6743 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6745 <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>
6750 Image with width attribute at different positions
6752 [[Image:foobar.jpg|200px|right|Caption]]
6753 [[Image:foobar.jpg|right|200px|Caption]]
6754 [[Image:foobar.jpg|right|Caption|200px]]
6756 <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>
6757 <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>
6758 <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>
6763 Image with link parameter, wiki target
6765 [[Image:foobar.jpg|link=Target page]]
6767 <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>
6772 Image with link parameter, URL target
6774 [[Image:foobar.jpg|link=http://example.com/]]
6776 <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>
6781 Image with link parameter, wgExternalLinkTarget
6783 [[Image:foobar.jpg|link=http://example.com/]]
6785 wgExternalLinkTarget='foobar'
6787 <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>
6792 Image with link parameter, wgNoFollowLinks set to false
6794 [[Image:foobar.jpg|link=http://example.com/]]
6796 wgNoFollowLinks=false
6798 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6803 Image with link parameter, wgNoFollowDomainExceptions
6805 [[Image:foobar.jpg|link=http://example.com/]]
6807 wgNoFollowDomainExceptions='example.com'
6809 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6814 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6816 [[Image:foobar.jpg|link=http://example.com/|Title]]
6818 wgExternalLinkTarget='foobar'
6820 <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>
6825 Image with empty link parameter
6827 [[Image:foobar.jpg|link=]]
6829 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6834 Image with link parameter (wiki target) and unnamed parameter
6836 [[Image:foobar.jpg|link=Target page|Title]]
6838 <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>
6843 Image with link parameter (URL target) and unnamed parameter
6845 [[Image:foobar.jpg|link=http://example.com/|Title]]
6847 <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>
6852 Thumbnail image with link parameter
6854 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6856 <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>
6861 Image with frame and link
6863 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6865 <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>
6870 Image with frame and link and explicit alt
6872 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6874 <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>
6879 Image with wiki markup in implicit alt
6881 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6883 <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>
6888 Image with wiki markup in explicit alt
6890 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6892 <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>
6897 Link to image page- image page normally doesn't exists, hence edit link
6898 Add test with existing image page
6899 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6903 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6908 bug 18784 Link to non-existent image page with caption should use caption as link text
6910 [[:Image:test|caption]]
6912 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6917 Frameless image caption with a free URL
6919 [[Image:foobar.jpg|http://example.com]]
6921 <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>
6926 Thumbnail image caption with a free URL
6928 [[Image:foobar.jpg|thumb|http://example.com]]
6930 <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>
6935 Thumbnail image caption with a free URL and explicit alt
6937 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6939 <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>
6944 BUG 1887: A ISBN with a thumbnail
6946 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6948 <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>
6953 BUG 1887: A RFC with a thumbnail
6955 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6957 <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>
6962 BUG 1887: A mailto link with a thumbnail
6964 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6966 <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>
6970 # Pending resolution to bug 368
6972 BUG 648: Frameless image caption with a link
6974 [[Image:foobar.jpg|text with a [[link]] in it]]
6976 <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>
6981 BUG 648: Frameless image caption with a link (suffix)
6983 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6985 <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>
6990 BUG 648: Frameless image caption with an interwiki link
6992 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6994 <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>
6999 BUG 648: Frameless image caption with a piped interwiki link
7001 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7003 <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>
7008 Escape HTML special chars in image alt text
7010 [[Image:foobar.jpg|& < > "]]
7012 <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>
7017 BUG 499: Alt text should have Ӓ, not &1234;
7019 [[Image:foobar.jpg|♀]]
7021 <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>
7026 Broken image caption with link
7028 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7030 <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.
7035 Image caption containing another image
7037 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7039 <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>
7044 Image caption containing a newline
7046 [[Image:Foobar.jpg|This
7049 <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>
7055 Bug 3090: External links other than http: in image captions
7057 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7059 <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>
7066 [[Image:foobar.jpg|a|class=b]]
7068 <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>
7075 #REDIRECT [[File:Barfoo.jpg]]
7081 [[Image:Barfoo.jpg]]
7083 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7088 Missing image with uploads disabled
7092 [[Image:Foobaz.jpg]]
7094 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7103 Subpage test/subpage
7111 subpage title=[[Subpage test]]
7115 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7120 Subpage noslash link
7122 subpage title=[[Subpage test]]
7126 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7135 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7140 BUG 561: {{/Subpage}}
7142 subpage title=[[Page]]
7146 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7154 Category:MediaWiki User's Guide
7162 [[:Category:MediaWiki User's Guide]]
7164 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7173 [[Category:MediaWiki User's Guide]]
7175 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7179 PAGESINCATEGORY invalid title fatal (r33546 fix)
7181 {{PAGESINCATEGORY:<bogus>}}
7188 Category with different sort key
7192 [[Category:MediaWiki User's Guide|Foo]]
7194 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7198 Category with identical sort key
7202 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7204 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7208 Category with empty sort key
7213 [[Category:MediaWiki User's Guide|]]
7215 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7219 Category with empty sort key and parentheses
7224 [[Category:Foo (bar)|]]
7226 [[Category:Foo (bar)|Foo]]
7230 Category with link tail
7235 123[[Category:Foo]]456
7237 123[[Category:Foo]]456
7241 Category with template
7246 [[Category:{{echo|Foo}}]]
7248 [[Category:{{echo|Foo}}]]
7252 Category with template in sort key
7257 [[Category:Foo|{{echo|Bar}}]]
7259 [[Category:Foo|{{echo|Bar}}]]
7263 Category with template in sort key and title
7268 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7270 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7274 Category / paragraph interactions
7276 Foo [[Category:Baz]] Bar
7278 Foo [[Category:Baz]]
7286 [[Category:Baz]] Bar
7299 {{echo|[[Category:Baz]]}}
7314 ### Inter-language links
7317 Inter-language links
7323 [[zh:食品]]
7325 es:Alimento fr:Nourriture zh:食品
7329 Duplicate interlanguage links (bug 24502)
7345 Basic section headings
7352 ===Smaller headline===
7355 <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>
7358 <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>
7361 <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>
7367 Section headings with TOC
7370 === Subheadline 1 ===
7371 ===== Skipping a level =====
7372 ====== Skipping a level ======
7376 ===Another headline===
7378 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7380 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7382 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7384 <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>
7386 <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>
7393 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7395 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7400 <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>
7401 <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>
7402 <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>
7403 <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>
7404 <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>
7407 <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>
7411 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7413 Handling of sections up to level 6 and beyond
7416 == Level 2 Heading==
7417 === Level 3 Heading===
7418 ==== Level 4 Heading====
7419 ===== Level 5 Heading=====
7420 ====== Level 6 Heading======
7421 ======= Level 7 Heading=======
7422 ======== Level 8 Heading========
7423 ========= Level 9 Heading=========
7424 ========== Level 10 Heading==========
7426 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7428 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7430 <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>
7432 <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>
7434 <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>
7436 <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>
7438 <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>
7439 <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>
7440 <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>
7441 <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>
7442 <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>
7455 <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>
7456 <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>
7457 <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>
7458 <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>
7459 <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>
7460 <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>
7461 <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>
7462 <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>
7463 <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>
7464 <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>
7469 TOC regression (bug 9764)
7473 ==== title 1.1.1 ====
7478 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7480 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7482 <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>
7484 <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>
7487 <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>
7490 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7492 <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>
7497 <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>
7498 <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>
7499 <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>
7500 <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>
7501 <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>
7502 <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>
7507 TOC with wgMaxTocLevel=3 (bug 6204)
7513 ==== title 1.1.1 ====
7518 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7520 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7522 <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>
7523 <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>
7526 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7528 <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>
7533 <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>
7534 <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>
7535 <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>
7536 <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>
7537 <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>
7538 <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>
7543 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7549 ====Section 1.1.1====
7550 ====Section 1.1.1.1====
7553 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7555 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7557 <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>
7560 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7563 <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>
7564 <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>
7565 <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>
7566 <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>
7567 <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>
7573 Resolving duplicate section names
7578 <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>
7579 <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>
7584 Resolving duplicate section names with differing case (bug 10721)
7589 <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>
7590 <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>
7602 Template with sections, __NOTOC__
7609 <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>
7610 <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>
7611 <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>
7612 <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>
7617 __NOEDITSECTION__ keyword
7623 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7624 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7629 Link inside a section heading
7631 ==Section with a [[Main Page|link]] in it==
7633 <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>
7638 TOC regression (bug 12077)
7645 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7647 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7649 <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>
7652 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7655 <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>
7656 <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>
7657 <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>
7662 BUG 1219 URL next to image (good)
7664 http://example.com [[Image:foobar.jpg]]
7666 <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>
7671 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7674 The line above must have a trailing space!
7677 But just in case it doesn't...
7679 <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>
7680 <p>The line above must have a trailing space!
7682 <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>
7683 <p>But just in case it doesn't...
7688 Header with special characters (bug 25462)
7690 The tooltips shall not show entities to the user (ie. be double escaped)
7707 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7709 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7711 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7712 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7713 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7714 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7715 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7718 <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>
7721 <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>
7724 <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>
7727 <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>
7730 <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>
7736 Headers with excess '=' characters
7737 (Are similar tests necessary beyond the 1st level?)
7741 =''italic'' heading==
7742 ==''italic'' heading=
7744 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7746 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7747 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7748 <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>
7749 <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>
7752 <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>
7753 <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>
7754 <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>
7755 <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>
7760 BUG 1219 URL next to image (broken)
7762 http://example.com[[Image:foobar.jpg]]
7764 <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>
7769 Bug 1186 news: in the middle of text
7771 http://en.wikinews.org/wiki/Wikinews:Workplace
7773 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7779 Namespaced link must have a title
7788 Namespaced link must have a title (bad fragment version)
7790 [[Project:#fragment]]
7792 <p>[[Project:#fragment]]
7798 ### HTML tags and HTML attributes
7802 div with no attributes
7804 <div>HTML rocks</div>
7806 <div>HTML rocks</div>
7811 div with double-quoted attribute
7813 <div id="rock">HTML rocks</div>
7815 <div id="rock">HTML rocks</div>
7820 div with single-quoted attribute
7822 <div id='rock'>HTML rocks</div>
7824 <div id="rock">HTML rocks</div>
7829 div with unquoted attribute
7831 <div id=rock>HTML rocks</div>
7833 <div id="rock">HTML rocks</div>
7838 div with illegal double attributes
7840 <div id="a" id="b">HTML rocks</div>
7842 <div id="b">HTML rocks</div>
7846 # FIXME: produce empty string instead of "class" in the PHP parser, following
7849 div with empty attribute value, space before equals
7853 <div class =>HTML rocks</div>
7855 <div class="">HTML rocks</div>
7859 # The PHP parser escapes the opening brace to { for some reason, so
7860 # disabled this test for it.
7862 div with braces in attribute value
7866 <div title="{}">Foo</div>
7868 <div title="{}">Foo</div>
7871 # This it very inconsistent in the PHP parser: it returns
7872 # class="class" if there is a space between the name and the equal sign (see
7873 # 'div with empty attribute value, space before equals'), but strips the
7874 # attribute completely if the space is missing. We hope that not much content
7875 # depends on this, so are implementing the behavior below in Parsoid for
7876 # consistencies' sake. Disabled for the PHP parser.
7877 # FIXME: fix this behavior in the PHP parser?
7879 div with empty attribute value, no space before equals
7883 <div class=>HTML rocks</div>
7885 <div class="">HTML rocks</div>
7890 HTML multiple attributes correction
7892 <p class="error" class="awesome">Awesome!</p>
7894 <p class="awesome">Awesome!</p>
7899 Table multiple attributes correction
7902 !+ class="error" class="awesome"| status
7907 <th class="awesome"> status
7915 <DIV ID="x">HTML ROCKS</DIV>
7917 <div id="x">HTML ROCKS</div>
7922 Non-ASCII pseudo-tags are rendered as text
7931 Pseudo-tag with URL 'name' renders as url link
7933 <http://example.com/>
7935 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7940 text with amp in the middle of nowhere
7944 <p>Remember AT&T?
7949 text with character entity: eacute
7951 I always thought é was a cute letter.
7953 <p>I always thought é was a cute letter.
7958 text with entity-escaped character entity-like string: eacute
7960 I always thought &eacute; was a cute letter.
7962 <p>I always thought &eacute; was a cute letter.
7967 text with undefined character entity: xacute
7969 I always thought &xacute; was a cute letter.
7971 <p>I always thought &xacute; was a cute letter.
7983 [[Media:Foobar.jpg]]
7985 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7990 Media link with text
7992 [[Media:Foobar.jpg|A neat file to look at]]
7994 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7998 # FIXME: this is still bad HTML tag nesting
8000 Media link with nasty text
8001 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8003 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8005 <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>
8010 Media link to nonexistent file (bug 1702)
8012 [[Media:No such.jpg]]
8014 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8019 Image link to nonexistent file (bug 1850 - good)
8021 [[Image:No such.jpg]]
8023 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8028 :Image link to nonexistent file (bug 1850 - bad)
8030 [[:Image:No such.jpg]]
8032 <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>
8039 Character reference normalization in link text (bug 1938)
8041 [[Main Page|this&that]]
8043 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8050 Test for unicode normalization
8052 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8056 (bug 19451) Links should refer to the normalized form.
8064 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8065 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8066 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8067 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8068 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8073 Empty attribute crash test (bug 2067)
8075 <font color="">foo</font>
8077 <p><font color="">foo</font>
8082 Empty attribute crash test single-quotes (bug 2067)
8084 <font color=''>foo</font>
8086 <p><font color="">foo</font>
8091 Attribute test: equals, then nothing
8093 <font color=>foo</font>
8100 Attribute test: unquoted value
8102 <font color=x>foo</font>
8104 <p><font color="x">foo</font>
8109 Attribute test: unquoted but illegal value (hash)
8111 <font color=#x>foo</font>
8113 <p><font color="#x">foo</font>
8118 Attribute test: no value
8120 <font color>foo</font>
8122 <p><font color="color">foo</font>
8127 Bug 2095: link with three closing brackets
8131 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8136 Bug 2095: link with pipe and three closing brackets
8140 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8145 Bug 2095: link with pipe and three closing brackets, version 2
8147 [[Main Page|[http://example.com/]]]
8149 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8159 Template:Dangerous attribute
8161 " onmouseover="alert(document.cookie)
8165 Template:Dangerous style attribute
8167 border-size: expression(alert(document.cookie))
8173 <div style="float: right; {{{1}}}">Magic div</div>
8177 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8179 <div title="{{test}}"></div>
8181 <div title="This is a test template"></div>
8186 Bug 2304: HTML attribute safety (dangerous template; 2309)
8188 <div title="{{dangerous attribute}}"></div>
8190 <div title=""></div>
8195 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8197 <div style="{{dangerous style attribute}}"></div>
8199 <div style="/* insecure input */"></div>
8204 Bug 2304: HTML attribute safety (safe parameter; 2309)
8206 {{div style|width: 200px}}
8208 <div style="float: right; width: 200px">Magic div</div>
8213 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8215 {{div style|width: expression(alert(document.cookie))}}
8217 <div style="/* insecure input */">Magic div</div>
8222 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8224 {{div style|"><script>alert(document.cookie)</script>}}
8226 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8231 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8233 {{div style|" ><script>alert(document.cookie)</script>}}
8235 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8240 Bug 2304: HTML attribute safety (link)
8242 <div title="[[Main Page]]"></div>
8244 <div title="[[Main Page]]"></div>
8249 Bug 2304: HTML attribute safety (italics)
8251 <div title="''foobar''"></div>
8253 <div title="''foobar''"></div>
8258 Bug 2304: HTML attribute safety (bold)
8260 <div title="'''foobar'''"></div>
8262 <div title="'''foobar'''"></div>
8268 Bug 2304: HTML attribute safety (ISBN)
8270 <div title="ISBN 1234567890"></div>
8272 <div title="ISBN 1234567890"></div>
8277 Bug 2304: HTML attribute safety (RFC)
8279 <div title="RFC 1234"></div>
8281 <div title="RFC 1234"></div>
8286 Bug 2304: HTML attribute safety (PMID)
8288 <div title="PMID 1234567890"></div>
8290 <div title="PMID 1234567890"></div>
8295 Bug 2304: HTML attribute safety (web link)
8297 <div title="http://example.com/"></div>
8299 <div title="http://example.com/"></div>
8304 Bug 2304: HTML attribute safety (named web link)
8306 <div title="[http://example.com/ link]"></div>
8308 <div title="[http://example.com/ link]"></div>
8313 Bug 3244: HTML attribute safety (extension; safe)
8315 <div style="<nowiki>background:blue</nowiki>"></div>
8317 <div style="background:blue"></div>
8322 Bug 3244: HTML attribute safety (extension; unsafe)
8324 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8326 <div style="/* insecure input */"></div>
8330 # More MSIE fun discovered by Tom Gilder
8333 MSIE CSS safety test: spurious slash
8335 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8337 <div style="/* insecure input */">evil</div>
8342 MSIE CSS safety test: hex code
8344 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8346 <div style="/* insecure input */">evil</div>
8351 MSIE CSS safety test: comment in url
8353 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8355 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8360 MSIE CSS safety test: comment in expression
8362 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8364 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8370 Table attribute legitimate extension
8373 !+ style="<nowiki>color:blue</nowiki>"| status
8378 <th style="color:blue"> status
8384 Table attribute safety
8387 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8392 <th style="/* insecure input */"> status
8398 CSS line continuation 1
8400 <div style="background-image: u\ rl(test.jpg);"></div>
8402 <div style="/* insecure input */"></div>
8407 CSS line continuation 2
8409 <div style="background-image: u\ rl(test.jpg); "></div>
8411 <div style="/* insecure input */"></div>
8422 Expansion of multi-line templates in attribute values (bug 6255)
8424 <div style="background: {{identity|#00FF00}}">-</div>
8426 <div style="background: #00FF00">-</div>
8432 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8434 <div style="background:
8437 <div style="background: #00FF00">-</div>
8442 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8444 <div style="background: #00FF00">-</div>
8446 <div style="background: #00FF00">-</div>
8451 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8454 Parser hook: empty input
8467 Parser hook: empty input using terminated empty elements
8480 Parser hook: empty input using terminated empty elements (space before)
8493 Parser hook: basic input
8507 Parser hook: case insensitive
8521 Parser hook: case insensitive, redux
8534 Parser hook: nested tags
8538 <tag><tag></tag></tag>
8549 Parser hook: basic arguments
8551 <tag width=200 height = "100" depth = '50' square></tag>
8559 'square' => 'square',
8566 Parser hook: argument containing a forward slash (bug 5344)
8568 <tag filename='/tmp/bla'></tag>
8573 'filename' => '/tmp/bla',
8580 Parser hook: empty input using terminated empty elements (bug 2374)
8593 # </tag> should be output literally since there is no matching tag that begins it
8595 Parser hook: basic arguments using terminated empty elements (bug 2374)
8597 <tag width=200 height = "100" depth = '50' square/>
8607 'square' => 'square',
8616 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8620 Parser hook: static parser hook not inside a comment
8622 <statictag>hello, world</statictag>
8623 <statictag action=flush/>
8631 Parser hook: static parser hook inside a comment
8633 <!-- <statictag>hello, world</statictag> -->
8634 <statictag action=flush/>
8640 # Nested template calls; this case was broken by Parser.php rev 1.506,
8644 Template:One-parameter
8646 (My parameter is: {{{1}}})
8650 Template:Map-one-parameter
8656 Nested template calls
8658 {{Map-one-parameter|One-parameter|param}}
8660 <p>(My parameter is: param)
8669 Sanitizer: Closing of open tags
8671 <s></s><table></table>
8673 <s></s><table></table>
8678 Sanitizer: Closing of open but not closed tags
8687 Sanitizer: Closing of closed but not open tags
8696 Sanitizer: Closing of closed but not open table tags
8698 Table not started</td></tr></table>
8700 <p>Table not started</td></tr></table>
8705 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8707 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8709 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8714 Sanitizer: Validating the contents of the id attribute (bug 4515)
8720 Something, but definitely not <br id="9" />...
8724 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8728 <br id="foo" /><br id="foo" />
8730 Something need to be done. foo-2 ?
8734 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8737 <meta itemprop="hello" content="world">
8738 <meta http-equiv="refresh" content="5">
8739 <meta itemprop="hello" http-equiv="refresh" content="5">
8740 <link itemprop="hello" href="{{SERVER}}">
8741 <link rel="stylesheet" href="{{SERVER}}">
8742 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8745 <div itemscope="itemscope">
8746 <p> <meta itemprop="hello" content="world" />
8747 <meta http-equiv="refresh" content="5">
8748 <meta itemprop="hello" content="5" />
8750 <link itemprop="hello" href="http://Britney-Spears" />
8751 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8752 <link itemprop="hello" href="http://Britney-Spears" />
8758 Language converter: output gets cut off unexpectedly (bug 5757)
8762 this bit is safe: }-
8764 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8766 then we get cut off here: }-
8768 all additional text is vanished
8770 <p>this bit is safe: }-
8771 </p><p>but if we add a conversion instance: xxx
8772 </p><p>then we get cut off here: }-
8773 </p><p>all additional text is vanished
8778 Self closed html pairs (bug 5487)
8781 <center><font id="bug" />Centered text</center>
8782 <div><font id="bug2" />In div text</div>
8784 <center><font id="bug" />Centered text</center>
8785 <div><font id="bug2" />In div text</div>
8794 Punctuation: nbsp before exclamation
8798 <p>C'est grave !
8803 Punctuation: CSS !important (bug 11874)
8805 <div style="width:50% !important">important</div>
8807 <div style="width:50% !important">important</div>
8812 Punctuation: CSS ! important (bug 11874; with space after)
8814 <div style="width:50% ! important">important</div>
8816 <div style="width:50% ! important">important</div>
8822 HTML bullet list, closed tags (bug 5497)
8837 HTML bullet list, unclosed tags (bug 5497)
8854 HTML ordered list, closed tags (bug 5497)
8869 HTML ordered list, unclosed tags (bug 5497)
8886 HTML nested bullet list, closed tags (bug 5497)
8911 HTML nested bullet list, open tags (bug 5497)
8936 HTML nested ordered list, closed tags (bug 5497)
8961 HTML nested ordered list, open tags (bug 5497)
8986 HTML ordered list item with parameters oddity
8988 <ol><li id="fragment">One</li></ol>
8990 <ol><li id="fragment">One</li></ol>
8995 bug 5918: autonumbering
8997 [http://first/] [http://second] [ftp://ftp]
9001 [mailto:enclosed@mail.tld With target]
9003 [mailto:enclosed@mail.tld]
9005 mailto:inline@mail.tld
9007 <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>
9008 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9009 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9010 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9011 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9017 # Security and HTML correctness
9018 # From Nick Jenkins' fuzz testing
9022 Fuzz testing: Parser13
9037 Fuzz testing: Parser14
9042 <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>
9043 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9045 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9052 Fuzz testing: Parser14-table
9057 <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>
9058 <table style="__TOC__">
9064 # Known to produce bogus xml (extra </td>)
9066 Fuzz testing: Parser16
9086 Fuzz testing: Parser21
9089 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9094 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9104 Fuzz testing: Parser22
9106 http://===r:::https://b
9110 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9118 # Known to produce bad XML for now
9120 Fuzz testing: Parser24
9127 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9128 <br style="onmouseover='alert(document.cookie);' " />
9130 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9135 <u class="|">}}}} >
9136 <br style="onmouseover='alert(document.cookie);'" />
9138 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9147 # Note: the current result listed for this is not what the original one was,
9148 # but the original bug was JavaScript injection, which is fixed in any case.
9149 # It's not clear that the original result listed was any more correct than the
9150 # current one. Original result:
9153 # <li class="||">
9154 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9156 Fuzz testing: Parser25 (bug 6055)
9162 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9164 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9169 Fuzz testing: URL adjacent extension (with space, clean)
9172 http://example.com <nowiki>junk</nowiki>
9174 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9179 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9182 http://example.com<nowiki>junk</nowiki>
9184 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9189 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9192 http://example.com<pre>junk</pre>
9194 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9199 Fuzz testing: image with bogus manual thumbnail
9201 [[Image:foobar.jpg|thumbnail= ]]
9203 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9208 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9210 <pre dir=" "></pre>
9212 <pre dir=" "></pre>
9217 Parsing optional HTML elements (Bug 6171)
9222 <td> Some tabular data</td>
9223 <td> More tabular data ...
9224 <td> And yet som tabular data</td>
9230 <td> Some tabular data</td>
9231 <td> More tabular data ...
9232 </td><td> And yet som tabular data</td>
9239 Correct handling of <td>, <tr> (Bug 6171)
9244 <td> Some tabular data</td>
9245 <td> More tabular data ...</td>
9246 <td> And yet som tabular data</td>
9252 <td> Some tabular data</td>
9253 <td> More tabular data ...</td>
9254 <td> And yet som tabular data</td>
9262 Parsing crashing regression (fr:JavaScript)
9266 <p></body></x>
9271 Inline wiki vs wiki block nesting
9277 <p><b>Bold paragraph</b>
9278 </p><p>New wiki paragraph
9283 Inline HTML vs wiki block nesting
9291 <p><b>Bold paragraph</b>
9292 </p><p>New wiki paragraph
9296 # Original result was this:
9297 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9299 # While that might be marginally more intuitive, maybe, the six-apostrophe
9300 # construct is clearly pathological and the result stated here (which is what
9301 # the parser actually does) is about as reasonable as anything.
9303 Mixing markup for italics and bold
9306 '''bold''''''bold''bolditalics'''''
9308 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9316 Article for special page transclusion test
9320 Special page transclusion
9323 {{Special:Prefixindex/Xyzzyx}}
9325 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9330 Special page transclusion twice (bug 5021)
9333 {{Special:Prefixindex/Xyzzyx}}
9334 {{Special:Prefixindex/Xyzzyx}}
9336 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9337 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9342 Transclusion of default MediaWiki message
9344 {{MediaWiki:Mainpage}}
9351 Transclusion of nonexistent MediaWiki message
9353 {{MediaWiki:Mainpagexxx}}
9355 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9360 Transclusion of MediaWiki message with underscore
9362 {{MediaWiki:history_short}}
9369 Transclusion of MediaWiki message with space
9371 {{MediaWiki:history short}}
9378 Invalid header with following text
9388 Section extraction test (section 0)
9408 Section extraction test (section 1)
9430 Section extraction test (section 2)
9451 Section extraction test (section 3)
9471 Section extraction test (section 4)
9495 Section extraction test (section 5)
9515 Section extraction test (section 6)
9536 Section extraction test (section 7)
9556 Section extraction test (section 8)
9576 Section extraction test (section 9)
9597 Section extraction test (section 10)
9617 Section extraction test (nonexistent section 11)
9636 Section extraction test with bogus heading (section 1)
9641 ==bogus== not a legal section
9645 ==bogus== not a legal section
9649 Section extraction test with bogus heading (section 2)
9654 ==bogus== not a legal section
9661 Section extraction test with comment after heading (section 1)
9673 Section extraction test with comment after heading (section 2)
9685 Section extraction test with bogus <nowiki> heading (section 1)
9690 ==bogus== <nowiki>not a legal section</nowiki>
9694 ==bogus== <nowiki>not a legal section</nowiki>
9698 Section extraction test with bogus <nowiki> heading (section 2)
9703 ==bogus== <nowiki>not a legal section</nowiki>
9710 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9711 # instead of respecting commented sections
9713 Section extraction prefixed by comment (section 1)
9724 Section extraction prefixed by comment (section 2)
9735 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9736 # instead of respecting HTML-style headings
9738 Section extraction, mixed wiki and html (section 1)
9754 Section extraction, mixed wiki and html (section 2)
9770 # Formerly testing for bug 3342
9772 Section extraction, heading surrounded by <noinclude>
9776 <noinclude>==unmarked==</noinclude>
9782 # Test behaviour of bug 19910
9784 Sectiion with all-equals
9789 The line above must have a trailing space
9792 But just in case it doesn't...
9796 But just in case it doesn't...
9800 Section replacement test (section 0)
9831 Section replacement test (section 1)
9860 Section replacement test (section 2)
9890 Section replacement test (section 3)
9921 Section replacement test (section 4)
9948 Section replacement test (section 5)
9979 Section replacement test (section 6)
10009 Section replacement test (section 7)
10040 Section replacement test (section 8)
10071 Section replacement test (section 9)
10100 Section replacement test (section 10)
10130 Section replacement test with initial whitespace (bug 13728)
10134 Preformatted initial line
10138 Preformatted initial line
10145 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10157 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10170 Section extraction, <pre> around bogus header (bug 10309)
10187 Section replacement, <pre> around bogus header (bug 10309)
10189 noxml replace=2,"xxx"
10210 Handling of 
 in URLs
10214 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10221 5 quotes, code coverage +1 line
10228 Special:Search page linking.
10232 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10244 * {{BASEPAGENAMEE}}
10246 * {{TALKPAGENAMEE}}
10247 * {{SUBJECTPAGENAME}}
10248 * {{SUBJECTPAGENAMEE}}
10254 * {{SUBJECTSPACEE}}
10255 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10257 <ul><li> Parser test
10258 </li><li> Parser test
10259 </li><li> Parser test
10260 </li><li> Parser_test
10261 </li><li> Parser test
10262 </li><li> Parser_test
10263 </li><li> Talk:Parser test
10264 </li><li> Talk:Parser_test
10265 </li><li> Parser test
10266 </li><li> Parser_test
10273 </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>
10277 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10287 image4 |300px| centre
10288 image5.svg| http://///////
10293 <ul class="gallery">
10294 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10295 <div style="height: 150px;">Image1.png</div>
10296 <div class="gallerytext">
10299 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10300 <div style="height: 150px;">Image2.gif</div>
10301 <div class="gallerytext">
10306 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10307 <div style="height: 150px;">Image3</div>
10308 <div class="gallerytext">
10311 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10312 <div style="height: 150px;">Image4</div>
10313 <div class="gallerytext">
10318 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10319 <div style="height: 150px;">Image5.svg</div>
10320 <div class="gallerytext">
10321 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10325 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10326 <div style="height: 150px;">* image6</div>
10327 <div class="gallerytext">
10335 Gallery (with options)
10337 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10338 File:Nonexistant.jpg|caption
10339 File:Nonexistant.jpg
10340 image:foobar.jpg|some '''caption''' [[Main Page]]
10342 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10345 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10346 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10347 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10348 <div style="height: 70px;">Nonexistant.jpg</div>
10349 <div class="gallerytext">
10354 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10355 <div style="height: 70px;">Nonexistant.jpg</div>
10356 <div class="gallerytext">
10359 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10360 <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>
10361 <div class="gallerytext">
10362 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10366 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10367 <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>
10368 <div class="gallerytext">
10371 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10372 <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>
10373 <div class="gallerytext">
10383 Gallery with wikitext inside caption
10386 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10387 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10390 <ul class="gallery">
10391 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10392 <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>
10393 <div class="gallerytext">
10394 <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>
10398 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10399 <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>
10400 <div class="gallerytext">
10401 <p>This is a test template
10410 gallery (with showfilename option)
10412 <gallery showfilename>
10413 File:Nonexistant.jpg|caption
10414 File:Nonexistant.jpg
10415 image:foobar.jpg|some '''caption''' [[Main Page]]
10419 <ul class="gallery">
10420 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10421 <div style="height: 150px;">Nonexistant.jpg</div>
10422 <div class="gallerytext">
10423 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10428 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10429 <div style="height: 150px;">Nonexistant.jpg</div>
10430 <div class="gallerytext">
10431 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10435 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10436 <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>
10437 <div class="gallerytext">
10438 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10439 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10443 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10444 <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>
10445 <div class="gallerytext">
10446 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10455 Gallery (with namespace-less filenames)
10458 File:Nonexistant.jpg
10464 <ul class="gallery">
10465 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10466 <div style="height: 150px;">Nonexistant.jpg</div>
10467 <div class="gallerytext">
10470 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10471 <div style="height: 150px;">Nonexistant.jpg</div>
10472 <div class="gallerytext">
10475 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10476 <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>
10477 <div class="gallerytext">
10480 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10481 <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>
10482 <div class="gallerytext">
10490 HTML Hex character encoding (spells the word "JavaScript")
10492 JavaScript
10494 <p>JavaScript
10499 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10503 <p>&#xsee;&#XSEE;
10508 HTML Hex character encoding mixed case
10517 __FORCETOC__ override
10529 ISBN 978-0-1234-56 789
10531 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10536 ISBN followed by 5 spaces
10547 ISBN ISBN 1234567890
10549 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10554 Bug 22905: <abbr> followed by ISBN followed by </a>
10556 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10558 <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>
10567 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10572 Double RFC with a wiki link
10576 <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>
10585 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10590 Centre-aligned image
10592 [[Image:foobar.jpg|centre]]
10594 <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>
10601 [[Image:foobar.jpg|none]]
10603 <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>
10608 Width + Height sized image (using px) (height is ignored)
10610 [[Image:foobar.jpg|640x480px]]
10612 <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>
10617 Width-sized image (using px, no following whitespace)
10619 [[Image:foobar.jpg|640px]]
10621 <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>
10626 Width-sized image (using px, with following whitespace - test regression from r39467)
10628 [[Image:foobar.jpg|640px ]]
10630 <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>
10635 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10637 [[Image:foobar.jpg| 640px]]
10639 <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>
10644 Another italics / bold test
10652 # Note the results may be incorrect, as parserTest output included this:
10653 # XML error: Mismatched tag at byte 6120:
10654 # ...<dd> </dt></dl> </dd...
10662 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10673 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10675 Images with the "|" character in the comment
10677 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10679 <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>
10684 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10686 <html><script>alert(1);</script></html>
10688 <p><html><script>alert(1);</script></html>
10693 HTML with raw HTML ($wgRawHtml==true)
10697 <html><script>alert(1);</script></html>
10699 <p><script>alert(1);</script>
10704 Parents of subpages, one level up
10706 subpage title=[[Subpage test/L1/L2/L3]]
10710 <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>
10716 Parents of subpages, one level up, not named
10718 subpage title=[[Subpage test/L1/L2/L3]]
10722 <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>
10729 Parents of subpages, two levels up
10731 subpage title=[[Subpage test/L1/L2/L3]]
10737 <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
10738 </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>
10743 Parents of subpages, two levels up, without trailing slash or name.
10745 subpage title=[[Subpage test/L1/L2/L3]]
10754 Parents of subpages, two levels up, with lots of extra trailing slashes.
10756 subpage title=[[Subpage test/L1/L2/L3]]
10760 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10765 Definition list code coverage
10771 <dl><dt> title  </dt><dd> def
10772 </dd><dt> title </dt><dd> def
10773 </dd><dt>title</dt><dd> def
10779 Don't fall for the self-closing div
10781 <div>hello world</div/>
10783 <div>hello world</div>
10792 <p>[[:Template:Msg]]
10801 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10805 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10807 Always escape literal '>' in output, not just after '<'
10821 <p>This is a test template
10822 This is a test template
10834 Inclusion of !userCanEdit() content
10838 <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>
10844 Out-of-order TOC heading levels
10853 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10855 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10857 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10858 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10861 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10863 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10864 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10869 <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>
10870 <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>
10871 <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>
10872 <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>
10873 <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>
10874 <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>
10880 ISBN with a dummy number
10890 ISBN with space-delimited number
10894 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10900 ISBN with multiple spaces, no number
10919 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10920 </p><p>ISBN 12345678901
10926 ISBN with trailing year (bug 8110)
10928 ISBN 1-234-56789-0 - 2006
10930 ISBN 1 234 56789 0 - 2006
10932 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10933 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10941 {{anchorencode:foo bar©#%n}}
10943 <p>foo_bar.C2.A9.23.25n
10948 anchorencode trims spaces
10950 {{anchorencode: __pretty__please__}}
10957 anchorencode deals with links
10959 {{anchorencode: [[hello|world]] [[hi]]}}
10966 anchorencode deals with templates
10968 {{anchorencode: {{Foo}} }}
10975 anchorencode encodes like the TOC generator: (bug 18431)
10977 === _ +:.3A%3A&&]] ===
10978 {{anchorencode: _ +:.3A%3A&&]] }}
10981 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10982 <p>.2B:.3A.253A.26.26.5D.5D
10986 # Expected output in the following test is not necessarily expected (there
10987 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10988 # only testing for well-formedness.
10990 Bug 6200: blockquotes and paragraph formatting
11010 Bug 8293: Use of center tag ruins paragraph formatting
11032 ### Language variants related tests
11035 Self-link in language variants
11037 title=[[Dunav]] language=sr
11039 Both [[Dunav]] and [[Дунав]] are names for this river.
11041 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11052 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11054 title=[[Duna]] language=sr
11056 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11058 <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.
11063 Link to pages in language variants
11067 Main Page can be written as [[Маин Паге]]
11069 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11075 Multiple links to pages in language variants
11079 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11081 <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>.
11087 Simple template in language variants
11093 <p>This is a test template
11099 Template with explicit namespace in language variants
11105 <p>This is a test template
11111 Basic test for template parameter in language variants
11115 {{парамтест|param=foo}}
11117 <p>This is a test template with parameter foo
11123 Simple category in language variants
11127 [[Category:МедиаWики Усер'с Гуиде]]
11129 <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>
11146 Don't convert blue categorylinks to another variant (bug 33210)
11150 [[A]][[Category:分类]]
11152 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11157 Stripping -{}- tags (language variants)
11161 Latin proverb: -{Ne nuntium necare}-
11163 <p>Latin proverb: Ne nuntium necare
11169 Prevent conversion with -{}- tags (language variants)
11171 language=sr variant=sr-ec
11173 Latinski: -{Ne nuntium necare}-
11175 <p>Латински: Ne nuntium necare
11181 Prevent conversion of text with -{}- tags (language variants)
11183 language=sr variant=sr-ec
11185 Latinski: -{Ne nuntium necare}-
11187 <p>Латински: Ne nuntium necare
11193 Prevent conversion of links with -{}- tags (language variants)
11195 language=sr variant=sr-ec
11199 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11205 -{}- tags within headlines (within html for parserConvert())
11207 language=sr variant=sr-ec
11211 <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>
11217 Explicit definition of language variant alternatives
11219 language=zh variant=zh-tw
11221 -{zh:China;zh-tw:Taiwan}-, not China
11223 <p>Taiwan, not China
11229 Conversion around HTML tags
11231 language=sr variant=sr-ec
11233 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11234 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11237 <span title="ЛаCтин">ски</span>
11243 Explicit session-wise language variant mapping (A flag and - flag)
11245 language=zh variant=zh-tw
11247 Taiwan is not China.
11248 But -{A|zh:China;zh-tw:Taiwan}- is China,
11249 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11250 and -{China}- is China.
11252 <p>Taiwan is not China.
11253 But Taiwan is Taiwan,
11254 (This should be stripped!)
11255 and China is China.
11260 Explicit session-wise language variant mapping (H flag for hide)
11262 language=zh variant=zh-tw
11264 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11267 <p>(This should be stripped!)
11273 Adding explicit conversion rule for title (T flag)
11275 language=zh variant=zh-tw showtitle
11277 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11280 <p>Should be stripped!
11285 Testing that changing the language variant here in the tests actually works
11287 language=zh variant=zh showtitle
11289 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11292 <p>Should be stripped!
11297 Recursive conversion of alt and title attrs shouldn't clear converter state
11299 language=zh variant=zh-cn showtitle
11301 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11302 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11306 Should be stripped<span title="Exclamation">!</span>
11311 Bug 24072: more test on conversion rule for title
11313 language=zh variant=zh-tw showtitle
11315 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11316 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11319 <p>This should be stripped!
11320 This won't take interferes with the title rule.
11325 Raw output of variant escape tags (R flag)
11327 language=zh variant=zh-tw
11329 Raw: -{R|zh:China;zh-tw:Taiwan}-
11331 <p>Raw: zh:China;zh-tw:Taiwan
11336 Nested using of manual convert syntax
11338 language=zh variant=zh-hk
11340 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11342 <p>Nested: Hello Hong Kong!
11347 Proper conversion of text in external links
11349 language=sr variant=sr-ec
11351 http://www.google.com
11352 gopher://www.google.com
11353 [http://www.google.com http://www.google.com]
11354 [gopher://www.google.com gopher://www.google.com]
11355 [https://www.google.com irc://www.google.com]
11356 [ftp://www.google.com www.google.com/ftp://dir]
11357 [//www.google.com www.google.com]
11359 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11360 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11361 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11362 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11363 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11364 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11365 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11370 Do not convert roman numbers to language variants
11372 language=sr variant=sr-ec
11376 <p>Фридрих IV је цар.
11381 Unclosed language converter markup "-{"
11392 Don't convert raw rule "-{R|=>}-" to "=>"
11409 Bug 529: Uncovered bullet
11419 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11420 # Templates in Wikipedia rely on this behavior, as tidy has always been
11421 # enabled there. These tests are normally run *without* tidy, so specify the
11422 # full output here.
11423 # To test realistic parsing behavior, apply a tidy-like transformation to both
11424 # the expected output and your parser's output.
11426 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11428 ******* Foo {{bullet}}
11430 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11443 Bug 529: Uncovered table already at line-start
11466 Bug 529: Uncovered bullet in parser function result
11468 * Foo {{lc:{{bullet}} }}
11477 Bug 5678: Double-parsed template argument
11479 {{lc:{{{1}}}|hello}}
11486 Bug 5678: Double-parsed template invocation
11488 {{lc:{{paramtest {{!}} param = hello }} }}
11490 <p>{{paramtest | param = hello }}
11495 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11498 title=[[Main Page]]
11500 {{PRVNÍVELKÉ:ěščř}}
11501 {{prvnívelké:ěščř}}
11521 Morwen/13: Unclosed link followed by heading
11528 <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>
11533 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11540 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11545 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
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>
11567 Paragraphs inside divs (no extra line breaks)
11579 Paragraphs inside divs (extra line break on open)
11594 Paragraphs inside divs (extra line break on close)
11609 Paragraphs inside divs (extra line break on open and close)
11626 Nesting tags, paragraphs on lines which begin with <div>
11630 <div></div><strong>A
11639 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11641 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11645 <blockquote>Line one
11647 Line two</blockquote>
11649 <blockquote>Line one
11650 Line two</blockquote>
11655 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11662 Line two</blockquote>
11667 Line two</blockquote>
11672 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11676 <blockquote>Line one
11681 <blockquote>Line one
11689 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11708 Paragraphs inside blockquotes/divs (no extra line breaks)
11710 <blockquote><div>Line one
11712 Line two</div></blockquote>
11714 <blockquote><div>Line one
11715 Line two</div></blockquote>
11720 Paragraphs inside blockquotes/divs (extra line break on open)
11725 Line two</div></blockquote>
11730 Line two</div></blockquote>
11735 Paragraphs inside blockquotes/divs (extra line break on close)
11737 <blockquote><div>Line one
11740 </div></blockquote>
11742 <blockquote><div>Line one
11745 </div></blockquote>
11750 Paragraphs inside blockquotes/divs (extra line break on open and close)
11756 </div></blockquote>
11762 </div></blockquote>
11767 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11769 wgLinkHolderBatchSize=0
11775 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11776 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11777 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11782 Free external link invading image caption
11784 [[Image:Foobar.jpg|thumb|http://x|hello]]
11786 <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>
11791 Bug 15196: localised external link numbers
11795 [http://en.wikipedia.org/]
11797 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11802 Multibyte character in padleft
11804 {{padleft:-Hello|7|Æ}}
11811 Multibyte character in padright
11813 {{padright:Hello-|7|Æ}}
11820 formatdate parser function
11822 {{#formatdate:2009-03-24}}
11824 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11829 formatdate parser function, with default format
11831 {{#formatdate:2009-03-24|mdy}}
11833 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11838 Spacing of numbers in formatted dates
11840 {{#formatdate:January 15}}
11842 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11847 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
11849 language=nl title=[[MediaWiki:Common.css]]
11851 {{#formatdate:2009-03-24|dmy}}
11853 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11866 Edit comment with link
11870 I like the [[Main Page]] a lot
11872 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11876 Edit comment with link and link text
11880 I like the [[Main Page|best pages]] a lot
11882 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11886 Edit comment with link and link text with suffix
11890 I like the [[Main Page|best page]]s a lot
11892 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11896 Edit comment with section link (non-local, eg in history list)
11898 comment title=[[Main Page]]
11900 /* External links */ removed bogus entries
11902 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11906 Edit comment with section link and text before it (non-local, eg in history list)
11908 comment title=[[Main Page]]
11910 pre-comment text /* External links */ removed bogus entries
11912 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>
11916 Edit comment with section link (local, eg in diff view)
11918 comment local title=[[Main Page]]
11920 /* External links */ removed bogus entries
11922 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11926 Edit comment with subpage link (bug 14080)
11930 title=[[Subpage test]]
11932 Poked at a [[/subpage]] here...
11934 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11938 Edit comment with subpage link and link text (bug 14080)
11942 title=[[Subpage test]]
11944 Poked at a [[/subpage|neat little page]] here...
11946 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11950 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11953 title=[[Subpage test]]
11955 Poked at a [[/subpage]] here...
11957 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11961 Edit comment with bare anchor link (local, as on diff)
11965 title=[[Main Page]]
11969 <a href="#section">#section</a>
11973 Edit comment with bare anchor link (non-local, as on history)
11976 title=[[Main Page]]
11980 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11984 Anchor starting with underscore
11988 <p><a href="#_ref">One</a>
11993 Id starting with underscore
11995 <div id="_ref"></div>
11997 <div id="_ref"></div>
12002 Space normalisation on autocomment (bug 22784)
12005 title=[[Main Page]]
12007 /* __hello__world__ */
12009 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12013 percent-encoding and + signs in comments (Bug 26410)
12017 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12019 <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>
12023 Bad images - basic functionality
12032 Bad images - bug 16039: text after bad image disappears
12046 Verify that displaytitle works (bug #22501) no displaytitle
12050 wgAllowDisplayTitle=true
12051 wgRestrictDisplayTitle=false
12053 this is not the the title
12056 <p>this is not the the title
12061 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12066 wgAllowDisplayTitle=true
12067 wgRestrictDisplayTitle=false
12069 this is not the the title
12070 {{DISPLAYTITLE:whatever}}
12073 <p>this is not the the title
12078 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12083 wgAllowDisplayTitle=true
12084 wgRestrictDisplayTitle=true
12086 this is not the the title
12087 {{DISPLAYTITLE:whatever}}
12090 <p>this is not the the title
12095 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12100 wgAllowDisplayTitle=true
12101 wgRestrictDisplayTitle=true
12103 this is not the the title
12104 {{DISPLAYTITLE:screen}}
12107 <p>this is not the the title
12112 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12117 wgAllowDisplayTitle=false
12119 this is not the the title
12120 {{DISPLAYTITLE:screen}}
12123 <p>this is not the the title
12124 <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>
12129 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12134 wgAllowDisplayTitle=false
12136 this is not the the title
12139 <p>this is not the the title
12144 preload: check <noinclude> and <includeonly>
12148 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12154 preload: check <onlyinclude>
12158 Goodbye <onlyinclude>Hello world</onlyinclude>
12164 preload: can pass tags through if we want to
12168 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12170 <includeonly>Hello world</includeonly>
12174 preload: check that it doesn't try to do tricks
12178 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12180 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12184 Play a bit with r67090 and bug 3158
12188 <div style="width:50% !important"> </div>
12189 <div style="width:50% !important"> </div>
12190 <div style="width:50% !important"> </div>
12191 <div style="border : solid;"> </div>
12193 <div style="width:50% !important"> </div>
12194 <div style="width:50% !important"> </div>
12195 <div style="width:50% !important"> </div>
12196 <div style="border : solid;"> </div>
12201 HTML5 data attributes
12203 <span data-foo="bar">Baz</span>
12204 <p data-abc-def_hij="">Quuz</p>
12206 <p><span data-foo="bar">Baz</span>
12208 <p data-abc-def_hij="">Quuz</p>
12213 percent-encoding and + signs in internal links (Bug 26410)
12215 [[User:+%]] [[Page+title%]]
12216 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12217 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12218 [[%33%45]] [[%33%45+]]
12220 <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>
12221 <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>
12222 <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>
12223 <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>
12228 Special characters in embedded file links (bug 27679)
12230 [[File:Contains & ampersand.jpg]]
12231 [[File:Does not exist.jpg|Title with & ampersand]]
12233 <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>
12234 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12240 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12242 Text's been normalized?
12244 <p>Text's been normalized?
12249 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12251 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12253 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12258 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12260 [http://www.example.org/ ideograms]
12262 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12267 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12269 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12271 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12295 Bug 31098 Template which includes system messages which includes the template
12299 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12300 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12305 Bug31490 Turkish: ucfirst 'blah'
12316 Bug31490 Turkish: ucfirst 'ix'
12327 Bug31490 Turkish: lcfirst 'BLAH'
12338 Bug31490 Turkish: ucfırst (with a dotless i)
12344 <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>
12349 Bug31490 ucfırst (with a dotless i) with English language
12355 <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>
12360 Bug 26375: TOC with italics
12362 title=[[Main Page]]
12365 == ''Lost'' episodes ==
12367 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12369 <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>
12372 <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>
12377 Bug 26375: TOC with bold
12379 title=[[Main Page]]
12382 == '''should be bold''' then normal text ==
12384 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12386 <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>
12389 <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>
12394 Bug 33845: Headings become cursive in TOC when they contain an image
12396 title=[[Main Page]]
12399 == Image [[Image:foobar.jpg]] ==
12401 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12403 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12406 <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>
12411 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12413 title=[[Main Page]]
12416 == <blockquote>Quote</blockquote> ==
12418 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12420 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12423 <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>
12428 Unclosed tags in TOC
12430 title=[[Main Page]]
12434 <small>Hanc marginis exiguitas non caperet.</small>
12437 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12439 <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>
12442 <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>
12443 <p><small>Hanc marginis exiguitas non caperet.</small>
12449 Multiple tags in TOC
12452 == <i>Foo</i> <b>Bar</b> ==
12454 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12456 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12458 <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>
12459 <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>
12462 <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>
12463 <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>
12468 Tags with parameters in TOC
12471 == <sup class="in-h2">Hello</sup> ==
12473 == <sup class="a > b">Evilbye</sup> ==
12475 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12477 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12478 <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>
12481 <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>
12482 <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>
12487 span tags with directionality in TOC
12490 == <span dir="ltr">C++</span> ==
12492 == <span dir="rtl">זבנג!</span> ==
12494 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12496 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12498 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12500 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12502 <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>
12503 <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>
12504 <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>
12505 <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>
12506 <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>
12509 <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>
12510 <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>
12511 <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>
12512 <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>
12513 <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>
12520 == {{int:headline_sample}} ==
12524 Bug 32057: Title needed when expanding <h> nodes.
12526 title=[[Main Page]]
12530 <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>
12535 Strip marker in urlencode
12537 {{urlencode:x<nowiki/>y}}
12538 {{urlencode:x<nowiki/>y|wiki}}
12539 {{urlencode:x<nowiki/>y|path}}
12566 Strip marker in formatNum
12568 {{formatnum:1<nowiki/>2}}
12569 {{formatnum:1<nowiki/>2|R}}
12577 Strip marker in grammar
12581 {{grammar:elative|foo<nowiki/>bar}}
12588 Strip marker in padleft
12590 {{padleft:|2|x<nowiki/>y}}
12597 Strip marker in padright
12599 {{padright:|2|x<nowiki/>y}}
12606 Strip marker in anchorencode
12608 {{anchorencode:x<nowiki/>y}}
12615 nowiki inside link inside heading (bug 18295)
12617 ==[[foo|x<nowiki>y</nowiki>z]]==
12619 <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>
12624 new support for bdi element (bug 31817)
12626 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12628 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12633 Ignore pipe between table row attributes
12637 |- id=foo | style='color: red'
12645 <tr id="foo" style="color: red">
12652 Gallery override link with WikiLink (bug 34852)
12655 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12658 <ul class="gallery">
12659 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12660 <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>
12661 <div class="gallerytext">
12671 Gallery override link with absolute external link (bug 34852)
12674 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12677 <ul class="gallery">
12678 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12679 <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>
12680 <div class="gallerytext">
12690 Gallery override link with malicious javascript (bug 34852)
12693 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12696 <ul class="gallery">
12697 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12698 <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>
12699 <div class="gallerytext">
12709 Gallery with invalid title as link (bug 43964)
12712 File:foobar.jpg|link=<
12715 <ul class="gallery">
12716 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12717 <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>
12718 <div class="gallerytext">
12726 Language parser function
12735 Padleft and padright as substr
12737 {{padleft:|3|abcde}}
12738 {{padright:|3|abcde}}
12746 Bug 34939 - Case insensitive link parsing ([HttP://])
12748 [HttP://MediaWiki.Org/]
12750 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12755 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12757 [HttP://MediaWiki.Org/ MediaWiki]
12759 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12764 Bug 34939 - Case insensitive link parsing (HttP://)
12766 HttP://MediaWiki.Org/
12768 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12773 ### Parsoids-specific tests
12774 ### Parsoid-PHP parser incompatibilities
12777 1. SOL-sensitive wikitext tokens as template-args
12791 #### The following section of tests are primarily to test
12792 #### wikitext escaping capabilities of Parsoid.
12793 #### A lot of the tests are disabled for the PHP parser either
12794 #### because of minor newline diffs or other reasons.
12795 #### As Parsoid serializer can handle newlines and other HTML
12796 #### more robustly, some of these tests might get reenabled
12797 #### for the PHP parser.
12799 #### --------------- Headings ---------------
12801 #### 1. Nested inside html <h1>=foo=</h1>
12802 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12803 #### 3. Nested inside html with wikitext split by html tags
12804 #### 4. No escape needed
12805 #### 5. Empty headings <h1></h1>
12806 #### 6. Heading chars in SOL context
12807 #### ----------------------------------------
12809 Headings: 0. Unnested
12811 <nowiki>=foo=</nowiki>
12813 <nowiki>=foo</nowiki>''a''=
12816 </p><p>=foo<i>a</i>=
12821 Headings: 1. Nested inside html
12825 =<nowiki>=foo=</nowiki>=
12826 ==<nowiki>=foo=</nowiki>==
12827 ===<nowiki>=foo=</nowiki>===
12828 ====<nowiki>=foo=</nowiki>====
12829 =====<nowiki>=foo=</nowiki>=====
12830 ======<nowiki>=foo=</nowiki>======
12841 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12846 <nowiki>*bar</nowiki>
12850 <nowiki>=bar=</nowiki>
12858 Headings: 3. Nested inside html with wikitext split by html tags
12862 =<nowiki>=</nowiki>'''bold'''foo==
12864 <h1>=<b>bold</b>foo=</h1>
12868 Headings: 4. No escaping needed (testing just h1 and h2)
12883 <h1><i>=</i>foo=</h1>
12888 Headings: 5. Empty headings
12892 =<nowiki></nowiki>=
12893 ==<nowiki></nowiki>==
12894 ===<nowiki></nowiki>===
12895 ====<nowiki></nowiki>====
12896 =====<nowiki></nowiki>=====
12897 ======<nowiki></nowiki>======
12908 Headings: 6. Heading chars in SOL context
12912 <!--cmt--><nowiki>=h1=</nowiki>
12918 #### --------------- Lists ---------------
12919 #### 0. Outside nests (*foo, etc.)
12920 #### 1. Nested inside html <ul><li>*foo</li></ul>
12921 #### 2. Inside definition lists
12922 #### 3. Only bullets at start should be escaped
12923 #### 4. No escapes needed
12924 #### 5. No unnecessary escapes
12925 #### 6. Escape bullets in SOL position
12926 #### 7. Escape bullets in a multi-line context
12927 #### ----------------------------------------
12930 Lists: 0. Outside nests
12932 <nowiki>*foo</nowiki>
12934 <nowiki>#foo</nowiki>
12942 Lists: 1. Nested inside html
12944 *<nowiki>*foo</nowiki>
12946 *<nowiki>#foo</nowiki>
12948 *<nowiki>:foo</nowiki>
12950 *<nowiki>;foo</nowiki>
12952 #<nowiki>*foo</nowiki>
12954 #<nowiki>#foo</nowiki>
12956 #<nowiki>:foo</nowiki>
12958 #<nowiki>;foo</nowiki>
12980 Lists: 2. Inside definition lists
12982 ;<nowiki>;foo</nowiki>
12984 ;<nowiki>:foo</nowiki>
12986 ;<nowiki>:foo</nowiki>
12989 :<nowiki>:foo</nowiki>
13004 Lists: 3. Only bullets at start of text should be escaped
13006 *<nowiki>*foo*bar</nowiki>
13008 *<nowiki>*foo</nowiki>''it''*bar
13012 <ul><li>*foo<i>it</i>*bar
13018 Lists: 4. No escapes needed
13030 <ul><li><i>foo</i>*bar
13032 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13037 Lists: 5. No unnecessary escapes
13039 * bar <span><nowiki>[[foo]]</nowiki></span>
13041 *=bar <span><nowiki>[[foo]]</nowiki></span>
13043 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13045 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13047 *=bar <span>foo]]</span>=
13049 <ul><li> bar <span>[[foo]]</span>
13051 <ul><li>=bar <span>[[foo]]</span>
13053 <ul><li>[[bar <span>[[foo]]</span>
13055 <ul><li>]]bar <span>[[foo]]</span>
13057 <ul><li>=bar <span>foo]]</span>=
13063 Lists: 6. Escape bullets in SOL position
13067 <!--cmt--><nowiki>*foo</nowiki>
13074 Lists: 7. Escape bullets in a multi-line context
13084 #### --------------- HRs ---------------
13085 #### 1. Single line
13086 #### -----------------------------------
13089 HRs: 1. Single line
13094 <nowiki>----</nowiki>
13096 <nowiki>=foo=</nowiki>
13098 <nowiki>*foo</nowiki>
13105 #### --------------- Tables ---------------
13106 #### 1a. Simple example
13107 #### 1b. No escaping needed (!foo)
13108 #### 1c. No escaping needed (|foo)
13109 #### 1d. No escaping needed (|}foo)
13111 #### 2a. Nested in td (<td>foo|bar</td>)
13112 #### 2b. Nested in td (<td>foo||bar</td>)
13113 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13115 #### 3a. Nested in th (<th>foo!bar</th>)
13116 #### 3b. Nested in th (<th>foo!!bar</th>)
13117 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13121 #### 4c. No escaping needed
13122 #### --------------------------------------
13125 Tables: 1a. Simple example
13136 Tables: 1b. No escaping needed
13145 Tables: 1c. No escaping needed
13154 Tables: 1d. No escaping needed
13163 Tables: 2a. Nested in td
13168 |<nowiki>foo|bar</nowiki>
13178 Tables: 2b. Nested in td
13183 |<nowiki>foo||bar</nowiki>
13184 |''it''<nowiki>foo||bar</nowiki>
13189 </td><td><i>it</i>foo||bar
13195 Tables: 2c. Nested in td -- no escaping needed
13210 Tables: 3a. Nested in th
13225 Tables: 3b. Nested in th
13230 !<nowiki>foo!!bar</nowiki>
13240 Tables: 3c. Nested in th -- no escaping needed
13255 Tables: 4a. Escape -
13263 |<nowiki>-bar</nowiki>
13267 <tr><th>-bar</th></tr>
13268 <tr><td>-bar</td></tr>
13273 Tables: 4b. Escape +
13281 |<nowiki>+bar</nowiki>
13285 <tr><th>+bar</th></tr>
13286 <tr><td>+bar</td></tr>
13291 Tables: 4c. No escaping needed
13305 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13306 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13311 Tables: 4d. No escaping needed
13327 #### --------------- Links ---------------
13328 #### 1. Quote marks in link text
13329 #### 2. Wikilinks: Escapes needed
13330 #### 3. Wikilinks: No escapes needed
13331 #### 4. Extlinks: Escapes needed
13332 #### 5. Extlinks: No escapes needed
13333 #### --------------------------------------
13335 Links 1. Quote marks in link text
13339 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13341 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13345 Links 2. WikiLinks: Escapes needed
13349 [[Foo|<nowiki>[Foobar]</nowiki>]]
13350 [[Foo|<nowiki>Foobar]</nowiki>]]
13351 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13352 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13353 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13354 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13355 [[Foo|<nowiki>|Bar</nowiki>]]
13357 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13358 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13359 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13360 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13361 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13362 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13363 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13367 Links 3. WikiLinks: No escapes needed
13374 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13375 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13379 Links 4. ExtLinks: Escapes needed
13383 [http://google.com <nowiki>[google]</nowiki>]
13384 [http://google.com <nowiki>google]</nowiki>]
13386 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13387 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13391 Links 5. ExtLinks: No escapes needed
13395 [http://google.com [google]
13397 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13400 #### --------------- Quotes ---------------
13401 #### 1. Quotes inside <b> and <i>
13402 #### 2. Link fragments separated by <i> and <b> tags
13403 #### 3. Link fragments inside <i> and <b>
13404 #### --------------------------------------
13406 1. Quotes inside <b> and <i>
13408 ''<nowiki>'foo'</nowiki>''
13409 ''<nowiki>''foo''</nowiki>''
13410 ''<nowiki>'''foo'''</nowiki>''
13411 '''<nowiki>'foo'</nowiki>'''
13412 '''<nowiki>''foo''</nowiki>'''
13413 '''<nowiki>'''foo'''</nowiki>'''
13414 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13422 <b>foo'<i>bar'</i>baz</b>
13427 2. Link fragments separated by <i> and <b> tags
13429 [[''foo''<nowiki>hello]]</nowiki>
13431 [['''foo'''<nowiki>hello]]</nowiki>
13433 <p>[[<i>foo</i>hello]]
13434 </p><p>[[<b>foo</b>hello]]
13439 2. Link fragments inside <i> and <b>
13440 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13441 this is one of the shortcomings of this format)
13443 ''[[foo''<nowiki>]]</nowiki>
13445 '''[[foo'''<nowiki>]]</nowiki>
13448 </p><p><b>[[foo</b>]]
13452 #### --------------- Paragraphs ---------------
13453 #### 1. No unnecessary escapes
13454 #### --------------------------------------
13457 1. No unnecessary escapes
13459 bar <span><nowiki>[[foo]]</nowiki></span>
13461 =bar <span><nowiki>[[foo]]</nowiki></span>
13463 [[bar <span><nowiki>[[foo]]</nowiki></span>
13465 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13467 <nowiki>=bar </nowiki><span>foo]]</span>=
13469 <p>bar <span>[[foo]]</span>
13470 </p><p>=bar <span>[[foo]]</span>
13471 </p><p>[[bar <span>[[foo]]</span>
13472 </p><p>]]bar <span>[[foo]]</span>
13473 </p><p>=bar <span>foo]]</span>=
13477 #### --------------- PRE ------------------
13478 #### 1. Leading space in SOL context should be escaped
13479 #### --------------------------------------
13481 1. Leading space in SOL context should be escaped
13485 <nowiki> foo</nowiki>
13486 <!--cmt--><nowiki> foo</nowiki>
13493 #### --------------- HTML tags ---------------
13496 #### 3. multi-line html tag
13497 #### --------------------------------------
13503 <a href="http://google.com">google</a>
13505 <a href="http://google.com">google</a>
13511 <nowiki><div>foo</div>
13512 <div style="color:red">foo</div></nowiki>
13514 <p><div>foo</div>
13515 <div style="color:red">foo</div>
13520 3. multi-line html tag
13532 #### --------------- Others ---------------
13536 <nowiki>foo</nowiki>
13538 <p><nowiki>foo</nowiki>
13543 Tag-like HTML structures are passed through as text
13565 </p><p>1<d e>f
13570 # This fails in the PHP parser (see bug 40670,
13571 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13573 Tag names followed by punctuation should not be recognized as tags
13579 <p><s.ome> text
13584 HTML tag with necessary entities in attributes
13586 <span title="&amp;">foo</span>
13588 <p><span title="&amp;">foo</span>
13593 HTML tag with 'unnecessary' entity encoding in attributes
13595 <span title="&">foo</span>
13597 <p><span title="&">foo</span>
13602 HTML tag with broken attribute value quoting
13604 <span title="Hello world>Foo</span>
13606 <p><span>Foo</span>
13611 Parsoid-only: HTML tag with broken attribute value quoting
13615 <span title="Hello world>Foo</span>
13617 <p><span title="Hello world">Foo</span>
13622 Table with broken attribute value quoting
13625 | title="Hello world|Foo
13636 Table with broken attribute value quoting on consecutive lines
13639 | title="Hello world|Foo
13640 | style="color:red|Bar
13653 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13658 | title="Hello world|Foo
13659 | style="color:red|Bar
13664 <td title="Hello world">Foo
13665 </td><td style="color: red;">Bar
13671 Accept empty td cell attribute
13674 | align="center" | foo || |
13679 <td align="center"> foo </td>
13686 Non-empty attributes in th-cells
13689 ! Foo !! style="color: red" | Bar
13695 <th style="color: red"> Bar
13701 Accept empty attributes in th-cells
13720 Try for 100% code coverage