1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
181 * plain''italic''plain
182 * plain''italic''plain''italic''plain
183 * plain'''bold'''plain
184 * plain'''bold'''plain'''bold'''plain
185 * plain''italic''plain'''bold'''plain
186 * plain'''bold'''plain''italic''plain
187 * plain''italic'''bold-italic'''italic''plain
188 * plain'''bold''bold-italic''bold'''plain
189 * plain'''''bold-italic'''italic''plain
190 * plain'''''bold-italic''bold'''plain
191 * plain''italic'''bold-italic'''''plain
192 * plain'''bold''bold-italic'''''plain
193 * plain l'''italic''plain
194 * plain l''''bold''' plain
197 </li><li> plain<i>italic</i>plain
198 </li><li> plain<i>italic</i>plain<i>italic</i>plain
199 </li><li> plain<b>bold</b>plain
200 </li><li> plain<b>bold</b>plain<b>bold</b>plain
201 </li><li> plain<i>italic</i>plain<b>bold</b>plain
202 </li><li> plain<b>bold</b>plain<i>italic</i>plain
203 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
204 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
205 </li><li> plain<i><b>bold-italic</b>italic</i>plain
206 </li><li> plain<b><i>bold-italic</i>bold</b>plain
207 </li><li> plain<i>italic<b>bold-italic</b></i>plain
208 </li><li> plain<b>bold<i>bold-italic</i></b>plain
209 </li><li> plain l'<i>italic</i>plain
210 </li><li> plain l'<b>bold</b> plain
216 ### 2-quote opening sequence tests
219 Italics and bold: 2-quote opening sequence: (2,2)
229 Italics and bold: 2-quote opening sequence: (2,3)
239 Italics and bold: 2-quote opening sequence: (2,4)
249 Italics and bold: 2-quote opening sequence: (2,5)
259 ### 3-quote opening sequence tests
263 Italics and bold: 3-quote opening sequence: (3,2)
273 Italics and bold: 3-quote opening sequence: (3,3)
283 Italics and bold: 3-quote opening sequence: (3,4)
293 Italics and bold: 3-quote opening sequence: (3,5)
303 ### 4-quote opening sequence tests
307 Italics and bold: 4-quote opening sequence: (4,2)
317 Italics and bold: 4-quote opening sequence: (4,3)
327 Italics and bold: 4-quote opening sequence: (4,4)
337 Italics and bold: 4-quote opening sequence: (4,5)
347 ### 5-quote opening sequence tests
351 Italics and bold: 5-quote opening sequence: (5,2)
361 Italics and bold: 5-quote opening sequence: (5,3)
371 Italics and bold: 5-quote opening sequence: (5,4)
375 <p><i><b>foo'</b></i>
381 Italics and bold: 5-quote opening sequence: (5,5)
390 ### multiple quote sequences in a line
393 Italics and bold: multiple quote sequences: (2,4,2)
397 <p><i>foo'<b>bar</b></i>
403 Italics and bold: multiple quote sequences: (2,4,3)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,4)
417 <p><i>foo'<b>bar'</b></i>
423 Italics and bold: multiple quote sequences: (3,4,2)
433 Italics and bold: multiple quote sequences: (3,4,3)
442 ### other quote tests
445 Italics and bold: other quote tests: (2,3,5)
447 ''this is about '''foo's family'''''
449 <p><i>this is about <b>foo's family</b></i>
455 Italics and bold: other quote tests: (2,(3,3),2)
457 ''this is about '''foo's''' family''
459 <p><i>this is about <b>foo's</b> family</i>
465 Italics and bold: other quote tests: (3,2,3,2)
467 '''this is about ''foo'''s family''
469 <p><b>this is about <i>foo</i></b><i>s family</i>
475 Italics and bold: other quote tests: (3,2,3,3)
477 '''this is about ''foo'''s family'''
479 <p>'<i>this is about </i>foo<b>s family</b>
486 Italics and bold: other quote tests: (3,(2,2),3)
488 '''this is about ''foo's'' family'''
490 <p><b>this is about <i>foo's</i> family</b>
495 ### <nowiki> test cases
499 <nowiki> unordered list
501 <nowiki>* This is not an unordered list item.</nowiki>
503 <p>* This is not an unordered list item.
510 <nowiki>Lorem ipsum dolor
531 :There is not nowiki.
532 :There is <nowiki>nowiki</nowiki>.
534 #There is not nowiki.
535 #There is <nowiki>nowiki</nowiki>.
537 *There is not nowiki.
538 *There is <nowiki>nowiki</nowiki>.
540 <dl><dd>There is not nowiki.
541 </dd><dd>There is nowiki.
543 <ol><li>There is not nowiki.
544 </li><li>There is nowiki.
546 <ul><li>There is not nowiki.
547 </li><li>There is nowiki.
553 Entities inside <nowiki>
555 <nowiki><</nowiki>
566 Comments and Indent-Pre
568 <!-- comment 1 --> asdf
570 <!-- comment 1 --> asdf
573 <!-- comment 1 --> asdf
574 <!-- comment 2 -->xyz
576 <!-- comment 1 --> asdf
577 <!-- comment 2 --> xyz
633 asdf<!-- comment 1 -->jkl
643 <!-- foo --> b <!-- bar -->
657 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
663 Comment semantics and delimiters
665 <!-- --><!----><!-----><!------>
671 Comment semantics and delimiters, redux
673 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
674 -- foo -- funky huh? ... -->
680 Comment semantics and delimiters: directors cut
682 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
683 everything starting with < followed by !-- until the first -- and > we see,
684 that wouldn't be valid XML however, since in XML -- has to terminate a comment
692 Comment semantics: nesting
694 <!--<!-- no, we're not going to do anything fancy here -->-->
701 Comment semantics: unclosed comment at end
703 <!--This comment will run out to the end of the document
709 Comment in template title
718 Comment on its own line post-expand
730 Comment on its own line post-expand with non-significant whitespace
742 ### paragraph wraping tests
756 Block tag on one line
768 Block tag on both lines
780 Multiple lines without block tags
798 Empty lines between block tags to test open p-tags are closed between the block tags
816 ### Preformatted text
825 And a [[Main Page|link]]
831 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
836 Ident preformatting with inline content
847 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
864 Regression with preformatted in <center>
877 # Expected output in the following test is not really expected (there should be
878 # <pre> in the output) -- it's only testing for well-formedness.
880 Bug 6200: Preformatted in <blockquote>
893 <pre> with attributes (bug 3202)
895 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
897 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
902 <pre> with width attribute (bug 3202)
904 <pre width="8">Narrow screen goodies</pre>
906 <pre width="8">Narrow screen goodies</pre>
911 <pre> with forbidden attribute (bug 3202)
913 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
915 <pre width="8">Narrow screen goodies</pre>
920 Entities inside <pre>
929 <pre> with forbidden attribute values (bug 3202)
931 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
933 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
938 <nowiki> inside <pre> (bug 13238)
946 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
954 <pre><nowiki>Foo</nowiki></pre>
959 <nowiki> and <pre> preference (first one wins)
992 <nowiki></pre></nowiki>
999 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1007 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1017 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1029 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1050 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1054 {{echo| foo}}{{echo| bar}}
1059 {{echo|<!--cmt--> foo}}
1061 <!--cmt-->{{echo| foo}}
1063 {{echo|{{echo| }}bar}}
1081 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1118 Templates: Single-line variant of parameter whitespace stripping test
1124 {{echo|{{echo| a}}}}
1126 {{echo|1={{echo| a}}}}
1139 Templates: Strip whitespace from named parameters, but not positional ones
1167 ### Parsoid-centric tests for testing RT edge cases for pre
1171 1a. Indent-Pre and Comments
1184 1b. Indent-Pre and Comments
1197 1c. Indent-Pre and Comments
1210 2a. Indent-Pre and tables
1231 2b. Indent-Pre and tables
1247 2c. Indent-Pre and tables (bug 42252)
1264 3a. Indent-Pre and block tags (single-line html)
1272 <pre><span> foo </span>
1277 3b. Indent-Pre and block tags (pre-content on separate line)
1329 4. Multiple spaces at start-of-line
1348 5. White-space in indent-pre
1349 NOTE: the white-space char on 2nd line is significant
1362 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1366 HTML-pre: 1. embedded newlines
1402 HTML-pre: 2: indented text
1415 HTML-pre: 3: other wikitext
1436 ### Definition lists
1443 <dl><dt> name </dt><dd> Definition
1449 Definition list for indentation only
1453 <dl><dd> Indented text
1459 Definition list with no space
1463 <dl><dt>name</dt><dd>Definition
1469 Definition list with URL link
1471 ; http://example.com/ : definition
1473 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1479 Definition list with bracketed URL link
1481 ;[http://www.example.com/ Example]:Something about it
1483 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1489 Definition list with wikilink containing colon
1491 ; [[Help:FAQ]]: The least-read page on Wikipedia
1493 <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
1498 # At Brion's and JeLuF's insistence... :)
1500 Definition list with news link containing colon
1502 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1504 <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!
1510 Malformed definition list with colon
1512 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1514 <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
1520 Definition lists: colon in external link text
1522 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1524 <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
1530 Definition lists: colon in HTML attribute
1532 ;<b style="display: inline">bold</b>
1534 <dl><dt><b style="display: inline">bold</b>
1540 Definition lists: self-closed tag
1542 ;one<br/>two : two-line fun
1544 <dl><dt>one<br />two </dt><dd> two-line fun
1550 Bug 11748: Literal closing tags
1554 <dd>test test test test test</dd>
1556 <dd>test test test test test</dd>
1561 <dd>test test test test test</dd>
1563 <dd>test test test test test</dd>
1569 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1572 ; term : description
1578 <dl><dt> term </dt><dd> description
1589 Definition list with empty definition and following paragraph
1594 <dl><dt> term</dt><dd>
1601 Nested definition lists using html syntax
1618 Definition Lists: No nesting: Multiple dd's
1632 Definition Lists: Indentation: Regular
1648 Definition Lists: Indentation: Missing 1st level
1662 Definition Lists: Indentation: Multi-level indent
1666 <dl><dd><dl><dd><dl><dd>i3
1674 Definition Lists: Hacky use to indent tables
1681 should be left alone
1683 <dl><dd><dl><dd><table>
1688 </td></tr></table></dd></dl></dd></dl>
1690 should be left alone
1693 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1694 ## as an empty dt item. It also ignores all but the last ";" when followed
1695 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1696 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1699 ## Ex: ";;t2 ::d2" is transformed into:
1711 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1712 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1723 ## All Parsoid only definition list tests have this difference.
1725 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1726 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1729 Table / list interaction: indented table with lists in table contents
1751 </td></tr></table></dd></dl>
1756 Table / list interaction: lists nested in tables nested in indented lists
1781 </td></tr></table></dd></dl>
1789 Definition Lists: Nesting: Multi-level (Parsoid only)
1819 Definition Lists: Nesting: Test 2 (Parsoid only)
1839 Definition Lists: Nesting: Test 3 (Parsoid only)
1867 Definition Lists: Nesting: Test 4
1872 <dl><dd><dl><dd><dl><dt>t3
1882 Definition Lists: Mixed Lists: Test 1
1888 <dl><dd><dl><dt><ul><li> foo
1900 Definition Lists: Mixed Lists: Test 2
1914 Definition Lists: Mixed Lists: Test 3
1919 <ul><li><dl><dd><dl><dd><dl><dd> d1
1930 Definition Lists: Mixed Lists: Test 4
1935 <ul><li><dl><dt>d1 </dt><dd>d2
1936 </dd><dt>d3 </dt><dd>d4
1944 Definition Lists: Mixed Lists: Test 5
1959 Definition Lists: Mixed Lists: Test 6
1964 <ol><li><ul><li><dl><dd>d1
1976 Definition Lists: Mixed Lists: Test 7
1990 Definition Lists: Mixed Lists: Test 8
2006 Definition Lists: Mixed Lists: Test 9
2010 <ul><li><dl><dt>foo </dt><dd>bar
2018 Definition Lists: Mixed Lists: Test 10
2022 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2031 Definition Lists: Mixed Lists: Test 11
2036 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2041 <dl><dt>boo </dt><dd>baz
2052 Definition Lists: Weird Ones: Test 1
2054 *#;*::;; foo : bar (who uses this?)
2056 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2072 External links: non-bracketed
2074 Non-bracketed: http://example.com
2076 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2081 External links: numbered
2083 Numbered: [http://example.com]
2084 Numbered: [http://example.net]
2085 Numbered: [http://example.com]
2087 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2088 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2089 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2094 External links: specified text
2096 Specified text: [http://example.com link]
2098 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2103 External links: trail
2105 Linktrails should not work for external links: [http://example.com link]s
2107 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2112 External links: dollar sign in URL
2114 http://example.com/1$2345
2116 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2121 External links: dollar sign in URL (named)
2123 [http://example.com/1$2345]
2125 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2130 External links: open square bracket forbidden in URL (bug 4377)
2132 http://example.com/1[2345
2134 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2139 External links: open square bracket forbidden in URL (named) (bug 4377)
2141 [http://example.com/1[2345]
2143 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2148 External links: nowiki in URL link text (bug 6230)
2150 [http://example.com/ <nowiki>''example site''</nowiki>]
2152 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2157 External links: newline forbidden in text (bug 6230 regression check)
2159 [http://example.com/ first
2162 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2168 External links: Pipe char between url and text
2170 [http://example.com | link]
2172 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2177 External links: protocol-relative URL in brackets
2179 [//example.com/ Test]
2181 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2186 External links: protocol-relative URL in brackets without text
2190 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2195 External links: protocol-relative URL in free text is left alone
2199 <p>//example.com/Foo
2204 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2206 foo//example.com/Foo
2208 <p>foo//example.com/Foo
2215 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2217 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2222 External image from https
2224 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2226 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2231 Link to non-http image, no img tag
2233 Link to non-http image, no img tag: ftp://example.com/test.jpg
2235 <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>
2240 External links: terminating separator
2242 Terminating separator: http://example.com/thing,
2244 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2249 External links: intervening separator
2251 Intervening separator: http://example.com/1,2,3
2253 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2258 External links: old bug with URL in query
2260 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2262 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2267 External links: old URL-in-URL bug, mixed protocols
2269 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2271 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2276 External links: URL in text
2278 URL in text: [http://example.com http://example.com]
2280 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2285 External links: Clickable images
2287 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2289 <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>
2294 External links: raw ampersand
2296 Old & use: http://x&y
2298 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2303 External links: encoded ampersand
2305 Old & use: http://x&y
2307 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2312 External links: encoded equals (bug 6102)
2314 http://example.com/?foo=bar
2316 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2321 External links: [raw ampersand]
2323 Old & use: [http://x&y]
2325 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2330 External links: [encoded ampersand]
2332 Old & use: [http://x&y]
2334 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2339 External links: [encoded equals] (bug 6102)
2341 [http://example.com/?foo=bar]
2343 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2348 External links: [IDN ignored character reference in hostname; strip it right off]
2350 [http://e‌xample.com/]
2352 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2356 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2357 # Where an external link could easily circumvent the sanitization of the text of
2358 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2359 # test demands a higher standard. That's a bit strange.
2363 # http://example.com -> [http://example.com|http://example.com]
2364 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2366 # The first example is sanitized, but the second is not. Any security benefits
2367 # from this production are trivial to circumvent. Either remove this test and
2368 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2369 # the test accordingly.
2374 External links: IDN ignored character reference in hostname; strip it right off
2376 http://e‌xample.com/
2378 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2383 External links: www.jpeg.org (bug 554)
2387 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2392 External links: URL within URL (original bug 2)
2394 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2396 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2401 BUG 361: URL inside bracketed URL
2403 [http://www.example.com/foo http://www.example.com/bar]
2405 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2410 BUG 361: URL within URL, not bracketed
2412 http://www.example.com/foo?=http://www.example.com/bar
2414 <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>
2419 BUG 289: ">"-token in URL-tail
2421 http://www.example.com/<hello>
2423 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2428 BUG 289: literal ">"-token in URL-tail
2430 http://www.example.com/<b>html</b>
2432 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2437 BUG 289: ">"-token in bracketed URL
2439 [http://www.example.com/<hello> stuff]
2441 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2446 BUG 289: literal ">"-token in bracketed URL
2448 [http://www.example.com/<b>html</b> stuff]
2450 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2455 BUG 289: literal double quote at end of URL
2457 http://www.example.com/"hello"
2459 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2464 BUG 289: literal double quote in bracketed URL
2466 [http://www.example.com/"hello" stuff]
2468 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2473 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2475 [http://www.example.com test]
2477 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2482 External links: wiki links within external link (Bug 3695)
2484 [http://example.com [[wikilink]] embedded in ext link]
2486 <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>
2491 BUG 787: Links with one slash after the url protocol are invalid
2495 [http:/example.com title]
2497 <p>http:/example.com
2498 </p><p>[http:/example.com title]
2503 Bracketed external links with template-generated invalid target
2505 [{{echo|http:/example.com}} title]
2507 <p>[http:/example.com title]
2512 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2514 ''[http://example.com text'']
2515 [http://example.com '''text]'''
2516 ''Something [http://example.com in italic'']
2517 ''Something [http://example.com mixed''''', even bold]'''
2518 '''''Now [http://example.com both''''']
2520 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2521 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2522 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2523 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2524 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2530 Bug 4781: %26 in URL
2532 http://www.example.com/?title=AT%26T
2534 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2538 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2539 # % is actually legal in HTML5. Any change in output would need testing though.
2541 Bug 4781, 5267: %25 in URL
2543 http://www.example.com/?title=100%25_Bran
2545 <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>
2550 Bug 4781, 5267: %28, %29 in URL
2552 http://www.example.com/?title=Ben-Hur_%281959_film%29
2554 <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>
2560 Bug 4781: %26 in autonumber URL
2562 [http://www.example.com/?title=AT%26T]
2564 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2569 Bug 4781, 5267: %26 in autonumber URL
2571 [http://www.example.com/?title=100%25_Bran]
2573 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2578 Bug 4781, 5267: %28, %29 in autonumber URL
2580 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2582 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2588 Bug 4781: %26 in bracketed URL
2590 [http://www.example.com/?title=AT%26T link]
2592 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2597 Bug 4781, 5267: %26 in bracketed URL
2599 [http://www.example.com/?title=100%25_Bran link]
2601 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2606 Bug 4781, 5267: %28, %29 in bracketed URL
2608 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2610 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2615 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2617 Some [http://example.com/ pretty ''italics'' and stuff]!
2619 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2624 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2626 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2628 <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>
2633 External link containing double-single-quotes with no space separating the url from text in italics
2635 [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]].]
2637 <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>
2642 URL-encoding in URL functions (single parameter)
2644 {{localurl:Some page|amp=&}}
2646 <p>/index.php?title=Some_page&amp=&
2651 URL-encoding in URL functions (multiple parameters)
2653 {{localurl:Some page|q=?&=&}}
2655 <p>/index.php?title=Some_page&q=?&amp=&
2662 http://example.com/index.php?foozoid%5B%5D=bar
2664 http://example.com/index.php?foozoid[]=bar
2666 <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>
2667 </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>
2672 IPv6 urls (bug 21261)
2676 http://[2404:130:0:1000::187:2]/index.php
2678 <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>
2683 Non-extlinks in brackets
2692 [{{echo|foo}} ''bar'']
2693 [{{echo|foo}}l's] errand
2694 [{{echo|foo}}l's errand]
2716 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2718 Normal text. '''''Bold italic text.''''' Normal text.
2720 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2721 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2727 Unclosed and unmatched quotes
2729 '''''Bold italic text '''with bold deactivated''' in between.'''''
2731 '''''Bold italic text ''with italic deactivated'' in between.'''''
2735 ..spanning two paragraphs (should not work).'''
2737 '''Bold tag left open
2739 ''Italic tag left open
2743 <!-- Unmatching number of opening, closing tags: -->
2744 '''This year''''s election ''should'' beat '''last year''''s.
2746 ''Tom'''s car is bigger than ''Susan'''s.
2748 Plain ''italic'''s plain
2750 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2751 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2752 </p><p><b>Bold text..</b>
2753 </p><p>..spanning two paragraphs (should not work).
2754 </p><p><b>Bold tag left open</b>
2755 </p><p><i>Italic tag left open</i>
2757 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2758 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2759 </p><p>Plain <i>italic'</i>s plain
2766 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2769 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2770 # is the bare minimun required by the spec, see:
2771 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2773 A table with no data.
2779 # A table with nothing but a caption is invalid XHTML, we might want to render
2780 # this as <p>caption</p>
2782 A table with nothing but a caption
2790 </caption><tr><td></td></tr></table>
2795 A table with caption with default-spaced attributes and a table row
2798 |+ style="color: red;" | caption1
2804 <caption style="color: red;"> caption1
2813 A table with captions with non-default spaced attributes and a table row
2816 |+style="color: red;"|caption2
2817 |+ style="color: red;"| caption3
2823 <caption style="color: red;">caption2
2825 <caption style="color: red;"> caption3
2834 Table td-cell syntax variations
2838 | foo bar foo || baz
2839 | style='color:red;' | baz
2840 | style='color:red;' || baz
2847 <td> foo bar foo </td>
2850 <td style="color:red;"> baz
2852 <td> style='color:red;' </td>
2880 Simple table but with multiple dashes for row wikitext
2898 Multiplication table
2900 {| border="1" cellpadding="2"
2901 |+Multiplication table
2903 ! × !! 1 !! 2 !! 3
2921 <table border="1" cellpadding="2">
2922 <caption>Multiplication table
2969 Accept "||" in table headings
2984 Accept "||" in indented table headings
2994 </th></tr></table></dd></dl>
2999 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3016 Accept "| !" at start of line in tables (ignore !-attribute)
3020 | !style="color:red" | bar
3032 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 +/-
3036 |style='color:red;'|+1
3037 |style='color:blue;'|-1
3049 <td style="color:red;">+1
3051 <td style="color:blue;">-1
3075 |rowspan=2| Cell 2, row 1 (and 2)
3086 <td rowspan="2"> Cell 2, row 1 (and 2)
3104 {| bgcolor=#ABCDEF border=2
3109 |the original table again
3117 <table bgcolor="#ABCDEF" border="2">
3125 <td>the original table again
3131 Invalid attributes in table cell (bug 1830)
3146 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3149 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3153 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3154 <td>]" onmouseover="alert(document.cookie)">test
3163 Indented table markup mixed with indented pre content (proposed in bug 6200)
3168 Text that should be rendered preformatted
3176 <pre>Text that should be rendered preformatted
3185 Template-generated table cell attributes and cell content
3193 <td style="color: red"> Foo
3199 Table with row followed by newlines and table heading
3216 # FIXME: Preserve the attribute properly (with an empty string as value) in
3217 # the PHP parser. Parsoid implements the behavior below.
3219 Table attributes with empty value
3235 Wikitext table with a lot of comments
3261 Plain link, capitalized
3265 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3270 Plain link, uncapitalized
3274 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3281 [[Main Page|The Main Page]]
3283 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3292 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3297 Broken link with fragment
3299 [[Zigzagzogzagzig#zug]]
3301 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3306 Special page link with fragment
3308 [[Special:Version#anchor]]
3310 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3315 Nonexistent special page link with fragment
3317 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3319 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3326 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3328 <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>
3335 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3337 <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>!!!
3348 Bug 43661: Piped links with identical prefixes
3350 [[prefixed article|prefixed articles with spaces]]
3352 [[prefixed article|prefixed articlesaoeu]]
3354 [[Main Page|Main Page test]]
3356 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3357 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3358 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3364 Link with HTML entity in suffix / tail
3366 [[Main Page]]", [[Main Page]]a
3368 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3373 Link with 3 brackets
3382 Piped link with 3 brackets
3384 [[[main page|the main page]]]
3386 <p>[[[main page|the main page]]]
3391 Link with multiple pipes
3393 [[Main Page|The|Main|Page]]
3395 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3402 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3404 <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>
3409 Piped link to namespace
3411 [[Meta:Disclaimers|The disclaimers]]
3413 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3420 [[Usually caused by a typo (oops}]]
3422 <p>[[Usually caused by a typo (oops}]]
3427 Link containing % (not as a hex sequence)
3431 <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>
3436 Link containing % as a single hex sequence interpreted to char
3440 <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>
3445 Link containing % as a double hex sequence interpreted to hex sequence
3449 <p>[[7%2525 Solution]]
3454 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3455 Example for such a section: == < ==
3457 [[%23%3c]][[%23%3e]]
3459 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3464 Link containing "<#" and ">#" as a hex sequences
3466 [[%3c%23]][[%3e%23]]
3468 <p>[[%3c%23]][[%3e%23]]
3473 Link containing double-single-quotes '' (bug 4598)
3475 [[Lista d''e paise d''o munno]]
3477 <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>
3482 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3484 Some [[Link|pretty ''italics'' and stuff]]!
3486 <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>!
3491 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3493 ''Some [[Link|pretty ''italics'' and stuff]]!
3495 <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>
3500 Link with double quotes in title part (literal) and alternate part (interpreted)
3502 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3506 [[''Pentecoste''|Pentecoste]]
3508 [[''Pentecoste''|''Pentecoste'']]
3510 <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>
3511 </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>
3512 </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>
3513 </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>
3518 Broken image links with HTML captions (bug 39700)
3520 [[File:Nonexistent|<script></script>]]
3521 [[File:Nonexistent|100px|<script></script>]]
3522 [[File:Nonexistent|<]]
3523 [[File:Nonexistent|a<i>b</i>c]]
3525 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3526 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3527 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3528 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3535 [[http://www.example.com]]
3537 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3542 Plain link to URL with link text
3544 [[http://www.example.com Link text]]
3546 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3551 Plain link to protocol-relative URL
3553 [[//www.example.com]]
3555 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3560 Plain link to protocol-relative URL with link text
3562 [[//www.example.com Link text]]
3564 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3569 Plain link to page with question mark in title
3575 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3576 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3581 # I'm fairly sure the expected result here is wrong.
3582 # We want these to be URL links, not pseudo-pages with URLs for titles....
3583 # However the current output is also pretty screwy.
3586 # I'm changing it to match the current output--it arguably makes more
3587 # sense in the light of the test above. Old expected result was:
3588 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3590 # But I think this test is bordering on "garbage in, garbage out" anyway.
3595 Piped link to URL: [[http://www.example.com|an example URL]]
3597 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3602 BUG 2: [[page|http://url/]] should link to page, not http://url/
3604 [[Main Page|http://url/]]
3606 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3611 BUG 337: Escaped self-links should be bold
3615 [[Bug462]] [[Bug462]]
3617 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3622 Self-link to section should not be bold
3626 [[Main Page#section]]
3628 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3639 Self-link to numeric title
3645 <p><strong class="selflink">0</strong>
3650 Link to numeric-equivalent title
3656 <p><a href="/wiki/00" title="00">00</a>
3661 <nowiki> inside a link
3663 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3665 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3670 Non-breaking spaces in title
3672 [[ Main Page ]]
3674 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3679 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3685 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3690 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3696 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3701 Internal link with en linktrail: no apostrophes (bug 27473)
3707 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3712 Internal link with ca linktrail with apostrophes (bug 27473)
3718 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3723 Internal link with kaa linktrail with apostrophes (bug 27473)
3729 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3734 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3742 [http://wp.org ''foo'']
3744 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3745 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3746 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3747 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3752 ### Interwiki links (see maintenance/interwiki.sql)
3756 Inline interwiki link
3758 [[MeatBall:SoftSecurity]]
3760 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3765 Inline interwiki link with empty title (bug 2372)
3769 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3774 Interwiki link encoding conversion (bug 1636)
3776 *[[Wikipedia:ro:Olteniţa]]
3777 *[[Wikipedia:ro:Olteniţa]]
3779 <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>
3780 </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>
3786 Interwiki link with fragment (bug 2130)
3788 [[MeatBall:SoftSecurity#foo]]
3790 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3805 Double interlanguage link
3816 Interlanguage link, with prefix links
3828 Double interlanguage link, with prefix links (bug 8897)
3841 Parsoid-specific test: Wikilinks with should RT properly
3847 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3865 Broken br tag sanitization
3874 Incorrecly removing closing slashes from correctly formed XHTML
3876 <br style="clear:both;" />
3878 <p><br style="clear:both;" />
3883 Failing to transform badly formed HTML into correct XHTML
3885 <br style="clear: left;">
3886 <br style="clear: right;">
3887 <br style="clear: both;">
3889 <p><br style="clear: left;" />
3890 <br style="clear: right;" />
3891 <br style="clear: both;" />
3896 Handling html with a div self-closing tag
3905 <p><div title />
3909 <p><div title=bar />
3910 <div title=bar/>
3912 <div title="bar/"></div>
3918 Handling html with a br self-closing tag
3927 <p><br title="title" />
3928 <br title="title" />
3937 Horizontal ruler (should it add that extra space?)
3951 Horizontal ruler -- 4+ dashes render hr
3960 Horizontal ruler -- eats additional dashes on the same line
3969 Horizontal ruler -- does not collaps dashes on consecutive lines
3980 Horizontal ruler -- <4 dashes render as plain text
3989 Horizontal ruler -- Supports content following dashes on same line
3998 ### Block-level elements
4021 <ol><li>Numbered list
4038 ***#Number on level 4
4040 **#Number on level 3
4041 **#Number on level 3
4045 #** Level 3, but ordered
4048 <ol><li> with numbers
4050 <ul><li> and bullets
4052 <ol><li> and numbers
4054 </li><li>bullets again
4055 <ul><li>bullet level 2
4056 <ul><li>bullet level 3
4057 <ol><li>Number on level 4
4060 </li><li>bullet level 2
4061 <ol><li>Number on level 3
4062 </li><li>Number on level 3
4065 <ol><li>number level 2
4068 <ul><li><ul><li> Level 3
4072 <ol><li><ul><li><ul><li> Level 3, but ordered
4106 Nested lists 3 (first element empty)
4119 Nested lists 4 (first element empty)
4132 Nested lists 5 (both elements empty)
4145 Nested lists 6 (both elements empty)
4158 Nested lists 7 (skip initial nesting levels)
4162 <ul><li><ul><li><ul><li> foo
4170 Nested lists 8 (multiple nesting transitions)
4178 <ul><li><ul><li> bar
4188 1. Lists with start-of-line-transparent tokens before bullets: Comments
4202 2. Lists with start-of-line-transparent tokens before bullets: Template close
4214 Unbalanced closing block tags break a list
4215 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4225 </li></ul></div><div>
4231 Unbalanced closing non-block tags don't break a list
4232 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4242 <ul><li>a<span></span>
4248 Unclosed formatting tags that straddle lists are closed and reopened
4249 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4257 </li><li> <s> b </s>
4262 List items are not parsed correctly following a <pre> block (bug 785)
4268 <ul><li> <pre>foo</pre>
4269 </li><li> <pre>bar</pre>
4276 List items from template
4287 * notSOL{{inner list}}
4306 List interrupted by empty line or heading
4316 <ul><li><ul><li> bar
4319 <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>
4320 <ul><li> Another list item
4326 Multiple list tags generated by templates
4345 Magic Word: {{CURRENTDAY}}
4354 Magic Word: {{CURRENTDAY2}}
4363 Magic Word: {{CURRENTDAYNAME}}
4372 Magic Word: {{CURRENTDOW}}
4381 Magic Word: {{CURRENTMONTH}}
4390 Magic Word: {{CURRENTMONTHABBREV}}
4392 {{CURRENTMONTHABBREV}}
4399 Magic Word: {{CURRENTMONTHNAME}}
4401 {{CURRENTMONTHNAME}}
4408 Magic Word: {{CURRENTMONTHNAMEGEN}}
4410 {{CURRENTMONTHNAMEGEN}}
4417 Magic Word: {{CURRENTTIME}}
4426 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4435 Magic Word: {{CURRENTYEAR}}
4444 Magic Word: {{FULLPAGENAME}}
4446 title=[[User:Ævar Arnfjörð Bjarmason]]
4450 <p>User:Ævar Arnfjörð Bjarmason
4455 Magic Word: {{FULLPAGENAMEE}}
4457 title=[[User:Ævar Arnfjörð Bjarmason]]
4461 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4466 Magic Word: {{NAMESPACE}}
4468 title=[[User:Ævar Arnfjörð Bjarmason]]
4477 Magic Word: {{NAMESPACEE}}
4479 title=[[User:Ævar Arnfjörð Bjarmason]]
4488 Magic Word: {{NAMESPACENUMBER}}
4490 title=[[User:Ævar Arnfjörð Bjarmason]]
4499 Magic Word: {{NUMBEROFFILES}}
4508 Magic Word: {{PAGENAME}}
4510 title=[[User:Ævar Arnfjörð Bjarmason]]
4514 <p>Ævar Arnfjörð Bjarmason
4519 Magic Word: {{PAGENAME}} with metacharacters
4521 title=[['foo & bar = baz']]
4525 <p><i>'foo & bar = baz'</i>
4530 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4532 title=[[*RFC 1234 http://example.com/]]
4536 <p>*RFC 1234 http://example.com/
4541 Magic Word: {{PAGENAMEE}}
4543 title=[[User:Ævar Arnfjörð Bjarmason]]
4547 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4552 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4554 title=[[*RFC 1234 http://example.com/]]
4558 <p>*RFC_1234_http://example.com/
4563 Magic Word: {{REVISIONID}}
4572 Magic Word: {{SCRIPTPATH}}
4581 Magic Word: {{SERVER}}
4585 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4590 Magic Word: {{SERVERNAME}}
4599 Magic Word: {{SITENAME}}
4608 Namespace 1 {{ns:1}}
4617 Namespace 1 {{ns:01}}
4626 Namespace 0 {{ns:0}} (bug 4783)
4634 Namespace 0 {{ns:00}} (bug 4783)
4642 Namespace -1 {{ns:-1}}
4651 Namespace User {{ns:User}}
4660 Namespace User talk {{ns:User_talk}}
4669 Namespace User talk {{ns:uSeR tAlK}}
4678 Namespace File {{ns:File}}
4687 Namespace File {{ns:Image}}
4696 Namespace (lang=de) Benutzer {{ns:User}}
4707 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4713 <p>Benutzer Diskussion
4721 {{urlencode:hi world?!}}
4722 {{urlencode:hi world?!|WIKI}}
4723 {{urlencode:hi world?!|PATH}}
4724 {{urlencode:hi world?!|QUERY}}
4737 Magic links: internal link to RFC (bug 479)
4741 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4746 Magic links: RFC (bug 479)
4750 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4755 Magic links: ISBN (bug 1937)
4759 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4764 Magic links: PMID incorrectly converts space to underscore
4768 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4777 Nonexistent template
4779 {{thistemplatedoesnotexist}}
4781 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4786 Template with invalid target containing tags
4788 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4790 <p>{{a<b>b</b>|foo|a=b|a = b}}
4795 Template with invalid target containing unclosed tag
4797 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4799 <p>{{a<b>|foo|a=b|a = b}}</b>
4806 This is a test template
4814 <p>This is a test template
4819 Template with explicit namespace
4823 <p>This is a test template
4831 This is a test template with parameter {{{param}}}
4837 {{paramtest|param=foo}}
4839 <p>This is a test template with parameter foo
4844 Template:paramtestnum
4850 Template unnamed parameter
4852 {{paramtestnum|Main Page|the main page}}
4854 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4859 Template:templatesimple
4865 Template:templateredirect
4867 #redirect [[Template:templatesimple]]
4871 Template:templateasargtestnum
4877 Template:templateasargtest
4879 {{template{{{templ}}}}}
4883 Template:templateasargtest2
4889 Template with template name as unnamed argument
4891 {{templateasargtestnum|templatesimple}}
4898 Template with template name as argument
4900 {{templateasargtest|templ=simple}}
4907 Template with template name as argument (2)
4909 {{templateasargtest2|templ=templatesimple}}
4916 Template:templateasargtestdefault
4918 {{{{{templ|templatesimple}}}}}
4928 Template with default value
4930 {{templateasargtestdefault}}
4937 Template with default value (value set)
4939 {{templateasargtestdefault|templ=templa}}
4948 {{templateredirect}}
4955 Template with argument in separate line
4957 {{ templateasargtest |
4965 Template with complex template as argument
4968 param ={{ templateasargtest |
4971 <p>This is a test template with parameter (test)
4976 Template with thumb image (with link in description)
4979 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4981 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>
4986 Template:complextemplate
4988 {{{1}}} {{paramtest|
4989 param ={{{param}}}}}
4993 Template with complex arguments
4996 param ={{ templateasargtest |
4997 templ = simple }}|[[Template:complextemplate|link]]}}
4999 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5004 BUG 553: link with two variables in a piped link
5007 |[[{{{1}}}|{{{2}}}]]
5012 <td>[[{{{1}}}|{{{2}}}]]
5018 Magic variable as template parameter
5020 {{paramtest|param={{SITENAME}}}}
5022 <p>This is a test template with parameter MediaWiki
5029 [[{{{param}}}|link]]
5033 Template parameter as link source
5035 {{linktest|param=Main Page}}
5037 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5042 Template-generated attribute string (k='v')
5044 <span {{attr_str|id|v1}}>bar</span>
5046 <p><span id="v1">bar</span>
5053 including another template, {{paramtest|param={{{arg}}}}}
5057 Template passing argument to another template
5059 {{paramtest2|arg='hmm'}}
5061 <p>including another template, This is a test template with parameter 'hmm'
5072 Template as link source
5076 [[{{linktest2}}|Main Page]]
5078 [[{{linktest2}}]]Page
5080 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5081 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5082 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5100 Template infinite loop
5104 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5109 Template from main namespace
5128 BUG 529: Template with table, not included at beginning of line
5147 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5167 BUG 41: Template parameters shown as broken links
5176 Template with targets containing wikilinks
5180 {{[[{{echo|foo}}]]}}
5182 {{{{echo|[[foo}}]]}}
5184 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5185 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5193 ''None'' of '''this''' should be
5195 but rather passed unmodified
5199 # hmm, fix this or just deprecate msgnw and document its behavior?
5205 {{msgnw:MSGNW test}}
5207 <p>''None'' of '''this''' should be
5209 but rather passed unmodified
5217 {{int:youhavenewmessages|lots of money|not!}}
5219 <p>You have lots of money (not!).
5226 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5230 <includeonly> and <noinclude> being included
5241 <onlyinclude>Foo</onlyinclude>bar
5245 <onlyinclude> being included
5257 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5261 <onlyinclude> and <includeonly> being included
5270 <includeonly> and <noinclude> on a page
5272 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5279 Un-closed <noinclude>
5286 <onlyinclude> on a page
5288 <onlyinclude>Foo</onlyinclude>bar
5295 Un-closed <onlyinclude>
5302 Self-closed noinclude, includeonly, onlyinclude tags
5313 Unbalanced includeonly and noinclude tags
5317 |b</noinclude></noinclude>
5318 |c</noinclude></includeonly>
5319 |d</includeonly></includeonly>
5328 <td>c</includeonly>
5330 <td>d</includeonly></includeonly>
5336 Template:Includeonly section
5339 ==Includeonly section==
5345 Bug 6563: Edit link generation for section shown by <includeonly>
5347 {{includeonly section}}
5349 <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>
5350 <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>
5354 # Uses same input as the contents of [[Template:Includeonly section]]
5356 Bug 6563: Section extraction for section shown by <includeonly>
5361 ==Includeonly section==
5369 Bug 6563: Edit link generation for section suppressed by <includeonly>
5372 ==Includeonly section==
5376 <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>
5381 Bug 6563: Section extraction for section suppressed by <includeonly>
5386 ==Includeonly section==
5394 Un-closed <includeonly>
5401 ### <includeonly> and <noinclude> in attributes
5404 0. includeonly around the entire attribute
5406 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5408 <p><span id="v2">bar</span>
5413 1. includeonly in html attr key
5415 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5417 <p><span id="foo">bar</span>
5422 2. includeonly in html attr value
5424 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5425 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5427 <p><span id="v1">bar</span>
5428 <span id="v1">bar</span>
5433 3. includeonly in part of an attr value
5435 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5437 <p><span style="color:red;">bar</span>
5442 ### Testing parsing of templates where a template arg
5443 ### has the same name as the template itself.
5453 Templates: Template Name/Arg clash: 1. Use of positional param
5462 Templates: Template Name/Arg clash: 2. Use of named param
5471 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5480 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5484 Templates: 1. Simple use
5493 Templates: 2. Inside a block tag
5495 <div>{{echo|Foo}}</div>
5502 Templates: P-wrapping: 1a. Templates on consecutive lines
5513 Templates: P-wrapping: 1b. Templates on consecutive lines
5527 Templates: P-wrapping: 1c. Templates on consecutive lines
5530 {{echo|bar}} <div>baz</div>
5539 Templates: Inline Text: 1. Multiple tmeplate uses
5541 {{echo|Foo}}bar{{echo|baz}}
5548 Templates: Inline Text: 2. Back-to-back template uses
5550 {{echo|Foo}}{{echo|bar}}
5557 Templates: Block Tags: 1. Multiple template uses
5559 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5561 <div>Foo</div><div>bar</div><div>baz</div>
5566 Templates: Block Tags: 2. Back-to-back template uses
5568 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5570 <div>Foo</div><div>bar</div>
5575 Templates: Links: 1. Simple example
5577 {{echo|[[Foo|bar]]}}
5579 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5584 Templates: Links: 2. Generation of link href
5586 [[{{echo|Foo}}|bar]]
5588 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5593 Templates: Links: 3. Generation of part of a link href
5595 [[Fo{{echo|o}}|bar]]
5599 [[Foo{{echo|bar}}baz]]
5601 [[Foo{{echo|bar}}|bar]]
5603 [[:Foo{{echo|bar}}]]
5605 [[:Foo{{echo|bar}}|bar]]
5607 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5608 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5609 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5610 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5611 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5612 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5617 Templates: Links: 4. Multiple templates generating link href
5619 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5621 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5626 Templates: Links: 5. Generation of link text
5628 [[Foo|{{echo|bar}}]]
5630 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5635 Templates: Links: 5. Nested templates (only outermost template should be marked)
5637 {{echo|[[{{echo|Foo}}|bar]]}}
5639 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5644 Templates: HTML Tag: 1. Generation of HTML attr. key
5646 <div {{echo|style}}="color:red;">foo</div>
5648 <div style="color:red;">foo</div>
5653 Templates: HTML Tag: 2. Generation of HTML attr. value
5655 <div style={{echo|'color:red;'}}>foo</div>
5657 <div style="color:red;">foo</div>
5662 Templates: HTML Tag: 3. Generation of HTML attr key and value
5664 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5666 <div style="color:red;">foo</div>
5671 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5673 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5675 <div title="This is a long title with just one piece templated">foo</div>
5680 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5682 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5684 <div title="This is a long title with just one piece templated">foo</div>
5689 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5691 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5693 <div title="This is a long title with just one piece templated">foo</div>
5698 Templates: HTML Tables: 1. Generating start of a HTML table
5700 {{echo|<table><tr><td>foo</td>}}</tr></table>
5702 <table><tr><td>foo</td></tr></table>
5707 Templates: HTML Tables: 2a. Generating middle of a HTML table
5709 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5711 <table><tr><td>foo</td></tr></table>
5716 Templates: HTML Tables: 2b. Generating middle of a HTML table
5718 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5720 <table><tr><td>foo</td></tr></table>
5725 Templates: HTML Tables: 3. Generating end of a HTML table
5727 <table><tr>{{echo|<td>foo</td></tr></table>}}
5729 <table><tr><td>foo</td></tr></table>
5734 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5736 {{echo|<table>}}<tr><td>foo</td></tr></table>
5738 <table><tr><td>foo</td></tr></table>
5743 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5745 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5747 <table><tr><td>foo</td></tr></table>
5752 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5754 <table><tr>{{echo|<td>}}foo</td></tr></table>
5756 <table><tr><td>foo</td></tr></table>
5761 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5763 <table><tr><td>foo{{echo|</td>}}</tr></table>
5765 <table><tr><td>foo</td></tr></table>
5770 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5772 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5774 <table><tr><td>foo</td></tr></table>
5779 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5781 <table><tr><td>foo</td></tr>{{echo|</table>}}
5783 <table><tr><td>foo</td></tr></table>
5788 Templates: Wiki Tables: 1. Fostering of entire template content
5796 <tr><td></td></tr></table>
5801 Templates: Wiki Tables: 2. Fostering of partial template content
5811 <tr><td></td></tr></table>
5816 Templates: Wiki Tables: 3. td-content via multiple templates
5819 {{echo|{{pipe}}a}}{{echo|b}}
5830 Templates: Wiki Tables: 4. Templated tags, no content
5836 <tr><td></td></tr></table>
5841 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5855 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5869 Templates: Lists: Multi-line list-items via templates
5871 *{{echo|a {{nonexistent|
5873 *{{echo|b {{nonexistent|
5876 <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>
5877 </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>
5883 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5885 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5887 <p><i>ab</i>c<i>d</i>e
5892 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5893 (PHP parser generates misnested html)
5897 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5899 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5903 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5904 (PHP parser generates misnested html)
5908 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5911 <div><i>b</i>c<i>d</i></div>
5916 Templates: Ugly nesting: 4. Divs opened/closed across templates
5918 a<div>b{{echo|c</div>d}}e
5925 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5931 |{{echo|foo</table>}}
5935 <table about="#mwt1" typeof="mw:Object/Template ">
5936 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5937 bar</span><span about="#mwt1">
5942 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5952 <td>1. {{echo|foo </table>}}</td>
5954 <td>2. {{echo|baz </table>}}</td>
5967 <table about="#mwt1" typeof="mw:Object/Template">
5972 <td >1. foo </td></tr></tbody></table></td>
5974 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5975 </span><span about="#mwt1">
5977 abc</span><span about="#mwt1">
5978 </span><span about="#mwt1">
5979 </span><span about="#mwt1">
5980 </span><span about="#mwt1">
5981 </span><span about="#mwt1">
5983 xyz</span><span about="#mwt1">
5984 </span><span about="#mwt1">
5989 Templates: Ugly templates: 3. newline-only template parameter
5998 # This looks like a bug: a single newline triggers p/br for some reason.
6000 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6011 Parser Functions: 1. Simple example
6020 Parser Functions: 2. Nested use (only outermost should be marked up)
6029 ### Pre-save transform tests
6032 pre-save transform: subst:
6038 This is a test template
6042 pre-save transform: normal template
6052 pre-save transform: nonexistent template
6056 {{thistemplatedoesnotexist}}
6058 {{thistemplatedoesnotexist}}
6063 pre-save transform: subst magic variables
6072 # This is bug 89, which I fixed. -- wtm
6074 pre-save transform: subst: templates with parameters
6078 {{subst:paramtest|param="something else"}}
6080 This is a test template with parameter "something else"
6086 <nowiki>'''not wiki'''</nowiki>
6090 pre-save transform: nowiki in subst (bug 1188)
6094 {{subst:nowikitest}}
6096 <nowiki>'''not wiki'''</nowiki>
6101 Template:commenttest
6103 This template has <!-- a comment --> in it.
6107 pre-save transform: comment in subst (bug 1936)
6111 {{subst:commenttest}}
6113 This template has <!-- a comment --> in it.
6117 pre-save transform: unclosed tag
6121 <nowiki>'''not wiki'''
6123 <nowiki>'''not wiki'''
6127 pre-save transform: mixed tag case
6131 <NOwiki>'''not wiki'''</noWIKI>
6133 <NOwiki>'''not wiki'''</noWIKI>
6137 pre-save transform: unclosed comment in <nowiki>
6141 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6143 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6149 <span onmouseover="alert('crap')">Oh no</span>
6153 (confirming safety of fix for subst bug 1936)
6155 {{Template:dangerous}}
6157 <p><span>Oh no</span>
6162 pre-save transform: comment containing gallery (bug 5024)
6166 <!-- <gallery>data</gallery> -->
6168 <!-- <gallery>data</gallery> -->
6172 pre-save transform: comment containing extension
6176 <!-- <tag>data</tag> -->
6178 <!-- <tag>data</tag> -->
6182 pre-save transform: comment containing nowiki
6186 <!-- <nowiki>data</nowiki> -->
6188 <!-- <nowiki>data</nowiki> -->
6192 pre-save transform: <noinclude> in subst (bug 3298)
6202 pre-save transform: <onlyinclude> in subst (bug 3298)
6214 {{<includeonly>subst:</includeonly>Includes}}
6218 Template:SafeSubstTest
6220 {{<includeonly>safesubst:</includeonly>Includes}}
6224 bug 22297: safesubst: works during PST
6228 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6234 bug 22297: safesubst: works during normal parse
6243 subst: does not work during normal parse
6247 <p>{{subst:Includes}}
6252 pre-save transform: context links ("pipe trick")
6256 [[Article (context)|]]
6259 [[Bar:Article (context)|]]
6260 [[:Bar:Article (context)|]]
6262 [[|Article (context)]]
6266 [[Article (context)|Article]]
6267 [[Bar:Article|Article]]
6268 [[:Bar:Article|Article]]
6269 [[Bar:Article (context)|Article]]
6270 [[:Bar:Article (context)|Article]]
6272 [[Article (context)]]
6273 [[Bar:X (Y) Z|X (Y) Z]]
6274 [[:Bar:X (Y) Z|X (Y) Z]]
6278 pre-save transform: context links ("pipe trick") with interwiki prefix
6282 [[interwiki:Article|]]
6283 [[:interwiki:Article|]]
6284 [[interwiki:Bar:Article|]]
6285 [[:interwiki:Bar:Article|]]
6287 [[interwiki:Article|Article]]
6288 [[:interwiki:Article|Article]]
6289 [[interwiki:Bar:Article|Bar:Article]]
6290 [[:interwiki:Bar:Article|Bar:Article]]
6294 pre-save transform: context links ("pipe trick") with parens in title
6296 pst title=[[Somearticle (context)]]
6300 [[Article (context)|Article]]
6304 pre-save transform: context links ("pipe trick") with comma in title
6306 pst title=[[Someplace, Somewhere]]
6309 [[Otherplace, Elsewhere|]]
6310 [[Otherplace, Elsewhere, Anywhere|]]
6312 [[Otherplace, Somewhere|Otherplace]]
6313 [[Otherplace, Elsewhere|Otherplace]]
6314 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6318 pre-save transform: context links ("pipe trick") with parens and comma
6320 pst title=[[Someplace (IGNORED), Somewhere]]
6323 [[Otherplace (place), Elsewhere|]]
6325 [[Otherplace, Somewhere|Otherplace]]
6326 [[Otherplace (place), Elsewhere|Otherplace]]
6330 pre-save transform: context links ("pipe trick") with comma and parens
6332 pst title=[[Who, me? (context)]]
6335 [[Me, Myself, and I (1937 song)|]]
6337 [[Yes, you. (context)|Yes, you.]]
6338 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6342 pre-save transform: context links ("pipe trick") with namespace
6344 pst title=[[Ns:Somearticle]]
6348 [[Ns:Article|Article]]
6352 pre-save transform: context links ("pipe trick") with namespace and parens
6354 pst title=[[Ns:Somearticle (context)]]
6358 [[Ns:Article (context)|Article]]
6362 pre-save transform: context links ("pipe trick") with namespace and comma
6364 pst title=[[Ns:Somearticle, Context, Whatever]]
6368 [[Ns:Article, Context, Whatever|Article]]
6372 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6374 pst title=[[Ns:Somearticle, Context (context)]]
6378 [[Ns:Article (context)|Article]]
6382 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6384 pst title=[[Ns:Somearticle (IGNORED), Context]]
6388 [[Ns:Article, Context|Article]]
6392 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6396 [[Article(context)|]]
6397 [[Bar:Article(context)|]]
6398 [[:Bar:Article(context)|]]
6399 [[|Article(context)]]
6403 [[Article(context)|Article]]
6404 [[Bar:Article(context)|Article]]
6405 [[:Bar:Article(context)|Article]]
6406 [[Article(context)]]
6408 [[:Bar:X(Y)Z|X(Y)Z]]
6412 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6416 [[Article (context)|]]
6417 [[Bar:Article (context)|]]
6418 [[:Bar:Article (context)|]]
6419 [[|Article (context)]]
6423 [[Article (context)|Article]]
6424 [[Bar:Article (context)|Article]]
6425 [[:Bar:Article (context)|Article]]
6426 [[Article (context)]]
6427 [[Bar:X (Y) Z|X (Y) Z]]
6428 [[:Bar:X (Y) Z|X (Y) Z]]
6432 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6436 [[Article(context)|]]
6437 [[Bar:Article(context)|]]
6438 [[:Bar:Article(context)|]]
6439 [[|Article(context)]]
6443 [[Article(context)|Article]]
6444 [[Bar:Article(context)|Article]]
6445 [[:Bar:Article(context)|Article]]
6446 [[Article(context)]]
6448 [[:Bar:X(Y)Z|X(Y)Z]]
6452 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6456 [[Article (context), context|]]
6457 [[Article (context),context|]]
6458 [[Bar:Article (context), context|]]
6459 [[Bar:Article (context),context|]]
6460 [[:Bar:Article (context), context|]]
6461 [[:Bar:Article (context),context|]]
6463 [[Article (context), context|Article]]
6464 [[Article (context),context|Article]]
6465 [[Bar:Article (context), context|Article]]
6466 [[Bar:Article (context),context|Article]]
6467 [[:Bar:Article (context), context|Article]]
6468 [[:Bar:Article (context),context|Article]]
6472 pre-save transform: trim trailing empty lines
6476 Empty lines are trimmed
6482 Empty lines are trimmed
6486 pre-save transform: Signature expansion
6491 * <noinclude>~~~</noinclude>
6492 * <includeonly>~~~</includeonly>
6493 * <onlyinclude>~~~</onlyinclude>
6495 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6496 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6497 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6498 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6503 pre-save transform: Signature expansion in nowiki tags (bug 93)
6509 <nowiki>~~~~</nowiki>
6511 <includeonly><nowiki>~~~~</nowiki></includeonly>
6513 <noinclude><nowiki>~~~~</nowiki></noinclude>
6515 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6517 {{subst:Foo}} shall be converted to FOO
6519 As well as inside noinclude/onlyinclude
6520 <noinclude>{{subst:Foo}}</noinclude>
6521 <onlyinclude>{{subst:Foo}}</onlyinclude>
6523 But not inside includeonly
6524 <includeonly>{{subst:Foo}}</includeonly>
6528 <nowiki>~~~~</nowiki>
6530 <includeonly><nowiki>~~~~</nowiki></includeonly>
6532 <noinclude><nowiki>~~~~</nowiki></noinclude>
6534 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6536 FOO shall be converted to FOO
6538 As well as inside noinclude/onlyinclude
6539 <noinclude>FOO</noinclude>
6540 <onlyinclude>FOO</onlyinclude>
6542 But not inside includeonly
6543 <includeonly>{{subst:Foo}}</includeonly>
6547 ### Message transform tests
6550 message transform: magic variables
6560 message transform: should not transform wiki markup
6570 message transform: <noinclude> in transcluded template (bug 4926)
6580 message transform: <onlyinclude> in transcluded template (bug 4926)
6590 {{#special:}} page name, known
6594 {{#special:Recentchanges}}
6596 Special:RecentChanges
6600 {{#special:}} page name with subpage, known
6604 {{#special:Recentchanges/param}}
6606 Special:RecentChanges/param
6610 {{#special:}} page name, unknown
6614 {{#special:foobarnonexistent}}
6616 No such special page
6620 {{#speciale:}} page name, known
6624 {{#speciale:Recentchanges}}
6626 Special:RecentChanges
6630 {{#speciale:}} page name with subpage, known
6634 {{#speciale:Recentchanges/param}}
6636 Special:RecentChanges/param
6640 {{#speciale:}} page name, unknown
6644 {{#speciale:foobarnonexistent}}
6646 No_such_special_page
6655 [[Image:foobar.jpg]]
6657 <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>
6664 [[Image:foobar.jpg|right]]
6666 <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>
6671 Simple image (using File: namespace, now canonical)
6675 <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>
6682 [[Image:foobar.jpg|right|Caption text]]
6684 <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>
6689 Image with empty attribute
6691 [[Image:foobar.jpg|right||Caption text]]
6693 <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>
6698 Image with link tails
6700 123[[Image:foobar.jpg]]456
6701 123[[Image:foobar.jpg|right]]456
6702 123[[Image:foobar.jpg|thumb]]456
6704 <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
6706 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
6707 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
6712 Image with multiple captions -- only last one is accepted
6714 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6716 <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>
6721 Image with width attribute at different positions
6723 [[Image:foobar.jpg|200px|right|Caption]]
6724 [[Image:foobar.jpg|right|200px|Caption]]
6725 [[Image:foobar.jpg|right|Caption|200px]]
6727 <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>
6728 <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>
6729 <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>
6734 Image with link parameter, wiki target
6736 [[Image:foobar.jpg|link=Target page]]
6738 <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>
6743 Image with link parameter, URL target
6745 [[Image:foobar.jpg|link=http://example.com/]]
6747 <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>
6752 Image with link parameter, wgExternalLinkTarget
6754 [[Image:foobar.jpg|link=http://example.com/]]
6756 wgExternalLinkTarget='foobar'
6758 <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>
6763 Image with link parameter, wgNoFollowLinks set to false
6765 [[Image:foobar.jpg|link=http://example.com/]]
6767 wgNoFollowLinks=false
6769 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6774 Image with link parameter, wgNoFollowDomainExceptions
6776 [[Image:foobar.jpg|link=http://example.com/]]
6778 wgNoFollowDomainExceptions='example.com'
6780 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6785 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6787 [[Image:foobar.jpg|link=http://example.com/|Title]]
6789 wgExternalLinkTarget='foobar'
6791 <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>
6796 Image with empty link parameter
6798 [[Image:foobar.jpg|link=]]
6800 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6805 Image with link parameter (wiki target) and unnamed parameter
6807 [[Image:foobar.jpg|link=Target page|Title]]
6809 <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>
6814 Image with link parameter (URL target) and unnamed parameter
6816 [[Image:foobar.jpg|link=http://example.com/|Title]]
6818 <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>
6823 Thumbnail image with link parameter
6825 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6827 <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>
6832 Image with frame and link
6834 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6836 <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>
6841 Image with frame and link and explicit alt
6843 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6845 <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>
6850 Image with wiki markup in implicit alt
6852 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6854 <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>
6859 Image with wiki markup in explicit alt
6861 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6863 <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>
6868 Link to image page- image page normally doesn't exists, hence edit link
6869 Add test with existing image page
6870 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6874 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6879 bug 18784 Link to non-existent image page with caption should use caption as link text
6881 [[:Image:test|caption]]
6883 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6888 Frameless image caption with a free URL
6890 [[Image:foobar.jpg|http://example.com]]
6892 <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>
6897 Thumbnail image caption with a free URL
6899 [[Image:foobar.jpg|thumb|http://example.com]]
6901 <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>
6906 Thumbnail image caption with a free URL and explicit alt
6908 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6910 <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>
6915 BUG 1887: A ISBN with a thumbnail
6917 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6919 <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>
6924 BUG 1887: A RFC with a thumbnail
6926 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6928 <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>
6933 BUG 1887: A mailto link with a thumbnail
6935 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6937 <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>
6941 # Pending resolution to bug 368
6943 BUG 648: Frameless image caption with a link
6945 [[Image:foobar.jpg|text with a [[link]] in it]]
6947 <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>
6952 BUG 648: Frameless image caption with a link (suffix)
6954 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6956 <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>
6961 BUG 648: Frameless image caption with an interwiki link
6963 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6965 <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>
6970 BUG 648: Frameless image caption with a piped interwiki link
6972 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6974 <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>
6979 Escape HTML special chars in image alt text
6981 [[Image:foobar.jpg|& < > "]]
6983 <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>
6988 BUG 499: Alt text should have Ӓ, not &1234;
6990 [[Image:foobar.jpg|♀]]
6992 <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>
6997 Broken image caption with link
6999 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7001 <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.
7006 Image caption containing another image
7008 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7010 <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>
7015 Image caption containing a newline
7017 [[Image:Foobar.jpg|This
7020 <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>
7026 Bug 3090: External links other than http: in image captions
7028 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7030 <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>
7037 [[Image:foobar.jpg|a|class=b]]
7039 <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>
7046 #REDIRECT [[File:Barfoo.jpg]]
7052 [[Image:Barfoo.jpg]]
7054 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7059 Missing image with uploads disabled
7063 [[Image:Foobaz.jpg]]
7065 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7074 Subpage test/subpage
7082 subpage title=[[Subpage test]]
7086 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7091 Subpage noslash link
7093 subpage title=[[Subpage test]]
7097 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7106 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7111 BUG 561: {{/Subpage}}
7113 subpage title=[[Page]]
7117 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7125 Category:MediaWiki User's Guide
7133 [[:Category:MediaWiki User's Guide]]
7135 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7144 [[Category:MediaWiki User's Guide]]
7146 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7150 PAGESINCATEGORY invalid title fatal (r33546 fix)
7152 {{PAGESINCATEGORY:<bogus>}}
7159 Category with different sort key
7163 [[Category:MediaWiki User's Guide|Foo]]
7165 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7169 Category with identical sort key
7173 [[Category:MediaWiki User's Guide|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 Category with empty sort key
7184 [[Category:MediaWiki User's Guide|]]
7186 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7190 Category with empty sort key and parentheses
7195 [[Category:Foo (bar)|]]
7197 [[Category:Foo (bar)|Foo]]
7201 Category with link tail
7206 123[[Category:Foo]]456
7208 123[[Category:Foo]]456
7212 Category with template
7217 [[Category:{{echo|Foo}}]]
7219 [[Category:{{echo|Foo}}]]
7223 Category with template in sort key
7228 [[Category:Foo|{{echo|Bar}}]]
7230 [[Category:Foo|{{echo|Bar}}]]
7234 Category with template in sort key and title
7239 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7241 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7245 Category / paragraph interactions
7247 Foo [[Category:Baz]] Bar
7249 Foo [[Category:Baz]]
7257 [[Category:Baz]] Bar
7270 {{echo|[[Category:Baz]]}}
7285 ### Inter-language links
7288 Inter-language links
7294 [[zh:食品]]
7296 es:Alimento fr:Nourriture zh:食品
7300 Duplicate interlanguage links (bug 24502)
7316 Basic section headings
7323 ===Smaller headline===
7326 <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>
7329 <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>
7332 <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>
7338 Section headings with TOC
7341 === Subheadline 1 ===
7342 ===== Skipping a level =====
7343 ====== Skipping a level ======
7347 ===Another headline===
7349 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7351 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7353 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7355 <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>
7357 <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>
7364 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7366 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7371 <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>
7372 <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>
7373 <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>
7374 <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>
7375 <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>
7378 <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>
7382 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7384 Handling of sections up to level 6 and beyond
7387 == Level 2 Heading==
7388 === Level 3 Heading===
7389 ==== Level 4 Heading====
7390 ===== Level 5 Heading=====
7391 ====== Level 6 Heading======
7392 ======= Level 7 Heading=======
7393 ======== Level 8 Heading========
7394 ========= Level 9 Heading=========
7395 ========== Level 10 Heading==========
7397 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7399 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7401 <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>
7403 <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>
7405 <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>
7407 <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>
7409 <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>
7410 <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>
7411 <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>
7412 <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>
7413 <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>
7426 <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>
7427 <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>
7428 <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>
7429 <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>
7430 <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>
7431 <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>
7432 <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>
7433 <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>
7434 <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>
7435 <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>
7440 TOC regression (bug 9764)
7444 ==== title 1.1.1 ====
7449 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7451 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7453 <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>
7455 <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>
7458 <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>
7461 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7463 <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>
7468 <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>
7469 <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>
7470 <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>
7471 <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>
7472 <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>
7473 <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>
7478 TOC with wgMaxTocLevel=3 (bug 6204)
7484 ==== title 1.1.1 ====
7489 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7491 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7493 <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>
7494 <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>
7497 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7499 <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>
7504 <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>
7505 <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>
7506 <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>
7507 <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>
7508 <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>
7509 <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>
7514 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7520 ====Section 1.1.1====
7521 ====Section 1.1.1.1====
7524 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7526 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7528 <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>
7531 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7534 <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>
7535 <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>
7536 <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>
7537 <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>
7538 <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>
7544 Resolving duplicate section names
7549 <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>
7550 <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>
7555 Resolving duplicate section names with differing case (bug 10721)
7560 <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>
7561 <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>
7573 Template with sections, __NOTOC__
7580 <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>
7581 <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>
7582 <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>
7583 <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>
7588 __NOEDITSECTION__ keyword
7594 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7595 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7600 Link inside a section heading
7602 ==Section with a [[Main Page|link]] in it==
7604 <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>
7609 TOC regression (bug 12077)
7616 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7618 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7620 <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>
7623 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7626 <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>
7627 <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>
7628 <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>
7633 BUG 1219 URL next to image (good)
7635 http://example.com [[Image:foobar.jpg]]
7637 <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>
7642 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7645 The line above must have a trailing space!
7648 But just in case it doesn't...
7650 <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>
7651 <p>The line above must have a trailing space!
7653 <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>
7654 <p>But just in case it doesn't...
7659 Header with special characters (bug 25462)
7661 The tooltips shall not show entities to the user (ie. be double escaped)
7678 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7680 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7682 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7683 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7684 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7685 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7686 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7689 <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>
7692 <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>
7695 <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>
7698 <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>
7701 <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>
7707 Headers with excess '=' characters
7708 (Are similar tests necessary beyond the 1st level?)
7712 =''italic'' heading==
7713 ==''italic'' heading=
7715 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7717 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7718 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7719 <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>
7720 <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>
7723 <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>
7724 <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>
7725 <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>
7726 <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>
7731 BUG 1219 URL next to image (broken)
7733 http://example.com[[Image:foobar.jpg]]
7735 <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>
7740 Bug 1186 news: in the middle of text
7742 http://en.wikinews.org/wiki/Wikinews:Workplace
7744 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7750 Namespaced link must have a title
7759 Namespaced link must have a title (bad fragment version)
7761 [[Project:#fragment]]
7763 <p>[[Project:#fragment]]
7769 ### HTML tags and HTML attributes
7773 div with no attributes
7775 <div>HTML rocks</div>
7777 <div>HTML rocks</div>
7782 div with double-quoted attribute
7784 <div id="rock">HTML rocks</div>
7786 <div id="rock">HTML rocks</div>
7791 div with single-quoted attribute
7793 <div id='rock'>HTML rocks</div>
7795 <div id="rock">HTML rocks</div>
7800 div with unquoted attribute
7802 <div id=rock>HTML rocks</div>
7804 <div id="rock">HTML rocks</div>
7809 div with illegal double attributes
7811 <div id="a" id="b">HTML rocks</div>
7813 <div id="b">HTML rocks</div>
7817 # FIXME: produce empty string instead of "class" in the PHP parser, following
7820 div with empty attribute value, space before equals
7824 <div class =>HTML rocks</div>
7826 <div class="">HTML rocks</div>
7830 # The PHP parser escapes the opening brace to { for some reason, so
7831 # disabled this test for it.
7833 div with braces in attribute value
7837 <div title="{}">Foo</div>
7839 <div title="{}">Foo</div>
7842 # This it very inconsistent in the PHP parser: it returns
7843 # class="class" if there is a space between the name and the equal sign (see
7844 # 'div with empty attribute value, space before equals'), but strips the
7845 # attribute completely if the space is missing. We hope that not much content
7846 # depends on this, so are implementing the behavior below in Parsoid for
7847 # consistencies' sake. Disabled for the PHP parser.
7848 # FIXME: fix this behavior in the PHP parser?
7850 div with empty attribute value, no space before equals
7854 <div class=>HTML rocks</div>
7856 <div class="">HTML rocks</div>
7861 HTML multiple attributes correction
7863 <p class="error" class="awesome">Awesome!</p>
7865 <p class="awesome">Awesome!</p>
7870 Table multiple attributes correction
7873 !+ class="error" class="awesome"| status
7878 <th class="awesome"> status
7886 <DIV ID="x">HTML ROCKS</DIV>
7888 <div id="x">HTML ROCKS</div>
7893 Non-ASCII pseudo-tags are rendered as text
7902 Pseudo-tag with URL 'name' renders as url link
7904 <http://example.com/>
7906 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7911 text with amp in the middle of nowhere
7915 <p>Remember AT&T?
7920 text with character entity: eacute
7922 I always thought é was a cute letter.
7924 <p>I always thought é was a cute letter.
7929 text with entity-escaped character entity-like string: eacute
7931 I always thought &eacute; was a cute letter.
7933 <p>I always thought &eacute; was a cute letter.
7938 text with undefined character entity: xacute
7940 I always thought &xacute; was a cute letter.
7942 <p>I always thought &xacute; was a cute letter.
7954 [[Media:Foobar.jpg]]
7956 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7961 Media link with text
7963 [[Media:Foobar.jpg|A neat file to look at]]
7965 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7969 # FIXME: this is still bad HTML tag nesting
7971 Media link with nasty text
7972 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7974 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7976 <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>
7981 Media link to nonexistent file (bug 1702)
7983 [[Media:No such.jpg]]
7985 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7990 Image link to nonexistent file (bug 1850 - good)
7992 [[Image:No such.jpg]]
7994 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7999 :Image link to nonexistent file (bug 1850 - bad)
8001 [[:Image:No such.jpg]]
8003 <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>
8010 Character reference normalization in link text (bug 1938)
8012 [[Main Page|this&that]]
8014 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8021 Test for unicode normalization
8023 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8027 (bug 19451) Links should refer to the normalized form.
8035 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8036 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8037 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8038 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8039 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8044 Empty attribute crash test (bug 2067)
8046 <font color="">foo</font>
8048 <p><font color="">foo</font>
8053 Empty attribute crash test single-quotes (bug 2067)
8055 <font color=''>foo</font>
8057 <p><font color="">foo</font>
8062 Attribute test: equals, then nothing
8064 <font color=>foo</font>
8071 Attribute test: unquoted value
8073 <font color=x>foo</font>
8075 <p><font color="x">foo</font>
8080 Attribute test: unquoted but illegal value (hash)
8082 <font color=#x>foo</font>
8084 <p><font color="#x">foo</font>
8089 Attribute test: no value
8091 <font color>foo</font>
8093 <p><font color="color">foo</font>
8098 Bug 2095: link with three closing brackets
8102 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8107 Bug 2095: link with pipe and three closing brackets
8111 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8116 Bug 2095: link with pipe and three closing brackets, version 2
8118 [[Main Page|[http://example.com/]]]
8120 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8130 Template:Dangerous attribute
8132 " onmouseover="alert(document.cookie)
8136 Template:Dangerous style attribute
8138 border-size: expression(alert(document.cookie))
8144 <div style="float: right; {{{1}}}">Magic div</div>
8148 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8150 <div title="{{test}}"></div>
8152 <div title="This is a test template"></div>
8157 Bug 2304: HTML attribute safety (dangerous template; 2309)
8159 <div title="{{dangerous attribute}}"></div>
8161 <div title=""></div>
8166 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8168 <div style="{{dangerous style attribute}}"></div>
8170 <div style="/* insecure input */"></div>
8175 Bug 2304: HTML attribute safety (safe parameter; 2309)
8177 {{div style|width: 200px}}
8179 <div style="float: right; width: 200px">Magic div</div>
8184 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8186 {{div style|width: expression(alert(document.cookie))}}
8188 <div style="/* insecure input */">Magic div</div>
8193 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8195 {{div style|"><script>alert(document.cookie)</script>}}
8197 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8202 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8204 {{div style|" ><script>alert(document.cookie)</script>}}
8206 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8211 Bug 2304: HTML attribute safety (link)
8213 <div title="[[Main Page]]"></div>
8215 <div title="[[Main Page]]"></div>
8220 Bug 2304: HTML attribute safety (italics)
8222 <div title="''foobar''"></div>
8224 <div title="''foobar''"></div>
8229 Bug 2304: HTML attribute safety (bold)
8231 <div title="'''foobar'''"></div>
8233 <div title="'''foobar'''"></div>
8239 Bug 2304: HTML attribute safety (ISBN)
8241 <div title="ISBN 1234567890"></div>
8243 <div title="ISBN 1234567890"></div>
8248 Bug 2304: HTML attribute safety (RFC)
8250 <div title="RFC 1234"></div>
8252 <div title="RFC 1234"></div>
8257 Bug 2304: HTML attribute safety (PMID)
8259 <div title="PMID 1234567890"></div>
8261 <div title="PMID 1234567890"></div>
8266 Bug 2304: HTML attribute safety (web link)
8268 <div title="http://example.com/"></div>
8270 <div title="http://example.com/"></div>
8275 Bug 2304: HTML attribute safety (named web link)
8277 <div title="[http://example.com/ link]"></div>
8279 <div title="[http://example.com/ link]"></div>
8284 Bug 3244: HTML attribute safety (extension; safe)
8286 <div style="<nowiki>background:blue</nowiki>"></div>
8288 <div style="background:blue"></div>
8293 Bug 3244: HTML attribute safety (extension; unsafe)
8295 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8297 <div style="/* insecure input */"></div>
8301 # More MSIE fun discovered by Tom Gilder
8304 MSIE CSS safety test: spurious slash
8306 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8308 <div style="/* insecure input */">evil</div>
8313 MSIE CSS safety test: hex code
8315 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8317 <div style="/* insecure input */">evil</div>
8322 MSIE CSS safety test: comment in url
8324 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8326 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8331 MSIE CSS safety test: comment in expression
8333 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8335 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8341 Table attribute legitimate extension
8344 !+ style="<nowiki>color:blue</nowiki>"| status
8349 <th style="color:blue"> status
8355 Table attribute safety
8358 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8363 <th style="/* insecure input */"> status
8369 CSS line continuation 1
8371 <div style="background-image: u\ rl(test.jpg);"></div>
8373 <div style="/* insecure input */"></div>
8378 CSS line continuation 2
8380 <div style="background-image: u\ rl(test.jpg); "></div>
8382 <div style="/* insecure input */"></div>
8393 Expansion of multi-line templates in attribute values (bug 6255)
8395 <div style="background: {{identity|#00FF00}}">-</div>
8397 <div style="background: #00FF00">-</div>
8403 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8405 <div style="background:
8408 <div style="background: #00FF00">-</div>
8413 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8415 <div style="background: #00FF00">-</div>
8417 <div style="background: #00FF00">-</div>
8422 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8425 Parser hook: empty input
8438 Parser hook: empty input using terminated empty elements
8451 Parser hook: empty input using terminated empty elements (space before)
8464 Parser hook: basic input
8478 Parser hook: case insensitive
8492 Parser hook: case insensitive, redux
8505 Parser hook: nested tags
8509 <tag><tag></tag></tag>
8520 Parser hook: basic arguments
8522 <tag width=200 height = "100" depth = '50' square></tag>
8530 'square' => 'square',
8537 Parser hook: argument containing a forward slash (bug 5344)
8539 <tag filename='/tmp/bla'></tag>
8544 'filename' => '/tmp/bla',
8551 Parser hook: empty input using terminated empty elements (bug 2374)
8564 # </tag> should be output literally since there is no matching tag that begins it
8566 Parser hook: basic arguments using terminated empty elements (bug 2374)
8568 <tag width=200 height = "100" depth = '50' square/>
8578 'square' => 'square',
8587 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8591 Parser hook: static parser hook not inside a comment
8593 <statictag>hello, world</statictag>
8594 <statictag action=flush/>
8602 Parser hook: static parser hook inside a comment
8604 <!-- <statictag>hello, world</statictag> -->
8605 <statictag action=flush/>
8611 # Nested template calls; this case was broken by Parser.php rev 1.506,
8615 Template:One-parameter
8617 (My parameter is: {{{1}}})
8621 Template:Map-one-parameter
8627 Nested template calls
8629 {{Map-one-parameter|One-parameter|param}}
8631 <p>(My parameter is: param)
8640 Sanitizer: Closing of open tags
8642 <s></s><table></table>
8644 <s></s><table></table>
8649 Sanitizer: Closing of open but not closed tags
8658 Sanitizer: Closing of closed but not open tags
8667 Sanitizer: Closing of closed but not open table tags
8669 Table not started</td></tr></table>
8671 <p>Table not started</td></tr></table>
8676 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8678 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8680 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8685 Sanitizer: Validating the contents of the id attribute (bug 4515)
8691 Something, but definitely not <br id="9" />...
8695 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8699 <br id="foo" /><br id="foo" />
8701 Something need to be done. foo-2 ?
8705 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8708 <meta itemprop="hello" content="world">
8709 <meta http-equiv="refresh" content="5">
8710 <meta itemprop="hello" http-equiv="refresh" content="5">
8711 <link itemprop="hello" href="{{SERVER}}">
8712 <link rel="stylesheet" href="{{SERVER}}">
8713 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8716 <div itemscope="itemscope">
8717 <p> <meta itemprop="hello" content="world" />
8718 <meta http-equiv="refresh" content="5">
8719 <meta itemprop="hello" content="5" />
8721 <link itemprop="hello" href="http://Britney-Spears" />
8722 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8723 <link itemprop="hello" href="http://Britney-Spears" />
8729 Language converter: output gets cut off unexpectedly (bug 5757)
8733 this bit is safe: }-
8735 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8737 then we get cut off here: }-
8739 all additional text is vanished
8741 <p>this bit is safe: }-
8742 </p><p>but if we add a conversion instance: xxx
8743 </p><p>then we get cut off here: }-
8744 </p><p>all additional text is vanished
8749 Self closed html pairs (bug 5487)
8752 <center><font id="bug" />Centered text</center>
8753 <div><font id="bug2" />In div text</div>
8755 <center><font id="bug" />Centered text</center>
8756 <div><font id="bug2" />In div text</div>
8765 Punctuation: nbsp before exclamation
8769 <p>C'est grave !
8774 Punctuation: CSS !important (bug 11874)
8776 <div style="width:50% !important">important</div>
8778 <div style="width:50% !important">important</div>
8783 Punctuation: CSS ! important (bug 11874; with space after)
8785 <div style="width:50% ! important">important</div>
8787 <div style="width:50% ! important">important</div>
8793 HTML bullet list, closed tags (bug 5497)
8808 HTML bullet list, unclosed tags (bug 5497)
8825 HTML ordered list, closed tags (bug 5497)
8840 HTML ordered list, unclosed tags (bug 5497)
8857 HTML nested bullet list, closed tags (bug 5497)
8882 HTML nested bullet list, open tags (bug 5497)
8907 HTML nested ordered list, closed tags (bug 5497)
8932 HTML nested ordered list, open tags (bug 5497)
8957 HTML ordered list item with parameters oddity
8959 <ol><li id="fragment">One</li></ol>
8961 <ol><li id="fragment">One</li></ol>
8966 bug 5918: autonumbering
8968 [http://first/] [http://second] [ftp://ftp]
8972 [mailto:enclosed@mail.tld With target]
8974 [mailto:enclosed@mail.tld]
8976 mailto:inline@mail.tld
8978 <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>
8979 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8980 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8981 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8982 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8988 # Security and HTML correctness
8989 # From Nick Jenkins' fuzz testing
8993 Fuzz testing: Parser13
9008 Fuzz testing: Parser14
9013 <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>
9014 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9016 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9023 Fuzz testing: Parser14-table
9028 <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>
9029 <table style="__TOC__">
9035 # Known to produce bogus xml (extra </td>)
9037 Fuzz testing: Parser16
9057 Fuzz testing: Parser21
9060 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9065 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9075 Fuzz testing: Parser22
9077 http://===r:::https://b
9081 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9089 # Known to produce bad XML for now
9091 Fuzz testing: Parser24
9098 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9099 <br style="onmouseover='alert(document.cookie);' " />
9101 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9106 <u class="|">}}}} >
9107 <br style="onmouseover='alert(document.cookie);'" />
9109 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9118 # Note: the current result listed for this is not what the original one was,
9119 # but the original bug was JavaScript injection, which is fixed in any case.
9120 # It's not clear that the original result listed was any more correct than the
9121 # current one. Original result:
9124 # <li class="||">
9125 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9127 Fuzz testing: Parser25 (bug 6055)
9133 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9135 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9140 Fuzz testing: URL adjacent extension (with space, clean)
9143 http://example.com <nowiki>junk</nowiki>
9145 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9150 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9153 http://example.com<nowiki>junk</nowiki>
9155 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9160 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9163 http://example.com<pre>junk</pre>
9165 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9170 Fuzz testing: image with bogus manual thumbnail
9172 [[Image:foobar.jpg|thumbnail= ]]
9174 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9179 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9181 <pre dir=" "></pre>
9183 <pre dir=" "></pre>
9188 Parsing optional HTML elements (Bug 6171)
9193 <td> Some tabular data</td>
9194 <td> More tabular data ...
9195 <td> And yet som tabular data</td>
9201 <td> Some tabular data</td>
9202 <td> More tabular data ...
9203 </td><td> And yet som tabular data</td>
9210 Correct handling of <td>, <tr> (Bug 6171)
9215 <td> Some tabular data</td>
9216 <td> More tabular data ...</td>
9217 <td> And yet som tabular data</td>
9223 <td> Some tabular data</td>
9224 <td> More tabular data ...</td>
9225 <td> And yet som tabular data</td>
9233 Parsing crashing regression (fr:JavaScript)
9237 <p></body></x>
9242 Inline wiki vs wiki block nesting
9248 <p><b>Bold paragraph</b>
9249 </p><p>New wiki paragraph
9254 Inline HTML vs wiki block nesting
9262 <p><b>Bold paragraph</b>
9263 </p><p>New wiki paragraph
9267 # Original result was this:
9268 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9270 # While that might be marginally more intuitive, maybe, the six-apostrophe
9271 # construct is clearly pathological and the result stated here (which is what
9272 # the parser actually does) is about as reasonable as anything.
9274 Mixing markup for italics and bold
9277 '''bold''''''bold''bolditalics'''''
9279 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9287 Article for special page transclusion test
9291 Special page transclusion
9294 {{Special:Prefixindex/Xyzzyx}}
9296 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9301 Special page transclusion twice (bug 5021)
9304 {{Special:Prefixindex/Xyzzyx}}
9305 {{Special:Prefixindex/Xyzzyx}}
9307 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9308 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9313 Transclusion of default MediaWiki message
9315 {{MediaWiki:Mainpage}}
9322 Transclusion of nonexistent MediaWiki message
9324 {{MediaWiki:Mainpagexxx}}
9326 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9331 Transclusion of MediaWiki message with underscore
9333 {{MediaWiki:history_short}}
9340 Transclusion of MediaWiki message with space
9342 {{MediaWiki:history short}}
9349 Invalid header with following text
9359 Section extraction test (section 0)
9379 Section extraction test (section 1)
9401 Section extraction test (section 2)
9422 Section extraction test (section 3)
9442 Section extraction test (section 4)
9466 Section extraction test (section 5)
9486 Section extraction test (section 6)
9507 Section extraction test (section 7)
9527 Section extraction test (section 8)
9547 Section extraction test (section 9)
9568 Section extraction test (section 10)
9588 Section extraction test (nonexistent section 11)
9607 Section extraction test with bogus heading (section 1)
9612 ==bogus== not a legal section
9616 ==bogus== not a legal section
9620 Section extraction test with bogus heading (section 2)
9625 ==bogus== not a legal section
9632 Section extraction test with comment after heading (section 1)
9644 Section extraction test with comment after heading (section 2)
9656 Section extraction test with bogus <nowiki> heading (section 1)
9661 ==bogus== <nowiki>not a legal section</nowiki>
9665 ==bogus== <nowiki>not a legal section</nowiki>
9669 Section extraction test with bogus <nowiki> heading (section 2)
9674 ==bogus== <nowiki>not a legal section</nowiki>
9681 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9682 # instead of respecting commented sections
9684 Section extraction prefixed by comment (section 1)
9695 Section extraction prefixed by comment (section 2)
9706 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9707 # instead of respecting HTML-style headings
9709 Section extraction, mixed wiki and html (section 1)
9725 Section extraction, mixed wiki and html (section 2)
9741 # Formerly testing for bug 3342
9743 Section extraction, heading surrounded by <noinclude>
9747 <noinclude>==unmarked==</noinclude>
9753 # Test behaviour of bug 19910
9755 Sectiion with all-equals
9760 The line above must have a trailing space
9763 But just in case it doesn't...
9767 But just in case it doesn't...
9771 Section replacement test (section 0)
9802 Section replacement test (section 1)
9831 Section replacement test (section 2)
9861 Section replacement test (section 3)
9892 Section replacement test (section 4)
9919 Section replacement test (section 5)
9950 Section replacement test (section 6)
9980 Section replacement test (section 7)
10011 Section replacement test (section 8)
10042 Section replacement test (section 9)
10071 Section replacement test (section 10)
10101 Section replacement test with initial whitespace (bug 13728)
10105 Preformatted initial line
10109 Preformatted initial line
10116 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10128 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10141 Section extraction, <pre> around bogus header (bug 10309)
10158 Section replacement, <pre> around bogus header (bug 10309)
10160 noxml replace=2,"xxx"
10181 Handling of 
 in URLs
10185 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10192 5 quotes, code coverage +1 line
10199 Special:Search page linking.
10203 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10215 * {{BASEPAGENAMEE}}
10217 * {{TALKPAGENAMEE}}
10218 * {{SUBJECTPAGENAME}}
10219 * {{SUBJECTPAGENAMEE}}
10225 * {{SUBJECTSPACEE}}
10226 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10228 <ul><li> Parser test
10229 </li><li> Parser test
10230 </li><li> Parser test
10231 </li><li> Parser_test
10232 </li><li> Parser test
10233 </li><li> Parser_test
10234 </li><li> Talk:Parser test
10235 </li><li> Talk:Parser_test
10236 </li><li> Parser test
10237 </li><li> Parser_test
10244 </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>
10248 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10258 image4 |300px| centre
10259 image5.svg| http://///////
10264 <ul class="gallery">
10265 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10266 <div style="height: 150px;">Image1.png</div>
10267 <div class="gallerytext">
10270 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10271 <div style="height: 150px;">Image2.gif</div>
10272 <div class="gallerytext">
10277 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10278 <div style="height: 150px;">Image3</div>
10279 <div class="gallerytext">
10282 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10283 <div style="height: 150px;">Image4</div>
10284 <div class="gallerytext">
10289 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10290 <div style="height: 150px;">Image5.svg</div>
10291 <div class="gallerytext">
10292 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10296 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10297 <div style="height: 150px;">* image6</div>
10298 <div class="gallerytext">
10306 Gallery (with options)
10308 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10309 File:Nonexistant.jpg|caption
10310 File:Nonexistant.jpg
10311 image:foobar.jpg|some '''caption''' [[Main Page]]
10313 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10316 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10317 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10318 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10319 <div style="height: 70px;">Nonexistant.jpg</div>
10320 <div class="gallerytext">
10325 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10326 <div style="height: 70px;">Nonexistant.jpg</div>
10327 <div class="gallerytext">
10330 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10331 <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>
10332 <div class="gallerytext">
10333 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10337 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10338 <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>
10339 <div class="gallerytext">
10342 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10343 <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>
10344 <div class="gallerytext">
10354 Gallery with wikitext inside caption
10357 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10358 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10361 <ul class="gallery">
10362 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10363 <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>
10364 <div class="gallerytext">
10365 <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>
10369 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10370 <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>
10371 <div class="gallerytext">
10372 <p>This is a test template
10381 gallery (with showfilename option)
10383 <gallery showfilename>
10384 File:Nonexistant.jpg|caption
10385 File:Nonexistant.jpg
10386 image:foobar.jpg|some '''caption''' [[Main Page]]
10390 <ul class="gallery">
10391 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10392 <div style="height: 150px;">Nonexistant.jpg</div>
10393 <div class="gallerytext">
10394 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10399 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10400 <div style="height: 150px;">Nonexistant.jpg</div>
10401 <div class="gallerytext">
10402 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10406 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10407 <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>
10408 <div class="gallerytext">
10409 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10410 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10414 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10415 <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>
10416 <div class="gallerytext">
10417 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10426 Gallery (with namespace-less filenames)
10429 File:Nonexistant.jpg
10435 <ul class="gallery">
10436 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10437 <div style="height: 150px;">Nonexistant.jpg</div>
10438 <div class="gallerytext">
10441 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10442 <div style="height: 150px;">Nonexistant.jpg</div>
10443 <div class="gallerytext">
10446 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10447 <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>
10448 <div class="gallerytext">
10451 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10452 <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>
10453 <div class="gallerytext">
10461 HTML Hex character encoding (spells the word "JavaScript")
10463 JavaScript
10465 <p>JavaScript
10470 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10474 <p>&#xsee;&#XSEE;
10479 HTML Hex character encoding mixed case
10488 __FORCETOC__ override
10500 ISBN 978-0-1234-56 789
10502 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10507 ISBN followed by 5 spaces
10518 ISBN ISBN 1234567890
10520 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10525 Bug 22905: <abbr> followed by ISBN followed by </a>
10527 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10529 <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>
10538 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10543 Double RFC with a wiki link
10547 <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>
10556 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10561 Centre-aligned image
10563 [[Image:foobar.jpg|centre]]
10565 <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>
10572 [[Image:foobar.jpg|none]]
10574 <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>
10579 Width + Height sized image (using px) (height is ignored)
10581 [[Image:foobar.jpg|640x480px]]
10583 <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>
10588 Width-sized image (using px, no following whitespace)
10590 [[Image:foobar.jpg|640px]]
10592 <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>
10597 Width-sized image (using px, with following whitespace - test regression from r39467)
10599 [[Image:foobar.jpg|640px ]]
10601 <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>
10606 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10608 [[Image:foobar.jpg| 640px]]
10610 <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>
10615 Another italics / bold test
10623 # Note the results may be incorrect, as parserTest output included this:
10624 # XML error: Mismatched tag at byte 6120:
10625 # ...<dd> </dt></dl> </dd...
10633 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10644 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10646 Images with the "|" character in the comment
10648 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10650 <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>
10655 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10657 <html><script>alert(1);</script></html>
10659 <p><html><script>alert(1);</script></html>
10664 HTML with raw HTML ($wgRawHtml==true)
10668 <html><script>alert(1);</script></html>
10670 <p><script>alert(1);</script>
10675 Parents of subpages, one level up
10677 subpage title=[[Subpage test/L1/L2/L3]]
10681 <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>
10687 Parents of subpages, one level up, not named
10689 subpage title=[[Subpage test/L1/L2/L3]]
10693 <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>
10700 Parents of subpages, two levels up
10702 subpage title=[[Subpage test/L1/L2/L3]]
10708 <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
10709 </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>
10714 Parents of subpages, two levels up, without trailing slash or name.
10716 subpage title=[[Subpage test/L1/L2/L3]]
10725 Parents of subpages, two levels up, with lots of extra trailing slashes.
10727 subpage title=[[Subpage test/L1/L2/L3]]
10731 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10736 Definition list code coverage
10742 <dl><dt> title  </dt><dd> def
10743 </dd><dt> title </dt><dd> def
10744 </dd><dt>title</dt><dd> def
10750 Don't fall for the self-closing div
10752 <div>hello world</div/>
10754 <div>hello world</div>
10763 <p>[[:Template:Msg]]
10772 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10776 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10778 Always escape literal '>' in output, not just after '<'
10792 <p>This is a test template
10793 This is a test template
10805 Inclusion of !userCanEdit() content
10809 <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>
10815 Out-of-order TOC heading levels
10824 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10826 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10828 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10829 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10832 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10834 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10835 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10840 <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>
10841 <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>
10842 <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>
10843 <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>
10844 <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>
10845 <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>
10851 ISBN with a dummy number
10861 ISBN with space-delimited number
10865 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10871 ISBN with multiple spaces, no number
10890 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10891 </p><p>ISBN 12345678901
10897 ISBN with trailing year (bug 8110)
10899 ISBN 1-234-56789-0 - 2006
10901 ISBN 1 234 56789 0 - 2006
10903 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10904 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10912 {{anchorencode:foo bar©#%n}}
10914 <p>foo_bar.C2.A9.23.25n
10919 anchorencode trims spaces
10921 {{anchorencode: __pretty__please__}}
10928 anchorencode deals with links
10930 {{anchorencode: [[hello|world]] [[hi]]}}
10937 anchorencode deals with templates
10939 {{anchorencode: {{Foo}} }}
10946 anchorencode encodes like the TOC generator: (bug 18431)
10948 === _ +:.3A%3A&&]] ===
10949 {{anchorencode: _ +:.3A%3A&&]] }}
10952 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10953 <p>.2B:.3A.253A.26.26.5D.5D
10957 # Expected output in the following test is not necessarily expected (there
10958 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10959 # only testing for well-formedness.
10961 Bug 6200: blockquotes and paragraph formatting
10981 Bug 8293: Use of center tag ruins paragraph formatting
11003 ### Language variants related tests
11006 Self-link in language variants
11008 title=[[Dunav]] language=sr
11010 Both [[Dunav]] and [[Дунав]] are names for this river.
11012 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11018 Link to pages in language variants
11022 Main Page can be written as [[Маин Паге]]
11024 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11030 Multiple links to pages in language variants
11034 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11036 <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>.
11042 Simple template in language variants
11048 <p>This is a test template
11054 Template with explicit namespace in language variants
11060 <p>This is a test template
11066 Basic test for template parameter in language variants
11070 {{парамтест|param=foo}}
11072 <p>This is a test template with parameter foo
11078 Simple category in language variants
11082 [[Category:МедиаWики Усер'с Гуиде]]
11084 <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>
11101 Don't convert blue categorylinks to another variant (bug 33210)
11105 [[A]][[Category:分类]]
11107 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11112 Stripping -{}- tags (language variants)
11116 Latin proverb: -{Ne nuntium necare}-
11118 <p>Latin proverb: Ne nuntium necare
11124 Prevent conversion with -{}- tags (language variants)
11126 language=sr variant=sr-ec
11128 Latinski: -{Ne nuntium necare}-
11130 <p>Латински: Ne nuntium necare
11136 Prevent conversion of text with -{}- tags (language variants)
11138 language=sr variant=sr-ec
11140 Latinski: -{Ne nuntium necare}-
11142 <p>Латински: Ne nuntium necare
11148 Prevent conversion of links with -{}- tags (language variants)
11150 language=sr variant=sr-ec
11154 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11160 -{}- tags within headlines (within html for parserConvert())
11162 language=sr variant=sr-ec
11166 <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>
11172 Explicit definition of language variant alternatives
11174 language=zh variant=zh-tw
11176 -{zh:China;zh-tw:Taiwan}-, not China
11178 <p>Taiwan, not China
11184 Conversion around HTML tags
11186 language=sr variant=sr-ec
11188 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11189 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11192 <span title="ЛаCтин">ски</span>
11198 Explicit session-wise language variant mapping (A flag and - flag)
11200 language=zh variant=zh-tw
11202 Taiwan is not China.
11203 But -{A|zh:China;zh-tw:Taiwan}- is China,
11204 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11205 and -{China}- is China.
11207 <p>Taiwan is not China.
11208 But Taiwan is Taiwan,
11209 (This should be stripped!)
11210 and China is China.
11215 Explicit session-wise language variant mapping (H flag for hide)
11217 language=zh variant=zh-tw
11219 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11222 <p>(This should be stripped!)
11228 Adding explicit conversion rule for title (T flag)
11230 language=zh variant=zh-tw showtitle
11232 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11235 <p>Should be stripped!
11240 Testing that changing the language variant here in the tests actually works
11242 language=zh variant=zh showtitle
11244 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11247 <p>Should be stripped!
11252 Recursive conversion of alt and title attrs shouldn't clear converter state
11254 language=zh variant=zh-cn showtitle
11256 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11257 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11261 Should be stripped<span title="Exclamation">!</span>
11266 Bug 24072: more test on conversion rule for title
11268 language=zh variant=zh-tw showtitle
11270 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11271 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11274 <p>This should be stripped!
11275 This won't take interferes with the title rule.
11280 Raw output of variant escape tags (R flag)
11282 language=zh variant=zh-tw
11284 Raw: -{R|zh:China;zh-tw:Taiwan}-
11286 <p>Raw: zh:China;zh-tw:Taiwan
11291 Nested using of manual convert syntax
11293 language=zh variant=zh-hk
11295 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11297 <p>Nested: Hello Hong Kong!
11302 Proper conversion of text in external links
11304 language=sr variant=sr-ec
11306 http://www.google.com
11307 gopher://www.google.com
11308 [http://www.google.com http://www.google.com]
11309 [gopher://www.google.com gopher://www.google.com]
11310 [https://www.google.com irc://www.google.com]
11311 [ftp://www.google.com www.google.com/ftp://dir]
11312 [//www.google.com www.google.com]
11314 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11315 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11316 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11317 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11318 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11319 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11320 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11325 Do not convert roman numbers to language variants
11327 language=sr variant=sr-ec
11331 <p>Фридрих IV је цар.
11336 Unclosed language converter markup "-{"
11347 Don't convert raw rule "-{R|=>}-" to "=>"
11364 Bug 529: Uncovered bullet
11374 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11375 # Templates in Wikipedia rely on this behavior, as tidy has always been
11376 # enabled there. These tests are normally run *without* tidy, so specify the
11377 # full output here.
11378 # To test realistic parsing behavior, apply a tidy-like transformation to both
11379 # the expected output and your parser's output.
11381 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11383 ******* Foo {{bullet}}
11385 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11398 Bug 529: Uncovered table already at line-start
11421 Bug 529: Uncovered bullet in parser function result
11423 * Foo {{lc:{{bullet}} }}
11432 Bug 5678: Double-parsed template argument
11434 {{lc:{{{1}}}|hello}}
11441 Bug 5678: Double-parsed template invocation
11443 {{lc:{{paramtest {{!}} param = hello }} }}
11445 <p>{{paramtest | param = hello }}
11450 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11453 title=[[Main Page]]
11455 {{PRVNÍVELKÉ:ěščř}}
11456 {{prvnívelké:ěščř}}
11476 Morwen/13: Unclosed link followed by heading
11483 <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>
11488 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11495 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11500 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11507 <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>
11522 Paragraphs inside divs (no extra line breaks)
11534 Paragraphs inside divs (extra line break on open)
11549 Paragraphs inside divs (extra line break on close)
11564 Paragraphs inside divs (extra line break on open and close)
11581 Nesting tags, paragraphs on lines which begin with <div>
11585 <div></div><strong>A
11594 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11596 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11600 <blockquote>Line one
11602 Line two</blockquote>
11604 <blockquote>Line one
11605 Line two</blockquote>
11610 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11617 Line two</blockquote>
11622 Line two</blockquote>
11627 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11631 <blockquote>Line one
11636 <blockquote>Line one
11644 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11663 Paragraphs inside blockquotes/divs (no extra line breaks)
11665 <blockquote><div>Line one
11667 Line two</div></blockquote>
11669 <blockquote><div>Line one
11670 Line two</div></blockquote>
11675 Paragraphs inside blockquotes/divs (extra line break on open)
11680 Line two</div></blockquote>
11685 Line two</div></blockquote>
11690 Paragraphs inside blockquotes/divs (extra line break on close)
11692 <blockquote><div>Line one
11695 </div></blockquote>
11697 <blockquote><div>Line one
11700 </div></blockquote>
11705 Paragraphs inside blockquotes/divs (extra line break on open and close)
11711 </div></blockquote>
11717 </div></blockquote>
11722 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11724 wgLinkHolderBatchSize=0
11730 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11731 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11732 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11737 Free external link invading image caption
11739 [[Image:Foobar.jpg|thumb|http://x|hello]]
11741 <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>
11746 Bug 15196: localised external link numbers
11750 [http://en.wikipedia.org/]
11752 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11757 Multibyte character in padleft
11759 {{padleft:-Hello|7|Æ}}
11766 Multibyte character in padright
11768 {{padright:Hello-|7|Æ}}
11777 wgUseDynamicDates=1
11781 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
11786 formatdate parser function
11788 {{#formatdate:2009-03-24}}
11790 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11795 formatdate parser function, with default format
11797 {{#formatdate:2009-03-24|mdy}}
11799 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11804 Linked date with autoformatting disabled
11806 wgUseDynamicDates=false
11810 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
11815 Spacing of numbers in formatted dates
11817 {{#formatdate:January 15}}
11819 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11824 Spacing of numbers in formatted dates (linked)
11826 wgUseDynamicDates=true
11830 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
11835 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
11837 language=nl title=[[MediaWiki:Common.css]]
11839 {{#formatdate:2009-03-24|dmy}}
11841 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11854 Edit comment with link
11858 I like the [[Main Page]] a lot
11860 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11864 Edit comment with link and link text
11868 I like the [[Main Page|best pages]] a lot
11870 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11874 Edit comment with link and link text with suffix
11878 I like the [[Main Page|best page]]s a lot
11880 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11884 Edit comment with section link (non-local, eg in history list)
11886 comment title=[[Main Page]]
11888 /* External links */ removed bogus entries
11890 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11894 Edit comment with section link and text before it (non-local, eg in history list)
11896 comment title=[[Main Page]]
11898 pre-comment text /* External links */ removed bogus entries
11900 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>
11904 Edit comment with section link (local, eg in diff view)
11906 comment local title=[[Main Page]]
11908 /* External links */ removed bogus entries
11910 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11914 Edit comment with subpage link (bug 14080)
11918 title=[[Subpage test]]
11920 Poked at a [[/subpage]] here...
11922 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11926 Edit comment with subpage link and link text (bug 14080)
11930 title=[[Subpage test]]
11932 Poked at a [[/subpage|neat little page]] here...
11934 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11938 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11941 title=[[Subpage test]]
11943 Poked at a [[/subpage]] here...
11945 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11949 Edit comment with bare anchor link (local, as on diff)
11953 title=[[Main Page]]
11957 <a href="#section">#section</a>
11961 Edit comment with bare anchor link (non-local, as on history)
11964 title=[[Main Page]]
11968 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11972 Anchor starting with underscore
11976 <p><a href="#_ref">One</a>
11981 Id starting with underscore
11983 <div id="_ref"></div>
11985 <div id="_ref"></div>
11990 Space normalisation on autocomment (bug 22784)
11993 title=[[Main Page]]
11995 /* __hello__world__ */
11997 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12001 percent-encoding and + signs in comments (Bug 26410)
12005 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12007 <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>
12011 Bad images - basic functionality
12020 Bad images - bug 16039: text after bad image disappears
12034 Verify that displaytitle works (bug #22501) no displaytitle
12038 wgAllowDisplayTitle=true
12039 wgRestrictDisplayTitle=false
12041 this is not the the title
12044 <p>this is not the the title
12049 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12054 wgAllowDisplayTitle=true
12055 wgRestrictDisplayTitle=false
12057 this is not the the title
12058 {{DISPLAYTITLE:whatever}}
12061 <p>this is not the the title
12066 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12071 wgAllowDisplayTitle=true
12072 wgRestrictDisplayTitle=true
12074 this is not the the title
12075 {{DISPLAYTITLE:whatever}}
12078 <p>this is not the the title
12083 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12088 wgAllowDisplayTitle=true
12089 wgRestrictDisplayTitle=true
12091 this is not the the title
12092 {{DISPLAYTITLE:screen}}
12095 <p>this is not the the title
12100 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12105 wgAllowDisplayTitle=false
12107 this is not the the title
12108 {{DISPLAYTITLE:screen}}
12111 <p>this is not the the title
12112 <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>
12117 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12122 wgAllowDisplayTitle=false
12124 this is not the the title
12127 <p>this is not the the title
12132 preload: check <noinclude> and <includeonly>
12136 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12142 preload: check <onlyinclude>
12146 Goodbye <onlyinclude>Hello world</onlyinclude>
12152 preload: can pass tags through if we want to
12156 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12158 <includeonly>Hello world</includeonly>
12162 preload: check that it doesn't try to do tricks
12166 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12168 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12172 Play a bit with r67090 and bug 3158
12176 <div style="width:50% !important"> </div>
12177 <div style="width:50% !important"> </div>
12178 <div style="width:50% !important"> </div>
12179 <div style="border : solid;"> </div>
12181 <div style="width:50% !important"> </div>
12182 <div style="width:50% !important"> </div>
12183 <div style="width:50% !important"> </div>
12184 <div style="border : solid;"> </div>
12189 HTML5 data attributes
12191 <span data-foo="bar">Baz</span>
12192 <p data-abc-def_hij="">Quuz</p>
12194 <p><span data-foo="bar">Baz</span>
12196 <p data-abc-def_hij="">Quuz</p>
12201 percent-encoding and + signs in internal links (Bug 26410)
12203 [[User:+%]] [[Page+title%]]
12204 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12205 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12206 [[%33%45]] [[%33%45+]]
12208 <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>
12209 <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>
12210 <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>
12211 <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>
12216 Special characters in embedded file links (bug 27679)
12218 [[File:Contains & ampersand.jpg]]
12219 [[File:Does not exist.jpg|Title with & ampersand]]
12221 <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>
12222 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12228 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12230 Text's been normalized?
12232 <p>Text's been normalized?
12237 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12239 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12241 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12246 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12248 [http://www.example.org/ ideograms]
12250 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12255 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12257 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12259 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12283 Bug 31098 Template which includes system messages which includes the template
12287 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12288 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12293 Bug31490 Turkish: ucfirst 'blah'
12304 Bug31490 Turkish: ucfirst 'ix'
12315 Bug31490 Turkish: lcfirst 'BLAH'
12326 Bug31490 Turkish: ucfırst (with a dotless i)
12332 <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>
12337 Bug31490 ucfırst (with a dotless i) with English language
12343 <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>
12348 Bug 26375: TOC with italics
12350 title=[[Main Page]]
12353 == ''Lost'' episodes ==
12355 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12357 <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>
12360 <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>
12365 Bug 26375: TOC with bold
12367 title=[[Main Page]]
12370 == '''should be bold''' then normal text ==
12372 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12374 <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>
12377 <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>
12382 Bug 33845: Headings become cursive in TOC when they contain an image
12384 title=[[Main Page]]
12387 == Image [[Image:foobar.jpg]] ==
12389 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12391 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12394 <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>
12399 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12401 title=[[Main Page]]
12404 == <blockquote>Quote</blockquote> ==
12406 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12408 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12411 <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>
12416 Unclosed tags in TOC
12418 title=[[Main Page]]
12422 <small>Hanc marginis exiguitas non caperet.</small>
12425 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12427 <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>
12430 <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>
12431 <p><small>Hanc marginis exiguitas non caperet.</small>
12437 Multiple tags in TOC
12440 == <i>Foo</i> <b>Bar</b> ==
12442 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12444 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12446 <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>
12447 <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>
12450 <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>
12451 <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>
12456 Tags with parameters in TOC
12459 == <sup class="in-h2">Hello</sup> ==
12461 == <sup class="a > b">Evilbye</sup> ==
12463 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12465 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12466 <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>
12469 <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>
12470 <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>
12475 span tags with directionality in TOC
12478 == <span dir="ltr">C++</span> ==
12480 == <span dir="rtl">זבנג!</span> ==
12482 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12484 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12486 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12488 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12490 <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>
12491 <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>
12492 <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>
12493 <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>
12494 <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>
12497 <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>
12498 <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>
12499 <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>
12500 <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>
12501 <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>
12508 == {{int:headline_sample}} ==
12512 Bug 32057: Title needed when expanding <h> nodes.
12514 title=[[Main Page]]
12518 <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>
12523 Strip marker in urlencode
12525 {{urlencode:x<nowiki/>y}}
12526 {{urlencode:x<nowiki/>y|wiki}}
12527 {{urlencode:x<nowiki/>y|path}}
12554 Strip marker in formatNum
12556 {{formatnum:1<nowiki/>2}}
12557 {{formatnum:1<nowiki/>2|R}}
12565 Strip marker in grammar
12569 {{grammar:elative|foo<nowiki/>bar}}
12576 Strip marker in padleft
12578 {{padleft:|2|x<nowiki/>y}}
12585 Strip marker in padright
12587 {{padright:|2|x<nowiki/>y}}
12594 Strip marker in anchorencode
12596 {{anchorencode:x<nowiki/>y}}
12603 nowiki inside link inside heading (bug 18295)
12605 ==[[foo|x<nowiki>y</nowiki>z]]==
12607 <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>
12612 new support for bdi element (bug 31817)
12614 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12616 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12621 Ignore pipe between table row attributes
12625 |- id=foo | style='color: red'
12633 <tr id="foo" style="color: red">
12640 Gallery override link with WikiLink (bug 34852)
12643 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12646 <ul class="gallery">
12647 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12648 <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>
12649 <div class="gallerytext">
12659 Gallery override link with absolute external link (bug 34852)
12662 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12665 <ul class="gallery">
12666 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12667 <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>
12668 <div class="gallerytext">
12678 Gallery override link with malicious javascript (bug 34852)
12681 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12684 <ul class="gallery">
12685 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12686 <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>
12687 <div class="gallerytext">
12697 Gallery with invalid title as link (bug 43964)
12700 File:foobar.jpg|link=<
12703 <ul class="gallery">
12704 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12705 <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>
12706 <div class="gallerytext">
12714 Language parser function
12723 Padleft and padright as substr
12725 {{padleft:|3|abcde}}
12726 {{padright:|3|abcde}}
12734 Bug 34939 - Case insensitive link parsing ([HttP://])
12736 [HttP://MediaWiki.Org/]
12738 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12743 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12745 [HttP://MediaWiki.Org/ MediaWiki]
12747 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12752 Bug 34939 - Case insensitive link parsing (HttP://)
12754 HttP://MediaWiki.Org/
12756 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12761 ### Parsoids-specific tests
12762 ### Parsoid-PHP parser incompatibilities
12765 1. SOL-sensitive wikitext tokens as template-args
12779 #### The following section of tests are primarily to test
12780 #### wikitext escaping capabilities of Parsoid.
12781 #### A lot of the tests are disabled for the PHP parser either
12782 #### because of minor newline diffs or other reasons.
12783 #### As Parsoid serializer can handle newlines and other HTML
12784 #### more robustly, some of these tests might get reenabled
12785 #### for the PHP parser.
12787 #### --------------- Headings ---------------
12789 #### 1. Nested inside html <h1>=foo=</h1>
12790 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12791 #### 3. Nested inside html with wikitext split by html tags
12792 #### 4. No escape needed
12793 #### 5. Empty headings <h1></h1>
12794 #### 6. Heading chars in SOL context
12795 #### ----------------------------------------
12797 Headings: 0. Unnested
12799 <nowiki>=foo=</nowiki>
12801 <nowiki>=foo</nowiki>''a''=
12804 </p><p>=foo<i>a</i>=
12809 Headings: 1. Nested inside html
12813 =<nowiki>=foo=</nowiki>=
12814 ==<nowiki>=foo=</nowiki>==
12815 ===<nowiki>=foo=</nowiki>===
12816 ====<nowiki>=foo=</nowiki>====
12817 =====<nowiki>=foo=</nowiki>=====
12818 ======<nowiki>=foo=</nowiki>======
12829 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12834 <nowiki>*bar</nowiki>
12838 <nowiki>=bar=</nowiki>
12846 Headings: 3. Nested inside html with wikitext split by html tags
12850 =<nowiki>=</nowiki>'''bold'''foo==
12852 <h1>=<b>bold</b>foo=</h1>
12856 Headings: 4. No escaping needed (testing just h1 and h2)
12871 <h1><i>=</i>foo=</h1>
12876 Headings: 5. Empty headings
12880 =<nowiki></nowiki>=
12881 ==<nowiki></nowiki>==
12882 ===<nowiki></nowiki>===
12883 ====<nowiki></nowiki>====
12884 =====<nowiki></nowiki>=====
12885 ======<nowiki></nowiki>======
12896 Headings: 6. Heading chars in SOL context
12900 <!--cmt--><nowiki>=h1=</nowiki>
12906 #### --------------- Lists ---------------
12907 #### 0. Outside nests (*foo, etc.)
12908 #### 1. Nested inside html <ul><li>*foo</li></ul>
12909 #### 2. Inside definition lists
12910 #### 3. Only bullets at start should be escaped
12911 #### 4. No escapes needed
12912 #### 5. No unnecessary escapes
12913 #### 6. Escape bullets in SOL position
12914 #### 7. Escape bullets in a multi-line context
12915 #### ----------------------------------------
12918 Lists: 0. Outside nests
12920 <nowiki>*foo</nowiki>
12922 <nowiki>#foo</nowiki>
12930 Lists: 1. Nested inside html
12932 *<nowiki>*foo</nowiki>
12934 *<nowiki>#foo</nowiki>
12936 *<nowiki>:foo</nowiki>
12938 *<nowiki>;foo</nowiki>
12940 #<nowiki>*foo</nowiki>
12942 #<nowiki>#foo</nowiki>
12944 #<nowiki>:foo</nowiki>
12946 #<nowiki>;foo</nowiki>
12968 Lists: 2. Inside definition lists
12970 ;<nowiki>;foo</nowiki>
12972 ;<nowiki>:foo</nowiki>
12974 ;<nowiki>:foo</nowiki>
12977 :<nowiki>:foo</nowiki>
12992 Lists: 3. Only bullets at start of text should be escaped
12994 *<nowiki>*foo*bar</nowiki>
12996 *<nowiki>*foo</nowiki>''it''*bar
13000 <ul><li>*foo<i>it</i>*bar
13006 Lists: 4. No escapes needed
13018 <ul><li><i>foo</i>*bar
13020 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13025 Lists: 5. No unnecessary escapes
13027 * bar <span><nowiki>[[foo]]</nowiki></span>
13029 *=bar <span><nowiki>[[foo]]</nowiki></span>
13031 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13033 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13035 *=bar <span>foo]]</span>=
13037 <ul><li> bar <span>[[foo]]</span>
13039 <ul><li>=bar <span>[[foo]]</span>
13041 <ul><li>[[bar <span>[[foo]]</span>
13043 <ul><li>]]bar <span>[[foo]]</span>
13045 <ul><li>=bar <span>foo]]</span>=
13051 Lists: 6. Escape bullets in SOL position
13055 <!--cmt--><nowiki>*foo</nowiki>
13062 Lists: 7. Escape bullets in a multi-line context
13072 #### --------------- HRs ---------------
13073 #### 1. Single line
13074 #### -----------------------------------
13077 HRs: 1. Single line
13082 <nowiki>----</nowiki>
13084 <nowiki>=foo=</nowiki>
13086 <nowiki>*foo</nowiki>
13093 #### --------------- Tables ---------------
13094 #### 1a. Simple example
13095 #### 1b. No escaping needed (!foo)
13096 #### 1c. No escaping needed (|foo)
13097 #### 1d. No escaping needed (|}foo)
13099 #### 2a. Nested in td (<td>foo|bar</td>)
13100 #### 2b. Nested in td (<td>foo||bar</td>)
13101 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13103 #### 3a. Nested in th (<th>foo!bar</th>)
13104 #### 3b. Nested in th (<th>foo!!bar</th>)
13105 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13109 #### 4c. No escaping needed
13110 #### --------------------------------------
13113 Tables: 1a. Simple example
13124 Tables: 1b. No escaping needed
13133 Tables: 1c. No escaping needed
13142 Tables: 1d. No escaping needed
13151 Tables: 2a. Nested in td
13156 |<nowiki>foo|bar</nowiki>
13166 Tables: 2b. Nested in td
13171 |<nowiki>foo||bar</nowiki>
13172 |''it''<nowiki>foo||bar</nowiki>
13177 </td><td><i>it</i>foo||bar
13183 Tables: 2c. Nested in td -- no escaping needed
13198 Tables: 3a. Nested in th
13213 Tables: 3b. Nested in th
13218 !<nowiki>foo!!bar</nowiki>
13228 Tables: 3c. Nested in th -- no escaping needed
13243 Tables: 4a. Escape -
13251 |<nowiki>-bar</nowiki>
13255 <tr><th>-bar</th></tr>
13256 <tr><td>-bar</td></tr>
13261 Tables: 4b. Escape +
13269 |<nowiki>+bar</nowiki>
13273 <tr><th>+bar</th></tr>
13274 <tr><td>+bar</td></tr>
13279 Tables: 4c. No escaping needed
13293 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13294 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13299 Tables: 4d. No escaping needed
13315 #### --------------- Links ---------------
13316 #### 1. Quote marks in link text
13317 #### 2. Wikilinks: Escapes needed
13318 #### 3. Wikilinks: No escapes needed
13319 #### 4. Extlinks: Escapes needed
13320 #### 5. Extlinks: No escapes needed
13321 #### --------------------------------------
13323 Links 1. Quote marks in link text
13327 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13329 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13333 Links 2. WikiLinks: Escapes needed
13337 [[Foo|<nowiki>[Foobar]</nowiki>]]
13338 [[Foo|<nowiki>Foobar]</nowiki>]]
13339 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13340 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13341 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13342 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13343 [[Foo|<nowiki>|Bar</nowiki>]]
13345 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13346 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13347 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13348 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13349 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13350 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13351 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13355 Links 3. WikiLinks: No escapes needed
13362 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13363 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13367 Links 4. ExtLinks: Escapes needed
13371 [http://google.com <nowiki>[google]</nowiki>]
13372 [http://google.com <nowiki>google]</nowiki>]
13374 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13375 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13379 Links 5. ExtLinks: No escapes needed
13383 [http://google.com [google]
13385 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13388 #### --------------- Quotes ---------------
13389 #### 1. Quotes inside <b> and <i>
13390 #### 2. Link fragments separated by <i> and <b> tags
13391 #### 3. Link fragments inside <i> and <b>
13392 #### --------------------------------------
13394 1. Quotes inside <b> and <i>
13396 ''<nowiki>'foo'</nowiki>''
13397 ''<nowiki>''foo''</nowiki>''
13398 ''<nowiki>'''foo'''</nowiki>''
13399 '''<nowiki>'foo'</nowiki>'''
13400 '''<nowiki>''foo''</nowiki>'''
13401 '''<nowiki>'''foo'''</nowiki>'''
13402 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13410 <b>foo'<i>bar'</i>baz</b>
13415 2. Link fragments separated by <i> and <b> tags
13417 [[''foo''<nowiki>hello]]</nowiki>
13419 [['''foo'''<nowiki>hello]]</nowiki>
13421 <p>[[<i>foo</i>hello]]
13422 </p><p>[[<b>foo</b>hello]]
13427 2. Link fragments inside <i> and <b>
13428 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13429 this is one of the shortcomings of this format)
13431 ''[[foo''<nowiki>]]</nowiki>
13433 '''[[foo'''<nowiki>]]</nowiki>
13436 </p><p><b>[[foo</b>]]
13440 #### --------------- Paragraphs ---------------
13441 #### 1. No unnecessary escapes
13442 #### --------------------------------------
13445 1. No unnecessary escapes
13447 bar <span><nowiki>[[foo]]</nowiki></span>
13449 =bar <span><nowiki>[[foo]]</nowiki></span>
13451 [[bar <span><nowiki>[[foo]]</nowiki></span>
13453 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13455 <nowiki>=bar </nowiki><span>foo]]</span>=
13457 <p>bar <span>[[foo]]</span>
13458 </p><p>=bar <span>[[foo]]</span>
13459 </p><p>[[bar <span>[[foo]]</span>
13460 </p><p>]]bar <span>[[foo]]</span>
13461 </p><p>=bar <span>foo]]</span>=
13465 #### --------------- PRE ------------------
13466 #### 1. Leading space in SOL context should be escaped
13467 #### --------------------------------------
13469 1. Leading space in SOL context should be escaped
13473 <nowiki> foo</nowiki>
13474 <!--cmt--><nowiki> foo</nowiki>
13481 #### --------------- HTML tags ---------------
13484 #### 3. multi-line html tag
13485 #### --------------------------------------
13491 <a href="http://google.com">google</a>
13493 <a href="http://google.com">google</a>
13499 <nowiki><div>foo</div>
13500 <div style="color:red">foo</div></nowiki>
13502 <p><div>foo</div>
13503 <div style="color:red">foo</div>
13508 3. multi-line html tag
13520 #### --------------- Others ---------------
13524 <nowiki>foo</nowiki>
13526 <p><nowiki>foo</nowiki>
13531 Tag-like HTML structures are passed through as text
13553 </p><p>1<d e>f
13558 # This fails in the PHP parser (see bug 40670,
13559 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13561 Tag names followed by punctuation should not be recognized as tags
13567 <p><s.ome> text
13572 HTML tag with necessary entities in attributes
13574 <span title="&amp;">foo</span>
13576 <p><span title="&amp;">foo</span>
13581 HTML tag with 'unnecessary' entity encoding in attributes
13583 <span title="&">foo</span>
13585 <p><span title="&">foo</span>
13590 HTML tag with broken attribute value quoting
13592 <span title="Hello world>Foo</span>
13594 <p><span>Foo</span>
13599 Parsoid-only: HTML tag with broken attribute value quoting
13603 <span title="Hello world>Foo</span>
13605 <p><span title="Hello world">Foo</span>
13610 Table with broken attribute value quoting
13613 | title="Hello world|Foo
13624 Table with broken attribute value quoting on consecutive lines
13627 | title="Hello world|Foo
13628 | style="color:red|Bar
13641 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13646 | title="Hello world|Foo
13647 | style="color:red|Bar
13652 <td title="Hello world">Foo
13653 </td><td style="color: red;">Bar
13663 Try for 100% code coverage