1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
181 * plain''italic''plain
182 * plain''italic''plain''italic''plain
183 * plain'''bold'''plain
184 * plain'''bold'''plain'''bold'''plain
185 * plain''italic''plain'''bold'''plain
186 * plain'''bold'''plain''italic''plain
187 * plain''italic'''bold-italic'''italic''plain
188 * plain'''bold''bold-italic''bold'''plain
189 * plain'''''bold-italic'''italic''plain
190 * plain'''''bold-italic''bold'''plain
191 * plain''italic'''bold-italic'''''plain
192 * plain'''bold''bold-italic'''''plain
193 * plain l'''italic''plain
194 * plain l''''bold''' plain
197 </li><li> plain<i>italic</i>plain
198 </li><li> plain<i>italic</i>plain<i>italic</i>plain
199 </li><li> plain<b>bold</b>plain
200 </li><li> plain<b>bold</b>plain<b>bold</b>plain
201 </li><li> plain<i>italic</i>plain<b>bold</b>plain
202 </li><li> plain<b>bold</b>plain<i>italic</i>plain
203 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
204 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
205 </li><li> plain<i><b>bold-italic</b>italic</i>plain
206 </li><li> plain<b><i>bold-italic</i>bold</b>plain
207 </li><li> plain<i>italic<b>bold-italic</b></i>plain
208 </li><li> plain<b>bold<i>bold-italic</i></b>plain
209 </li><li> plain l'<i>italic</i>plain
210 </li><li> plain l'<b>bold</b> plain
216 ### 2-quote opening sequence tests
219 Italics and bold: 2-quote opening sequence: (2,2)
229 Italics and bold: 2-quote opening sequence: (2,3)
239 Italics and bold: 2-quote opening sequence: (2,4)
249 Italics and bold: 2-quote opening sequence: (2,5)
259 ### 3-quote opening sequence tests
263 Italics and bold: 3-quote opening sequence: (3,2)
273 Italics and bold: 3-quote opening sequence: (3,3)
283 Italics and bold: 3-quote opening sequence: (3,4)
293 Italics and bold: 3-quote opening sequence: (3,5)
303 ### 4-quote opening sequence tests
307 Italics and bold: 4-quote opening sequence: (4,2)
317 Italics and bold: 4-quote opening sequence: (4,3)
327 Italics and bold: 4-quote opening sequence: (4,4)
337 Italics and bold: 4-quote opening sequence: (4,5)
347 ### 5-quote opening sequence tests
351 Italics and bold: 5-quote opening sequence: (5,2)
361 Italics and bold: 5-quote opening sequence: (5,3)
371 Italics and bold: 5-quote opening sequence: (5,4)
375 <p><i><b>foo'</b></i>
381 Italics and bold: 5-quote opening sequence: (5,5)
390 ### multiple quote sequences in a line
393 Italics and bold: multiple quote sequences: (2,4,2)
397 <p><i>foo'<b>bar</b></i>
403 Italics and bold: multiple quote sequences: (2,4,3)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,4)
417 <p><i>foo'<b>bar'</b></i>
423 Italics and bold: multiple quote sequences: (3,4,2)
433 Italics and bold: multiple quote sequences: (3,4,3)
442 ### other quote tests
445 Italics and bold: other quote tests: (2,3,5)
447 ''this is about '''foo's family'''''
449 <p><i>this is about <b>foo's family</b></i>
455 Italics and bold: other quote tests: (2,(3,3),2)
457 ''this is about '''foo's''' family''
459 <p><i>this is about <b>foo's</b> family</i>
465 Italics and bold: other quote tests: (3,2,3,2)
467 '''this is about ''foo'''s family''
469 <p><b>this is about <i>foo</i></b><i>s family</i>
475 Italics and bold: other quote tests: (3,2,3,3)
477 '''this is about ''foo'''s family'''
479 <p>'<i>this is about </i>foo<b>s family</b>
486 Italics and bold: other quote tests: (3,(2,2),3)
488 '''this is about ''foo's'' family'''
490 <p><b>this is about <i>foo's</i> family</b>
495 ### <nowiki> test cases
499 <nowiki> unordered list
501 <nowiki>* This is not an unordered list item.</nowiki>
503 <p>* This is not an unordered list item.
510 <nowiki>Lorem ipsum dolor
531 :There is not nowiki.
532 :There is <nowiki>nowiki</nowiki>.
534 #There is not nowiki.
535 #There is <nowiki>nowiki</nowiki>.
537 *There is not nowiki.
538 *There is <nowiki>nowiki</nowiki>.
540 <dl><dd>There is not nowiki.
541 </dd><dd>There is nowiki.
543 <ol><li>There is not nowiki.
544 </li><li>There is nowiki.
546 <ul><li>There is not nowiki.
547 </li><li>There is nowiki.
557 Comments and Indent-Pre
559 <!-- comment 1 --> asdf
561 <!-- comment 1 --> asdf
564 <!-- comment 1 --> asdf
565 <!-- comment 2 -->xyz
567 <!-- comment 1 --> asdf
568 <!-- comment 2 --> xyz
624 asdf<!-- comment 1 -->jkl
634 <!-- foo --> b <!-- bar -->
648 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
654 Comment semantics and delimiters
656 <!-- --><!----><!-----><!------>
662 Comment semantics and delimiters, redux
664 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
665 -- foo -- funky huh? ... -->
671 Comment semantics and delimiters: directors cut
673 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
674 everything starting with < followed by !-- until the first -- and > we see,
675 that wouldn't be valid XML however, since in XML -- has to terminate a comment
683 Comment semantics: nesting
685 <!--<!-- no, we're not going to do anything fancy here -->-->
692 Comment semantics: unclosed comment at end
694 <!--This comment will run out to the end of the document
700 Comment in template title
709 Comment on its own line post-expand
721 Comment on its own line post-expand with non-significant whitespace
733 ### paragraph wraping tests
747 Block tag on one line
759 Block tag on both lines
771 Multiple lines without block tags
789 Empty lines between block tags to test open p-tags are closed between the block tags
807 ### Preformatted text
816 And a [[Main Page|link]]
822 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
827 Ident preformatting with inline content
838 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
855 Regression with preformatted in <center>
868 # Expected output in the following test is not really expected (there should be
869 # <pre> in the output) -- it's only testing for well-formedness.
871 Bug 6200: Preformatted in <blockquote>
884 <pre> with attributes (bug 3202)
886 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
888 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
893 <pre> with width attribute (bug 3202)
895 <pre width="8">Narrow screen goodies</pre>
897 <pre width="8">Narrow screen goodies</pre>
902 <pre> with forbidden attribute (bug 3202)
904 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
906 <pre width="8">Narrow screen goodies</pre>
911 <pre> with forbidden attribute values (bug 3202)
913 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
915 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
920 <nowiki> inside <pre> (bug 13238)
928 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
936 <pre><nowiki>Foo</nowiki></pre>
941 <nowiki> and <pre> preference (first one wins)
974 <nowiki></pre></nowiki>
981 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
989 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
999 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1011 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1032 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1036 {{echo| foo}}{{echo| bar}}
1041 {{echo|<!--cmt--> foo}}
1043 <!--cmt-->{{echo| foo}}
1045 {{echo|{{echo| }}bar}}
1063 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1100 Templates: Single-line variant of parameter whitespace stripping test
1106 {{echo|{{echo| a}}}}
1108 {{echo|1={{echo| a}}}}
1121 Templates: Strip whitespace from named parameters, but not positional ones
1149 ### Parsoid-centric tests for testing RT edge cases for pre
1153 1a. Indent-Pre and Comments
1166 1b. Indent-Pre and Comments
1179 1c. Indent-Pre and Comments
1192 2a. Indent-Pre and tables
1213 2b. Indent-Pre and tables
1229 2c. Indent-Pre and tables (bug 42252)
1246 3a. Indent-Pre and block tags (single-line html)
1254 <pre><span> foo </span>
1259 3b. Indent-Pre and block tags (pre-content on separate line)
1311 4. Multiple spaces at start-of-line
1330 5. White-space in indent-pre
1331 NOTE: the white-space char on 2nd line is significant
1344 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1348 HTML-pre: 1. embedded newlines
1384 HTML-pre: 2: indented text
1397 HTML-pre: 3: other wikitext
1418 ### Definition lists
1425 <dl><dt> name </dt><dd> Definition
1431 Definition list for indentation only
1435 <dl><dd> Indented text
1441 Definition list with no space
1445 <dl><dt>name</dt><dd>Definition
1451 Definition list with URL link
1453 ; http://example.com/ : definition
1455 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1461 Definition list with bracketed URL link
1463 ;[http://www.example.com/ Example]:Something about it
1465 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1471 Definition list with wikilink containing colon
1473 ; [[Help:FAQ]]: The least-read page on Wikipedia
1475 <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
1480 # At Brion's and JeLuF's insistence... :)
1482 Definition list with news link containing colon
1484 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1486 <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!
1492 Malformed definition list with colon
1494 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1496 <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
1502 Definition lists: colon in external link text
1504 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1506 <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
1512 Definition lists: colon in HTML attribute
1514 ;<b style="display: inline">bold</b>
1516 <dl><dt><b style="display: inline">bold</b>
1522 Definition lists: self-closed tag
1524 ;one<br/>two : two-line fun
1526 <dl><dt>one<br />two </dt><dd> two-line fun
1532 Bug 11748: Literal closing tags
1536 <dd>test test test test test</dd>
1538 <dd>test test test test test</dd>
1543 <dd>test test test test test</dd>
1545 <dd>test test test test test</dd>
1551 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1554 ; term : description
1560 <dl><dt> term </dt><dd> description
1571 Definition list with empty definition and following paragraph
1576 <dl><dt> term</dt><dd>
1583 Nested definition lists using html syntax
1600 Definition Lists: No nesting: Multiple dd's
1614 Definition Lists: Indentation: Regular
1630 Definition Lists: Indentation: Missing 1st level
1644 Definition Lists: Indentation: Multi-level indent
1648 <dl><dd><dl><dd><dl><dd>i3
1656 Definition Lists: Hacky use to indent tables
1663 should be left alone
1665 <dl><dd><dl><dd><table>
1670 </td></tr></table></dd></dl></dd></dl>
1672 should be left alone
1675 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1676 ## as an empty dt item. It also ignores all but the last ";" when followed
1677 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1678 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1681 ## Ex: ";;t2 ::d2" is transformed into:
1693 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1694 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1705 ## All Parsoid only definition list tests have this difference.
1707 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1708 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1711 Table / list interaction: indented table with lists in table contents
1733 </td></tr></table></dd></dl>
1738 Table / list interaction: lists nested in tables nested in indented lists
1763 </td></tr></table></dd></dl>
1771 Definition Lists: Nesting: Multi-level (Parsoid only)
1801 Definition Lists: Nesting: Test 2 (Parsoid only)
1821 Definition Lists: Nesting: Test 3 (Parsoid only)
1849 Definition Lists: Nesting: Test 4
1854 <dl><dd><dl><dd><dl><dt>t3
1864 Definition Lists: Mixed Lists: Test 1
1870 <dl><dd><dl><dt><ul><li> foo
1882 Definition Lists: Mixed Lists: Test 2
1896 Definition Lists: Mixed Lists: Test 3
1901 <ul><li><dl><dd><dl><dd><dl><dd> d1
1912 Definition Lists: Mixed Lists: Test 4
1917 <ul><li><dl><dt>d1 </dt><dd>d2
1918 </dd><dt>d3 </dt><dd>d4
1926 Definition Lists: Mixed Lists: Test 5
1941 Definition Lists: Mixed Lists: Test 6
1946 <ol><li><ul><li><dl><dd>d1
1958 Definition Lists: Mixed Lists: Test 7
1972 Definition Lists: Mixed Lists: Test 8
1988 Definition Lists: Mixed Lists: Test 9
1992 <ul><li><dl><dt>foo </dt><dd>bar
2000 Definition Lists: Mixed Lists: Test 10
2004 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2013 Definition Lists: Mixed Lists: Test 11
2018 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2023 <dl><dt>boo </dt><dd>baz
2034 Definition Lists: Weird Ones: Test 1
2036 *#;*::;; foo : bar (who uses this?)
2038 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2054 External links: non-bracketed
2056 Non-bracketed: http://example.com
2058 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2063 External links: numbered
2065 Numbered: [http://example.com]
2066 Numbered: [http://example.net]
2067 Numbered: [http://example.com]
2069 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2070 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2071 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2076 External links: specified text
2078 Specified text: [http://example.com link]
2080 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2085 External links: trail
2087 Linktrails should not work for external links: [http://example.com link]s
2089 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2094 External links: dollar sign in URL
2096 http://example.com/1$2345
2098 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2103 External links: dollar sign in URL (named)
2105 [http://example.com/1$2345]
2107 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2112 External links: open square bracket forbidden in URL (bug 4377)
2114 http://example.com/1[2345
2116 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2121 External links: open square bracket forbidden in URL (named) (bug 4377)
2123 [http://example.com/1[2345]
2125 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2130 External links: nowiki in URL link text (bug 6230)
2132 [http://example.com/ <nowiki>''example site''</nowiki>]
2134 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2139 External links: newline forbidden in text (bug 6230 regression check)
2141 [http://example.com/ first
2144 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2150 External links: Pipe char between url and text
2152 [http://example.com | link]
2154 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2159 External links: protocol-relative URL in brackets
2161 [//example.com/ Test]
2163 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2168 External links: protocol-relative URL in brackets without text
2172 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2177 External links: protocol-relative URL in free text is left alone
2181 <p>//example.com/Foo
2186 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2188 foo//example.com/Foo
2190 <p>foo//example.com/Foo
2197 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2199 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2204 External image from https
2206 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2208 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2213 Link to non-http image, no img tag
2215 Link to non-http image, no img tag: ftp://example.com/test.jpg
2217 <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>
2222 External links: terminating separator
2224 Terminating separator: http://example.com/thing,
2226 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2231 External links: intervening separator
2233 Intervening separator: http://example.com/1,2,3
2235 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2240 External links: old bug with URL in query
2242 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2244 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2249 External links: old URL-in-URL bug, mixed protocols
2251 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2253 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2258 External links: URL in text
2260 URL in text: [http://example.com http://example.com]
2262 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2267 External links: Clickable images
2269 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2271 <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>
2276 External links: raw ampersand
2278 Old & use: http://x&y
2280 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2285 External links: encoded ampersand
2287 Old & use: http://x&y
2289 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2294 External links: encoded equals (bug 6102)
2296 http://example.com/?foo=bar
2298 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2303 External links: [raw ampersand]
2305 Old & use: [http://x&y]
2307 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2312 External links: [encoded ampersand]
2314 Old & use: [http://x&y]
2316 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2321 External links: [encoded equals] (bug 6102)
2323 [http://example.com/?foo=bar]
2325 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2330 External links: [IDN ignored character reference in hostname; strip it right off]
2332 [http://e‌xample.com/]
2334 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2338 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2339 # Where an external link could easily circumvent the sanitization of the text of
2340 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2341 # test demands a higher standard. That's a bit strange.
2345 # http://example.com -> [http://example.com|http://example.com]
2346 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2348 # The first example is sanitized, but the second is not. Any security benefits
2349 # from this production are trivial to circumvent. Either remove this test and
2350 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2351 # the test accordingly.
2356 External links: IDN ignored character reference in hostname; strip it right off
2358 http://e‌xample.com/
2360 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2365 External links: www.jpeg.org (bug 554)
2369 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2374 External links: URL within URL (original bug 2)
2376 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2378 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2383 BUG 361: URL inside bracketed URL
2385 [http://www.example.com/foo http://www.example.com/bar]
2387 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2392 BUG 361: URL within URL, not bracketed
2394 http://www.example.com/foo?=http://www.example.com/bar
2396 <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>
2401 BUG 289: ">"-token in URL-tail
2403 http://www.example.com/<hello>
2405 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2410 BUG 289: literal ">"-token in URL-tail
2412 http://www.example.com/<b>html</b>
2414 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2419 BUG 289: ">"-token in bracketed URL
2421 [http://www.example.com/<hello> stuff]
2423 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2428 BUG 289: literal ">"-token in bracketed URL
2430 [http://www.example.com/<b>html</b> stuff]
2432 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2437 BUG 289: literal double quote at end of URL
2439 http://www.example.com/"hello"
2441 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2446 BUG 289: literal double quote in bracketed URL
2448 [http://www.example.com/"hello" stuff]
2450 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2455 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2457 [http://www.example.com test]
2459 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2464 External links: wiki links within external link (Bug 3695)
2466 [http://example.com [[wikilink]] embedded in ext link]
2468 <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>
2473 BUG 787: Links with one slash after the url protocol are invalid
2477 [http:/example.com title]
2479 <p>http:/example.com
2480 </p><p>[http:/example.com title]
2485 Bracketed external links with template-generated invalid target
2487 [{{echo|http:/example.com}} title]
2489 <p>[http:/example.com title]
2494 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2496 ''[http://example.com text'']
2497 [http://example.com '''text]'''
2498 ''Something [http://example.com in italic'']
2499 ''Something [http://example.com mixed''''', even bold]'''
2500 '''''Now [http://example.com both''''']
2502 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2503 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2504 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2505 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2506 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2512 Bug 4781: %26 in URL
2514 http://www.example.com/?title=AT%26T
2516 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2520 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2521 # % is actually legal in HTML5. Any change in output would need testing though.
2523 Bug 4781, 5267: %25 in URL
2525 http://www.example.com/?title=100%25_Bran
2527 <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>
2532 Bug 4781, 5267: %28, %29 in URL
2534 http://www.example.com/?title=Ben-Hur_%281959_film%29
2536 <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>
2542 Bug 4781: %26 in autonumber URL
2544 [http://www.example.com/?title=AT%26T]
2546 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2551 Bug 4781, 5267: %26 in autonumber URL
2553 [http://www.example.com/?title=100%25_Bran]
2555 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2560 Bug 4781, 5267: %28, %29 in autonumber URL
2562 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2564 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2570 Bug 4781: %26 in bracketed URL
2572 [http://www.example.com/?title=AT%26T link]
2574 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2579 Bug 4781, 5267: %26 in bracketed URL
2581 [http://www.example.com/?title=100%25_Bran link]
2583 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2588 Bug 4781, 5267: %28, %29 in bracketed URL
2590 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2592 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2597 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2599 Some [http://example.com/ pretty ''italics'' and stuff]!
2601 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2606 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2608 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2610 <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>
2615 External link containing double-single-quotes with no space separating the url from text in italics
2617 [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]].]
2619 <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>
2624 URL-encoding in URL functions (single parameter)
2626 {{localurl:Some page|amp=&}}
2628 <p>/index.php?title=Some_page&amp=&
2633 URL-encoding in URL functions (multiple parameters)
2635 {{localurl:Some page|q=?&=&}}
2637 <p>/index.php?title=Some_page&q=?&amp=&
2644 http://example.com/index.php?foozoid%5B%5D=bar
2646 http://example.com/index.php?foozoid[]=bar
2648 <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>
2649 </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>
2654 IPv6 urls (bug 21261)
2658 http://[2404:130:0:1000::187:2]/index.php
2660 <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>
2665 Non-extlinks in brackets
2674 [{{echo|foo}} ''bar'']
2675 [{{echo|foo}}l's] errand
2676 [{{echo|foo}}l's errand]
2698 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2700 Normal text. '''''Bold italic text.''''' Normal text.
2702 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2703 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2709 Unclosed and unmatched quotes
2711 '''''Bold italic text '''with bold deactivated''' in between.'''''
2713 '''''Bold italic text ''with italic deactivated'' in between.'''''
2717 ..spanning two paragraphs (should not work).'''
2719 '''Bold tag left open
2721 ''Italic tag left open
2725 <!-- Unmatching number of opening, closing tags: -->
2726 '''This year''''s election ''should'' beat '''last year''''s.
2728 ''Tom'''s car is bigger than ''Susan'''s.
2730 Plain ''italic'''s plain
2732 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2733 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2734 </p><p><b>Bold text..</b>
2735 </p><p>..spanning two paragraphs (should not work).
2736 </p><p><b>Bold tag left open</b>
2737 </p><p><i>Italic tag left open</i>
2739 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2740 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2741 </p><p>Plain <i>italic'</i>s plain
2748 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2751 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2752 # is the bare minimun required by the spec, see:
2753 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2755 A table with no data.
2761 # A table with nothing but a caption is invalid XHTML, we might want to render
2762 # this as <p>caption</p>
2764 A table with nothing but a caption
2772 </caption><tr><td></td></tr></table>
2777 A table with caption with default-spaced attributes and a table row
2780 |+ style="color: red;" | caption1
2786 <caption style="color: red;"> caption1
2795 A table with captions with non-default spaced attributes and a table row
2798 |+style="color: red;"|caption2
2799 |+ style="color: red;"| caption3
2805 <caption style="color: red;">caption2
2807 <caption style="color: red;"> caption3
2816 Table td-cell syntax variations
2820 | foo bar foo || baz
2821 | style='color:red;' | baz
2822 | style='color:red;' || baz
2829 <td> foo bar foo </td>
2832 <td style="color:red;"> baz
2834 <td> style='color:red;' </td>
2862 Simple table but with multiple dashes for row wikitext
2880 Multiplication table
2882 {| border="1" cellpadding="2"
2883 |+Multiplication table
2885 ! × !! 1 !! 2 !! 3
2903 <table border="1" cellpadding="2">
2904 <caption>Multiplication table
2951 Accept "||" in table headings
2966 Accept "||" in indented table headings
2976 </th></tr></table></dd></dl>
2981 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2998 Accept "| !" at start of line in tables (ignore !-attribute)
3002 | !style="color:red" | bar
3014 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 +/-
3018 |style='color:red;'|+1
3019 |style='color:blue;'|-1
3031 <td style="color:red;">+1
3033 <td style="color:blue;">-1
3057 |rowspan=2| Cell 2, row 1 (and 2)
3068 <td rowspan="2"> Cell 2, row 1 (and 2)
3086 {| bgcolor=#ABCDEF border=2
3091 |the original table again
3099 <table bgcolor="#ABCDEF" border="2">
3107 <td>the original table again
3113 Invalid attributes in table cell (bug 1830)
3128 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3131 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3135 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3136 <td>]" onmouseover="alert(document.cookie)">test
3145 Indented table markup mixed with indented pre content (proposed in bug 6200)
3150 Text that should be rendered preformatted
3158 <pre>Text that should be rendered preformatted
3167 Template-generated table cell attributes and cell content
3175 <td style="color: red"> Foo
3181 Table with row followed by newlines and table heading
3198 # FIXME: Preserve the attribute properly (with an empty string as value) in
3199 # the PHP parser. Parsoid implements the behavior below.
3201 Table attributes with empty value
3217 Wikitext table with a lot of comments
3243 Plain link, capitalized
3247 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3252 Plain link, uncapitalized
3256 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3263 [[Main Page|The Main Page]]
3265 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3274 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3279 Broken link with fragment
3281 [[Zigzagzogzagzig#zug]]
3283 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3288 Special page link with fragment
3290 [[Special:Version#anchor]]
3292 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3297 Nonexistent special page link with fragment
3299 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3301 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3308 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3310 <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>
3317 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3319 <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>!!!
3330 Bug 43661: Piped links with identical prefixes
3332 [[prefixed article|prefixed articles with spaces]]
3334 [[prefixed article|prefixed articlesaoeu]]
3336 [[Main Page|Main Page test]]
3338 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3339 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3340 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3346 Link with HTML entity in suffix / tail
3348 [[Main Page]]", [[Main Page]]a
3350 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3355 Link with 3 brackets
3364 Piped link with 3 brackets
3366 [[[main page|the main page]]]
3368 <p>[[[main page|the main page]]]
3373 Link with multiple pipes
3375 [[Main Page|The|Main|Page]]
3377 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3384 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3386 <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>
3391 Piped link to namespace
3393 [[Meta:Disclaimers|The disclaimers]]
3395 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3402 [[Usually caused by a typo (oops}]]
3404 <p>[[Usually caused by a typo (oops}]]
3409 Link containing % (not as a hex sequence)
3413 <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>
3418 Link containing % as a single hex sequence interpreted to char
3422 <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>
3427 Link containing % as a double hex sequence interpreted to hex sequence
3431 <p>[[7%2525 Solution]]
3436 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3437 Example for such a section: == < ==
3439 [[%23%3c]][[%23%3e]]
3441 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3446 Link containing "<#" and ">#" as a hex sequences
3448 [[%3c%23]][[%3e%23]]
3450 <p>[[%3c%23]][[%3e%23]]
3455 Link containing double-single-quotes '' (bug 4598)
3457 [[Lista d''e paise d''o munno]]
3459 <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>
3464 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3466 Some [[Link|pretty ''italics'' and stuff]]!
3468 <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>!
3473 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3475 ''Some [[Link|pretty ''italics'' and stuff]]!
3477 <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>
3482 Link with double quotes in title part (literal) and alternate part (interpreted)
3484 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3488 [[''Pentecoste''|Pentecoste]]
3490 [[''Pentecoste''|''Pentecoste'']]
3492 <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>
3493 </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>
3494 </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>
3495 </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>
3500 Broken image links with HTML captions (bug 39700)
3502 [[File:Nonexistent|<script></script>]]
3503 [[File:Nonexistent|100px|<script></script>]]
3504 [[File:Nonexistent|<]]
3505 [[File:Nonexistent|a<i>b</i>c]]
3507 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3508 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3509 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3510 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3517 [[http://www.example.com]]
3519 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3524 Plain link to URL with link text
3526 [[http://www.example.com Link text]]
3528 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3533 Plain link to protocol-relative URL
3535 [[//www.example.com]]
3537 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3542 Plain link to protocol-relative URL with link text
3544 [[//www.example.com Link text]]
3546 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3551 Plain link to page with question mark in title
3557 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3558 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3563 # I'm fairly sure the expected result here is wrong.
3564 # We want these to be URL links, not pseudo-pages with URLs for titles....
3565 # However the current output is also pretty screwy.
3568 # I'm changing it to match the current output--it arguably makes more
3569 # sense in the light of the test above. Old expected result was:
3570 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3572 # But I think this test is bordering on "garbage in, garbage out" anyway.
3577 Piped link to URL: [[http://www.example.com|an example URL]]
3579 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3584 BUG 2: [[page|http://url/]] should link to page, not http://url/
3586 [[Main Page|http://url/]]
3588 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3593 BUG 337: Escaped self-links should be bold
3597 [[Bug462]] [[Bug462]]
3599 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3604 Self-link to section should not be bold
3608 [[Main Page#section]]
3610 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3621 Self-link to numeric title
3627 <p><strong class="selflink">0</strong>
3632 Link to numeric-equivalent title
3638 <p><a href="/wiki/00" title="00">00</a>
3643 <nowiki> inside a link
3645 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3647 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3652 Non-breaking spaces in title
3654 [[ Main Page ]]
3656 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3661 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3667 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3672 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3678 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3683 Internal link with en linktrail: no apostrophes (bug 27473)
3689 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3694 Internal link with ca linktrail with apostrophes (bug 27473)
3700 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3705 Internal link with kaa linktrail with apostrophes (bug 27473)
3711 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3716 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3724 [http://wp.org ''foo'']
3726 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3727 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3728 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3729 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3734 ### Interwiki links (see maintenance/interwiki.sql)
3738 Inline interwiki link
3740 [[MeatBall:SoftSecurity]]
3742 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3747 Inline interwiki link with empty title (bug 2372)
3751 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3756 Interwiki link encoding conversion (bug 1636)
3758 *[[Wikipedia:ro:Olteniţa]]
3759 *[[Wikipedia:ro:Olteniţa]]
3761 <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>
3762 </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>
3768 Interwiki link with fragment (bug 2130)
3770 [[MeatBall:SoftSecurity#foo]]
3772 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3787 Double interlanguage link
3798 Interlanguage link, with prefix links
3810 Double interlanguage link, with prefix links (bug 8897)
3823 Parsoid-specific test: Wikilinks with should RT properly
3829 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3847 Broken br tag sanitization
3856 Incorrecly removing closing slashes from correctly formed XHTML
3858 <br style="clear:both;" />
3860 <p><br style="clear:both;" />
3865 Failing to transform badly formed HTML into correct XHTML
3867 <br style="clear: left;">
3868 <br style="clear: right;">
3869 <br style="clear: both;">
3871 <p><br style="clear: left;" />
3872 <br style="clear: right;" />
3873 <br style="clear: both;" />
3878 Handling html with a div self-closing tag
3887 <p><div title />
3891 <p><div title=bar />
3892 <div title=bar/>
3894 <div title="bar/"></div>
3900 Handling html with a br self-closing tag
3909 <p><br title="title" />
3910 <br title="title" />
3919 Horizontal ruler (should it add that extra space?)
3933 Horizontal ruler -- 4+ dashes render hr
3942 Horizontal ruler -- eats additional dashes on the same line
3951 Horizontal ruler -- does not collaps dashes on consecutive lines
3962 Horizontal ruler -- <4 dashes render as plain text
3971 Horizontal ruler -- Supports content following dashes on same line
3980 ### Block-level elements
4003 <ol><li>Numbered list
4020 ***#Number on level 4
4022 **#Number on level 3
4023 **#Number on level 3
4027 #** Level 3, but ordered
4030 <ol><li> with numbers
4032 <ul><li> and bullets
4034 <ol><li> and numbers
4036 </li><li>bullets again
4037 <ul><li>bullet level 2
4038 <ul><li>bullet level 3
4039 <ol><li>Number on level 4
4042 </li><li>bullet level 2
4043 <ol><li>Number on level 3
4044 </li><li>Number on level 3
4047 <ol><li>number level 2
4050 <ul><li><ul><li> Level 3
4054 <ol><li><ul><li><ul><li> Level 3, but ordered
4088 Nested lists 3 (first element empty)
4101 Nested lists 4 (first element empty)
4114 Nested lists 5 (both elements empty)
4127 Nested lists 6 (both elements empty)
4140 Nested lists 7 (skip initial nesting levels)
4144 <ul><li><ul><li><ul><li> foo
4152 Nested lists 8 (multiple nesting transitions)
4160 <ul><li><ul><li> bar
4170 1. Lists with start-of-line-transparent tokens before bullets: Comments
4184 2. Lists with start-of-line-transparent tokens before bullets: Template close
4196 Unbalanced closing block tags break a list
4197 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4207 </li></ul></div><div>
4213 Unbalanced closing non-block tags don't break a list
4214 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4224 <ul><li>a<span></span>
4230 Unclosed formatting tags that straddle lists are closed and reopened
4231 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4239 </li><li> <s> b </s>
4244 List items are not parsed correctly following a <pre> block (bug 785)
4250 <ul><li> <pre>foo</pre>
4251 </li><li> <pre>bar</pre>
4258 List items from template
4269 * notSOL{{inner list}}
4288 List interrupted by empty line or heading
4298 <ul><li><ul><li> bar
4301 <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>
4302 <ul><li> Another list item
4308 Multiple list tags generated by templates
4327 Magic Word: {{CURRENTDAY}}
4336 Magic Word: {{CURRENTDAY2}}
4345 Magic Word: {{CURRENTDAYNAME}}
4354 Magic Word: {{CURRENTDOW}}
4363 Magic Word: {{CURRENTMONTH}}
4372 Magic Word: {{CURRENTMONTHABBREV}}
4374 {{CURRENTMONTHABBREV}}
4381 Magic Word: {{CURRENTMONTHNAME}}
4383 {{CURRENTMONTHNAME}}
4390 Magic Word: {{CURRENTMONTHNAMEGEN}}
4392 {{CURRENTMONTHNAMEGEN}}
4399 Magic Word: {{CURRENTTIME}}
4408 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4417 Magic Word: {{CURRENTYEAR}}
4426 Magic Word: {{FULLPAGENAME}}
4428 title=[[User:Ævar Arnfjörð Bjarmason]]
4432 <p>User:Ævar Arnfjörð Bjarmason
4437 Magic Word: {{FULLPAGENAMEE}}
4439 title=[[User:Ævar Arnfjörð Bjarmason]]
4443 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4448 Magic Word: {{NAMESPACE}}
4450 title=[[User:Ævar Arnfjörð Bjarmason]]
4459 Magic Word: {{NAMESPACEE}}
4461 title=[[User:Ævar Arnfjörð Bjarmason]]
4470 Magic Word: {{NAMESPACENUMBER}}
4472 title=[[User:Ævar Arnfjörð Bjarmason]]
4481 Magic Word: {{NUMBEROFFILES}}
4490 Magic Word: {{PAGENAME}}
4492 title=[[User:Ævar Arnfjörð Bjarmason]]
4496 <p>Ævar Arnfjörð Bjarmason
4501 Magic Word: {{PAGENAME}} with metacharacters
4503 title=[['foo & bar = baz']]
4507 <p><i>'foo & bar = baz'</i>
4512 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4514 title=[[*RFC 1234 http://example.com/]]
4518 <p>*RFC 1234 http://example.com/
4523 Magic Word: {{PAGENAMEE}}
4525 title=[[User:Ævar Arnfjörð Bjarmason]]
4529 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4534 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4536 title=[[*RFC 1234 http://example.com/]]
4540 <p>*RFC_1234_http://example.com/
4545 Magic Word: {{REVISIONID}}
4554 Magic Word: {{SCRIPTPATH}}
4563 Magic Word: {{SERVER}}
4567 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4572 Magic Word: {{SERVERNAME}}
4581 Magic Word: {{SITENAME}}
4590 Namespace 1 {{ns:1}}
4599 Namespace 1 {{ns:01}}
4608 Namespace 0 {{ns:0}} (bug 4783)
4616 Namespace 0 {{ns:00}} (bug 4783)
4624 Namespace -1 {{ns:-1}}
4633 Namespace User {{ns:User}}
4642 Namespace User talk {{ns:User_talk}}
4651 Namespace User talk {{ns:uSeR tAlK}}
4660 Namespace File {{ns:File}}
4669 Namespace File {{ns:Image}}
4678 Namespace (lang=de) Benutzer {{ns:User}}
4689 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4695 <p>Benutzer Diskussion
4703 {{urlencode:hi world?!}}
4704 {{urlencode:hi world?!|WIKI}}
4705 {{urlencode:hi world?!|PATH}}
4706 {{urlencode:hi world?!|QUERY}}
4719 Magic links: internal link to RFC (bug 479)
4723 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4728 Magic links: RFC (bug 479)
4732 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4737 Magic links: ISBN (bug 1937)
4741 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4746 Magic links: PMID incorrectly converts space to underscore
4750 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4759 Nonexistent template
4761 {{thistemplatedoesnotexist}}
4763 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4768 Template with invalid target containing tags
4770 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4772 <p>{{a<b>b</b>|foo|a=b|a = b}}
4777 Template with invalid target containing unclosed tag
4779 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4781 <p>{{a<b>|foo|a=b|a = b}}</b>
4788 This is a test template
4796 <p>This is a test template
4801 Template with explicit namespace
4805 <p>This is a test template
4813 This is a test template with parameter {{{param}}}
4819 {{paramtest|param=foo}}
4821 <p>This is a test template with parameter foo
4826 Template:paramtestnum
4832 Template unnamed parameter
4834 {{paramtestnum|Main Page|the main page}}
4836 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4841 Template:templatesimple
4847 Template:templateredirect
4849 #redirect [[Template:templatesimple]]
4853 Template:templateasargtestnum
4859 Template:templateasargtest
4861 {{template{{{templ}}}}}
4865 Template:templateasargtest2
4871 Template with template name as unnamed argument
4873 {{templateasargtestnum|templatesimple}}
4880 Template with template name as argument
4882 {{templateasargtest|templ=simple}}
4889 Template with template name as argument (2)
4891 {{templateasargtest2|templ=templatesimple}}
4898 Template:templateasargtestdefault
4900 {{{{{templ|templatesimple}}}}}
4910 Template with default value
4912 {{templateasargtestdefault}}
4919 Template with default value (value set)
4921 {{templateasargtestdefault|templ=templa}}
4930 {{templateredirect}}
4937 Template with argument in separate line
4939 {{ templateasargtest |
4947 Template with complex template as argument
4950 param ={{ templateasargtest |
4953 <p>This is a test template with parameter (test)
4958 Template with thumb image (with link in description)
4961 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4963 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>
4968 Template:complextemplate
4970 {{{1}}} {{paramtest|
4971 param ={{{param}}}}}
4975 Template with complex arguments
4978 param ={{ templateasargtest |
4979 templ = simple }}|[[Template:complextemplate|link]]}}
4981 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4986 BUG 553: link with two variables in a piped link
4989 |[[{{{1}}}|{{{2}}}]]
4994 <td>[[{{{1}}}|{{{2}}}]]
5000 Magic variable as template parameter
5002 {{paramtest|param={{SITENAME}}}}
5004 <p>This is a test template with parameter MediaWiki
5011 [[{{{param}}}|link]]
5015 Template parameter as link source
5017 {{linktest|param=Main Page}}
5019 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5024 Template-generated attribute string (k='v')
5026 <span {{attr_str|id|v1}}>bar</span>
5028 <p><span id="v1">bar</span>
5035 including another template, {{paramtest|param={{{arg}}}}}
5039 Template passing argument to another template
5041 {{paramtest2|arg='hmm'}}
5043 <p>including another template, This is a test template with parameter 'hmm'
5054 Template as link source
5058 [[{{linktest2}}|Main Page]]
5060 [[{{linktest2}}]]Page
5062 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5063 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5064 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5082 Template infinite loop
5086 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5091 Template from main namespace
5110 BUG 529: Template with table, not included at beginning of line
5129 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5149 BUG 41: Template parameters shown as broken links
5158 Template with targets containing wikilinks
5162 {{[[{{echo|foo}}]]}}
5164 {{{{echo|[[foo}}]]}}
5166 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5167 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5175 ''None'' of '''this''' should be
5177 but rather passed unmodified
5181 # hmm, fix this or just deprecate msgnw and document its behavior?
5187 {{msgnw:MSGNW test}}
5189 <p>''None'' of '''this''' should be
5191 but rather passed unmodified
5199 {{int:youhavenewmessages|lots of money|not!}}
5201 <p>You have lots of money (not!).
5208 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5212 <includeonly> and <noinclude> being included
5223 <onlyinclude>Foo</onlyinclude>bar
5227 <onlyinclude> being included
5239 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5243 <onlyinclude> and <includeonly> being included
5252 <includeonly> and <noinclude> on a page
5254 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5261 Un-closed <noinclude>
5268 <onlyinclude> on a page
5270 <onlyinclude>Foo</onlyinclude>bar
5277 Un-closed <onlyinclude>
5284 Self-closed noinclude, includeonly, onlyinclude tags
5295 Unbalanced includeonly and noinclude tags
5299 |b</noinclude></noinclude>
5300 |c</noinclude></includeonly>
5301 |d</includeonly></includeonly>
5310 <td>c</includeonly>
5312 <td>d</includeonly></includeonly>
5318 Template:Includeonly section
5321 ==Includeonly section==
5327 Bug 6563: Edit link generation for section shown by <includeonly>
5329 {{includeonly section}}
5331 <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>
5332 <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>
5336 # Uses same input as the contents of [[Template:Includeonly section]]
5338 Bug 6563: Section extraction for section shown by <includeonly>
5343 ==Includeonly section==
5351 Bug 6563: Edit link generation for section suppressed by <includeonly>
5354 ==Includeonly section==
5358 <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>
5363 Bug 6563: Section extraction for section suppressed by <includeonly>
5368 ==Includeonly section==
5376 Un-closed <includeonly>
5383 ### <includeonly> and <noinclude> in attributes
5386 0. includeonly around the entire attribute
5388 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5390 <p><span id="v2">bar</span>
5395 1. includeonly in html attr key
5397 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5399 <p><span id="foo">bar</span>
5404 2. includeonly in html attr value
5406 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5407 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5409 <p><span id="v1">bar</span>
5410 <span id="v1">bar</span>
5415 3. includeonly in part of an attr value
5417 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5419 <p><span style="color:red;">bar</span>
5424 ### Testing parsing of templates where a template arg
5425 ### has the same name as the template itself.
5435 Templates: Template Name/Arg clash: 1. Use of positional param
5444 Templates: Template Name/Arg clash: 2. Use of named param
5453 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5462 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5466 Templates: 1. Simple use
5475 Templates: 2. Inside a block tag
5477 <div>{{echo|Foo}}</div>
5484 Templates: P-wrapping: 1a. Templates on consecutive lines
5495 Templates: P-wrapping: 1b. Templates on consecutive lines
5509 Templates: P-wrapping: 1c. Templates on consecutive lines
5512 {{echo|bar}} <div>baz</div>
5521 Templates: Inline Text: 1. Multiple tmeplate uses
5523 {{echo|Foo}}bar{{echo|baz}}
5530 Templates: Inline Text: 2. Back-to-back template uses
5532 {{echo|Foo}}{{echo|bar}}
5539 Templates: Block Tags: 1. Multiple template uses
5541 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5543 <div>Foo</div><div>bar</div><div>baz</div>
5548 Templates: Block Tags: 2. Back-to-back template uses
5550 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5552 <div>Foo</div><div>bar</div>
5557 Templates: Links: 1. Simple example
5559 {{echo|[[Foo|bar]]}}
5561 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5566 Templates: Links: 2. Generation of link href
5568 [[{{echo|Foo}}|bar]]
5570 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5575 Templates: Links: 3. Generation of part of a link href
5577 [[Fo{{echo|o}}|bar]]
5581 [[Foo{{echo|bar}}baz]]
5583 [[Foo{{echo|bar}}|bar]]
5585 [[:Foo{{echo|bar}}]]
5587 [[:Foo{{echo|bar}}|bar]]
5589 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5590 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5591 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5592 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5593 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5594 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5599 Templates: Links: 4. Multiple templates generating link href
5601 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5603 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5608 Templates: Links: 5. Generation of link text
5610 [[Foo|{{echo|bar}}]]
5612 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5617 Templates: Links: 5. Nested templates (only outermost template should be marked)
5619 {{echo|[[{{echo|Foo}}|bar]]}}
5621 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5626 Templates: HTML Tag: 1. Generation of HTML attr. key
5628 <div {{echo|style}}="color:red;">foo</div>
5630 <div style="color:red;">foo</div>
5635 Templates: HTML Tag: 2. Generation of HTML attr. value
5637 <div style={{echo|'color:red;'}}>foo</div>
5639 <div style="color:red;">foo</div>
5644 Templates: HTML Tag: 3. Generation of HTML attr key and value
5646 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5648 <div style="color:red;">foo</div>
5653 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5655 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5657 <div title="This is a long title with just one piece templated">foo</div>
5662 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5664 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5666 <div title="This is a long title with just one piece templated">foo</div>
5671 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5673 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5675 <div title="This is a long title with just one piece templated">foo</div>
5680 Templates: HTML Tables: 1. Generating start of a HTML table
5682 {{echo|<table><tr><td>foo</td>}}</tr></table>
5684 <table><tr><td>foo</td></tr></table>
5689 Templates: HTML Tables: 2a. Generating middle of a HTML table
5691 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5693 <table><tr><td>foo</td></tr></table>
5698 Templates: HTML Tables: 2b. Generating middle of a HTML table
5700 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5702 <table><tr><td>foo</td></tr></table>
5707 Templates: HTML Tables: 3. Generating end 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: 4a. Generating a single tag of a HTML table
5718 {{echo|<table>}}<tr><td>foo</td></tr></table>
5720 <table><tr><td>foo</td></tr></table>
5725 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5727 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5729 <table><tr><td>foo</td></tr></table>
5734 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5736 <table><tr>{{echo|<td>}}foo</td></tr></table>
5738 <table><tr><td>foo</td></tr></table>
5743 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5745 <table><tr><td>foo{{echo|</td>}}</tr></table>
5747 <table><tr><td>foo</td></tr></table>
5752 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5754 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5756 <table><tr><td>foo</td></tr></table>
5761 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5763 <table><tr><td>foo</td></tr>{{echo|</table>}}
5765 <table><tr><td>foo</td></tr></table>
5770 Templates: Wiki Tables: 1. Fostering of entire template content
5778 <tr><td></td></tr></table>
5783 Templates: Wiki Tables: 2. Fostering of partial template content
5793 <tr><td></td></tr></table>
5798 Templates: Wiki Tables: 3. td-content via multiple templates
5801 {{echo|{{pipe}}a}}{{echo|b}}
5812 Templates: Wiki Tables: 4. Templated tags, no content
5818 <tr><td></td></tr></table>
5823 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5837 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5851 Templates: Lists: Multi-line list-items via templates
5853 *{{echo|a {{nonexistent|
5855 *{{echo|b {{nonexistent|
5858 <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>
5859 </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>
5865 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5867 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5869 <p><i>ab</i>c<i>d</i>e
5874 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5875 (PHP parser generates misnested html)
5879 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5881 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5885 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5886 (PHP parser generates misnested html)
5890 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5893 <div><i>b</i>c<i>d</i></div>
5898 Templates: Ugly nesting: 4. Divs opened/closed across templates
5900 a<div>b{{echo|c</div>d}}e
5907 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5913 |{{echo|foo</table>}}
5917 <table about="#mwt1" typeof="mw:Object/Template ">
5918 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5919 bar</span><span about="#mwt1">
5924 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5934 <td>1. {{echo|foo </table>}}</td>
5936 <td>2. {{echo|baz </table>}}</td>
5949 <table about="#mwt1" typeof="mw:Object/Template">
5954 <td >1. foo </td></tr></tbody></table></td>
5956 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5957 </span><span about="#mwt1">
5959 abc</span><span about="#mwt1">
5960 </span><span about="#mwt1">
5961 </span><span about="#mwt1">
5962 </span><span about="#mwt1">
5963 </span><span about="#mwt1">
5965 xyz</span><span about="#mwt1">
5966 </span><span about="#mwt1">
5971 Templates: Ugly templates: 3. newline-only template parameter
5980 # This looks like a bug: a single newline triggers p/br for some reason.
5982 Templates: Ugly templates: 4. newline-only template parameter inconsistency
5993 Parser Functions: 1. Simple example
6002 Parser Functions: 2. Nested use (only outermost should be marked up)
6011 ### Pre-save transform tests
6014 pre-save transform: subst:
6020 This is a test template
6024 pre-save transform: normal template
6034 pre-save transform: nonexistent template
6038 {{thistemplatedoesnotexist}}
6040 {{thistemplatedoesnotexist}}
6045 pre-save transform: subst magic variables
6054 # This is bug 89, which I fixed. -- wtm
6056 pre-save transform: subst: templates with parameters
6060 {{subst:paramtest|param="something else"}}
6062 This is a test template with parameter "something else"
6068 <nowiki>'''not wiki'''</nowiki>
6072 pre-save transform: nowiki in subst (bug 1188)
6076 {{subst:nowikitest}}
6078 <nowiki>'''not wiki'''</nowiki>
6083 Template:commenttest
6085 This template has <!-- a comment --> in it.
6089 pre-save transform: comment in subst (bug 1936)
6093 {{subst:commenttest}}
6095 This template has <!-- a comment --> in it.
6099 pre-save transform: unclosed tag
6103 <nowiki>'''not wiki'''
6105 <nowiki>'''not wiki'''
6109 pre-save transform: mixed tag case
6113 <NOwiki>'''not wiki'''</noWIKI>
6115 <NOwiki>'''not wiki'''</noWIKI>
6119 pre-save transform: unclosed comment in <nowiki>
6123 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6125 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6131 <span onmouseover="alert('crap')">Oh no</span>
6135 (confirming safety of fix for subst bug 1936)
6137 {{Template:dangerous}}
6139 <p><span>Oh no</span>
6144 pre-save transform: comment containing gallery (bug 5024)
6148 <!-- <gallery>data</gallery> -->
6150 <!-- <gallery>data</gallery> -->
6154 pre-save transform: comment containing extension
6158 <!-- <tag>data</tag> -->
6160 <!-- <tag>data</tag> -->
6164 pre-save transform: comment containing nowiki
6168 <!-- <nowiki>data</nowiki> -->
6170 <!-- <nowiki>data</nowiki> -->
6174 pre-save transform: <noinclude> in subst (bug 3298)
6184 pre-save transform: <onlyinclude> in subst (bug 3298)
6196 {{<includeonly>subst:</includeonly>Includes}}
6200 Template:SafeSubstTest
6202 {{<includeonly>safesubst:</includeonly>Includes}}
6206 bug 22297: safesubst: works during PST
6210 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6216 bug 22297: safesubst: works during normal parse
6225 subst: does not work during normal parse
6229 <p>{{subst:Includes}}
6234 pre-save transform: context links ("pipe trick")
6238 [[Article (context)|]]
6241 [[Bar:Article (context)|]]
6242 [[:Bar:Article (context)|]]
6244 [[|Article (context)]]
6248 [[Article (context)|Article]]
6249 [[Bar:Article|Article]]
6250 [[:Bar:Article|Article]]
6251 [[Bar:Article (context)|Article]]
6252 [[:Bar:Article (context)|Article]]
6254 [[Article (context)]]
6255 [[Bar:X (Y) Z|X (Y) Z]]
6256 [[:Bar:X (Y) Z|X (Y) Z]]
6260 pre-save transform: context links ("pipe trick") with interwiki prefix
6264 [[interwiki:Article|]]
6265 [[:interwiki:Article|]]
6266 [[interwiki:Bar:Article|]]
6267 [[:interwiki:Bar:Article|]]
6269 [[interwiki:Article|Article]]
6270 [[:interwiki:Article|Article]]
6271 [[interwiki:Bar:Article|Bar:Article]]
6272 [[:interwiki:Bar:Article|Bar:Article]]
6276 pre-save transform: context links ("pipe trick") with parens in title
6278 pst title=[[Somearticle (context)]]
6282 [[Article (context)|Article]]
6286 pre-save transform: context links ("pipe trick") with comma in title
6288 pst title=[[Someplace, Somewhere]]
6291 [[Otherplace, Elsewhere|]]
6292 [[Otherplace, Elsewhere, Anywhere|]]
6294 [[Otherplace, Somewhere|Otherplace]]
6295 [[Otherplace, Elsewhere|Otherplace]]
6296 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6300 pre-save transform: context links ("pipe trick") with parens and comma
6302 pst title=[[Someplace (IGNORED), Somewhere]]
6305 [[Otherplace (place), Elsewhere|]]
6307 [[Otherplace, Somewhere|Otherplace]]
6308 [[Otherplace (place), Elsewhere|Otherplace]]
6312 pre-save transform: context links ("pipe trick") with comma and parens
6314 pst title=[[Who, me? (context)]]
6317 [[Me, Myself, and I (1937 song)|]]
6319 [[Yes, you. (context)|Yes, you.]]
6320 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6324 pre-save transform: context links ("pipe trick") with namespace
6326 pst title=[[Ns:Somearticle]]
6330 [[Ns:Article|Article]]
6334 pre-save transform: context links ("pipe trick") with namespace and parens
6336 pst title=[[Ns:Somearticle (context)]]
6340 [[Ns:Article (context)|Article]]
6344 pre-save transform: context links ("pipe trick") with namespace and comma
6346 pst title=[[Ns:Somearticle, Context, Whatever]]
6350 [[Ns:Article, Context, Whatever|Article]]
6354 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6356 pst title=[[Ns:Somearticle, Context (context)]]
6360 [[Ns:Article (context)|Article]]
6364 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6366 pst title=[[Ns:Somearticle (IGNORED), Context]]
6370 [[Ns:Article, Context|Article]]
6374 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6378 [[Article(context)|]]
6379 [[Bar:Article(context)|]]
6380 [[:Bar:Article(context)|]]
6381 [[|Article(context)]]
6385 [[Article(context)|Article]]
6386 [[Bar:Article(context)|Article]]
6387 [[:Bar:Article(context)|Article]]
6388 [[Article(context)]]
6390 [[:Bar:X(Y)Z|X(Y)Z]]
6394 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6398 [[Article (context)|]]
6399 [[Bar:Article (context)|]]
6400 [[:Bar:Article (context)|]]
6401 [[|Article (context)]]
6405 [[Article (context)|Article]]
6406 [[Bar:Article (context)|Article]]
6407 [[:Bar:Article (context)|Article]]
6408 [[Article (context)]]
6409 [[Bar:X (Y) Z|X (Y) Z]]
6410 [[:Bar:X (Y) Z|X (Y) Z]]
6414 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6418 [[Article(context)|]]
6419 [[Bar:Article(context)|]]
6420 [[:Bar:Article(context)|]]
6421 [[|Article(context)]]
6425 [[Article(context)|Article]]
6426 [[Bar:Article(context)|Article]]
6427 [[:Bar:Article(context)|Article]]
6428 [[Article(context)]]
6430 [[:Bar:X(Y)Z|X(Y)Z]]
6434 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6438 [[Article (context), context|]]
6439 [[Article (context),context|]]
6440 [[Bar:Article (context), context|]]
6441 [[Bar:Article (context),context|]]
6442 [[:Bar:Article (context), context|]]
6443 [[:Bar:Article (context),context|]]
6445 [[Article (context), context|Article]]
6446 [[Article (context),context|Article]]
6447 [[Bar:Article (context), context|Article]]
6448 [[Bar:Article (context),context|Article]]
6449 [[:Bar:Article (context), context|Article]]
6450 [[:Bar:Article (context),context|Article]]
6454 pre-save transform: trim trailing empty lines
6458 Empty lines are trimmed
6464 Empty lines are trimmed
6468 pre-save transform: Signature expansion
6473 * <noinclude>~~~</noinclude>
6474 * <includeonly>~~~</includeonly>
6475 * <onlyinclude>~~~</onlyinclude>
6477 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6478 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6479 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6480 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6485 pre-save transform: Signature expansion in nowiki tags (bug 93)
6491 <nowiki>~~~~</nowiki>
6493 <includeonly><nowiki>~~~~</nowiki></includeonly>
6495 <noinclude><nowiki>~~~~</nowiki></noinclude>
6497 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6499 {{subst:Foo}} shall be converted to FOO
6501 As well as inside noinclude/onlyinclude
6502 <noinclude>{{subst:Foo}}</noinclude>
6503 <onlyinclude>{{subst:Foo}}</onlyinclude>
6505 But not inside includeonly
6506 <includeonly>{{subst:Foo}}</includeonly>
6510 <nowiki>~~~~</nowiki>
6512 <includeonly><nowiki>~~~~</nowiki></includeonly>
6514 <noinclude><nowiki>~~~~</nowiki></noinclude>
6516 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6518 FOO shall be converted to FOO
6520 As well as inside noinclude/onlyinclude
6521 <noinclude>FOO</noinclude>
6522 <onlyinclude>FOO</onlyinclude>
6524 But not inside includeonly
6525 <includeonly>{{subst:Foo}}</includeonly>
6529 ### Message transform tests
6532 message transform: magic variables
6542 message transform: should not transform wiki markup
6552 message transform: <noinclude> in transcluded template (bug 4926)
6562 message transform: <onlyinclude> in transcluded template (bug 4926)
6572 {{#special:}} page name, known
6576 {{#special:Recentchanges}}
6578 Special:RecentChanges
6582 {{#special:}} page name with subpage, known
6586 {{#special:Recentchanges/param}}
6588 Special:RecentChanges/param
6592 {{#special:}} page name, unknown
6596 {{#special:foobarnonexistent}}
6598 No such special page
6602 {{#speciale:}} page name, known
6606 {{#speciale:Recentchanges}}
6608 Special:RecentChanges
6612 {{#speciale:}} page name with subpage, known
6616 {{#speciale:Recentchanges/param}}
6618 Special:RecentChanges/param
6622 {{#speciale:}} page name, unknown
6626 {{#speciale:foobarnonexistent}}
6628 No_such_special_page
6637 [[Image:foobar.jpg]]
6639 <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>
6646 [[Image:foobar.jpg|right]]
6648 <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>
6653 Simple image (using File: namespace, now canonical)
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|Caption text]]
6666 <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>
6671 Image with empty attribute
6673 [[Image:foobar.jpg|right||Caption text]]
6675 <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>
6680 Image with link tails
6682 123[[Image:foobar.jpg]]456
6683 123[[Image:foobar.jpg|right]]456
6684 123[[Image:foobar.jpg|thumb]]456
6686 <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
6688 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
6689 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
6694 Image with multiple captions -- only last one is accepted
6696 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6698 <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>
6703 Image with width attribute at different positions
6705 [[Image:foobar.jpg|200px|right|Caption]]
6706 [[Image:foobar.jpg|right|200px|Caption]]
6707 [[Image:foobar.jpg|right|Caption|200px]]
6709 <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>
6710 <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>
6711 <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>
6716 Image with link parameter, wiki target
6718 [[Image:foobar.jpg|link=Target page]]
6720 <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>
6725 Image with link parameter, URL target
6727 [[Image:foobar.jpg|link=http://example.com/]]
6729 <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>
6734 Image with link parameter, wgExternalLinkTarget
6736 [[Image:foobar.jpg|link=http://example.com/]]
6738 wgExternalLinkTarget='foobar'
6740 <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>
6745 Image with link parameter, wgNoFollowLinks set to false
6747 [[Image:foobar.jpg|link=http://example.com/]]
6749 wgNoFollowLinks=false
6751 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6756 Image with link parameter, wgNoFollowDomainExceptions
6758 [[Image:foobar.jpg|link=http://example.com/]]
6760 wgNoFollowDomainExceptions='example.com'
6762 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6767 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6769 [[Image:foobar.jpg|link=http://example.com/|Title]]
6771 wgExternalLinkTarget='foobar'
6773 <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>
6778 Image with empty link parameter
6780 [[Image:foobar.jpg|link=]]
6782 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6787 Image with link parameter (wiki target) and unnamed parameter
6789 [[Image:foobar.jpg|link=Target page|Title]]
6791 <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>
6796 Image with link parameter (URL target) and unnamed parameter
6798 [[Image:foobar.jpg|link=http://example.com/|Title]]
6800 <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>
6805 Thumbnail image with link parameter
6807 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6809 <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>
6814 Image with frame and link
6816 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6818 <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>
6823 Image with frame and link and explicit alt
6825 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6827 <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>
6832 Image with wiki markup in implicit alt
6834 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6836 <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>
6841 Image with wiki markup in explicit alt
6843 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6845 <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>
6850 Link to image page- image page normally doesn't exists, hence edit link
6851 Add test with existing image page
6852 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6856 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6861 bug 18784 Link to non-existent image page with caption should use caption as link text
6863 [[:Image:test|caption]]
6865 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6870 Frameless image caption with a free URL
6872 [[Image:foobar.jpg|http://example.com]]
6874 <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>
6879 Thumbnail image caption with a free URL
6881 [[Image:foobar.jpg|thumb|http://example.com]]
6883 <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>
6888 Thumbnail image caption with a free URL and explicit alt
6890 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6892 <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>
6897 BUG 1887: A ISBN with a thumbnail
6899 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
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 href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6906 BUG 1887: A RFC with a thumbnail
6908 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6910 <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>
6915 BUG 1887: A mailto link with a thumbnail
6917 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
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>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
6923 # Pending resolution to bug 368
6925 BUG 648: Frameless image caption with a link
6927 [[Image:foobar.jpg|text with a [[link]] in it]]
6929 <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>
6934 BUG 648: Frameless image caption with a link (suffix)
6936 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6938 <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>
6943 BUG 648: Frameless image caption with an interwiki link
6945 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6947 <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>
6952 BUG 648: Frameless image caption with a piped interwiki link
6954 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6956 <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>
6961 Escape HTML special chars in image alt text
6963 [[Image:foobar.jpg|& < > "]]
6965 <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>
6970 BUG 499: Alt text should have Ӓ, not &1234;
6972 [[Image:foobar.jpg|♀]]
6974 <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>
6979 Broken image caption with link
6981 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6983 <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.
6988 Image caption containing another image
6990 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6992 <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>
6997 Image caption containing a newline
6999 [[Image:Foobar.jpg|This
7002 <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>
7008 Bug 3090: External links other than http: in image captions
7010 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7012 <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>
7019 [[Image:foobar.jpg|a|class=b]]
7021 <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>
7028 #REDIRECT [[File:Barfoo.jpg]]
7034 [[Image:Barfoo.jpg]]
7036 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7041 Missing image with uploads disabled
7045 [[Image:Foobaz.jpg]]
7047 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7056 Subpage test/subpage
7064 subpage title=[[Subpage test]]
7068 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7073 Subpage noslash link
7075 subpage title=[[Subpage test]]
7079 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7088 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7093 BUG 561: {{/Subpage}}
7095 subpage title=[[Page]]
7099 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7107 Category:MediaWiki User's Guide
7115 [[:Category:MediaWiki User's Guide]]
7117 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7126 [[Category:MediaWiki User's Guide]]
7128 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7132 PAGESINCATEGORY invalid title fatal (r33546 fix)
7134 {{PAGESINCATEGORY:<bogus>}}
7141 Category with different sort key
7145 [[Category:MediaWiki User's Guide|Foo]]
7147 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7151 Category with identical sort key
7155 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7157 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7161 Category with empty sort key
7166 [[Category:MediaWiki User's Guide|]]
7168 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7172 Category with empty sort key and parentheses
7177 [[Category:Foo (bar)|]]
7179 [[Category:Foo (bar)|Foo]]
7183 Category with link tail
7188 123[[Category:Foo]]456
7190 123[[Category:Foo]]456
7194 Category with template
7199 [[Category:{{echo|Foo}}]]
7201 [[Category:{{echo|Foo}}]]
7205 Category with template in sort key
7210 [[Category:Foo|{{echo|Bar}}]]
7212 [[Category:Foo|{{echo|Bar}}]]
7216 Category with template in sort key and title
7221 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7223 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7227 Category / paragraph interactions
7229 Foo [[Category:Baz]] Bar
7231 Foo [[Category:Baz]]
7239 [[Category:Baz]] Bar
7252 {{echo|[[Category:Baz]]}}
7267 ### Inter-language links
7270 Inter-language links
7276 [[zh:食品]]
7278 es:Alimento fr:Nourriture zh:食品
7282 Duplicate interlanguage links (bug 24502)
7298 Basic section headings
7305 ===Smaller headline===
7308 <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>
7311 <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>
7314 <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>
7320 Section headings with TOC
7323 === Subheadline 1 ===
7324 ===== Skipping a level =====
7325 ====== Skipping a level ======
7329 ===Another headline===
7331 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7333 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7335 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7337 <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>
7339 <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>
7346 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7348 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7353 <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>
7354 <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>
7355 <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>
7356 <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>
7357 <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>
7360 <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>
7364 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7366 Handling of sections up to level 6 and beyond
7369 == Level 2 Heading==
7370 === Level 3 Heading===
7371 ==== Level 4 Heading====
7372 ===== Level 5 Heading=====
7373 ====== Level 6 Heading======
7374 ======= Level 7 Heading=======
7375 ======== Level 8 Heading========
7376 ========= Level 9 Heading=========
7377 ========== Level 10 Heading==========
7379 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7381 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7383 <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>
7385 <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>
7387 <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>
7389 <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>
7391 <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>
7392 <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>
7393 <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>
7394 <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>
7395 <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>
7408 <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>
7409 <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>
7410 <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>
7411 <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>
7412 <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>
7413 <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>
7414 <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>
7415 <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>
7416 <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>
7417 <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>
7422 TOC regression (bug 9764)
7426 ==== title 1.1.1 ====
7431 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7433 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7435 <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>
7437 <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>
7440 <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>
7443 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7445 <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>
7450 <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>
7451 <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>
7452 <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>
7453 <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>
7454 <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>
7455 <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>
7460 TOC with wgMaxTocLevel=3 (bug 6204)
7466 ==== title 1.1.1 ====
7471 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7473 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7475 <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>
7476 <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>
7479 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7481 <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>
7486 <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>
7487 <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>
7488 <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>
7489 <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>
7490 <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>
7491 <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>
7496 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7502 ====Section 1.1.1====
7503 ====Section 1.1.1.1====
7506 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7508 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7510 <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>
7513 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7516 <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>
7517 <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>
7518 <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>
7519 <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>
7520 <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>
7526 Resolving duplicate section names
7531 <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>
7532 <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>
7537 Resolving duplicate section names with differing case (bug 10721)
7542 <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>
7543 <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 Template with sections, __NOTOC__
7562 <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>
7563 <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>
7564 <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>
7565 <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>
7570 __NOEDITSECTION__ keyword
7576 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7577 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7582 Link inside a section heading
7584 ==Section with a [[Main Page|link]] in it==
7586 <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>
7591 TOC regression (bug 12077)
7598 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7600 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7602 <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>
7605 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7608 <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>
7609 <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>
7610 <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>
7615 BUG 1219 URL next to image (good)
7617 http://example.com [[Image:foobar.jpg]]
7619 <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>
7624 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7627 The line above must have a trailing space!
7630 But just in case it doesn't...
7632 <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>
7633 <p>The line above must have a trailing space!
7635 <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>
7636 <p>But just in case it doesn't...
7641 Header with special characters (bug 25462)
7643 The tooltips shall not show entities to the user (ie. be double escaped)
7660 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7662 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7664 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7665 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7666 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7667 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7668 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7671 <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>
7674 <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>
7677 <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>
7680 <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>
7683 <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>
7689 Headers with excess '=' characters
7690 (Are similar tests necessary beyond the 1st level?)
7694 =''italic'' heading==
7695 ==''italic'' heading=
7697 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7699 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7700 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7701 <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>
7702 <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>
7705 <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>
7706 <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>
7707 <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>
7708 <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>
7713 BUG 1219 URL next to image (broken)
7715 http://example.com[[Image:foobar.jpg]]
7717 <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>
7722 Bug 1186 news: in the middle of text
7724 http://en.wikinews.org/wiki/Wikinews:Workplace
7726 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7732 Namespaced link must have a title
7741 Namespaced link must have a title (bad fragment version)
7743 [[Project:#fragment]]
7745 <p>[[Project:#fragment]]
7751 ### HTML tags and HTML attributes
7755 div with no attributes
7757 <div>HTML rocks</div>
7759 <div>HTML rocks</div>
7764 div with double-quoted attribute
7766 <div id="rock">HTML rocks</div>
7768 <div id="rock">HTML rocks</div>
7773 div with single-quoted attribute
7775 <div id='rock'>HTML rocks</div>
7777 <div id="rock">HTML rocks</div>
7782 div with unquoted attribute
7784 <div id=rock>HTML rocks</div>
7786 <div id="rock">HTML rocks</div>
7791 div with illegal double attributes
7793 <div id="a" id="b">HTML rocks</div>
7795 <div id="b">HTML rocks</div>
7799 # FIXME: produce empty string instead of "class" in the PHP parser, following
7802 div with empty attribute value, space before equals
7806 <div class =>HTML rocks</div>
7808 <div class="">HTML rocks</div>
7812 # The PHP parser escapes the opening brace to { for some reason, so
7813 # disabled this test for it.
7815 div with braces in attribute value
7819 <div title="{}">Foo</div>
7821 <div title="{}">Foo</div>
7824 # This it very inconsistent in the PHP parser: it returns
7825 # class="class" if there is a space between the name and the equal sign (see
7826 # 'div with empty attribute value, space before equals'), but strips the
7827 # attribute completely if the space is missing. We hope that not much content
7828 # depends on this, so are implementing the behavior below in Parsoid for
7829 # consistencies' sake. Disabled for the PHP parser.
7830 # FIXME: fix this behavior in the PHP parser?
7832 div with empty attribute value, no space before equals
7836 <div class=>HTML rocks</div>
7838 <div class="">HTML rocks</div>
7843 HTML multiple attributes correction
7845 <p class="error" class="awesome">Awesome!</p>
7847 <p class="awesome">Awesome!</p>
7852 Table multiple attributes correction
7855 !+ class="error" class="awesome"| status
7860 <th class="awesome"> status
7868 <DIV ID="x">HTML ROCKS</DIV>
7870 <div id="x">HTML ROCKS</div>
7875 Non-ASCII pseudo-tags are rendered as text
7884 Pseudo-tag with URL 'name' renders as url link
7886 <http://example.com/>
7888 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7893 text with amp in the middle of nowhere
7897 <p>Remember AT&T?
7902 text with character entity: eacute
7904 I always thought é was a cute letter.
7906 <p>I always thought é was a cute letter.
7911 text with entity-escaped character entity-like string: eacute
7913 I always thought &eacute; was a cute letter.
7915 <p>I always thought &eacute; was a cute letter.
7920 text with undefined character entity: xacute
7922 I always thought &xacute; was a cute letter.
7924 <p>I always thought &xacute; was a cute letter.
7936 [[Media:Foobar.jpg]]
7938 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7943 Media link with text
7945 [[Media:Foobar.jpg|A neat file to look at]]
7947 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7951 # FIXME: this is still bad HTML tag nesting
7953 Media link with nasty text
7954 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7956 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7958 <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>
7963 Media link to nonexistent file (bug 1702)
7965 [[Media:No such.jpg]]
7967 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7972 Image link to nonexistent file (bug 1850 - good)
7974 [[Image:No such.jpg]]
7976 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7981 :Image link to nonexistent file (bug 1850 - bad)
7983 [[:Image:No such.jpg]]
7985 <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>
7992 Character reference normalization in link text (bug 1938)
7994 [[Main Page|this&that]]
7996 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8003 Test for unicode normalization
8005 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8009 (bug 19451) Links should refer to the normalized form.
8017 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8018 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8019 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8020 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8021 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8026 Empty attribute crash test (bug 2067)
8028 <font color="">foo</font>
8030 <p><font color="">foo</font>
8035 Empty attribute crash test single-quotes (bug 2067)
8037 <font color=''>foo</font>
8039 <p><font color="">foo</font>
8044 Attribute test: equals, then nothing
8046 <font color=>foo</font>
8053 Attribute test: unquoted value
8055 <font color=x>foo</font>
8057 <p><font color="x">foo</font>
8062 Attribute test: unquoted but illegal value (hash)
8064 <font color=#x>foo</font>
8066 <p><font color="#x">foo</font>
8071 Attribute test: no value
8073 <font color>foo</font>
8075 <p><font color="color">foo</font>
8080 Bug 2095: link with three closing brackets
8084 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8089 Bug 2095: link with pipe and three closing brackets
8093 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8098 Bug 2095: link with pipe and three closing brackets, version 2
8100 [[Main Page|[http://example.com/]]]
8102 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8112 Template:Dangerous attribute
8114 " onmouseover="alert(document.cookie)
8118 Template:Dangerous style attribute
8120 border-size: expression(alert(document.cookie))
8126 <div style="float: right; {{{1}}}">Magic div</div>
8130 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8132 <div title="{{test}}"></div>
8134 <div title="This is a test template"></div>
8139 Bug 2304: HTML attribute safety (dangerous template; 2309)
8141 <div title="{{dangerous attribute}}"></div>
8143 <div title=""></div>
8148 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8150 <div style="{{dangerous style attribute}}"></div>
8152 <div style="/* insecure input */"></div>
8157 Bug 2304: HTML attribute safety (safe parameter; 2309)
8159 {{div style|width: 200px}}
8161 <div style="float: right; width: 200px">Magic div</div>
8166 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8168 {{div style|width: expression(alert(document.cookie))}}
8170 <div style="/* insecure input */">Magic div</div>
8175 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8177 {{div style|"><script>alert(document.cookie)</script>}}
8179 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8184 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8186 {{div style|" ><script>alert(document.cookie)</script>}}
8188 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8193 Bug 2304: HTML attribute safety (link)
8195 <div title="[[Main Page]]"></div>
8197 <div title="[[Main Page]]"></div>
8202 Bug 2304: HTML attribute safety (italics)
8204 <div title="''foobar''"></div>
8206 <div title="''foobar''"></div>
8211 Bug 2304: HTML attribute safety (bold)
8213 <div title="'''foobar'''"></div>
8215 <div title="'''foobar'''"></div>
8221 Bug 2304: HTML attribute safety (ISBN)
8223 <div title="ISBN 1234567890"></div>
8225 <div title="ISBN 1234567890"></div>
8230 Bug 2304: HTML attribute safety (RFC)
8232 <div title="RFC 1234"></div>
8234 <div title="RFC 1234"></div>
8239 Bug 2304: HTML attribute safety (PMID)
8241 <div title="PMID 1234567890"></div>
8243 <div title="PMID 1234567890"></div>
8248 Bug 2304: HTML attribute safety (web link)
8250 <div title="http://example.com/"></div>
8252 <div title="http://example.com/"></div>
8257 Bug 2304: HTML attribute safety (named web link)
8259 <div title="[http://example.com/ link]"></div>
8261 <div title="[http://example.com/ link]"></div>
8266 Bug 3244: HTML attribute safety (extension; safe)
8268 <div style="<nowiki>background:blue</nowiki>"></div>
8270 <div style="background:blue"></div>
8275 Bug 3244: HTML attribute safety (extension; unsafe)
8277 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8279 <div style="/* insecure input */"></div>
8283 # More MSIE fun discovered by Tom Gilder
8286 MSIE CSS safety test: spurious slash
8288 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8290 <div style="/* insecure input */">evil</div>
8295 MSIE CSS safety test: hex code
8297 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8299 <div style="/* insecure input */">evil</div>
8304 MSIE CSS safety test: comment in url
8306 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8308 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8313 MSIE CSS safety test: comment in expression
8315 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8317 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8323 Table attribute legitimate extension
8326 !+ style="<nowiki>color:blue</nowiki>"| status
8331 <th style="color:blue"> status
8337 Table attribute safety
8340 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8345 <th style="/* insecure input */"> status
8351 CSS line continuation 1
8353 <div style="background-image: u\ rl(test.jpg);"></div>
8355 <div style="/* insecure input */"></div>
8360 CSS line continuation 2
8362 <div style="background-image: u\ rl(test.jpg); "></div>
8364 <div style="/* insecure input */"></div>
8375 Expansion of multi-line templates in attribute values (bug 6255)
8377 <div style="background: {{identity|#00FF00}}">-</div>
8379 <div style="background: #00FF00">-</div>
8385 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8387 <div style="background:
8390 <div style="background: #00FF00">-</div>
8395 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8397 <div style="background: #00FF00">-</div>
8399 <div style="background: #00FF00">-</div>
8404 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8407 Parser hook: empty input
8420 Parser hook: empty input using terminated empty elements
8433 Parser hook: empty input using terminated empty elements (space before)
8446 Parser hook: basic input
8460 Parser hook: case insensitive
8474 Parser hook: case insensitive, redux
8487 Parser hook: nested tags
8491 <tag><tag></tag></tag>
8502 Parser hook: basic arguments
8504 <tag width=200 height = "100" depth = '50' square></tag>
8512 'square' => 'square',
8519 Parser hook: argument containing a forward slash (bug 5344)
8521 <tag filename='/tmp/bla'></tag>
8526 'filename' => '/tmp/bla',
8533 Parser hook: empty input using terminated empty elements (bug 2374)
8546 # </tag> should be output literally since there is no matching tag that begins it
8548 Parser hook: basic arguments using terminated empty elements (bug 2374)
8550 <tag width=200 height = "100" depth = '50' square/>
8560 'square' => 'square',
8569 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8573 Parser hook: static parser hook not inside a comment
8575 <statictag>hello, world</statictag>
8576 <statictag action=flush/>
8584 Parser hook: static parser hook inside a comment
8586 <!-- <statictag>hello, world</statictag> -->
8587 <statictag action=flush/>
8593 # Nested template calls; this case was broken by Parser.php rev 1.506,
8597 Template:One-parameter
8599 (My parameter is: {{{1}}})
8603 Template:Map-one-parameter
8609 Nested template calls
8611 {{Map-one-parameter|One-parameter|param}}
8613 <p>(My parameter is: param)
8622 Sanitizer: Closing of open tags
8624 <s></s><table></table>
8626 <s></s><table></table>
8631 Sanitizer: Closing of open but not closed tags
8640 Sanitizer: Closing of closed but not open tags
8649 Sanitizer: Closing of closed but not open table tags
8651 Table not started</td></tr></table>
8653 <p>Table not started</td></tr></table>
8658 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8660 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8662 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8667 Sanitizer: Validating the contents of the id attribute (bug 4515)
8673 Something, but definitely not <br id="9" />...
8677 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8681 <br id="foo" /><br id="foo" />
8683 Something need to be done. foo-2 ?
8687 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8690 <meta itemprop="hello" content="world">
8691 <meta http-equiv="refresh" content="5">
8692 <meta itemprop="hello" http-equiv="refresh" content="5">
8693 <link itemprop="hello" href="{{SERVER}}">
8694 <link rel="stylesheet" href="{{SERVER}}">
8695 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8698 <div itemscope="itemscope">
8699 <p> <meta itemprop="hello" content="world" />
8700 <meta http-equiv="refresh" content="5">
8701 <meta itemprop="hello" content="5" />
8703 <link itemprop="hello" href="http://Britney-Spears" />
8704 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8705 <link itemprop="hello" href="http://Britney-Spears" />
8711 Language converter: output gets cut off unexpectedly (bug 5757)
8715 this bit is safe: }-
8717 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8719 then we get cut off here: }-
8721 all additional text is vanished
8723 <p>this bit is safe: }-
8724 </p><p>but if we add a conversion instance: xxx
8725 </p><p>then we get cut off here: }-
8726 </p><p>all additional text is vanished
8731 Self closed html pairs (bug 5487)
8734 <center><font id="bug" />Centered text</center>
8735 <div><font id="bug2" />In div text</div>
8737 <center><font id="bug" />Centered text</center>
8738 <div><font id="bug2" />In div text</div>
8747 Punctuation: nbsp before exclamation
8751 <p>C'est grave !
8756 Punctuation: CSS !important (bug 11874)
8758 <div style="width:50% !important">important</div>
8760 <div style="width:50% !important">important</div>
8765 Punctuation: CSS ! important (bug 11874; with space after)
8767 <div style="width:50% ! important">important</div>
8769 <div style="width:50% ! important">important</div>
8775 HTML bullet list, closed tags (bug 5497)
8790 HTML bullet list, unclosed tags (bug 5497)
8807 HTML ordered list, closed tags (bug 5497)
8822 HTML ordered list, unclosed tags (bug 5497)
8839 HTML nested bullet list, closed tags (bug 5497)
8864 HTML nested bullet list, open tags (bug 5497)
8889 HTML nested ordered list, closed tags (bug 5497)
8914 HTML nested ordered list, open tags (bug 5497)
8939 HTML ordered list item with parameters oddity
8941 <ol><li id="fragment">One</li></ol>
8943 <ol><li id="fragment">One</li></ol>
8948 bug 5918: autonumbering
8950 [http://first/] [http://second] [ftp://ftp]
8954 [mailto:enclosed@mail.tld With target]
8956 [mailto:enclosed@mail.tld]
8958 mailto:inline@mail.tld
8960 <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>
8961 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8962 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8963 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8964 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8970 # Security and HTML correctness
8971 # From Nick Jenkins' fuzz testing
8975 Fuzz testing: Parser13
8990 Fuzz testing: Parser14
8995 <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>
8996 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8998 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9005 Fuzz testing: Parser14-table
9010 <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>
9011 <table style="__TOC__">
9017 # Known to produce bogus xml (extra </td>)
9019 Fuzz testing: Parser16
9039 Fuzz testing: Parser21
9042 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9047 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9057 Fuzz testing: Parser22
9059 http://===r:::https://b
9063 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9071 # Known to produce bad XML for now
9073 Fuzz testing: Parser24
9080 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9081 <br style="onmouseover='alert(document.cookie);' " />
9083 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9088 <u class="|">}}}} >
9089 <br style="onmouseover='alert(document.cookie);'" />
9091 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9100 # Note: the current result listed for this is not what the original one was,
9101 # but the original bug was JavaScript injection, which is fixed in any case.
9102 # It's not clear that the original result listed was any more correct than the
9103 # current one. Original result:
9106 # <li class="||">
9107 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9109 Fuzz testing: Parser25 (bug 6055)
9115 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9117 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9122 Fuzz testing: URL adjacent extension (with space, clean)
9125 http://example.com <nowiki>junk</nowiki>
9127 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9132 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9135 http://example.com<nowiki>junk</nowiki>
9137 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9142 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9145 http://example.com<pre>junk</pre>
9147 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9152 Fuzz testing: image with bogus manual thumbnail
9154 [[Image:foobar.jpg|thumbnail= ]]
9156 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9161 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9163 <pre dir=" "></pre>
9165 <pre dir=" "></pre>
9170 Parsing optional HTML elements (Bug 6171)
9175 <td> Some tabular data</td>
9176 <td> More tabular data ...
9177 <td> And yet som tabular data</td>
9183 <td> Some tabular data</td>
9184 <td> More tabular data ...
9185 </td><td> And yet som tabular data</td>
9192 Correct handling of <td>, <tr> (Bug 6171)
9197 <td> Some tabular data</td>
9198 <td> More tabular data ...</td>
9199 <td> And yet som tabular data</td>
9205 <td> Some tabular data</td>
9206 <td> More tabular data ...</td>
9207 <td> And yet som tabular data</td>
9215 Parsing crashing regression (fr:JavaScript)
9219 <p></body></x>
9224 Inline wiki vs wiki block nesting
9230 <p><b>Bold paragraph</b>
9231 </p><p>New wiki paragraph
9236 Inline HTML vs wiki block nesting
9244 <p><b>Bold paragraph</b>
9245 </p><p>New wiki paragraph
9249 # Original result was this:
9250 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9252 # While that might be marginally more intuitive, maybe, the six-apostrophe
9253 # construct is clearly pathological and the result stated here (which is what
9254 # the parser actually does) is about as reasonable as anything.
9256 Mixing markup for italics and bold
9259 '''bold''''''bold''bolditalics'''''
9261 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9269 Article for special page transclusion test
9273 Special page transclusion
9276 {{Special:Prefixindex/Xyzzyx}}
9278 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9283 Special page transclusion twice (bug 5021)
9286 {{Special:Prefixindex/Xyzzyx}}
9287 {{Special:Prefixindex/Xyzzyx}}
9289 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9290 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9295 Transclusion of default MediaWiki message
9297 {{MediaWiki:Mainpage}}
9304 Transclusion of nonexistent MediaWiki message
9306 {{MediaWiki:Mainpagexxx}}
9308 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9313 Transclusion of MediaWiki message with underscore
9315 {{MediaWiki:history_short}}
9322 Transclusion of MediaWiki message with space
9324 {{MediaWiki:history short}}
9331 Invalid header with following text
9341 Section extraction test (section 0)
9361 Section extraction test (section 1)
9383 Section extraction test (section 2)
9404 Section extraction test (section 3)
9424 Section extraction test (section 4)
9448 Section extraction test (section 5)
9468 Section extraction test (section 6)
9489 Section extraction test (section 7)
9509 Section extraction test (section 8)
9529 Section extraction test (section 9)
9550 Section extraction test (section 10)
9570 Section extraction test (nonexistent section 11)
9589 Section extraction test with bogus heading (section 1)
9594 ==bogus== not a legal section
9598 ==bogus== not a legal section
9602 Section extraction test with bogus heading (section 2)
9607 ==bogus== not a legal section
9614 Section extraction test with comment after heading (section 1)
9626 Section extraction test with comment after heading (section 2)
9638 Section extraction test with bogus <nowiki> heading (section 1)
9643 ==bogus== <nowiki>not a legal section</nowiki>
9647 ==bogus== <nowiki>not a legal section</nowiki>
9651 Section extraction test with bogus <nowiki> heading (section 2)
9656 ==bogus== <nowiki>not a legal section</nowiki>
9663 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9664 # instead of respecting commented sections
9666 Section extraction prefixed by comment (section 1)
9677 Section extraction prefixed by comment (section 2)
9688 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9689 # instead of respecting HTML-style headings
9691 Section extraction, mixed wiki and html (section 1)
9707 Section extraction, mixed wiki and html (section 2)
9723 # Formerly testing for bug 3342
9725 Section extraction, heading surrounded by <noinclude>
9729 <noinclude>==unmarked==</noinclude>
9735 # Test behaviour of bug 19910
9737 Sectiion with all-equals
9742 The line above must have a trailing space
9745 But just in case it doesn't...
9749 But just in case it doesn't...
9753 Section replacement test (section 0)
9784 Section replacement test (section 1)
9813 Section replacement test (section 2)
9843 Section replacement test (section 3)
9874 Section replacement test (section 4)
9901 Section replacement test (section 5)
9932 Section replacement test (section 6)
9962 Section replacement test (section 7)
9993 Section replacement test (section 8)
10024 Section replacement test (section 9)
10053 Section replacement test (section 10)
10083 Section replacement test with initial whitespace (bug 13728)
10087 Preformatted initial line
10091 Preformatted initial line
10098 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10110 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10123 Section extraction, <pre> around bogus header (bug 10309)
10140 Section replacement, <pre> around bogus header (bug 10309)
10142 noxml replace=2,"xxx"
10163 Handling of 
 in URLs
10167 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10174 5 quotes, code coverage +1 line
10181 Special:Search page linking.
10185 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10197 * {{BASEPAGENAMEE}}
10199 * {{TALKPAGENAMEE}}
10200 * {{SUBJECTPAGENAME}}
10201 * {{SUBJECTPAGENAMEE}}
10207 * {{SUBJECTSPACEE}}
10208 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10210 <ul><li> Parser test
10211 </li><li> Parser test
10212 </li><li> Parser test
10213 </li><li> Parser_test
10214 </li><li> Parser test
10215 </li><li> Parser_test
10216 </li><li> Talk:Parser test
10217 </li><li> Talk:Parser_test
10218 </li><li> Parser test
10219 </li><li> Parser_test
10226 </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>
10230 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10240 image4 |300px| centre
10241 image5.svg| http://///////
10246 <ul class="gallery">
10247 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10248 <div style="height: 150px;">Image1.png</div>
10249 <div class="gallerytext">
10252 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10253 <div style="height: 150px;">Image2.gif</div>
10254 <div class="gallerytext">
10259 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10260 <div style="height: 150px;">Image3</div>
10261 <div class="gallerytext">
10264 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10265 <div style="height: 150px;">Image4</div>
10266 <div class="gallerytext">
10271 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10272 <div style="height: 150px;">Image5.svg</div>
10273 <div class="gallerytext">
10274 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10278 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10279 <div style="height: 150px;">* image6</div>
10280 <div class="gallerytext">
10288 Gallery (with options)
10290 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10291 File:Nonexistant.jpg|caption
10292 File:Nonexistant.jpg
10293 image:foobar.jpg|some '''caption''' [[Main Page]]
10295 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10298 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10299 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10300 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10301 <div style="height: 70px;">Nonexistant.jpg</div>
10302 <div class="gallerytext">
10307 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10308 <div style="height: 70px;">Nonexistant.jpg</div>
10309 <div class="gallerytext">
10312 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10313 <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>
10314 <div class="gallerytext">
10315 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10319 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10320 <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>
10321 <div class="gallerytext">
10324 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10325 <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>
10326 <div class="gallerytext">
10336 Gallery with wikitext inside caption
10339 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10340 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10343 <ul class="gallery">
10344 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10345 <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>
10346 <div class="gallerytext">
10347 <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>
10351 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10352 <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>
10353 <div class="gallerytext">
10354 <p>This is a test template
10363 gallery (with showfilename option)
10365 <gallery showfilename>
10366 File:Nonexistant.jpg|caption
10367 File:Nonexistant.jpg
10368 image:foobar.jpg|some '''caption''' [[Main Page]]
10372 <ul class="gallery">
10373 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10374 <div style="height: 150px;">Nonexistant.jpg</div>
10375 <div class="gallerytext">
10376 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10381 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10382 <div style="height: 150px;">Nonexistant.jpg</div>
10383 <div class="gallerytext">
10384 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10388 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10389 <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>
10390 <div class="gallerytext">
10391 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10392 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10396 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10397 <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>
10398 <div class="gallerytext">
10399 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10408 Gallery (with namespace-less filenames)
10411 File:Nonexistant.jpg
10417 <ul class="gallery">
10418 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10419 <div style="height: 150px;">Nonexistant.jpg</div>
10420 <div class="gallerytext">
10423 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10424 <div style="height: 150px;">Nonexistant.jpg</div>
10425 <div class="gallerytext">
10428 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10429 <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>
10430 <div class="gallerytext">
10433 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10434 <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>
10435 <div class="gallerytext">
10443 HTML Hex character encoding (spells the word "JavaScript")
10445 JavaScript
10447 <p>JavaScript
10452 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10456 <p>&#xsee;&#XSEE;
10461 HTML Hex character encoding mixed case
10470 __FORCETOC__ override
10482 ISBN 978-0-1234-56 789
10484 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10489 ISBN followed by 5 spaces
10500 ISBN ISBN 1234567890
10502 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10507 Bug 22905: <abbr> followed by ISBN followed by </a>
10509 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10511 <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>
10520 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10525 Double RFC with a wiki link
10529 <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>
10538 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10543 Centre-aligned image
10545 [[Image:foobar.jpg|centre]]
10547 <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>
10554 [[Image:foobar.jpg|none]]
10556 <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>
10561 Width + Height sized image (using px) (height is ignored)
10563 [[Image:foobar.jpg|640x480px]]
10565 <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>
10570 Width-sized image (using px, no following whitespace)
10572 [[Image:foobar.jpg|640px]]
10574 <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>
10579 Width-sized image (using px, with following whitespace - test regression from r39467)
10581 [[Image:foobar.jpg|640px ]]
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, with preceding whitespace - test regression from r39467)
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 Another italics / bold test
10605 # Note the results may be incorrect, as parserTest output included this:
10606 # XML error: Mismatched tag at byte 6120:
10607 # ...<dd> </dt></dl> </dd...
10615 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10626 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10628 Images with the "|" character in the comment
10630 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10632 <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>
10637 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10639 <html><script>alert(1);</script></html>
10641 <p><html><script>alert(1);</script></html>
10646 HTML with raw HTML ($wgRawHtml==true)
10650 <html><script>alert(1);</script></html>
10652 <p><script>alert(1);</script>
10657 Parents of subpages, one level up
10659 subpage title=[[Subpage test/L1/L2/L3]]
10663 <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>
10669 Parents of subpages, one level up, not named
10671 subpage title=[[Subpage test/L1/L2/L3]]
10675 <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>
10682 Parents of subpages, two levels up
10684 subpage title=[[Subpage test/L1/L2/L3]]
10690 <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
10691 </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>
10696 Parents of subpages, two levels up, without trailing slash or name.
10698 subpage title=[[Subpage test/L1/L2/L3]]
10707 Parents of subpages, two levels up, with lots of extra trailing slashes.
10709 subpage title=[[Subpage test/L1/L2/L3]]
10713 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10718 Definition list code coverage
10724 <dl><dt> title  </dt><dd> def
10725 </dd><dt> title </dt><dd> def
10726 </dd><dt>title</dt><dd> def
10732 Don't fall for the self-closing div
10734 <div>hello world</div/>
10736 <div>hello world</div>
10745 <p>[[:Template:Msg]]
10754 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10758 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10760 Always escape literal '>' in output, not just after '<'
10774 <p>This is a test template
10775 This is a test template
10787 Inclusion of !userCanEdit() content
10791 <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>
10797 Out-of-order TOC heading levels
10806 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10808 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10810 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10811 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10814 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10816 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10817 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10822 <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>
10823 <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>
10824 <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>
10825 <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>
10826 <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>
10827 <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>
10833 ISBN with a dummy number
10843 ISBN with space-delimited number
10847 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10853 ISBN with multiple spaces, no number
10872 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10873 </p><p>ISBN 12345678901
10879 ISBN with trailing year (bug 8110)
10881 ISBN 1-234-56789-0 - 2006
10883 ISBN 1 234 56789 0 - 2006
10885 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10886 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10894 {{anchorencode:foo bar©#%n}}
10896 <p>foo_bar.C2.A9.23.25n
10901 anchorencode trims spaces
10903 {{anchorencode: __pretty__please__}}
10910 anchorencode deals with links
10912 {{anchorencode: [[hello|world]] [[hi]]}}
10919 anchorencode deals with templates
10921 {{anchorencode: {{Foo}} }}
10928 anchorencode encodes like the TOC generator: (bug 18431)
10930 === _ +:.3A%3A&&]] ===
10931 {{anchorencode: _ +:.3A%3A&&]] }}
10934 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10935 <p>.2B:.3A.253A.26.26.5D.5D
10939 # Expected output in the following test is not necessarily expected (there
10940 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10941 # only testing for well-formedness.
10943 Bug 6200: blockquotes and paragraph formatting
10963 Bug 8293: Use of center tag ruins paragraph formatting
10985 ### Language variants related tests
10988 Self-link in language variants
10990 title=[[Dunav]] language=sr
10992 Both [[Dunav]] and [[Дунав]] are names for this river.
10994 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11000 Link to pages in language variants
11004 Main Page can be written as [[Маин Паге]]
11006 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11012 Multiple links to pages in language variants
11016 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11018 <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>.
11024 Simple template in language variants
11030 <p>This is a test template
11036 Template with explicit namespace in language variants
11042 <p>This is a test template
11048 Basic test for template parameter in language variants
11052 {{парамтест|param=foo}}
11054 <p>This is a test template with parameter foo
11060 Simple category in language variants
11064 [[Category:МедиаWики Усер'с Гуиде]]
11066 <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>
11083 Don't convert blue categorylinks to another variant (bug 33210)
11087 [[A]][[Category:分类]]
11089 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11094 Stripping -{}- tags (language variants)
11098 Latin proverb: -{Ne nuntium necare}-
11100 <p>Latin proverb: Ne nuntium necare
11106 Prevent conversion with -{}- tags (language variants)
11108 language=sr variant=sr-ec
11110 Latinski: -{Ne nuntium necare}-
11112 <p>Латински: Ne nuntium necare
11118 Prevent conversion of text with -{}- tags (language variants)
11120 language=sr variant=sr-ec
11122 Latinski: -{Ne nuntium necare}-
11124 <p>Латински: Ne nuntium necare
11130 Prevent conversion of links with -{}- tags (language variants)
11132 language=sr variant=sr-ec
11136 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11142 -{}- tags within headlines (within html for parserConvert())
11144 language=sr variant=sr-ec
11148 <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>
11154 Explicit definition of language variant alternatives
11156 language=zh variant=zh-tw
11158 -{zh:China;zh-tw:Taiwan}-, not China
11160 <p>Taiwan, not China
11166 Conversion around HTML tags
11168 language=sr variant=sr-ec
11170 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11171 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11174 <span title="ЛаCтин">ски</span>
11180 Explicit session-wise language variant mapping (A flag and - flag)
11182 language=zh variant=zh-tw
11184 Taiwan is not China.
11185 But -{A|zh:China;zh-tw:Taiwan}- is China,
11186 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11187 and -{China}- is China.
11189 <p>Taiwan is not China.
11190 But Taiwan is Taiwan,
11191 (This should be stripped!)
11192 and China is China.
11197 Explicit session-wise language variant mapping (H flag for hide)
11199 language=zh variant=zh-tw
11201 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11204 <p>(This should be stripped!)
11210 Adding explicit conversion rule for title (T flag)
11212 language=zh variant=zh-tw showtitle
11214 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11217 <p>Should be stripped!
11222 Testing that changing the language variant here in the tests actually works
11224 language=zh variant=zh showtitle
11226 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11229 <p>Should be stripped!
11234 Recursive conversion of alt and title attrs shouldn't clear converter state
11236 language=zh variant=zh-cn showtitle
11238 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11239 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11243 Should be stripped<span title="Exclamation">!</span>
11248 Bug 24072: more test on conversion rule for title
11250 language=zh variant=zh-tw showtitle
11252 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11253 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11256 <p>This should be stripped!
11257 This won't take interferes with the title rule.
11262 Raw output of variant escape tags (R flag)
11264 language=zh variant=zh-tw
11266 Raw: -{R|zh:China;zh-tw:Taiwan}-
11268 <p>Raw: zh:China;zh-tw:Taiwan
11273 Nested using of manual convert syntax
11275 language=zh variant=zh-hk
11277 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11279 <p>Nested: Hello Hong Kong!
11284 Proper conversion of text in external links
11286 language=sr variant=sr-ec
11288 http://www.google.com
11289 gopher://www.google.com
11290 [http://www.google.com http://www.google.com]
11291 [gopher://www.google.com gopher://www.google.com]
11292 [https://www.google.com irc://www.google.com]
11293 [ftp://www.google.com www.google.com/ftp://dir]
11294 [//www.google.com www.google.com]
11296 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11297 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11298 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11299 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11300 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11301 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11302 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11307 Do not convert roman numbers to language variants
11309 language=sr variant=sr-ec
11313 <p>Фридрих IV је цар.
11318 Unclosed language converter markup "-{"
11329 Don't convert raw rule "-{R|=>}-" to "=>"
11346 Bug 529: Uncovered bullet
11356 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11357 # Templates in Wikipedia rely on this behavior, as tidy has always been
11358 # enabled there. These tests are normally run *without* tidy, so specify the
11359 # full output here.
11360 # To test realistic parsing behavior, apply a tidy-like transformation to both
11361 # the expected output and your parser's output.
11363 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11365 ******* Foo {{bullet}}
11367 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11380 Bug 529: Uncovered table already at line-start
11403 Bug 529: Uncovered bullet in parser function result
11405 * Foo {{lc:{{bullet}} }}
11414 Bug 5678: Double-parsed template argument
11416 {{lc:{{{1}}}|hello}}
11423 Bug 5678: Double-parsed template invocation
11425 {{lc:{{paramtest {{!}} param = hello }} }}
11427 <p>{{paramtest | param = hello }}
11432 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11435 title=[[Main Page]]
11437 {{PRVNÍVELKÉ:ěščř}}
11438 {{prvnívelké:ěščř}}
11458 Morwen/13: Unclosed link followed by heading
11465 <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>
11470 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11477 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11482 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11489 <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>
11504 Paragraphs inside divs (no extra line breaks)
11516 Paragraphs inside divs (extra line break on open)
11531 Paragraphs inside divs (extra line break on close)
11546 Paragraphs inside divs (extra line break on open and close)
11563 Nesting tags, paragraphs on lines which begin with <div>
11567 <div></div><strong>A
11576 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11578 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11582 <blockquote>Line one
11584 Line two</blockquote>
11586 <blockquote>Line one
11587 Line two</blockquote>
11592 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11599 Line two</blockquote>
11604 Line two</blockquote>
11609 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11613 <blockquote>Line one
11618 <blockquote>Line one
11626 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11645 Paragraphs inside blockquotes/divs (no extra line breaks)
11647 <blockquote><div>Line one
11649 Line two</div></blockquote>
11651 <blockquote><div>Line one
11652 Line two</div></blockquote>
11657 Paragraphs inside blockquotes/divs (extra line break on open)
11662 Line two</div></blockquote>
11667 Line two</div></blockquote>
11672 Paragraphs inside blockquotes/divs (extra line break on close)
11674 <blockquote><div>Line one
11677 </div></blockquote>
11679 <blockquote><div>Line one
11682 </div></blockquote>
11687 Paragraphs inside blockquotes/divs (extra line break on open and close)
11693 </div></blockquote>
11699 </div></blockquote>
11704 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11706 wgLinkHolderBatchSize=0
11712 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11713 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11714 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11719 Free external link invading image caption
11721 [[Image:Foobar.jpg|thumb|http://x|hello]]
11723 <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>
11728 Bug 15196: localised external link numbers
11732 [http://en.wikipedia.org/]
11734 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11739 Multibyte character in padleft
11741 {{padleft:-Hello|7|Æ}}
11748 Multibyte character in padright
11750 {{padright:Hello-|7|Æ}}
11759 wgUseDynamicDates=1
11763 <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>
11768 formatdate parser function
11770 {{#formatdate:2009-03-24}}
11772 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11777 formatdate parser function, with default format
11779 {{#formatdate:2009-03-24|mdy}}
11781 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11786 Linked date with autoformatting disabled
11788 wgUseDynamicDates=false
11792 <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>
11797 Spacing of numbers in formatted dates
11799 {{#formatdate:January 15}}
11801 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11806 Spacing of numbers in formatted dates (linked)
11808 wgUseDynamicDates=true
11812 <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>
11817 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
11819 language=nl title=[[MediaWiki:Common.css]]
11821 {{#formatdate:2009-03-24|dmy}}
11823 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11836 Edit comment with link
11840 I like the [[Main Page]] a lot
11842 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11846 Edit comment with link and link text
11850 I like the [[Main Page|best pages]] a lot
11852 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11856 Edit comment with link and link text with suffix
11860 I like the [[Main Page|best page]]s a lot
11862 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11866 Edit comment with section link (non-local, eg in history list)
11868 comment title=[[Main Page]]
11870 /* External links */ removed bogus entries
11872 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11876 Edit comment with section link and text before it (non-local, eg in history list)
11878 comment title=[[Main Page]]
11880 pre-comment text /* External links */ removed bogus entries
11882 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>
11886 Edit comment with section link (local, eg in diff view)
11888 comment local title=[[Main Page]]
11890 /* External links */ removed bogus entries
11892 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11896 Edit comment with subpage link (bug 14080)
11900 title=[[Subpage test]]
11902 Poked at a [[/subpage]] here...
11904 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11908 Edit comment with subpage link and link text (bug 14080)
11912 title=[[Subpage test]]
11914 Poked at a [[/subpage|neat little page]] here...
11916 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11920 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11923 title=[[Subpage test]]
11925 Poked at a [[/subpage]] here...
11927 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11931 Edit comment with bare anchor link (local, as on diff)
11935 title=[[Main Page]]
11939 <a href="#section">#section</a>
11943 Edit comment with bare anchor link (non-local, as on history)
11946 title=[[Main Page]]
11950 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11954 Anchor starting with underscore
11958 <p><a href="#_ref">One</a>
11963 Id starting with underscore
11965 <div id="_ref"></div>
11967 <div id="_ref"></div>
11972 Space normalisation on autocomment (bug 22784)
11975 title=[[Main Page]]
11977 /* __hello__world__ */
11979 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11983 percent-encoding and + signs in comments (Bug 26410)
11987 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11989 <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>
11993 Bad images - basic functionality
12002 Bad images - bug 16039: text after bad image disappears
12016 Verify that displaytitle works (bug #22501) no displaytitle
12020 wgAllowDisplayTitle=true
12021 wgRestrictDisplayTitle=false
12023 this is not the the title
12026 <p>this is not the the title
12031 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12036 wgAllowDisplayTitle=true
12037 wgRestrictDisplayTitle=false
12039 this is not the the title
12040 {{DISPLAYTITLE:whatever}}
12043 <p>this is not the the title
12048 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12053 wgAllowDisplayTitle=true
12054 wgRestrictDisplayTitle=true
12056 this is not the the title
12057 {{DISPLAYTITLE:whatever}}
12060 <p>this is not the the title
12065 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12070 wgAllowDisplayTitle=true
12071 wgRestrictDisplayTitle=true
12073 this is not the the title
12074 {{DISPLAYTITLE:screen}}
12077 <p>this is not the the title
12082 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12087 wgAllowDisplayTitle=false
12089 this is not the the title
12090 {{DISPLAYTITLE:screen}}
12093 <p>this is not the the title
12094 <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>
12099 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12104 wgAllowDisplayTitle=false
12106 this is not the the title
12109 <p>this is not the the title
12114 preload: check <noinclude> and <includeonly>
12118 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12124 preload: check <onlyinclude>
12128 Goodbye <onlyinclude>Hello world</onlyinclude>
12134 preload: can pass tags through if we want to
12138 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12140 <includeonly>Hello world</includeonly>
12144 preload: check that it doesn't try to do tricks
12148 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12150 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12154 Play a bit with r67090 and bug 3158
12158 <div style="width:50% !important"> </div>
12159 <div style="width:50% !important"> </div>
12160 <div style="width:50% !important"> </div>
12161 <div style="border : solid;"> </div>
12163 <div style="width:50% !important"> </div>
12164 <div style="width:50% !important"> </div>
12165 <div style="width:50% !important"> </div>
12166 <div style="border : solid;"> </div>
12171 HTML5 data attributes
12173 <span data-foo="bar">Baz</span>
12174 <p data-abc-def_hij="">Quuz</p>
12176 <p><span data-foo="bar">Baz</span>
12178 <p data-abc-def_hij="">Quuz</p>
12183 percent-encoding and + signs in internal links (Bug 26410)
12185 [[User:+%]] [[Page+title%]]
12186 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12187 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12188 [[%33%45]] [[%33%45+]]
12190 <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>
12191 <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>
12192 <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>
12193 <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>
12198 Special characters in embedded file links (bug 27679)
12200 [[File:Contains & ampersand.jpg]]
12201 [[File:Does not exist.jpg|Title with & ampersand]]
12203 <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>
12204 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12210 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12212 Text's been normalized?
12214 <p>Text's been normalized?
12219 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12221 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12223 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12228 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12230 [http://www.example.org/ ideograms]
12232 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12237 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12239 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12241 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12265 Bug 31098 Template which includes system messages which includes the template
12269 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12270 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12275 Bug31490 Turkish: ucfirst 'blah'
12286 Bug31490 Turkish: ucfirst 'ix'
12297 Bug31490 Turkish: lcfirst 'BLAH'
12308 Bug31490 Turkish: ucfırst (with a dotless i)
12314 <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>
12319 Bug31490 ucfırst (with a dotless i) with English language
12325 <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>
12330 Bug 26375: TOC with italics
12332 title=[[Main Page]]
12335 == ''Lost'' episodes ==
12337 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12339 <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>
12342 <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>
12347 Bug 26375: TOC with bold
12349 title=[[Main Page]]
12352 == '''should be bold''' then normal text ==
12354 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12356 <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>
12359 <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>
12364 Bug 33845: Headings become cursive in TOC when they contain an image
12366 title=[[Main Page]]
12369 == Image [[Image:foobar.jpg]] ==
12371 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12373 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12376 <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>
12381 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12383 title=[[Main Page]]
12386 == <blockquote>Quote</blockquote> ==
12388 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12390 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12393 <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>
12398 Unclosed tags in TOC
12400 title=[[Main Page]]
12404 <small>Hanc marginis exiguitas non caperet.</small>
12407 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12409 <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>
12412 <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>
12413 <p><small>Hanc marginis exiguitas non caperet.</small>
12419 Multiple tags in TOC
12422 == <i>Foo</i> <b>Bar</b> ==
12424 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12426 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12428 <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>
12429 <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>
12432 <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>
12433 <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>
12438 Tags with parameters in TOC
12441 == <sup class="in-h2">Hello</sup> ==
12443 == <sup class="a > b">Evilbye</sup> ==
12445 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12447 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12448 <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>
12451 <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>
12452 <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>
12457 span tags with directionality in TOC
12460 == <span dir="ltr">C++</span> ==
12462 == <span dir="rtl">זבנג!</span> ==
12464 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12466 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12468 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12470 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12472 <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>
12473 <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>
12474 <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>
12475 <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>
12476 <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>
12479 <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>
12480 <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>
12481 <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>
12482 <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>
12483 <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>
12490 == {{int:headline_sample}} ==
12494 Bug 32057: Title needed when expanding <h> nodes.
12496 title=[[Main Page]]
12500 <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>
12505 Strip marker in urlencode
12507 {{urlencode:x<nowiki/>y}}
12508 {{urlencode:x<nowiki/>y|wiki}}
12509 {{urlencode:x<nowiki/>y|path}}
12536 Strip marker in formatNum
12538 {{formatnum:1<nowiki/>2}}
12539 {{formatnum:1<nowiki/>2|R}}
12547 Strip marker in grammar
12551 {{grammar:elative|foo<nowiki/>bar}}
12558 Strip marker in padleft
12560 {{padleft:|2|x<nowiki/>y}}
12567 Strip marker in padright
12569 {{padright:|2|x<nowiki/>y}}
12576 Strip marker in anchorencode
12578 {{anchorencode:x<nowiki/>y}}
12585 nowiki inside link inside heading (bug 18295)
12587 ==[[foo|x<nowiki>y</nowiki>z]]==
12589 <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>
12594 new support for bdi element (bug 31817)
12596 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12598 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12603 Ignore pipe between table row attributes
12607 |- id=foo | style='color: red'
12615 <tr id="foo" style="color: red">
12622 Gallery override link with WikiLink (bug 34852)
12625 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12628 <ul class="gallery">
12629 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12630 <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>
12631 <div class="gallerytext">
12641 Gallery override link with absolute external link (bug 34852)
12644 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12647 <ul class="gallery">
12648 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12649 <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>
12650 <div class="gallerytext">
12660 Gallery override link with malicious javascript (bug 34852)
12663 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12666 <ul class="gallery">
12667 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12668 <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>
12669 <div class="gallerytext">
12679 Gallery with invalid title as link (bug 43964)
12682 File:foobar.jpg|link=<
12685 <ul class="gallery">
12686 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12687 <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>
12688 <div class="gallerytext">
12696 Language parser function
12705 Padleft and padright as substr
12707 {{padleft:|3|abcde}}
12708 {{padright:|3|abcde}}
12716 Bug 34939 - Case insensitive link parsing ([HttP://])
12718 [HttP://MediaWiki.Org/]
12720 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12725 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12727 [HttP://MediaWiki.Org/ MediaWiki]
12729 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12734 Bug 34939 - Case insensitive link parsing (HttP://)
12736 HttP://MediaWiki.Org/
12738 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12743 ### Parsoids-specific tests
12744 ### Parsoid-PHP parser incompatibilities
12747 1. SOL-sensitive wikitext tokens as template-args
12761 #### The following section of tests are primarily to test
12762 #### wikitext escaping capabilities of Parsoid.
12763 #### A lot of the tests are disabled for the PHP parser either
12764 #### because of minor newline diffs or other reasons.
12765 #### As Parsoid serializer can handle newlines and other HTML
12766 #### more robustly, some of these tests might get reenabled
12767 #### for the PHP parser.
12769 #### --------------- Headings ---------------
12771 #### 1. Nested inside html <h1>=foo=</h1>
12772 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12773 #### 3. Nested inside html with wikitext split by html tags
12774 #### 4. No escape needed
12775 #### 5. Empty headings <h1></h1>
12776 #### 6. Heading chars in SOL context
12777 #### ----------------------------------------
12779 Headings: 0. Unnested
12781 <nowiki>=foo=</nowiki>
12783 <nowiki>=foo</nowiki>''a''=
12786 </p><p>=foo<i>a</i>=
12791 Headings: 1. Nested inside html
12795 =<nowiki>=foo=</nowiki>=
12796 ==<nowiki>=foo=</nowiki>==
12797 ===<nowiki>=foo=</nowiki>===
12798 ====<nowiki>=foo=</nowiki>====
12799 =====<nowiki>=foo=</nowiki>=====
12800 ======<nowiki>=foo=</nowiki>======
12811 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12816 <nowiki>*bar</nowiki>
12820 <nowiki>=bar=</nowiki>
12828 Headings: 3. Nested inside html with wikitext split by html tags
12832 =<nowiki>=</nowiki>'''bold'''foo==
12834 <h1>=<b>bold</b>foo=</h1>
12838 Headings: 4. No escaping needed (testing just h1 and h2)
12853 <h1><i>=</i>foo=</h1>
12858 Headings: 5. Empty headings
12862 =<nowiki></nowiki>=
12863 ==<nowiki></nowiki>==
12864 ===<nowiki></nowiki>===
12865 ====<nowiki></nowiki>====
12866 =====<nowiki></nowiki>=====
12867 ======<nowiki></nowiki>======
12878 Headings: 6. Heading chars in SOL context
12882 <!--cmt--><nowiki>=h1=</nowiki>
12888 #### --------------- Lists ---------------
12889 #### 0. Outside nests (*foo, etc.)
12890 #### 1. Nested inside html <ul><li>*foo</li></ul>
12891 #### 2. Inside definition lists
12892 #### 3. Only bullets at start should be escaped
12893 #### 4. No escapes needed
12894 #### 5. No unnecessary escapes
12895 #### 6. Escape bullets in SOL position
12896 #### 7. Escape bullets in a multi-line context
12897 #### ----------------------------------------
12900 Lists: 0. Outside nests
12902 <nowiki>*foo</nowiki>
12904 <nowiki>#foo</nowiki>
12912 Lists: 1. Nested inside html
12914 *<nowiki>*foo</nowiki>
12916 *<nowiki>#foo</nowiki>
12918 *<nowiki>:foo</nowiki>
12920 *<nowiki>;foo</nowiki>
12922 #<nowiki>*foo</nowiki>
12924 #<nowiki>#foo</nowiki>
12926 #<nowiki>:foo</nowiki>
12928 #<nowiki>;foo</nowiki>
12950 Lists: 2. Inside definition lists
12952 ;<nowiki>;foo</nowiki>
12954 ;<nowiki>:foo</nowiki>
12956 ;<nowiki>:foo</nowiki>
12959 :<nowiki>:foo</nowiki>
12974 Lists: 3. Only bullets at start of text should be escaped
12976 *<nowiki>*foo*bar</nowiki>
12978 *<nowiki>*foo</nowiki>''it''*bar
12982 <ul><li>*foo<i>it</i>*bar
12988 Lists: 4. No escapes needed
13000 <ul><li><i>foo</i>*bar
13002 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13007 Lists: 5. No unnecessary escapes
13009 * bar <span><nowiki>[[foo]]</nowiki></span>
13011 *=bar <span><nowiki>[[foo]]</nowiki></span>
13013 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13015 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13017 *=bar <span>foo]]</span>=
13019 <ul><li> bar <span>[[foo]]</span>
13021 <ul><li>=bar <span>[[foo]]</span>
13023 <ul><li>[[bar <span>[[foo]]</span>
13025 <ul><li>]]bar <span>[[foo]]</span>
13027 <ul><li>=bar <span>foo]]</span>=
13033 Lists: 6. Escape bullets in SOL position
13037 <!--cmt--><nowiki>*foo</nowiki>
13044 Lists: 7. Escape bullets in a multi-line context
13054 #### --------------- HRs ---------------
13055 #### 1. Single line
13056 #### -----------------------------------
13059 HRs: 1. Single line
13064 <nowiki>----</nowiki>
13066 <nowiki>=foo=</nowiki>
13068 <nowiki>*foo</nowiki>
13075 #### --------------- Tables ---------------
13076 #### 1a. Simple example
13077 #### 1b. No escaping needed (!foo)
13078 #### 1c. No escaping needed (|foo)
13079 #### 1d. No escaping needed (|}foo)
13081 #### 2a. Nested in td (<td>foo|bar</td>)
13082 #### 2b. Nested in td (<td>foo||bar</td>)
13083 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13085 #### 3a. Nested in th (<th>foo!bar</th>)
13086 #### 3b. Nested in th (<th>foo!!bar</th>)
13087 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13091 #### 4c. No escaping needed
13092 #### --------------------------------------
13095 Tables: 1a. Simple example
13106 Tables: 1b. No escaping needed
13115 Tables: 1c. No escaping needed
13124 Tables: 1d. No escaping needed
13133 Tables: 2a. Nested in td
13138 |<nowiki>foo|bar</nowiki>
13148 Tables: 2b. Nested in td
13153 |<nowiki>foo||bar</nowiki>
13154 |''it''<nowiki>foo||bar</nowiki>
13159 </td><td><i>it</i>foo||bar
13165 Tables: 2c. Nested in td -- no escaping needed
13180 Tables: 3a. Nested in th
13195 Tables: 3b. Nested in th
13200 !<nowiki>foo!!bar</nowiki>
13210 Tables: 3c. Nested in th -- no escaping needed
13225 Tables: 4a. Escape -
13233 |<nowiki>-bar</nowiki>
13237 <tr><th>-bar</th></tr>
13238 <tr><td>-bar</td></tr>
13243 Tables: 4b. Escape +
13251 |<nowiki>+bar</nowiki>
13255 <tr><th>+bar</th></tr>
13256 <tr><td>+bar</td></tr>
13261 Tables: 4c. No escaping needed
13275 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13276 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13281 Tables: 4d. No escaping needed
13297 #### --------------- Links ---------------
13298 #### 1. Quote marks in link text
13299 #### 2. Wikilinks: Escapes needed
13300 #### 3. Wikilinks: No escapes needed
13301 #### 4. Extlinks: Escapes needed
13302 #### 5. Extlinks: No escapes needed
13303 #### --------------------------------------
13305 Links 1. Quote marks in link text
13309 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13311 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13315 Links 2. WikiLinks: Escapes needed
13319 [[Foo|<nowiki>[Foobar]</nowiki>]]
13320 [[Foo|<nowiki>Foobar]</nowiki>]]
13321 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13322 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13323 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13324 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13325 [[Foo|<nowiki>|Bar</nowiki>]]
13327 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13328 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13329 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13330 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13331 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13332 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13333 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13337 Links 3. WikiLinks: No escapes needed
13344 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13345 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13349 Links 4. ExtLinks: Escapes needed
13353 [http://google.com <nowiki>[google]</nowiki>]
13354 [http://google.com <nowiki>google]</nowiki>]
13356 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13357 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13361 Links 5. ExtLinks: No escapes needed
13365 [http://google.com [google]
13367 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13370 #### --------------- Quotes ---------------
13371 #### 1. Quotes inside <b> and <i>
13372 #### 2. Link fragments separated by <i> and <b> tags
13373 #### 3. Link fragments inside <i> and <b>
13374 #### --------------------------------------
13376 1. Quotes inside <b> and <i>
13378 ''<nowiki>'foo'</nowiki>''
13379 ''<nowiki>''foo''</nowiki>''
13380 ''<nowiki>'''foo'''</nowiki>''
13381 '''<nowiki>'foo'</nowiki>'''
13382 '''<nowiki>''foo''</nowiki>'''
13383 '''<nowiki>'''foo'''</nowiki>'''
13384 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13392 <b>foo'<i>bar'</i>baz</b>
13397 2. Link fragments separated by <i> and <b> tags
13399 [[''foo''<nowiki>hello]]</nowiki>
13401 [['''foo'''<nowiki>hello]]</nowiki>
13403 <p>[[<i>foo</i>hello]]
13404 </p><p>[[<b>foo</b>hello]]
13409 2. Link fragments inside <i> and <b>
13410 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13411 this is one of the shortcomings of this format)
13413 ''[[foo''<nowiki>]]</nowiki>
13415 '''[[foo'''<nowiki>]]</nowiki>
13418 </p><p><b>[[foo</b>]]
13422 #### --------------- Paragraphs ---------------
13423 #### 1. No unnecessary escapes
13424 #### --------------------------------------
13427 1. No unnecessary escapes
13429 bar <span><nowiki>[[foo]]</nowiki></span>
13431 =bar <span><nowiki>[[foo]]</nowiki></span>
13433 [[bar <span><nowiki>[[foo]]</nowiki></span>
13435 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13437 <nowiki>=bar </nowiki><span>foo]]</span>=
13439 <p>bar <span>[[foo]]</span>
13440 </p><p>=bar <span>[[foo]]</span>
13441 </p><p>[[bar <span>[[foo]]</span>
13442 </p><p>]]bar <span>[[foo]]</span>
13443 </p><p>=bar <span>foo]]</span>=
13447 #### --------------- PRE ------------------
13448 #### 1. Leading space in SOL context should be escaped
13449 #### --------------------------------------
13451 1. Leading space in SOL context should be escaped
13455 <nowiki> foo</nowiki>
13456 <!--cmt--><nowiki> foo</nowiki>
13463 #### --------------- HTML tags ---------------
13466 #### 3. multi-line html tag
13467 #### --------------------------------------
13473 <a href="http://google.com">google</a>
13475 <a href="http://google.com">google</a>
13481 <nowiki><div>foo</div>
13482 <div style="color:red">foo</div></nowiki>
13484 <p><div>foo</div>
13485 <div style="color:red">foo</div>
13490 3. multi-line html tag
13502 #### --------------- Others ---------------
13506 <nowiki>foo</nowiki>
13508 <p><nowiki>foo</nowiki>
13513 Tag-like HTML structures are passed through as text
13535 </p><p>1<d e>f
13540 # This fails in the PHP parser (see bug 40670,
13541 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13543 Tag names followed by punctuation should not be recognized as tags
13549 <p><s.ome> text
13554 HTML tag with necessary entities in attributes
13556 <span title="&amp;">foo</span>
13558 <p><span title="&amp;">foo</span>
13563 HTML tag with 'unnecessary' entity encoding in attributes
13565 <span title="&">foo</span>
13567 <p><span title="&">foo</span>
13576 Try for 100% code coverage