1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
181 * plain''italic''plain
182 * plain''italic''plain''italic''plain
183 * plain'''bold'''plain
184 * plain'''bold'''plain'''bold'''plain
185 * plain''italic''plain'''bold'''plain
186 * plain'''bold'''plain''italic''plain
187 * plain''italic'''bold-italic'''italic''plain
188 * plain'''bold''bold-italic''bold'''plain
189 * plain'''''bold-italic'''italic''plain
190 * plain'''''bold-italic''bold'''plain
191 * plain''italic'''bold-italic'''''plain
192 * plain'''bold''bold-italic'''''plain
193 * plain l'''italic''plain
194 * plain l''''bold''' plain
197 </li><li> plain<i>italic</i>plain
198 </li><li> plain<i>italic</i>plain<i>italic</i>plain
199 </li><li> plain<b>bold</b>plain
200 </li><li> plain<b>bold</b>plain<b>bold</b>plain
201 </li><li> plain<i>italic</i>plain<b>bold</b>plain
202 </li><li> plain<b>bold</b>plain<i>italic</i>plain
203 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
204 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
205 </li><li> plain<i><b>bold-italic</b>italic</i>plain
206 </li><li> plain<b><i>bold-italic</i>bold</b>plain
207 </li><li> plain<i>italic<b>bold-italic</b></i>plain
208 </li><li> plain<b>bold<i>bold-italic</i></b>plain
209 </li><li> plain l'<i>italic</i>plain
210 </li><li> plain l'<b>bold</b> plain
216 ### 2-quote opening sequence tests
219 Italics and bold: 2-quote opening sequence: (2,2)
229 Italics and bold: 2-quote opening sequence: (2,3)
239 Italics and bold: 2-quote opening sequence: (2,4)
249 Italics and bold: 2-quote opening sequence: (2,5)
259 ### 3-quote opening sequence tests
263 Italics and bold: 3-quote opening sequence: (3,2)
273 Italics and bold: 3-quote opening sequence: (3,3)
283 Italics and bold: 3-quote opening sequence: (3,4)
293 Italics and bold: 3-quote opening sequence: (3,5)
303 ### 4-quote opening sequence tests
307 Italics and bold: 4-quote opening sequence: (4,2)
317 Italics and bold: 4-quote opening sequence: (4,3)
327 Italics and bold: 4-quote opening sequence: (4,4)
337 Italics and bold: 4-quote opening sequence: (4,5)
347 ### 5-quote opening sequence tests
351 Italics and bold: 5-quote opening sequence: (5,2)
361 Italics and bold: 5-quote opening sequence: (5,3)
371 Italics and bold: 5-quote opening sequence: (5,4)
375 <p><i><b>foo'</b></i>
381 Italics and bold: 5-quote opening sequence: (5,5)
390 ### multiple quote sequences in a line
393 Italics and bold: multiple quote sequences: (2,4,2)
397 <p><i>foo'<b>bar</b></i>
403 Italics and bold: multiple quote sequences: (2,4,3)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,4)
417 <p><i>foo'<b>bar'</b></i>
423 Italics and bold: multiple quote sequences: (3,4,2)
433 Italics and bold: multiple quote sequences: (3,4,3)
442 ### other quote tests
445 Italics and bold: other quote tests: (2,3,5)
447 ''this is about '''foo's family'''''
449 <p><i>this is about <b>foo's family</b></i>
455 Italics and bold: other quote tests: (2,(3,3),2)
457 ''this is about '''foo's''' family''
459 <p><i>this is about <b>foo's</b> family</i>
465 Italics and bold: other quote tests: (3,2,3,2)
467 '''this is about ''foo'''s family''
469 <p><b>this is about <i>foo</i></b><i>s family</i>
475 Italics and bold: other quote tests: (3,2,3,3)
477 '''this is about ''foo'''s family'''
479 <p>'<i>this is about </i>foo<b>s family</b>
486 Italics and bold: other quote tests: (3,(2,2),3)
488 '''this is about ''foo's'' family'''
490 <p><b>this is about <i>foo's</i> family</b>
495 ### <nowiki> test cases
499 <nowiki> unordered list
501 <nowiki>* This is not an unordered list item.</nowiki>
503 <p>* This is not an unordered list item.
510 <nowiki>Lorem ipsum dolor
531 :There is not nowiki.
532 :There is <nowiki>nowiki</nowiki>.
534 #There is not nowiki.
535 #There is <nowiki>nowiki</nowiki>.
537 *There is not nowiki.
538 *There is <nowiki>nowiki</nowiki>.
540 <dl><dd>There is not nowiki.
541 </dd><dd>There is nowiki.
543 <ol><li>There is not nowiki.
544 </li><li>There is nowiki.
546 <ul><li>There is not nowiki.
547 </li><li>There is nowiki.
553 Entities inside <nowiki>
555 <nowiki><</nowiki>
566 Comments and Indent-Pre
568 <!-- comment 1 --> asdf
570 <!-- comment 1 --> asdf
573 <!-- comment 1 --> asdf
574 <!-- comment 2 -->xyz
576 <!-- comment 1 --> asdf
577 <!-- comment 2 --> xyz
633 asdf<!-- comment 1 -->jkl
643 <!-- foo --> b <!-- bar -->
657 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
663 Comment semantics and delimiters
665 <!-- --><!----><!-----><!------>
671 Comment semantics and delimiters, redux
673 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
674 -- foo -- funky huh? ... -->
680 Comment semantics and delimiters: directors cut
682 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
683 everything starting with < followed by !-- until the first -- and > we see,
684 that wouldn't be valid XML however, since in XML -- has to terminate a comment
692 Comment semantics: nesting
694 <!--<!-- no, we're not going to do anything fancy here -->-->
701 Comment semantics: unclosed comment at end
703 <!--This comment will run out to the end of the document
709 Comment in template title
718 Comment on its own line post-expand
730 Comment on its own line post-expand with non-significant whitespace
742 ### paragraph wraping tests
756 Block tag on one line
768 Block tag on both lines
780 Multiple lines without block tags
798 Empty lines between block tags to test open p-tags are closed between the block tags
816 ### Preformatted text
825 And a [[Main Page|link]]
831 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
836 Ident preformatting with inline content
847 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
864 Regression with preformatted in <center>
877 # Expected output in the following test is not really expected (there should be
878 # <pre> in the output) -- it's only testing for well-formedness.
880 Bug 6200: Preformatted in <blockquote>
893 <pre> with attributes (bug 3202)
895 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
897 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
902 <pre> with width attribute (bug 3202)
904 <pre width="8">Narrow screen goodies</pre>
906 <pre width="8">Narrow screen goodies</pre>
911 <pre> with forbidden attribute (bug 3202)
913 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
915 <pre width="8">Narrow screen goodies</pre>
920 Entities inside <pre>
929 <pre> with forbidden attribute values (bug 3202)
931 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
933 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
938 <nowiki> inside <pre> (bug 13238)
946 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
954 <pre><nowiki>Foo</nowiki></pre>
959 <nowiki> and <pre> preference (first one wins)
992 <nowiki></pre></nowiki>
999 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1007 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1017 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1029 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1050 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1054 {{echo| foo}}{{echo| bar}}
1059 {{echo|<!--cmt--> foo}}
1061 <!--cmt-->{{echo| foo}}
1063 {{echo|{{echo| }}bar}}
1081 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1118 Templates: Single-line variant of parameter whitespace stripping test
1124 {{echo|{{echo| a}}}}
1126 {{echo|1={{echo| a}}}}
1139 Templates: Strip whitespace from named parameters, but not positional ones
1167 ### Parsoid-centric tests for testing RT edge cases for pre
1171 1a. Indent-Pre and Comments
1184 1b. Indent-Pre and Comments
1197 1c. Indent-Pre and Comments
1210 2a. Indent-Pre and tables
1231 2b. Indent-Pre and tables
1247 2c. Indent-Pre and tables (bug 42252)
1264 3a. Indent-Pre and block tags (single-line html)
1272 <pre><span> foo </span>
1277 3b. Indent-Pre and block tags (pre-content on separate line)
1329 4. Multiple spaces at start-of-line
1348 5. White-space in indent-pre
1349 NOTE: the white-space char on 2nd line is significant
1362 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1366 HTML-pre: 1. embedded newlines
1402 HTML-pre: 2: indented text
1415 HTML-pre: 3: other wikitext
1436 ### Definition lists
1443 <dl><dt> name </dt><dd> Definition
1449 Definition list for indentation only
1453 <dl><dd> Indented text
1459 Definition list with no space
1463 <dl><dt>name</dt><dd>Definition
1469 Definition list with URL link
1471 ; http://example.com/ : definition
1473 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1479 Definition list with bracketed URL link
1481 ;[http://www.example.com/ Example]:Something about it
1483 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1489 Definition list with wikilink containing colon
1491 ; [[Help:FAQ]]: The least-read page on Wikipedia
1493 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1498 # At Brion's and JeLuF's insistence... :)
1500 Definition list with news link containing colon
1502 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1504 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1510 Malformed definition list with colon
1512 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1514 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1520 Definition lists: colon in external link text
1522 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1524 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1530 Definition lists: colon in HTML attribute
1532 ;<b style="display: inline">bold</b>
1534 <dl><dt><b style="display: inline">bold</b>
1540 Definition lists: self-closed tag
1542 ;one<br/>two : two-line fun
1544 <dl><dt>one<br />two </dt><dd> two-line fun
1550 Bug 11748: Literal closing tags
1554 <dd>test test test test test</dd>
1556 <dd>test test test test test</dd>
1561 <dd>test test test test test</dd>
1563 <dd>test test test test test</dd>
1569 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1572 ; term : description
1578 <dl><dt> term </dt><dd> description
1589 Definition list with empty definition and following paragraph
1594 <dl><dt> term</dt><dd>
1601 Nested definition lists using html syntax
1618 Definition Lists: No nesting: Multiple dd's
1632 Definition Lists: Indentation: Regular
1648 Definition Lists: Indentation: Missing 1st level
1662 Definition Lists: Indentation: Multi-level indent
1666 <dl><dd><dl><dd><dl><dd>i3
1674 Definition Lists: Hacky use to indent tables
1681 should be left alone
1683 <dl><dd><dl><dd><table>
1688 </td></tr></table></dd></dl></dd></dl>
1690 should be left alone
1693 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1694 ## as an empty dt item. It also ignores all but the last ";" when followed
1695 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1696 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1699 ## Ex: ";;t2 ::d2" is transformed into:
1711 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1712 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1723 ## All Parsoid only definition list tests have this difference.
1725 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1726 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1729 Table / list interaction: indented table with lists in table contents
1751 </td></tr></table></dd></dl>
1756 Table / list interaction: lists nested in tables nested in indented lists
1781 </td></tr></table></dd></dl>
1789 Definition Lists: Nesting: Multi-level (Parsoid only)
1819 Definition Lists: Nesting: Test 2 (Parsoid only)
1839 Definition Lists: Nesting: Test 3 (Parsoid only)
1867 Definition Lists: Nesting: Test 4
1872 <dl><dd><dl><dd><dl><dt>t3
1882 Definition Lists: Mixed Lists: Test 1
1888 <dl><dd><dl><dt><ul><li> foo
1900 Definition Lists: Mixed Lists: Test 2
1914 Definition Lists: Mixed Lists: Test 3
1919 <ul><li><dl><dd><dl><dd><dl><dd> d1
1930 Definition Lists: Mixed Lists: Test 4
1935 <ul><li><dl><dt>d1 </dt><dd>d2
1936 </dd><dt>d3 </dt><dd>d4
1944 Definition Lists: Mixed Lists: Test 5
1959 Definition Lists: Mixed Lists: Test 6
1964 <ol><li><ul><li><dl><dd>d1
1976 Definition Lists: Mixed Lists: Test 7
1990 Definition Lists: Mixed Lists: Test 8
2006 Definition Lists: Mixed Lists: Test 9
2010 <ul><li><dl><dt>foo </dt><dd>bar
2018 Definition Lists: Mixed Lists: Test 10
2022 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2031 Definition Lists: Mixed Lists: Test 11
2036 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2041 <dl><dt>boo </dt><dd>baz
2052 Definition Lists: Weird Ones: Test 1
2054 *#;*::;; foo : bar (who uses this?)
2056 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2072 External links: non-bracketed
2074 Non-bracketed: http://example.com
2076 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2081 External links: numbered
2083 Numbered: [http://example.com]
2084 Numbered: [http://example.net]
2085 Numbered: [http://example.com]
2087 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2088 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2089 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2094 External links: specified text
2096 Specified text: [http://example.com link]
2098 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2103 External links: trail
2105 Linktrails should not work for external links: [http://example.com link]s
2107 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2112 External links: dollar sign in URL
2114 http://example.com/1$2345
2116 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2121 External links: dollar sign in URL (named)
2123 [http://example.com/1$2345]
2125 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2130 External links: open square bracket forbidden in URL (bug 4377)
2132 http://example.com/1[2345
2134 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2139 External links: open square bracket forbidden in URL (named) (bug 4377)
2141 [http://example.com/1[2345]
2143 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2148 External links: nowiki in URL link text (bug 6230)
2150 [http://example.com/ <nowiki>''example site''</nowiki>]
2152 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2157 External links: newline forbidden in text (bug 6230 regression check)
2159 [http://example.com/ first
2162 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2168 External links: Pipe char between url and text
2170 [http://example.com | link]
2172 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2177 External links: protocol-relative URL in brackets
2179 [//example.com/ Test]
2181 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2186 External links: protocol-relative URL in brackets without text
2190 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2195 External links: protocol-relative URL in free text is left alone
2199 <p>//example.com/Foo
2204 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2206 foo//example.com/Foo
2208 <p>foo//example.com/Foo
2215 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2217 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2222 External image from https
2224 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2226 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2231 Link to non-http image, no img tag
2233 Link to non-http image, no img tag: ftp://example.com/test.jpg
2235 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2240 External links: terminating separator
2242 Terminating separator: http://example.com/thing,
2244 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2249 External links: intervening separator
2251 Intervening separator: http://example.com/1,2,3
2253 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2258 External links: old bug with URL in query
2260 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2262 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2267 External links: old URL-in-URL bug, mixed protocols
2269 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2271 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2276 External links: URL in text
2278 URL in text: [http://example.com http://example.com]
2280 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2285 External links: Clickable images
2287 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2289 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2294 External links: raw ampersand
2296 Old & use: http://x&y
2298 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2303 External links: encoded ampersand
2305 Old & use: http://x&y
2307 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2312 External links: encoded equals (bug 6102)
2314 http://example.com/?foo=bar
2316 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2321 External links: [raw ampersand]
2323 Old & use: [http://x&y]
2325 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2330 External links: [encoded ampersand]
2332 Old & use: [http://x&y]
2334 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2339 External links: [encoded equals] (bug 6102)
2341 [http://example.com/?foo=bar]
2343 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2348 External links: [IDN ignored character reference in hostname; strip it right off]
2350 [http://e‌xample.com/]
2352 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2356 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2357 # Where an external link could easily circumvent the sanitization of the text of
2358 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2359 # test demands a higher standard. That's a bit strange.
2363 # http://example.com -> [http://example.com|http://example.com]
2364 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2366 # The first example is sanitized, but the second is not. Any security benefits
2367 # from this production are trivial to circumvent. Either remove this test and
2368 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2369 # the test accordingly.
2374 External links: IDN ignored character reference in hostname; strip it right off
2376 http://e‌xample.com/
2378 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2383 External links: www.jpeg.org (bug 554)
2387 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2392 External links: URL within URL (original bug 2)
2394 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2396 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2401 BUG 361: URL inside bracketed URL
2403 [http://www.example.com/foo http://www.example.com/bar]
2405 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2410 BUG 361: URL within URL, not bracketed
2412 http://www.example.com/foo?=http://www.example.com/bar
2414 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2419 BUG 289: ">"-token in URL-tail
2421 http://www.example.com/<hello>
2423 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2428 BUG 289: literal ">"-token in URL-tail
2430 http://www.example.com/<b>html</b>
2432 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2437 BUG 289: ">"-token in bracketed URL
2439 [http://www.example.com/<hello> stuff]
2441 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2446 BUG 289: literal ">"-token in bracketed URL
2448 [http://www.example.com/<b>html</b> stuff]
2450 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2455 BUG 289: literal double quote at end of URL
2457 http://www.example.com/"hello"
2459 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2464 BUG 289: literal double quote in bracketed URL
2466 [http://www.example.com/"hello" stuff]
2468 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2473 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2475 [http://www.example.com test]
2477 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2482 External links: wiki links within external link (Bug 3695)
2484 [http://example.com [[wikilink]] embedded in ext link]
2486 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2491 BUG 787: Links with one slash after the url protocol are invalid
2495 [http:/example.com title]
2497 <p>http:/example.com
2498 </p><p>[http:/example.com title]
2503 Bracketed external links with template-generated invalid target
2505 [{{echo|http:/example.com}} title]
2507 <p>[http:/example.com title]
2512 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2514 ''[http://example.com text'']
2515 [http://example.com '''text]'''
2516 ''Something [http://example.com in italic'']
2517 ''Something [http://example.com mixed''''', even bold]'''
2518 '''''Now [http://example.com both''''']
2520 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2521 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2522 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2523 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2524 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2530 Bug 4781: %26 in URL
2532 http://www.example.com/?title=AT%26T
2534 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2538 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2539 # % is actually legal in HTML5. Any change in output would need testing though.
2541 Bug 4781, 5267: %25 in URL
2543 http://www.example.com/?title=100%25_Bran
2545 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2550 Bug 4781, 5267: %28, %29 in URL
2552 http://www.example.com/?title=Ben-Hur_%281959_film%29
2554 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2560 Bug 4781: %26 in autonumber URL
2562 [http://www.example.com/?title=AT%26T]
2564 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2569 Bug 4781, 5267: %26 in autonumber URL
2571 [http://www.example.com/?title=100%25_Bran]
2573 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2578 Bug 4781, 5267: %28, %29 in autonumber URL
2580 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2582 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2588 Bug 4781: %26 in bracketed URL
2590 [http://www.example.com/?title=AT%26T link]
2592 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2597 Bug 4781, 5267: %26 in bracketed URL
2599 [http://www.example.com/?title=100%25_Bran link]
2601 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2606 Bug 4781, 5267: %28, %29 in bracketed URL
2608 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2610 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2615 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2617 Some [http://example.com/ pretty ''italics'' and stuff]!
2619 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2624 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2626 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2628 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2633 External link containing double-single-quotes with no space separating the url from text in italics
2635 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2637 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2642 URL-encoding in URL functions (single parameter)
2644 {{localurl:Some page|amp=&}}
2646 <p>/index.php?title=Some_page&amp=&
2651 URL-encoding in URL functions (multiple parameters)
2653 {{localurl:Some page|q=?&=&}}
2655 <p>/index.php?title=Some_page&q=?&amp=&
2662 http://example.com/index.php?foozoid%5B%5D=bar
2664 http://example.com/index.php?foozoid[]=bar
2666 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2667 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2672 IPv6 urls (bug 21261)
2676 http://[2404:130:0:1000::187:2]/index.php
2678 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
2683 Non-extlinks in brackets
2692 [{{echo|foo}} ''bar'']
2693 [{{echo|foo}}l's] errand
2694 [{{echo|foo}}l's errand]
2716 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2718 Normal text. '''''Bold italic text.''''' Normal text.
2720 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2721 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2727 Unclosed and unmatched quotes
2729 '''''Bold italic text '''with bold deactivated''' in between.'''''
2731 '''''Bold italic text ''with italic deactivated'' in between.'''''
2735 ..spanning two paragraphs (should not work).'''
2737 '''Bold tag left open
2739 ''Italic tag left open
2743 <!-- Unmatching number of opening, closing tags: -->
2744 '''This year''''s election ''should'' beat '''last year''''s.
2746 ''Tom'''s car is bigger than ''Susan'''s.
2748 Plain ''italic'''s plain
2750 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2751 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2752 </p><p><b>Bold text..</b>
2753 </p><p>..spanning two paragraphs (should not work).
2754 </p><p><b>Bold tag left open</b>
2755 </p><p><i>Italic tag left open</i>
2757 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2758 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2759 </p><p>Plain <i>italic'</i>s plain
2766 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2769 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2770 # is the bare minimun required by the spec, see:
2771 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2773 A table with no data.
2779 # A table with nothing but a caption is invalid XHTML, we might want to render
2780 # this as <p>caption</p>
2782 A table with nothing but a caption
2790 </caption><tr><td></td></tr></table>
2795 A table with caption with default-spaced attributes and a table row
2798 |+ style="color: red;" | caption1
2804 <caption style="color: red;"> caption1
2813 A table with captions with non-default spaced attributes and a table row
2816 |+style="color: red;"|caption2
2817 |+ style="color: red;"| caption3
2823 <caption style="color: red;">caption2
2825 <caption style="color: red;"> caption3
2834 Table td-cell syntax variations
2838 | foo bar foo || baz
2839 | style='color:red;' | baz
2840 | style='color:red;' || baz
2847 <td> foo bar foo </td>
2850 <td style="color:red;"> baz
2852 <td> style='color:red;' </td>
2880 Simple table but with multiple dashes for row wikitext
2898 Multiplication table
2900 {| border="1" cellpadding="2"
2901 |+Multiplication table
2903 ! × !! 1 !! 2 !! 3
2921 <table border="1" cellpadding="2">
2922 <caption>Multiplication table
2969 Accept "||" in table headings
2984 Accept "||" in indented table headings
2994 </th></tr></table></dd></dl>
2999 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3016 Accept "| !" at start of line in tables (ignore !-attribute)
3020 | !style="color:red" | bar
3032 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
3036 |style='color:red;'|+1
3037 |style='color:blue;'|-1
3049 <td style="color:red;">+1
3051 <td style="color:blue;">-1
3075 |rowspan=2| Cell 2, row 1 (and 2)
3086 <td rowspan="2"> Cell 2, row 1 (and 2)
3104 {| bgcolor=#ABCDEF border=2
3109 |the original table again
3117 <table bgcolor="#ABCDEF" border="2">
3125 <td>the original table again
3131 Invalid attributes in table cell (bug 1830)
3146 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3149 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3153 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3154 <td>]" onmouseover="alert(document.cookie)">test
3163 Indented table markup mixed with indented pre content (proposed in bug 6200)
3168 Text that should be rendered preformatted
3176 <pre>Text that should be rendered preformatted
3185 Template-generated table cell attributes and cell content
3193 <td style="color: red"> Foo
3199 Table with row followed by newlines and table heading
3216 # FIXME: Preserve the attribute properly (with an empty string as value) in
3217 # the PHP parser. Parsoid implements the behavior below.
3219 Table attributes with empty value
3235 Wikitext table with a lot of comments
3261 Plain link, capitalized
3265 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3270 Plain link, uncapitalized
3274 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3281 [[Main Page|The Main Page]]
3283 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3292 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3297 Broken link with fragment
3299 [[Zigzagzogzagzig#zug]]
3301 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3306 Special page link with fragment
3308 [[Special:Version#anchor]]
3310 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3315 Nonexistent special page link with fragment
3317 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3319 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3326 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3328 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3335 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3337 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
3348 Bug 43661: Piped links with identical prefixes
3350 [[prefixed article|prefixed articles with spaces]]
3352 [[prefixed article|prefixed articlesaoeu]]
3354 [[Main Page|Main Page test]]
3356 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3357 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3358 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3364 Link with HTML entity in suffix / tail
3366 [[Main Page]]", [[Main Page]]a
3368 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3373 Link with 3 brackets
3382 Piped link with 3 brackets
3384 [[[main page|the main page]]]
3386 <p>[[[main page|the main page]]]
3391 Link with multiple pipes
3393 [[Main Page|The|Main|Page]]
3395 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3402 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3404 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
3409 Piped link to namespace
3411 [[Meta:Disclaimers|The disclaimers]]
3413 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3420 [[Usually caused by a typo (oops}]]
3422 <p>[[Usually caused by a typo (oops}]]
3427 Link containing % (not as a hex sequence)
3431 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3436 Link containing % as a single hex sequence interpreted to char
3440 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3445 Link containing % as a double hex sequence interpreted to hex sequence
3449 <p>[[7%2525 Solution]]
3454 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3455 Example for such a section: == < ==
3457 [[%23%3c]][[%23%3e]]
3459 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3464 Link containing "<#" and ">#" as a hex sequences
3466 [[%3c%23]][[%3e%23]]
3468 <p>[[%3c%23]][[%3e%23]]
3473 Link containing double-single-quotes '' (bug 4598)
3475 [[Lista d''e paise d''o munno]]
3477 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
3482 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3484 Some [[Link|pretty ''italics'' and stuff]]!
3486 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
3491 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3493 ''Some [[Link|pretty ''italics'' and stuff]]!
3495 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
3500 Link with double quotes in title part (literal) and alternate part (interpreted)
3502 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3506 [[''Pentecoste''|Pentecoste]]
3508 [[''Pentecoste''|''Pentecoste'']]
3510 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
3511 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
3512 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
3513 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
3518 Broken image links with HTML captions (bug 39700)
3520 [[File:Nonexistent|<script></script>]]
3521 [[File:Nonexistent|100px|<script></script>]]
3522 [[File:Nonexistent|<]]
3523 [[File:Nonexistent|a<i>b</i>c]]
3525 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3526 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3527 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3528 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3535 [[http://www.example.com]]
3537 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3542 Plain link to URL with link text
3544 [[http://www.example.com Link text]]
3546 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3551 Plain link to protocol-relative URL
3553 [[//www.example.com]]
3555 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3560 Plain link to protocol-relative URL with link text
3562 [[//www.example.com Link text]]
3564 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3569 Plain link to page with question mark in title
3575 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3576 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3581 # I'm fairly sure the expected result here is wrong.
3582 # We want these to be URL links, not pseudo-pages with URLs for titles....
3583 # However the current output is also pretty screwy.
3586 # I'm changing it to match the current output--it arguably makes more
3587 # sense in the light of the test above. Old expected result was:
3588 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3590 # But I think this test is bordering on "garbage in, garbage out" anyway.
3595 Piped link to URL: [[http://www.example.com|an example URL]]
3597 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3602 BUG 2: [[page|http://url/]] should link to page, not http://url/
3604 [[Main Page|http://url/]]
3606 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3611 BUG 337: Escaped self-links should be bold
3615 [[Bug462]] [[Bug462]]
3617 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3622 Self-link to section should not be bold
3626 [[Main Page#section]]
3628 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3639 Self-link to numeric title
3645 <p><strong class="selflink">0</strong>
3650 Link to numeric-equivalent title
3656 <p><a href="/wiki/00" title="00">00</a>
3661 <nowiki> inside a link
3663 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3665 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3670 Non-breaking spaces in title
3672 [[ Main Page ]]
3674 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3679 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3685 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3690 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3696 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3701 Internal link with en linktrail: no apostrophes (bug 27473)
3707 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3712 Internal link with ca linktrail with apostrophes (bug 27473)
3718 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3723 Internal link with kaa linktrail with apostrophes (bug 27473)
3729 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3734 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3742 [http://wp.org ''foo'']
3744 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3745 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3746 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3747 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3752 ### Interwiki links (see maintenance/interwiki.sql)
3756 Inline interwiki link
3758 [[MeatBall:SoftSecurity]]
3760 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3765 Inline interwiki link with empty title (bug 2372)
3769 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3774 Interwiki link encoding conversion (bug 1636)
3776 *[[Wikipedia:ro:Olteniţa]]
3777 *[[Wikipedia:ro:Olteniţa]]
3779 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3780 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3786 Interwiki link with fragment (bug 2130)
3788 [[MeatBall:SoftSecurity#foo]]
3790 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3805 Double interlanguage link
3816 Interlanguage link, with prefix links
3828 Double interlanguage link, with prefix links (bug 8897)
3841 Parsoid-specific test: Wikilinks with should RT properly
3847 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3865 Broken br tag sanitization
3874 Incorrecly removing closing slashes from correctly formed XHTML
3876 <br style="clear:both;" />
3878 <p><br style="clear:both;" />
3883 Failing to transform badly formed HTML into correct XHTML
3885 <br style="clear: left;">
3886 <br style="clear: right;">
3887 <br style="clear: both;">
3889 <p><br style="clear: left;" />
3890 <br style="clear: right;" />
3891 <br style="clear: both;" />
3896 Handling html with a div self-closing tag
3905 <p><div title />
3909 <p><div title=bar />
3910 <div title=bar/>
3912 <div title="bar/"></div>
3918 Handling html with a br self-closing tag
3927 <p><br title="title" />
3928 <br title="title" />
3937 Horizontal ruler (should it add that extra space?)
3951 Horizontal ruler -- 4+ dashes render hr
3960 Horizontal ruler -- eats additional dashes on the same line
3969 Horizontal ruler -- does not collaps dashes on consecutive lines
3980 Horizontal ruler -- <4 dashes render as plain text
3989 Horizontal ruler -- Supports content following dashes on same line
3998 ### Block-level elements
4021 <ol><li>Numbered list
4038 ***#Number on level 4
4040 **#Number on level 3
4041 **#Number on level 3
4045 #** Level 3, but ordered
4048 <ol><li> with numbers
4050 <ul><li> and bullets
4052 <ol><li> and numbers
4054 </li><li>bullets again
4055 <ul><li>bullet level 2
4056 <ul><li>bullet level 3
4057 <ol><li>Number on level 4
4060 </li><li>bullet level 2
4061 <ol><li>Number on level 3
4062 </li><li>Number on level 3
4065 <ol><li>number level 2
4068 <ul><li><ul><li> Level 3
4072 <ol><li><ul><li><ul><li> Level 3, but ordered
4106 Nested lists 3 (first element empty)
4119 Nested lists 4 (first element empty)
4132 Nested lists 5 (both elements empty)
4145 Nested lists 6 (both elements empty)
4158 Nested lists 7 (skip initial nesting levels)
4162 <ul><li><ul><li><ul><li> foo
4170 Nested lists 8 (multiple nesting transitions)
4178 <ul><li><ul><li> bar
4188 1. Lists with start-of-line-transparent tokens before bullets: Comments
4202 2. Lists with start-of-line-transparent tokens before bullets: Template close
4214 Unbalanced closing block tags break a list
4215 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4225 </li></ul></div><div>
4231 Unbalanced closing non-block tags don't break a list
4232 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4242 <ul><li>a<span></span>
4248 Unclosed formatting tags that straddle lists are closed and reopened
4249 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4257 </li><li> <s> b </s>
4262 List embedded in a non-block tag
4263 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4271 <p><small></small></p>
4277 <p><small></small></p>
4281 List items are not parsed correctly following a <pre> block (bug 785)
4287 <ul><li> <pre>foo</pre>
4288 </li><li> <pre>bar</pre>
4295 List items from template
4306 * notSOL{{inner list}}
4325 List interrupted by empty line or heading
4335 <ul><li><ul><li> bar
4338 <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>
4339 <ul><li> Another list item
4345 Multiple list tags generated by templates
4364 Magic Word: {{CURRENTDAY}}
4373 Magic Word: {{CURRENTDAY2}}
4382 Magic Word: {{CURRENTDAYNAME}}
4391 Magic Word: {{CURRENTDOW}}
4400 Magic Word: {{CURRENTMONTH}}
4409 Magic Word: {{CURRENTMONTHABBREV}}
4411 {{CURRENTMONTHABBREV}}
4418 Magic Word: {{CURRENTMONTHNAME}}
4420 {{CURRENTMONTHNAME}}
4427 Magic Word: {{CURRENTMONTHNAMEGEN}}
4429 {{CURRENTMONTHNAMEGEN}}
4436 Magic Word: {{CURRENTTIME}}
4445 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4454 Magic Word: {{CURRENTYEAR}}
4463 Magic Word: {{FULLPAGENAME}}
4465 title=[[User:Ævar Arnfjörð Bjarmason]]
4469 <p>User:Ævar Arnfjörð Bjarmason
4474 Magic Word: {{FULLPAGENAMEE}}
4476 title=[[User:Ævar Arnfjörð Bjarmason]]
4480 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4485 Magic Word: {{NAMESPACE}}
4487 title=[[User:Ævar Arnfjörð Bjarmason]]
4496 Magic Word: {{NAMESPACEE}}
4498 title=[[User:Ævar Arnfjörð Bjarmason]]
4507 Magic Word: {{NAMESPACENUMBER}}
4509 title=[[User:Ævar Arnfjörð Bjarmason]]
4518 Magic Word: {{NUMBEROFFILES}}
4527 Magic Word: {{PAGENAME}}
4529 title=[[User:Ævar Arnfjörð Bjarmason]]
4533 <p>Ævar Arnfjörð Bjarmason
4538 Magic Word: {{PAGENAME}} with metacharacters
4540 title=[['foo & bar = baz']]
4544 <p><i>'foo & bar = baz'</i>
4549 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4551 title=[[*RFC 1234 http://example.com/]]
4555 <p>*RFC 1234 http://example.com/
4560 Magic Word: {{PAGENAMEE}}
4562 title=[[User:Ævar Arnfjörð Bjarmason]]
4566 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4571 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4573 title=[[*RFC 1234 http://example.com/]]
4577 <p>*RFC_1234_http://example.com/
4582 Magic Word: {{REVISIONID}}
4591 Magic Word: {{SCRIPTPATH}}
4600 Magic Word: {{SERVER}}
4604 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4609 Magic Word: {{SERVERNAME}}
4618 Magic Word: {{SITENAME}}
4627 Namespace 1 {{ns:1}}
4636 Namespace 1 {{ns:01}}
4645 Namespace 0 {{ns:0}} (bug 4783)
4653 Namespace 0 {{ns:00}} (bug 4783)
4661 Namespace -1 {{ns:-1}}
4670 Namespace User {{ns:User}}
4679 Namespace User talk {{ns:User_talk}}
4688 Namespace User talk {{ns:uSeR tAlK}}
4697 Namespace File {{ns:File}}
4706 Namespace File {{ns:Image}}
4715 Namespace (lang=de) Benutzer {{ns:User}}
4726 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4732 <p>Benutzer Diskussion
4740 {{urlencode:hi world?!}}
4741 {{urlencode:hi world?!|WIKI}}
4742 {{urlencode:hi world?!|PATH}}
4743 {{urlencode:hi world?!|QUERY}}
4756 Magic links: internal link to RFC (bug 479)
4760 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4765 Magic links: RFC (bug 479)
4769 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4774 Magic links: ISBN (bug 1937)
4778 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4783 Magic links: PMID incorrectly converts space to underscore
4787 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4796 Nonexistent template
4798 {{thistemplatedoesnotexist}}
4800 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4805 Template with invalid target containing tags
4807 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4809 <p>{{a<b>b</b>|foo|a=b|a = b}}
4814 Template with invalid target containing unclosed tag
4816 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4818 <p>{{a<b>|foo|a=b|a = b}}</b>
4825 This is a test template
4833 <p>This is a test template
4838 Template with explicit namespace
4842 <p>This is a test template
4850 This is a test template with parameter {{{param}}}
4856 {{paramtest|param=foo}}
4858 <p>This is a test template with parameter foo
4863 Template:paramtestnum
4869 Template unnamed parameter
4871 {{paramtestnum|Main Page|the main page}}
4873 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4878 Template:templatesimple
4884 Template:templateredirect
4886 #redirect [[Template:templatesimple]]
4890 Template:templateasargtestnum
4896 Template:templateasargtest
4898 {{template{{{templ}}}}}
4902 Template:templateasargtest2
4908 Template with template name as unnamed argument
4910 {{templateasargtestnum|templatesimple}}
4917 Template with template name as argument
4919 {{templateasargtest|templ=simple}}
4926 Template with template name as argument (2)
4928 {{templateasargtest2|templ=templatesimple}}
4935 Template:templateasargtestdefault
4937 {{{{{templ|templatesimple}}}}}
4947 Template with default value
4949 {{templateasargtestdefault}}
4956 Template with default value (value set)
4958 {{templateasargtestdefault|templ=templa}}
4967 {{templateredirect}}
4974 Template with argument in separate line
4976 {{ templateasargtest |
4984 Template with complex template as argument
4987 param ={{ templateasargtest |
4990 <p>This is a test template with parameter (test)
4995 Template with thumb image (with link in description)
4998 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5000 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>
5005 Template:complextemplate
5007 {{{1}}} {{paramtest|
5008 param ={{{param}}}}}
5012 Template with complex arguments
5015 param ={{ templateasargtest |
5016 templ = simple }}|[[Template:complextemplate|link]]}}
5018 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5023 BUG 553: link with two variables in a piped link
5026 |[[{{{1}}}|{{{2}}}]]
5031 <td>[[{{{1}}}|{{{2}}}]]
5037 Magic variable as template parameter
5039 {{paramtest|param={{SITENAME}}}}
5041 <p>This is a test template with parameter MediaWiki
5048 [[{{{param}}}|link]]
5052 Template parameter as link source
5054 {{linktest|param=Main Page}}
5056 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5061 Template-generated attribute string (k='v')
5063 <span {{attr_str|id|v1}}>bar</span>
5065 <p><span id="v1">bar</span>
5072 including another template, {{paramtest|param={{{arg}}}}}
5076 Template passing argument to another template
5078 {{paramtest2|arg='hmm'}}
5080 <p>including another template, This is a test template with parameter 'hmm'
5091 Template as link source
5095 [[{{linktest2}}|Main Page]]
5097 [[{{linktest2}}]]Page
5099 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5100 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5101 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5119 Template infinite loop
5123 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5128 Template from main namespace
5147 BUG 529: Template with table, not included at beginning of line
5166 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5186 BUG 41: Template parameters shown as broken links
5195 Template with targets containing wikilinks
5199 {{[[{{echo|foo}}]]}}
5201 {{{{echo|[[foo}}]]}}
5203 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5204 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5212 ''None'' of '''this''' should be
5214 but rather passed unmodified
5218 # hmm, fix this or just deprecate msgnw and document its behavior?
5224 {{msgnw:MSGNW test}}
5226 <p>''None'' of '''this''' should be
5228 but rather passed unmodified
5236 {{int:youhavenewmessages|lots of money|not!}}
5238 <p>You have lots of money (not!).
5245 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5249 <includeonly> and <noinclude> being included
5260 <onlyinclude>Foo</onlyinclude>bar
5264 <onlyinclude> being included
5276 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5280 <onlyinclude> and <includeonly> being included
5289 <includeonly> and <noinclude> on a page
5291 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5298 Un-closed <noinclude>
5305 <onlyinclude> on a page
5307 <onlyinclude>Foo</onlyinclude>bar
5314 Un-closed <onlyinclude>
5321 Self-closed noinclude, includeonly, onlyinclude tags
5332 Unbalanced includeonly and noinclude tags
5336 |b</noinclude></noinclude>
5337 |c</noinclude></includeonly>
5338 |d</includeonly></includeonly>
5347 <td>c</includeonly>
5349 <td>d</includeonly></includeonly>
5355 Template:Includeonly section
5358 ==Includeonly section==
5364 Bug 6563: Edit link generation for section shown by <includeonly>
5366 {{includeonly section}}
5368 <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>
5369 <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>
5373 # Uses same input as the contents of [[Template:Includeonly section]]
5375 Bug 6563: Section extraction for section shown by <includeonly>
5380 ==Includeonly section==
5388 Bug 6563: Edit link generation for section suppressed by <includeonly>
5391 ==Includeonly section==
5395 <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>
5400 Bug 6563: Section extraction for section suppressed by <includeonly>
5405 ==Includeonly section==
5413 Un-closed <includeonly>
5420 ### <includeonly> and <noinclude> in attributes
5423 0. includeonly around the entire attribute
5425 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5427 <p><span id="v2">bar</span>
5432 1. includeonly in html attr key
5434 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5436 <p><span id="foo">bar</span>
5441 2. includeonly in html attr value
5443 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5444 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5446 <p><span id="v1">bar</span>
5447 <span id="v1">bar</span>
5452 3. includeonly in part of an attr value
5454 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5456 <p><span style="color:red;">bar</span>
5461 ### Testing parsing of templates where a template arg
5462 ### has the same name as the template itself.
5472 Templates: Template Name/Arg clash: 1. Use of positional param
5481 Templates: Template Name/Arg clash: 2. Use of named param
5490 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5499 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5503 Templates: 1. Simple use
5512 Templates: 2. Inside a block tag
5514 <div>{{echo|Foo}}</div>
5521 Templates: P-wrapping: 1a. Templates on consecutive lines
5532 Templates: P-wrapping: 1b. Templates on consecutive lines
5546 Templates: P-wrapping: 1c. Templates on consecutive lines
5549 {{echo|bar}} <div>baz</div>
5558 Templates: Inline Text: 1. Multiple tmeplate uses
5560 {{echo|Foo}}bar{{echo|baz}}
5567 Templates: Inline Text: 2. Back-to-back template uses
5569 {{echo|Foo}}{{echo|bar}}
5576 Templates: Block Tags: 1. Multiple template uses
5578 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5580 <div>Foo</div><div>bar</div><div>baz</div>
5585 Templates: Block Tags: 2. Back-to-back template uses
5587 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5589 <div>Foo</div><div>bar</div>
5594 Templates: Links: 1. Simple example
5596 {{echo|[[Foo|bar]]}}
5598 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5603 Templates: Links: 2. Generation of link href
5605 [[{{echo|Foo}}|bar]]
5607 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5612 Templates: Links: 3. Generation of part of a link href
5614 [[Fo{{echo|o}}|bar]]
5618 [[Foo{{echo|bar}}baz]]
5620 [[Foo{{echo|bar}}|bar]]
5622 [[:Foo{{echo|bar}}]]
5624 [[:Foo{{echo|bar}}|bar]]
5626 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5627 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5628 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5629 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5630 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5631 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5636 Templates: Links: 4. Multiple templates generating link href
5638 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5640 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5645 Templates: Links: 5. Generation of link text
5647 [[Foo|{{echo|bar}}]]
5649 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5654 Templates: Links: 5. Nested templates (only outermost template should be marked)
5656 {{echo|[[{{echo|Foo}}|bar]]}}
5658 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5663 Templates: HTML Tag: 1. Generation of HTML attr. key
5665 <div {{echo|style}}="color:red;">foo</div>
5667 <div style="color:red;">foo</div>
5672 Templates: HTML Tag: 2. Generation of HTML attr. value
5674 <div style={{echo|'color:red;'}}>foo</div>
5676 <div style="color:red;">foo</div>
5681 Templates: HTML Tag: 3. Generation of HTML attr key and value
5683 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5685 <div style="color:red;">foo</div>
5690 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5692 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5694 <div title="This is a long title with just one piece templated">foo</div>
5699 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5701 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5703 <div title="This is a long title with just one piece templated">foo</div>
5708 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5710 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5712 <div title="This is a long title with just one piece templated">foo</div>
5717 Templates: HTML Tables: 1. Generating start of a HTML table
5719 {{echo|<table><tr><td>foo</td>}}</tr></table>
5721 <table><tr><td>foo</td></tr></table>
5726 Templates: HTML Tables: 2a. Generating middle of a HTML table
5728 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5730 <table><tr><td>foo</td></tr></table>
5735 Templates: HTML Tables: 2b. Generating middle of a HTML table
5737 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5739 <table><tr><td>foo</td></tr></table>
5744 Templates: HTML Tables: 3. Generating end of a HTML table
5746 <table><tr>{{echo|<td>foo</td></tr></table>}}
5748 <table><tr><td>foo</td></tr></table>
5753 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5755 {{echo|<table>}}<tr><td>foo</td></tr></table>
5757 <table><tr><td>foo</td></tr></table>
5762 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5764 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5766 <table><tr><td>foo</td></tr></table>
5771 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5773 <table><tr>{{echo|<td>}}foo</td></tr></table>
5775 <table><tr><td>foo</td></tr></table>
5780 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5782 <table><tr><td>foo{{echo|</td>}}</tr></table>
5784 <table><tr><td>foo</td></tr></table>
5789 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5791 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5793 <table><tr><td>foo</td></tr></table>
5798 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5800 <table><tr><td>foo</td></tr>{{echo|</table>}}
5802 <table><tr><td>foo</td></tr></table>
5807 Templates: Wiki Tables: 1. Fostering of entire template content
5815 <tr><td></td></tr></table>
5820 Templates: Wiki Tables: 2. Fostering of partial template content
5830 <tr><td></td></tr></table>
5835 Templates: Wiki Tables: 3. td-content via multiple templates
5838 {{echo|{{pipe}}a}}{{echo|b}}
5849 Templates: Wiki Tables: 4. Templated tags, no content
5855 <tr><td></td></tr></table>
5860 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5874 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5888 Templates: Lists: Multi-line list-items via templates
5890 *{{echo|a {{nonexistent|
5892 *{{echo|b {{nonexistent|
5895 <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>
5896 </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>
5902 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5904 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5906 <p><i>ab</i>c<i>d</i>e
5911 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5912 (PHP parser generates misnested html)
5916 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5918 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5922 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5923 (PHP parser generates misnested html)
5927 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5930 <div><i>b</i>c<i>d</i></div>
5935 Templates: Ugly nesting: 4. Divs opened/closed across templates
5937 a<div>b{{echo|c</div>d}}e
5944 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5950 |{{echo|foo</table>}}
5954 <table about="#mwt1" typeof="mw:Object/Template ">
5955 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5956 bar</span><span about="#mwt1">
5961 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5971 <td>1. {{echo|foo </table>}}</td>
5973 <td>2. {{echo|baz </table>}}</td>
5986 <table about="#mwt1" typeof="mw:Object/Template">
5991 <td >1. foo </td></tr></tbody></table></td>
5993 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5994 </span><span about="#mwt1">
5996 abc</span><span about="#mwt1">
5997 </span><span about="#mwt1">
5998 </span><span about="#mwt1">
5999 </span><span about="#mwt1">
6000 </span><span about="#mwt1">
6002 xyz</span><span about="#mwt1">
6003 </span><span about="#mwt1">
6008 Templates: Ugly templates: 3. newline-only template parameter
6017 # This looks like a bug: a single newline triggers p/br for some reason.
6019 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6030 Parser Functions: 1. Simple example
6039 Parser Functions: 2. Nested use (only outermost should be marked up)
6048 ### Pre-save transform tests
6051 pre-save transform: subst:
6057 This is a test template
6061 pre-save transform: normal template
6071 pre-save transform: nonexistent template
6075 {{thistemplatedoesnotexist}}
6077 {{thistemplatedoesnotexist}}
6082 pre-save transform: subst magic variables
6091 # This is bug 89, which I fixed. -- wtm
6093 pre-save transform: subst: templates with parameters
6097 {{subst:paramtest|param="something else"}}
6099 This is a test template with parameter "something else"
6105 <nowiki>'''not wiki'''</nowiki>
6109 pre-save transform: nowiki in subst (bug 1188)
6113 {{subst:nowikitest}}
6115 <nowiki>'''not wiki'''</nowiki>
6120 Template:commenttest
6122 This template has <!-- a comment --> in it.
6126 pre-save transform: comment in subst (bug 1936)
6130 {{subst:commenttest}}
6132 This template has <!-- a comment --> in it.
6136 pre-save transform: unclosed tag
6140 <nowiki>'''not wiki'''
6142 <nowiki>'''not wiki'''
6146 pre-save transform: mixed tag case
6150 <NOwiki>'''not wiki'''</noWIKI>
6152 <NOwiki>'''not wiki'''</noWIKI>
6156 pre-save transform: unclosed comment in <nowiki>
6160 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6162 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6168 <span onmouseover="alert('crap')">Oh no</span>
6172 (confirming safety of fix for subst bug 1936)
6174 {{Template:dangerous}}
6176 <p><span>Oh no</span>
6181 pre-save transform: comment containing gallery (bug 5024)
6185 <!-- <gallery>data</gallery> -->
6187 <!-- <gallery>data</gallery> -->
6191 pre-save transform: comment containing extension
6195 <!-- <tag>data</tag> -->
6197 <!-- <tag>data</tag> -->
6201 pre-save transform: comment containing nowiki
6205 <!-- <nowiki>data</nowiki> -->
6207 <!-- <nowiki>data</nowiki> -->
6211 pre-save transform: <noinclude> in subst (bug 3298)
6221 pre-save transform: <onlyinclude> in subst (bug 3298)
6233 {{<includeonly>subst:</includeonly>Includes}}
6237 Template:SafeSubstTest
6239 {{<includeonly>safesubst:</includeonly>Includes}}
6243 bug 22297: safesubst: works during PST
6247 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6253 bug 22297: safesubst: works during normal parse
6262 subst: does not work during normal parse
6266 <p>{{subst:Includes}}
6271 pre-save transform: context links ("pipe trick")
6275 [[Article (context)|]]
6278 [[Bar:Article (context)|]]
6279 [[:Bar:Article (context)|]]
6281 [[|Article (context)]]
6285 [[Article (context)|Article]]
6286 [[Bar:Article|Article]]
6287 [[:Bar:Article|Article]]
6288 [[Bar:Article (context)|Article]]
6289 [[:Bar:Article (context)|Article]]
6291 [[Article (context)]]
6292 [[Bar:X (Y) Z|X (Y) Z]]
6293 [[:Bar:X (Y) Z|X (Y) Z]]
6297 pre-save transform: context links ("pipe trick") with interwiki prefix
6301 [[interwiki:Article|]]
6302 [[:interwiki:Article|]]
6303 [[interwiki:Bar:Article|]]
6304 [[:interwiki:Bar:Article|]]
6306 [[interwiki:Article|Article]]
6307 [[:interwiki:Article|Article]]
6308 [[interwiki:Bar:Article|Bar:Article]]
6309 [[:interwiki:Bar:Article|Bar:Article]]
6313 pre-save transform: context links ("pipe trick") with parens in title
6315 pst title=[[Somearticle (context)]]
6319 [[Article (context)|Article]]
6323 pre-save transform: context links ("pipe trick") with comma in title
6325 pst title=[[Someplace, Somewhere]]
6328 [[Otherplace, Elsewhere|]]
6329 [[Otherplace, Elsewhere, Anywhere|]]
6331 [[Otherplace, Somewhere|Otherplace]]
6332 [[Otherplace, Elsewhere|Otherplace]]
6333 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6337 pre-save transform: context links ("pipe trick") with parens and comma
6339 pst title=[[Someplace (IGNORED), Somewhere]]
6342 [[Otherplace (place), Elsewhere|]]
6344 [[Otherplace, Somewhere|Otherplace]]
6345 [[Otherplace (place), Elsewhere|Otherplace]]
6349 pre-save transform: context links ("pipe trick") with comma and parens
6351 pst title=[[Who, me? (context)]]
6354 [[Me, Myself, and I (1937 song)|]]
6356 [[Yes, you. (context)|Yes, you.]]
6357 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6361 pre-save transform: context links ("pipe trick") with namespace
6363 pst title=[[Ns:Somearticle]]
6367 [[Ns:Article|Article]]
6371 pre-save transform: context links ("pipe trick") with namespace and parens
6373 pst title=[[Ns:Somearticle (context)]]
6377 [[Ns:Article (context)|Article]]
6381 pre-save transform: context links ("pipe trick") with namespace and comma
6383 pst title=[[Ns:Somearticle, Context, Whatever]]
6387 [[Ns:Article, Context, Whatever|Article]]
6391 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6393 pst title=[[Ns:Somearticle, Context (context)]]
6397 [[Ns:Article (context)|Article]]
6401 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6403 pst title=[[Ns:Somearticle (IGNORED), Context]]
6407 [[Ns:Article, Context|Article]]
6411 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6415 [[Article(context)|]]
6416 [[Bar:Article(context)|]]
6417 [[:Bar:Article(context)|]]
6418 [[|Article(context)]]
6422 [[Article(context)|Article]]
6423 [[Bar:Article(context)|Article]]
6424 [[:Bar:Article(context)|Article]]
6425 [[Article(context)]]
6427 [[:Bar:X(Y)Z|X(Y)Z]]
6431 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6435 [[Article (context)|]]
6436 [[Bar:Article (context)|]]
6437 [[:Bar:Article (context)|]]
6438 [[|Article (context)]]
6442 [[Article (context)|Article]]
6443 [[Bar:Article (context)|Article]]
6444 [[:Bar:Article (context)|Article]]
6445 [[Article (context)]]
6446 [[Bar:X (Y) Z|X (Y) Z]]
6447 [[:Bar:X (Y) Z|X (Y) Z]]
6451 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6455 [[Article(context)|]]
6456 [[Bar:Article(context)|]]
6457 [[:Bar:Article(context)|]]
6458 [[|Article(context)]]
6462 [[Article(context)|Article]]
6463 [[Bar:Article(context)|Article]]
6464 [[:Bar:Article(context)|Article]]
6465 [[Article(context)]]
6467 [[:Bar:X(Y)Z|X(Y)Z]]
6471 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6475 [[Article (context), context|]]
6476 [[Article (context),context|]]
6477 [[Bar:Article (context), context|]]
6478 [[Bar:Article (context),context|]]
6479 [[:Bar:Article (context), context|]]
6480 [[:Bar:Article (context),context|]]
6482 [[Article (context), context|Article]]
6483 [[Article (context),context|Article]]
6484 [[Bar:Article (context), context|Article]]
6485 [[Bar:Article (context),context|Article]]
6486 [[:Bar:Article (context), context|Article]]
6487 [[:Bar:Article (context),context|Article]]
6491 pre-save transform: trim trailing empty lines
6495 Empty lines are trimmed
6501 Empty lines are trimmed
6505 pre-save transform: Signature expansion
6510 * <noinclude>~~~</noinclude>
6511 * <includeonly>~~~</includeonly>
6512 * <onlyinclude>~~~</onlyinclude>
6514 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6515 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6516 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6517 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6522 pre-save transform: Signature expansion in nowiki tags (bug 93)
6528 <nowiki>~~~~</nowiki>
6530 <includeonly><nowiki>~~~~</nowiki></includeonly>
6532 <noinclude><nowiki>~~~~</nowiki></noinclude>
6534 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6536 {{subst:Foo}} shall be converted to FOO
6538 As well as inside noinclude/onlyinclude
6539 <noinclude>{{subst:Foo}}</noinclude>
6540 <onlyinclude>{{subst:Foo}}</onlyinclude>
6542 But not inside includeonly
6543 <includeonly>{{subst:Foo}}</includeonly>
6547 <nowiki>~~~~</nowiki>
6549 <includeonly><nowiki>~~~~</nowiki></includeonly>
6551 <noinclude><nowiki>~~~~</nowiki></noinclude>
6553 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6555 FOO shall be converted to FOO
6557 As well as inside noinclude/onlyinclude
6558 <noinclude>FOO</noinclude>
6559 <onlyinclude>FOO</onlyinclude>
6561 But not inside includeonly
6562 <includeonly>{{subst:Foo}}</includeonly>
6566 ### Message transform tests
6569 message transform: magic variables
6579 message transform: should not transform wiki markup
6589 message transform: <noinclude> in transcluded template (bug 4926)
6599 message transform: <onlyinclude> in transcluded template (bug 4926)
6609 {{#special:}} page name, known
6613 {{#special:Recentchanges}}
6615 Special:RecentChanges
6619 {{#special:}} page name with subpage, known
6623 {{#special:Recentchanges/param}}
6625 Special:RecentChanges/param
6629 {{#special:}} page name, unknown
6633 {{#special:foobarnonexistent}}
6635 No such special page
6639 {{#speciale:}} page name, known
6643 {{#speciale:Recentchanges}}
6645 Special:RecentChanges
6649 {{#speciale:}} page name with subpage, known
6653 {{#speciale:Recentchanges/param}}
6655 Special:RecentChanges/param
6659 {{#speciale:}} page name, unknown
6663 {{#speciale:foobarnonexistent}}
6665 No_such_special_page
6674 [[Image:foobar.jpg]]
6676 <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>
6683 [[Image:foobar.jpg|right]]
6685 <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>
6690 Simple image (using File: namespace, now canonical)
6694 <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>
6701 [[Image:foobar.jpg|right|Caption text]]
6703 <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>
6708 Image with empty attribute
6710 [[Image:foobar.jpg|right||Caption text]]
6712 <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>
6717 Image with link tails
6719 123[[Image:foobar.jpg]]456
6720 123[[Image:foobar.jpg|right]]456
6721 123[[Image:foobar.jpg|thumb]]456
6723 <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
6725 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
6726 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
6731 Image with multiple captions -- only last one is accepted
6733 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6735 <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>
6740 Image with width attribute at different positions
6742 [[Image:foobar.jpg|200px|right|Caption]]
6743 [[Image:foobar.jpg|right|200px|Caption]]
6744 [[Image:foobar.jpg|right|Caption|200px]]
6746 <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>
6747 <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>
6748 <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>
6753 Image with link parameter, wiki target
6755 [[Image:foobar.jpg|link=Target page]]
6757 <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>
6762 Image with link parameter, URL target
6764 [[Image:foobar.jpg|link=http://example.com/]]
6766 <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>
6771 Image with link parameter, wgExternalLinkTarget
6773 [[Image:foobar.jpg|link=http://example.com/]]
6775 wgExternalLinkTarget='foobar'
6777 <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>
6782 Image with link parameter, wgNoFollowLinks set to false
6784 [[Image:foobar.jpg|link=http://example.com/]]
6786 wgNoFollowLinks=false
6788 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6793 Image with link parameter, wgNoFollowDomainExceptions
6795 [[Image:foobar.jpg|link=http://example.com/]]
6797 wgNoFollowDomainExceptions='example.com'
6799 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6804 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6806 [[Image:foobar.jpg|link=http://example.com/|Title]]
6808 wgExternalLinkTarget='foobar'
6810 <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>
6815 Image with empty link parameter
6817 [[Image:foobar.jpg|link=]]
6819 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6824 Image with link parameter (wiki target) and unnamed parameter
6826 [[Image:foobar.jpg|link=Target page|Title]]
6828 <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>
6833 Image with link parameter (URL target) and unnamed parameter
6835 [[Image:foobar.jpg|link=http://example.com/|Title]]
6837 <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>
6842 Thumbnail image with link parameter
6844 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6846 <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>
6851 Image with frame and link
6853 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6855 <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>
6860 Image with frame and link and explicit alt
6862 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6864 <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>
6869 Image with wiki markup in implicit alt
6871 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6873 <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>
6878 Image with wiki markup in explicit alt
6880 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6882 <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>
6887 Link to image page- image page normally doesn't exists, hence edit link
6888 Add test with existing image page
6889 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6893 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6898 bug 18784 Link to non-existent image page with caption should use caption as link text
6900 [[:Image:test|caption]]
6902 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6907 Frameless image caption with a free URL
6909 [[Image:foobar.jpg|http://example.com]]
6911 <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>
6916 Thumbnail image caption with a free URL
6918 [[Image:foobar.jpg|thumb|http://example.com]]
6920 <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>
6925 Thumbnail image caption with a free URL and explicit alt
6927 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6929 <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>
6934 BUG 1887: A ISBN with a thumbnail
6936 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6938 <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>
6943 BUG 1887: A RFC with a thumbnail
6945 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6947 <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>
6952 BUG 1887: A mailto link with a thumbnail
6954 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6956 <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>
6960 # Pending resolution to bug 368
6962 BUG 648: Frameless image caption with a link
6964 [[Image:foobar.jpg|text with a [[link]] in it]]
6966 <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>
6971 BUG 648: Frameless image caption with a link (suffix)
6973 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6975 <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>
6980 BUG 648: Frameless image caption with an interwiki link
6982 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6984 <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>
6989 BUG 648: Frameless image caption with a piped interwiki link
6991 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6993 <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>
6998 Escape HTML special chars in image alt text
7000 [[Image:foobar.jpg|& < > "]]
7002 <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>
7007 BUG 499: Alt text should have Ӓ, not &1234;
7009 [[Image:foobar.jpg|♀]]
7011 <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>
7016 Broken image caption with link
7018 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7020 <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.
7025 Image caption containing another image
7027 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7029 <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>
7034 Image caption containing a newline
7036 [[Image:Foobar.jpg|This
7039 <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>
7045 Bug 3090: External links other than http: in image captions
7047 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7049 <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>
7056 [[Image:foobar.jpg|a|class=b]]
7058 <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>
7065 #REDIRECT [[File:Barfoo.jpg]]
7071 [[Image:Barfoo.jpg]]
7073 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7078 Missing image with uploads disabled
7082 [[Image:Foobaz.jpg]]
7084 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7093 Subpage test/subpage
7101 subpage title=[[Subpage test]]
7105 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7110 Subpage noslash link
7112 subpage title=[[Subpage test]]
7116 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7125 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7130 BUG 561: {{/Subpage}}
7132 subpage title=[[Page]]
7136 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7144 Category:MediaWiki User's Guide
7152 [[:Category:MediaWiki User's Guide]]
7154 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7163 [[Category:MediaWiki User's Guide]]
7165 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7169 PAGESINCATEGORY invalid title fatal (r33546 fix)
7171 {{PAGESINCATEGORY:<bogus>}}
7178 Category with different sort key
7182 [[Category:MediaWiki User's Guide|Foo]]
7184 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7188 Category with identical sort key
7192 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7194 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7198 Category with empty sort key
7203 [[Category:MediaWiki User's Guide|]]
7205 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7209 Category with empty sort key and parentheses
7214 [[Category:Foo (bar)|]]
7216 [[Category:Foo (bar)|Foo]]
7220 Category with link tail
7225 123[[Category:Foo]]456
7227 123[[Category:Foo]]456
7231 Category with template
7236 [[Category:{{echo|Foo}}]]
7238 [[Category:{{echo|Foo}}]]
7242 Category with template in sort key
7247 [[Category:Foo|{{echo|Bar}}]]
7249 [[Category:Foo|{{echo|Bar}}]]
7253 Category with template in sort key and title
7258 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7260 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7264 Category / paragraph interactions
7266 Foo [[Category:Baz]] Bar
7268 Foo [[Category:Baz]]
7276 [[Category:Baz]] Bar
7289 {{echo|[[Category:Baz]]}}
7304 ### Inter-language links
7307 Inter-language links
7313 [[zh:食品]]
7315 es:Alimento fr:Nourriture zh:食品
7319 Duplicate interlanguage links (bug 24502)
7335 Basic section headings
7342 ===Smaller headline===
7345 <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>
7348 <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>
7351 <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>
7357 Section headings with TOC
7360 === Subheadline 1 ===
7361 ===== Skipping a level =====
7362 ====== Skipping a level ======
7366 ===Another headline===
7368 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7370 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7372 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7374 <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>
7376 <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>
7383 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7385 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7390 <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>
7391 <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>
7392 <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>
7393 <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>
7394 <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>
7397 <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>
7401 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7403 Handling of sections up to level 6 and beyond
7406 == Level 2 Heading==
7407 === Level 3 Heading===
7408 ==== Level 4 Heading====
7409 ===== Level 5 Heading=====
7410 ====== Level 6 Heading======
7411 ======= Level 7 Heading=======
7412 ======== Level 8 Heading========
7413 ========= Level 9 Heading=========
7414 ========== Level 10 Heading==========
7416 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7418 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7420 <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>
7422 <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>
7424 <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>
7426 <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>
7428 <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>
7429 <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>
7430 <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>
7431 <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>
7432 <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>
7445 <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>
7446 <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>
7447 <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>
7448 <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>
7449 <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>
7450 <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>
7451 <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>
7452 <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>
7453 <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>
7454 <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>
7459 TOC regression (bug 9764)
7463 ==== title 1.1.1 ====
7468 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7470 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7472 <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>
7474 <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>
7477 <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>
7480 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7482 <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>
7487 <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>
7488 <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>
7489 <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>
7490 <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>
7491 <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>
7492 <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>
7497 TOC with wgMaxTocLevel=3 (bug 6204)
7503 ==== title 1.1.1 ====
7508 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7510 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7512 <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>
7513 <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>
7516 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7518 <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>
7523 <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>
7524 <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>
7525 <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>
7526 <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>
7527 <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>
7528 <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>
7533 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7539 ====Section 1.1.1====
7540 ====Section 1.1.1.1====
7543 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7545 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7547 <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>
7550 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7553 <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>
7554 <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>
7555 <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>
7556 <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>
7557 <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>
7563 Resolving duplicate section names
7568 <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>
7569 <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>
7574 Resolving duplicate section names with differing case (bug 10721)
7579 <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>
7580 <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>
7592 Template with sections, __NOTOC__
7599 <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>
7600 <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>
7601 <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>
7602 <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>
7607 __NOEDITSECTION__ keyword
7613 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7614 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7619 Link inside a section heading
7621 ==Section with a [[Main Page|link]] in it==
7623 <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>
7628 TOC regression (bug 12077)
7635 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7637 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7639 <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>
7642 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7645 <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>
7646 <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>
7647 <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>
7652 BUG 1219 URL next to image (good)
7654 http://example.com [[Image:foobar.jpg]]
7656 <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>
7661 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7664 The line above must have a trailing space!
7667 But just in case it doesn't...
7669 <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>
7670 <p>The line above must have a trailing space!
7672 <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>
7673 <p>But just in case it doesn't...
7678 Header with special characters (bug 25462)
7680 The tooltips shall not show entities to the user (ie. be double escaped)
7697 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7699 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7701 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7702 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7703 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7704 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7705 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7708 <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>
7711 <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>
7714 <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>
7717 <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>
7720 <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>
7726 Headers with excess '=' characters
7727 (Are similar tests necessary beyond the 1st level?)
7731 =''italic'' heading==
7732 ==''italic'' heading=
7734 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7736 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7737 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7738 <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>
7739 <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>
7742 <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>
7743 <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>
7744 <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>
7745 <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>
7750 BUG 1219 URL next to image (broken)
7752 http://example.com[[Image:foobar.jpg]]
7754 <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>
7759 Bug 1186 news: in the middle of text
7761 http://en.wikinews.org/wiki/Wikinews:Workplace
7763 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7769 Namespaced link must have a title
7778 Namespaced link must have a title (bad fragment version)
7780 [[Project:#fragment]]
7782 <p>[[Project:#fragment]]
7788 ### HTML tags and HTML attributes
7792 div with no attributes
7794 <div>HTML rocks</div>
7796 <div>HTML rocks</div>
7801 div with double-quoted attribute
7803 <div id="rock">HTML rocks</div>
7805 <div id="rock">HTML rocks</div>
7810 div with single-quoted attribute
7812 <div id='rock'>HTML rocks</div>
7814 <div id="rock">HTML rocks</div>
7819 div with unquoted attribute
7821 <div id=rock>HTML rocks</div>
7823 <div id="rock">HTML rocks</div>
7828 div with illegal double attributes
7830 <div id="a" id="b">HTML rocks</div>
7832 <div id="b">HTML rocks</div>
7836 # FIXME: produce empty string instead of "class" in the PHP parser, following
7839 div with empty attribute value, space before equals
7843 <div class =>HTML rocks</div>
7845 <div class="">HTML rocks</div>
7849 # The PHP parser escapes the opening brace to { for some reason, so
7850 # disabled this test for it.
7852 div with braces in attribute value
7856 <div title="{}">Foo</div>
7858 <div title="{}">Foo</div>
7861 # This it very inconsistent in the PHP parser: it returns
7862 # class="class" if there is a space between the name and the equal sign (see
7863 # 'div with empty attribute value, space before equals'), but strips the
7864 # attribute completely if the space is missing. We hope that not much content
7865 # depends on this, so are implementing the behavior below in Parsoid for
7866 # consistencies' sake. Disabled for the PHP parser.
7867 # FIXME: fix this behavior in the PHP parser?
7869 div with empty attribute value, no space before equals
7873 <div class=>HTML rocks</div>
7875 <div class="">HTML rocks</div>
7880 HTML multiple attributes correction
7882 <p class="error" class="awesome">Awesome!</p>
7884 <p class="awesome">Awesome!</p>
7889 Table multiple attributes correction
7892 !+ class="error" class="awesome"| status
7897 <th class="awesome"> status
7905 <DIV ID="x">HTML ROCKS</DIV>
7907 <div id="x">HTML ROCKS</div>
7912 Non-ASCII pseudo-tags are rendered as text
7921 Pseudo-tag with URL 'name' renders as url link
7923 <http://example.com/>
7925 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7930 text with amp in the middle of nowhere
7934 <p>Remember AT&T?
7939 text with character entity: eacute
7941 I always thought é was a cute letter.
7943 <p>I always thought é was a cute letter.
7948 text with entity-escaped character entity-like string: eacute
7950 I always thought &eacute; was a cute letter.
7952 <p>I always thought &eacute; was a cute letter.
7957 text with undefined character entity: xacute
7959 I always thought &xacute; was a cute letter.
7961 <p>I always thought &xacute; was a cute letter.
7973 [[Media:Foobar.jpg]]
7975 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7980 Media link with text
7982 [[Media:Foobar.jpg|A neat file to look at]]
7984 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7988 # FIXME: this is still bad HTML tag nesting
7990 Media link with nasty text
7991 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7993 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7995 <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>
8000 Media link to nonexistent file (bug 1702)
8002 [[Media:No such.jpg]]
8004 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8009 Image link to nonexistent file (bug 1850 - good)
8011 [[Image:No such.jpg]]
8013 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8018 :Image link to nonexistent file (bug 1850 - bad)
8020 [[:Image:No such.jpg]]
8022 <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>
8029 Character reference normalization in link text (bug 1938)
8031 [[Main Page|this&that]]
8033 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8040 Test for unicode normalization
8042 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8046 (bug 19451) Links should refer to the normalized form.
8054 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8055 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8056 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8057 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8058 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8063 Empty attribute crash test (bug 2067)
8065 <font color="">foo</font>
8067 <p><font color="">foo</font>
8072 Empty attribute crash test single-quotes (bug 2067)
8074 <font color=''>foo</font>
8076 <p><font color="">foo</font>
8081 Attribute test: equals, then nothing
8083 <font color=>foo</font>
8090 Attribute test: unquoted value
8092 <font color=x>foo</font>
8094 <p><font color="x">foo</font>
8099 Attribute test: unquoted but illegal value (hash)
8101 <font color=#x>foo</font>
8103 <p><font color="#x">foo</font>
8108 Attribute test: no value
8110 <font color>foo</font>
8112 <p><font color="color">foo</font>
8117 Bug 2095: link with three closing brackets
8121 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8126 Bug 2095: link with pipe and three closing brackets
8130 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8135 Bug 2095: link with pipe and three closing brackets, version 2
8137 [[Main Page|[http://example.com/]]]
8139 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8149 Template:Dangerous attribute
8151 " onmouseover="alert(document.cookie)
8155 Template:Dangerous style attribute
8157 border-size: expression(alert(document.cookie))
8163 <div style="float: right; {{{1}}}">Magic div</div>
8167 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8169 <div title="{{test}}"></div>
8171 <div title="This is a test template"></div>
8176 Bug 2304: HTML attribute safety (dangerous template; 2309)
8178 <div title="{{dangerous attribute}}"></div>
8180 <div title=""></div>
8185 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8187 <div style="{{dangerous style attribute}}"></div>
8189 <div style="/* insecure input */"></div>
8194 Bug 2304: HTML attribute safety (safe parameter; 2309)
8196 {{div style|width: 200px}}
8198 <div style="float: right; width: 200px">Magic div</div>
8203 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8205 {{div style|width: expression(alert(document.cookie))}}
8207 <div style="/* insecure input */">Magic div</div>
8212 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8214 {{div style|"><script>alert(document.cookie)</script>}}
8216 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8221 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8223 {{div style|" ><script>alert(document.cookie)</script>}}
8225 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8230 Bug 2304: HTML attribute safety (link)
8232 <div title="[[Main Page]]"></div>
8234 <div title="[[Main Page]]"></div>
8239 Bug 2304: HTML attribute safety (italics)
8241 <div title="''foobar''"></div>
8243 <div title="''foobar''"></div>
8248 Bug 2304: HTML attribute safety (bold)
8250 <div title="'''foobar'''"></div>
8252 <div title="'''foobar'''"></div>
8258 Bug 2304: HTML attribute safety (ISBN)
8260 <div title="ISBN 1234567890"></div>
8262 <div title="ISBN 1234567890"></div>
8267 Bug 2304: HTML attribute safety (RFC)
8269 <div title="RFC 1234"></div>
8271 <div title="RFC 1234"></div>
8276 Bug 2304: HTML attribute safety (PMID)
8278 <div title="PMID 1234567890"></div>
8280 <div title="PMID 1234567890"></div>
8285 Bug 2304: HTML attribute safety (web link)
8287 <div title="http://example.com/"></div>
8289 <div title="http://example.com/"></div>
8294 Bug 2304: HTML attribute safety (named web link)
8296 <div title="[http://example.com/ link]"></div>
8298 <div title="[http://example.com/ link]"></div>
8303 Bug 3244: HTML attribute safety (extension; safe)
8305 <div style="<nowiki>background:blue</nowiki>"></div>
8307 <div style="background:blue"></div>
8312 Bug 3244: HTML attribute safety (extension; unsafe)
8314 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8316 <div style="/* insecure input */"></div>
8320 # More MSIE fun discovered by Tom Gilder
8323 MSIE CSS safety test: spurious slash
8325 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8327 <div style="/* insecure input */">evil</div>
8332 MSIE CSS safety test: hex code
8334 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8336 <div style="/* insecure input */">evil</div>
8341 MSIE CSS safety test: comment in url
8343 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8345 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8350 MSIE CSS safety test: comment in expression
8352 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8354 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8360 Table attribute legitimate extension
8363 !+ style="<nowiki>color:blue</nowiki>"| status
8368 <th style="color:blue"> status
8374 Table attribute safety
8377 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8382 <th style="/* insecure input */"> status
8388 CSS line continuation 1
8390 <div style="background-image: u\ rl(test.jpg);"></div>
8392 <div style="/* insecure input */"></div>
8397 CSS line continuation 2
8399 <div style="background-image: u\ rl(test.jpg); "></div>
8401 <div style="/* insecure input */"></div>
8412 Expansion of multi-line templates in attribute values (bug 6255)
8414 <div style="background: {{identity|#00FF00}}">-</div>
8416 <div style="background: #00FF00">-</div>
8422 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8424 <div style="background:
8427 <div style="background: #00FF00">-</div>
8432 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8434 <div style="background: #00FF00">-</div>
8436 <div style="background: #00FF00">-</div>
8441 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8444 Parser hook: empty input
8457 Parser hook: empty input using terminated empty elements
8470 Parser hook: empty input using terminated empty elements (space before)
8483 Parser hook: basic input
8497 Parser hook: case insensitive
8511 Parser hook: case insensitive, redux
8524 Parser hook: nested tags
8528 <tag><tag></tag></tag>
8539 Parser hook: basic arguments
8541 <tag width=200 height = "100" depth = '50' square></tag>
8549 'square' => 'square',
8556 Parser hook: argument containing a forward slash (bug 5344)
8558 <tag filename='/tmp/bla'></tag>
8563 'filename' => '/tmp/bla',
8570 Parser hook: empty input using terminated empty elements (bug 2374)
8583 # </tag> should be output literally since there is no matching tag that begins it
8585 Parser hook: basic arguments using terminated empty elements (bug 2374)
8587 <tag width=200 height = "100" depth = '50' square/>
8597 'square' => 'square',
8606 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8610 Parser hook: static parser hook not inside a comment
8612 <statictag>hello, world</statictag>
8613 <statictag action=flush/>
8621 Parser hook: static parser hook inside a comment
8623 <!-- <statictag>hello, world</statictag> -->
8624 <statictag action=flush/>
8630 # Nested template calls; this case was broken by Parser.php rev 1.506,
8634 Template:One-parameter
8636 (My parameter is: {{{1}}})
8640 Template:Map-one-parameter
8646 Nested template calls
8648 {{Map-one-parameter|One-parameter|param}}
8650 <p>(My parameter is: param)
8659 Sanitizer: Closing of open tags
8661 <s></s><table></table>
8663 <s></s><table></table>
8668 Sanitizer: Closing of open but not closed tags
8677 Sanitizer: Closing of closed but not open tags
8686 Sanitizer: Closing of closed but not open table tags
8688 Table not started</td></tr></table>
8690 <p>Table not started</td></tr></table>
8695 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8697 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8699 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8704 Sanitizer: Validating the contents of the id attribute (bug 4515)
8710 Something, but definitely not <br id="9" />...
8714 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8718 <br id="foo" /><br id="foo" />
8720 Something need to be done. foo-2 ?
8724 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8727 <meta itemprop="hello" content="world">
8728 <meta http-equiv="refresh" content="5">
8729 <meta itemprop="hello" http-equiv="refresh" content="5">
8730 <link itemprop="hello" href="{{SERVER}}">
8731 <link rel="stylesheet" href="{{SERVER}}">
8732 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8735 <div itemscope="itemscope">
8736 <p> <meta itemprop="hello" content="world" />
8737 <meta http-equiv="refresh" content="5">
8738 <meta itemprop="hello" content="5" />
8740 <link itemprop="hello" href="http://Britney-Spears" />
8741 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8742 <link itemprop="hello" href="http://Britney-Spears" />
8748 Language converter: output gets cut off unexpectedly (bug 5757)
8752 this bit is safe: }-
8754 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8756 then we get cut off here: }-
8758 all additional text is vanished
8760 <p>this bit is safe: }-
8761 </p><p>but if we add a conversion instance: xxx
8762 </p><p>then we get cut off here: }-
8763 </p><p>all additional text is vanished
8768 Self closed html pairs (bug 5487)
8771 <center><font id="bug" />Centered text</center>
8772 <div><font id="bug2" />In div text</div>
8774 <center><font id="bug" />Centered text</center>
8775 <div><font id="bug2" />In div text</div>
8784 Punctuation: nbsp before exclamation
8788 <p>C'est grave !
8793 Punctuation: CSS !important (bug 11874)
8795 <div style="width:50% !important">important</div>
8797 <div style="width:50% !important">important</div>
8802 Punctuation: CSS ! important (bug 11874; with space after)
8804 <div style="width:50% ! important">important</div>
8806 <div style="width:50% ! important">important</div>
8812 HTML bullet list, closed tags (bug 5497)
8827 HTML bullet list, unclosed tags (bug 5497)
8844 HTML ordered list, closed tags (bug 5497)
8859 HTML ordered list, unclosed tags (bug 5497)
8876 HTML nested bullet list, closed tags (bug 5497)
8901 HTML nested bullet list, open tags (bug 5497)
8926 HTML nested ordered list, closed tags (bug 5497)
8951 HTML nested ordered list, open tags (bug 5497)
8976 HTML ordered list item with parameters oddity
8978 <ol><li id="fragment">One</li></ol>
8980 <ol><li id="fragment">One</li></ol>
8985 bug 5918: autonumbering
8987 [http://first/] [http://second] [ftp://ftp]
8991 [mailto:enclosed@mail.tld With target]
8993 [mailto:enclosed@mail.tld]
8995 mailto:inline@mail.tld
8997 <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>
8998 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8999 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9000 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9001 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9007 # Security and HTML correctness
9008 # From Nick Jenkins' fuzz testing
9012 Fuzz testing: Parser13
9027 Fuzz testing: Parser14
9032 <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>
9033 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9035 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9042 Fuzz testing: Parser14-table
9047 <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>
9048 <table style="__TOC__">
9054 # Known to produce bogus xml (extra </td>)
9056 Fuzz testing: Parser16
9076 Fuzz testing: Parser21
9079 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9084 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9094 Fuzz testing: Parser22
9096 http://===r:::https://b
9100 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9108 # Known to produce bad XML for now
9110 Fuzz testing: Parser24
9117 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9118 <br style="onmouseover='alert(document.cookie);' " />
9120 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9125 <u class="|">}}}} >
9126 <br style="onmouseover='alert(document.cookie);'" />
9128 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9137 # Note: the current result listed for this is not what the original one was,
9138 # but the original bug was JavaScript injection, which is fixed in any case.
9139 # It's not clear that the original result listed was any more correct than the
9140 # current one. Original result:
9143 # <li class="||">
9144 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9146 Fuzz testing: Parser25 (bug 6055)
9152 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9154 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9159 Fuzz testing: URL adjacent extension (with space, clean)
9162 http://example.com <nowiki>junk</nowiki>
9164 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9169 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9172 http://example.com<nowiki>junk</nowiki>
9174 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9179 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9182 http://example.com<pre>junk</pre>
9184 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9189 Fuzz testing: image with bogus manual thumbnail
9191 [[Image:foobar.jpg|thumbnail= ]]
9193 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9198 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9200 <pre dir=" "></pre>
9202 <pre dir=" "></pre>
9207 Parsing optional HTML elements (Bug 6171)
9212 <td> Some tabular data</td>
9213 <td> More tabular data ...
9214 <td> And yet som tabular data</td>
9220 <td> Some tabular data</td>
9221 <td> More tabular data ...
9222 </td><td> And yet som tabular data</td>
9229 Correct handling of <td>, <tr> (Bug 6171)
9234 <td> Some tabular data</td>
9235 <td> More tabular data ...</td>
9236 <td> And yet som tabular data</td>
9242 <td> Some tabular data</td>
9243 <td> More tabular data ...</td>
9244 <td> And yet som tabular data</td>
9252 Parsing crashing regression (fr:JavaScript)
9256 <p></body></x>
9261 Inline wiki vs wiki block nesting
9267 <p><b>Bold paragraph</b>
9268 </p><p>New wiki paragraph
9273 Inline HTML vs wiki block nesting
9281 <p><b>Bold paragraph</b>
9282 </p><p>New wiki paragraph
9286 # Original result was this:
9287 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9289 # While that might be marginally more intuitive, maybe, the six-apostrophe
9290 # construct is clearly pathological and the result stated here (which is what
9291 # the parser actually does) is about as reasonable as anything.
9293 Mixing markup for italics and bold
9296 '''bold''''''bold''bolditalics'''''
9298 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9306 Article for special page transclusion test
9310 Special page transclusion
9313 {{Special:Prefixindex/Xyzzyx}}
9315 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9320 Special page transclusion twice (bug 5021)
9323 {{Special:Prefixindex/Xyzzyx}}
9324 {{Special:Prefixindex/Xyzzyx}}
9326 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9327 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9332 Transclusion of default MediaWiki message
9334 {{MediaWiki:Mainpage}}
9341 Transclusion of nonexistent MediaWiki message
9343 {{MediaWiki:Mainpagexxx}}
9345 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9350 Transclusion of MediaWiki message with underscore
9352 {{MediaWiki:history_short}}
9359 Transclusion of MediaWiki message with space
9361 {{MediaWiki:history short}}
9368 Invalid header with following text
9378 Section extraction test (section 0)
9398 Section extraction test (section 1)
9420 Section extraction test (section 2)
9441 Section extraction test (section 3)
9461 Section extraction test (section 4)
9485 Section extraction test (section 5)
9505 Section extraction test (section 6)
9526 Section extraction test (section 7)
9546 Section extraction test (section 8)
9566 Section extraction test (section 9)
9587 Section extraction test (section 10)
9607 Section extraction test (nonexistent section 11)
9626 Section extraction test with bogus heading (section 1)
9631 ==bogus== not a legal section
9635 ==bogus== not a legal section
9639 Section extraction test with bogus heading (section 2)
9644 ==bogus== not a legal section
9651 Section extraction test with comment after heading (section 1)
9663 Section extraction test with comment after heading (section 2)
9675 Section extraction test with bogus <nowiki> heading (section 1)
9680 ==bogus== <nowiki>not a legal section</nowiki>
9684 ==bogus== <nowiki>not a legal section</nowiki>
9688 Section extraction test with bogus <nowiki> heading (section 2)
9693 ==bogus== <nowiki>not a legal section</nowiki>
9700 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9701 # instead of respecting commented sections
9703 Section extraction prefixed by comment (section 1)
9714 Section extraction prefixed by comment (section 2)
9725 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9726 # instead of respecting HTML-style headings
9728 Section extraction, mixed wiki and html (section 1)
9744 Section extraction, mixed wiki and html (section 2)
9760 # Formerly testing for bug 3342
9762 Section extraction, heading surrounded by <noinclude>
9766 <noinclude>==unmarked==</noinclude>
9772 # Test behaviour of bug 19910
9774 Sectiion with all-equals
9779 The line above must have a trailing space
9782 But just in case it doesn't...
9786 But just in case it doesn't...
9790 Section replacement test (section 0)
9821 Section replacement test (section 1)
9850 Section replacement test (section 2)
9880 Section replacement test (section 3)
9911 Section replacement test (section 4)
9938 Section replacement test (section 5)
9969 Section replacement test (section 6)
9999 Section replacement test (section 7)
10030 Section replacement test (section 8)
10061 Section replacement test (section 9)
10090 Section replacement test (section 10)
10120 Section replacement test with initial whitespace (bug 13728)
10124 Preformatted initial line
10128 Preformatted initial line
10135 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10147 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10160 Section extraction, <pre> around bogus header (bug 10309)
10177 Section replacement, <pre> around bogus header (bug 10309)
10179 noxml replace=2,"xxx"
10200 Handling of 
 in URLs
10204 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10211 5 quotes, code coverage +1 line
10218 Special:Search page linking.
10222 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10234 * {{BASEPAGENAMEE}}
10236 * {{TALKPAGENAMEE}}
10237 * {{SUBJECTPAGENAME}}
10238 * {{SUBJECTPAGENAMEE}}
10244 * {{SUBJECTSPACEE}}
10245 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10247 <ul><li> Parser test
10248 </li><li> Parser test
10249 </li><li> Parser test
10250 </li><li> Parser_test
10251 </li><li> Parser test
10252 </li><li> Parser_test
10253 </li><li> Talk:Parser test
10254 </li><li> Talk:Parser_test
10255 </li><li> Parser test
10256 </li><li> Parser_test
10263 </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>
10267 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10277 image4 |300px| centre
10278 image5.svg| http://///////
10283 <ul class="gallery">
10284 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10285 <div style="height: 150px;">Image1.png</div>
10286 <div class="gallerytext">
10289 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10290 <div style="height: 150px;">Image2.gif</div>
10291 <div class="gallerytext">
10296 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10297 <div style="height: 150px;">Image3</div>
10298 <div class="gallerytext">
10301 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10302 <div style="height: 150px;">Image4</div>
10303 <div class="gallerytext">
10308 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10309 <div style="height: 150px;">Image5.svg</div>
10310 <div class="gallerytext">
10311 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10315 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10316 <div style="height: 150px;">* image6</div>
10317 <div class="gallerytext">
10325 Gallery (with options)
10327 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10328 File:Nonexistant.jpg|caption
10329 File:Nonexistant.jpg
10330 image:foobar.jpg|some '''caption''' [[Main Page]]
10332 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10335 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10336 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10337 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10338 <div style="height: 70px;">Nonexistant.jpg</div>
10339 <div class="gallerytext">
10344 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10345 <div style="height: 70px;">Nonexistant.jpg</div>
10346 <div class="gallerytext">
10349 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10350 <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>
10351 <div class="gallerytext">
10352 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10356 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10357 <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>
10358 <div class="gallerytext">
10361 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10362 <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>
10363 <div class="gallerytext">
10373 Gallery with wikitext inside caption
10376 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10377 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10380 <ul class="gallery">
10381 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10382 <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>
10383 <div class="gallerytext">
10384 <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>
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="galleryalt" 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>This is a test template
10400 gallery (with showfilename option)
10402 <gallery showfilename>
10403 File:Nonexistant.jpg|caption
10404 File:Nonexistant.jpg
10405 image:foobar.jpg|some '''caption''' [[Main Page]]
10409 <ul class="gallery">
10410 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10411 <div style="height: 150px;">Nonexistant.jpg</div>
10412 <div class="gallerytext">
10413 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10418 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10419 <div style="height: 150px;">Nonexistant.jpg</div>
10420 <div class="gallerytext">
10421 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10425 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10426 <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>
10427 <div class="gallerytext">
10428 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10429 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
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">
10436 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10445 Gallery (with namespace-less filenames)
10448 File:Nonexistant.jpg
10454 <ul class="gallery">
10455 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10456 <div style="height: 150px;">Nonexistant.jpg</div>
10457 <div class="gallerytext">
10460 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10461 <div style="height: 150px;">Nonexistant.jpg</div>
10462 <div class="gallerytext">
10465 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10466 <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>
10467 <div class="gallerytext">
10470 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10471 <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>
10472 <div class="gallerytext">
10480 HTML Hex character encoding (spells the word "JavaScript")
10482 JavaScript
10484 <p>JavaScript
10489 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10493 <p>&#xsee;&#XSEE;
10498 HTML Hex character encoding mixed case
10507 __FORCETOC__ override
10519 ISBN 978-0-1234-56 789
10521 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10526 ISBN followed by 5 spaces
10537 ISBN ISBN 1234567890
10539 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10544 Bug 22905: <abbr> followed by ISBN followed by </a>
10546 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10548 <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>
10557 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10562 Double RFC with a wiki link
10566 <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>
10575 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10580 Centre-aligned image
10582 [[Image:foobar.jpg|centre]]
10584 <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>
10591 [[Image:foobar.jpg|none]]
10593 <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>
10598 Width + Height sized image (using px) (height is ignored)
10600 [[Image:foobar.jpg|640x480px]]
10602 <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>
10607 Width-sized image (using px, no following whitespace)
10609 [[Image:foobar.jpg|640px]]
10611 <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>
10616 Width-sized image (using px, with following whitespace - test regression from r39467)
10618 [[Image:foobar.jpg|640px ]]
10620 <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>
10625 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10627 [[Image:foobar.jpg| 640px]]
10629 <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>
10634 Another italics / bold test
10642 # Note the results may be incorrect, as parserTest output included this:
10643 # XML error: Mismatched tag at byte 6120:
10644 # ...<dd> </dt></dl> </dd...
10652 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10663 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10665 Images with the "|" character in the comment
10667 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10669 <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>
10674 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10676 <html><script>alert(1);</script></html>
10678 <p><html><script>alert(1);</script></html>
10683 HTML with raw HTML ($wgRawHtml==true)
10687 <html><script>alert(1);</script></html>
10689 <p><script>alert(1);</script>
10694 Parents of subpages, one level up
10696 subpage title=[[Subpage test/L1/L2/L3]]
10700 <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>
10706 Parents of subpages, one level up, not named
10708 subpage title=[[Subpage test/L1/L2/L3]]
10712 <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>
10719 Parents of subpages, two levels up
10721 subpage title=[[Subpage test/L1/L2/L3]]
10727 <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
10728 </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>
10733 Parents of subpages, two levels up, without trailing slash or name.
10735 subpage title=[[Subpage test/L1/L2/L3]]
10744 Parents of subpages, two levels up, with lots of extra trailing slashes.
10746 subpage title=[[Subpage test/L1/L2/L3]]
10750 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10755 Definition list code coverage
10761 <dl><dt> title  </dt><dd> def
10762 </dd><dt> title </dt><dd> def
10763 </dd><dt>title</dt><dd> def
10769 Don't fall for the self-closing div
10771 <div>hello world</div/>
10773 <div>hello world</div>
10782 <p>[[:Template:Msg]]
10791 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10795 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10797 Always escape literal '>' in output, not just after '<'
10811 <p>This is a test template
10812 This is a test template
10824 Inclusion of !userCanEdit() content
10828 <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>
10834 Out-of-order TOC heading levels
10843 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10845 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10847 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10848 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10851 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10853 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10854 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10859 <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>
10860 <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>
10861 <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>
10862 <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>
10863 <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>
10864 <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>
10870 ISBN with a dummy number
10880 ISBN with space-delimited number
10884 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10890 ISBN with multiple spaces, no number
10909 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10910 </p><p>ISBN 12345678901
10916 ISBN with trailing year (bug 8110)
10918 ISBN 1-234-56789-0 - 2006
10920 ISBN 1 234 56789 0 - 2006
10922 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10923 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10931 {{anchorencode:foo bar©#%n}}
10933 <p>foo_bar.C2.A9.23.25n
10938 anchorencode trims spaces
10940 {{anchorencode: __pretty__please__}}
10947 anchorencode deals with links
10949 {{anchorencode: [[hello|world]] [[hi]]}}
10956 anchorencode deals with templates
10958 {{anchorencode: {{Foo}} }}
10965 anchorencode encodes like the TOC generator: (bug 18431)
10967 === _ +:.3A%3A&&]] ===
10968 {{anchorencode: _ +:.3A%3A&&]] }}
10971 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10972 <p>.2B:.3A.253A.26.26.5D.5D
10976 # Expected output in the following test is not necessarily expected (there
10977 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10978 # only testing for well-formedness.
10980 Bug 6200: blockquotes and paragraph formatting
11000 Bug 8293: Use of center tag ruins paragraph formatting
11022 ### Language variants related tests
11025 Self-link in language variants
11027 title=[[Dunav]] language=sr
11029 Both [[Dunav]] and [[Дунав]] are names for this river.
11031 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11042 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11044 title=[[Duna]] language=sr
11046 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11048 <p><a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Дуна</a> is not a self-link while <strong class="selflink">Duna</strong> and <strong class="selflink">Dуна</strong> are still self-links.
11053 Link to pages in language variants
11057 Main Page can be written as [[Маин Паге]]
11059 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11065 Multiple links to pages in language variants
11069 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11071 <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>.
11077 Simple template in language variants
11083 <p>This is a test template
11089 Template with explicit namespace in language variants
11095 <p>This is a test template
11101 Basic test for template parameter in language variants
11105 {{парамтест|param=foo}}
11107 <p>This is a test template with parameter foo
11113 Simple category in language variants
11117 [[Category:МедиаWики Усер'с Гуиде]]
11119 <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>
11136 Don't convert blue categorylinks to another variant (bug 33210)
11140 [[A]][[Category:分类]]
11142 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11147 Stripping -{}- tags (language variants)
11151 Latin proverb: -{Ne nuntium necare}-
11153 <p>Latin proverb: Ne nuntium necare
11159 Prevent conversion with -{}- tags (language variants)
11161 language=sr variant=sr-ec
11163 Latinski: -{Ne nuntium necare}-
11165 <p>Латински: Ne nuntium necare
11171 Prevent conversion of text with -{}- tags (language variants)
11173 language=sr variant=sr-ec
11175 Latinski: -{Ne nuntium necare}-
11177 <p>Латински: Ne nuntium necare
11183 Prevent conversion of links with -{}- tags (language variants)
11185 language=sr variant=sr-ec
11189 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11195 -{}- tags within headlines (within html for parserConvert())
11197 language=sr variant=sr-ec
11201 <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>
11207 Explicit definition of language variant alternatives
11209 language=zh variant=zh-tw
11211 -{zh:China;zh-tw:Taiwan}-, not China
11213 <p>Taiwan, not China
11219 Conversion around HTML tags
11221 language=sr variant=sr-ec
11223 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11224 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11227 <span title="ЛаCтин">ски</span>
11233 Explicit session-wise language variant mapping (A flag and - flag)
11235 language=zh variant=zh-tw
11237 Taiwan is not China.
11238 But -{A|zh:China;zh-tw:Taiwan}- is China,
11239 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11240 and -{China}- is China.
11242 <p>Taiwan is not China.
11243 But Taiwan is Taiwan,
11244 (This should be stripped!)
11245 and China is China.
11250 Explicit session-wise language variant mapping (H flag for hide)
11252 language=zh variant=zh-tw
11254 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11257 <p>(This should be stripped!)
11263 Adding explicit conversion rule for title (T flag)
11265 language=zh variant=zh-tw showtitle
11267 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11270 <p>Should be stripped!
11275 Testing that changing the language variant here in the tests actually works
11277 language=zh variant=zh showtitle
11279 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11282 <p>Should be stripped!
11287 Recursive conversion of alt and title attrs shouldn't clear converter state
11289 language=zh variant=zh-cn showtitle
11291 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11292 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11296 Should be stripped<span title="Exclamation">!</span>
11301 Bug 24072: more test on conversion rule for title
11303 language=zh variant=zh-tw showtitle
11305 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11306 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11309 <p>This should be stripped!
11310 This won't take interferes with the title rule.
11315 Raw output of variant escape tags (R flag)
11317 language=zh variant=zh-tw
11319 Raw: -{R|zh:China;zh-tw:Taiwan}-
11321 <p>Raw: zh:China;zh-tw:Taiwan
11326 Nested using of manual convert syntax
11328 language=zh variant=zh-hk
11330 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11332 <p>Nested: Hello Hong Kong!
11337 Proper conversion of text in external links
11339 language=sr variant=sr-ec
11341 http://www.google.com
11342 gopher://www.google.com
11343 [http://www.google.com http://www.google.com]
11344 [gopher://www.google.com gopher://www.google.com]
11345 [https://www.google.com irc://www.google.com]
11346 [ftp://www.google.com www.google.com/ftp://dir]
11347 [//www.google.com www.google.com]
11349 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11350 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11351 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11352 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11353 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11354 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11355 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11360 Do not convert roman numbers to language variants
11362 language=sr variant=sr-ec
11366 <p>Фридрих IV је цар.
11371 Unclosed language converter markup "-{"
11382 Don't convert raw rule "-{R|=>}-" to "=>"
11399 Bug 529: Uncovered bullet
11409 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11410 # Templates in Wikipedia rely on this behavior, as tidy has always been
11411 # enabled there. These tests are normally run *without* tidy, so specify the
11412 # full output here.
11413 # To test realistic parsing behavior, apply a tidy-like transformation to both
11414 # the expected output and your parser's output.
11416 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11418 ******* Foo {{bullet}}
11420 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11433 Bug 529: Uncovered table already at line-start
11456 Bug 529: Uncovered bullet in parser function result
11458 * Foo {{lc:{{bullet}} }}
11467 Bug 5678: Double-parsed template argument
11469 {{lc:{{{1}}}|hello}}
11476 Bug 5678: Double-parsed template invocation
11478 {{lc:{{paramtest {{!}} param = hello }} }}
11480 <p>{{paramtest | param = hello }}
11485 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11488 title=[[Main Page]]
11490 {{PRVNÍVELKÉ:ěščř}}
11491 {{prvnívelké:ěščř}}
11511 Morwen/13: Unclosed link followed by heading
11518 <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>
11523 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11530 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11535 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11542 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
11557 Paragraphs inside divs (no extra line breaks)
11569 Paragraphs inside divs (extra line break on open)
11584 Paragraphs inside divs (extra line break on close)
11599 Paragraphs inside divs (extra line break on open and close)
11616 Nesting tags, paragraphs on lines which begin with <div>
11620 <div></div><strong>A
11629 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11631 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11635 <blockquote>Line one
11637 Line two</blockquote>
11639 <blockquote>Line one
11640 Line two</blockquote>
11645 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11652 Line two</blockquote>
11657 Line two</blockquote>
11662 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11666 <blockquote>Line one
11671 <blockquote>Line one
11679 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11698 Paragraphs inside blockquotes/divs (no extra line breaks)
11700 <blockquote><div>Line one
11702 Line two</div></blockquote>
11704 <blockquote><div>Line one
11705 Line two</div></blockquote>
11710 Paragraphs inside blockquotes/divs (extra line break on open)
11715 Line two</div></blockquote>
11720 Line two</div></blockquote>
11725 Paragraphs inside blockquotes/divs (extra line break on close)
11727 <blockquote><div>Line one
11730 </div></blockquote>
11732 <blockquote><div>Line one
11735 </div></blockquote>
11740 Paragraphs inside blockquotes/divs (extra line break on open and close)
11746 </div></blockquote>
11752 </div></blockquote>
11757 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11759 wgLinkHolderBatchSize=0
11765 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11766 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11767 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11772 Free external link invading image caption
11774 [[Image:Foobar.jpg|thumb|http://x|hello]]
11776 <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>
11781 Bug 15196: localised external link numbers
11785 [http://en.wikipedia.org/]
11787 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11792 Multibyte character in padleft
11794 {{padleft:-Hello|7|Æ}}
11801 Multibyte character in padright
11803 {{padright:Hello-|7|Æ}}
11810 formatdate parser function
11812 {{#formatdate:2009-03-24}}
11814 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11819 formatdate parser function, with default format
11821 {{#formatdate:2009-03-24|mdy}}
11823 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11828 Spacing of numbers in formatted dates
11830 {{#formatdate:January 15}}
11832 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11837 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
11839 language=nl title=[[MediaWiki:Common.css]]
11841 {{#formatdate:2009-03-24|dmy}}
11843 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11856 Edit comment with link
11860 I like the [[Main Page]] a lot
11862 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11866 Edit comment with link and link text
11870 I like the [[Main Page|best pages]] a lot
11872 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11876 Edit comment with link and link text with suffix
11880 I like the [[Main Page|best page]]s a lot
11882 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11886 Edit comment with section link (non-local, eg in history list)
11888 comment title=[[Main Page]]
11890 /* External links */ removed bogus entries
11892 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11896 Edit comment with section link and text before it (non-local, eg in history list)
11898 comment title=[[Main Page]]
11900 pre-comment text /* External links */ removed bogus entries
11902 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>
11906 Edit comment with section link (local, eg in diff view)
11908 comment local title=[[Main Page]]
11910 /* External links */ removed bogus entries
11912 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11916 Edit comment with subpage link (bug 14080)
11920 title=[[Subpage test]]
11922 Poked at a [[/subpage]] here...
11924 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11928 Edit comment with subpage link and link text (bug 14080)
11932 title=[[Subpage test]]
11934 Poked at a [[/subpage|neat little page]] here...
11936 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11940 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11943 title=[[Subpage test]]
11945 Poked at a [[/subpage]] here...
11947 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11951 Edit comment with bare anchor link (local, as on diff)
11955 title=[[Main Page]]
11959 <a href="#section">#section</a>
11963 Edit comment with bare anchor link (non-local, as on history)
11966 title=[[Main Page]]
11970 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11974 Anchor starting with underscore
11978 <p><a href="#_ref">One</a>
11983 Id starting with underscore
11985 <div id="_ref"></div>
11987 <div id="_ref"></div>
11992 Space normalisation on autocomment (bug 22784)
11995 title=[[Main Page]]
11997 /* __hello__world__ */
11999 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12003 percent-encoding and + signs in comments (Bug 26410)
12007 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12009 <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>
12013 Bad images - basic functionality
12022 Bad images - bug 16039: text after bad image disappears
12036 Verify that displaytitle works (bug #22501) no displaytitle
12040 wgAllowDisplayTitle=true
12041 wgRestrictDisplayTitle=false
12043 this is not the the title
12046 <p>this is not the the title
12051 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12056 wgAllowDisplayTitle=true
12057 wgRestrictDisplayTitle=false
12059 this is not the the title
12060 {{DISPLAYTITLE:whatever}}
12063 <p>this is not the the title
12068 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12073 wgAllowDisplayTitle=true
12074 wgRestrictDisplayTitle=true
12076 this is not the the title
12077 {{DISPLAYTITLE:whatever}}
12080 <p>this is not the the title
12085 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12090 wgAllowDisplayTitle=true
12091 wgRestrictDisplayTitle=true
12093 this is not the the title
12094 {{DISPLAYTITLE:screen}}
12097 <p>this is not the the title
12102 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12107 wgAllowDisplayTitle=false
12109 this is not the the title
12110 {{DISPLAYTITLE:screen}}
12113 <p>this is not the the title
12114 <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>
12119 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12124 wgAllowDisplayTitle=false
12126 this is not the the title
12129 <p>this is not the the title
12134 preload: check <noinclude> and <includeonly>
12138 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12144 preload: check <onlyinclude>
12148 Goodbye <onlyinclude>Hello world</onlyinclude>
12154 preload: can pass tags through if we want to
12158 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12160 <includeonly>Hello world</includeonly>
12164 preload: check that it doesn't try to do tricks
12168 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12170 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12174 Play a bit with r67090 and bug 3158
12178 <div style="width:50% !important"> </div>
12179 <div style="width:50% !important"> </div>
12180 <div style="width:50% !important"> </div>
12181 <div style="border : solid;"> </div>
12183 <div style="width:50% !important"> </div>
12184 <div style="width:50% !important"> </div>
12185 <div style="width:50% !important"> </div>
12186 <div style="border : solid;"> </div>
12191 HTML5 data attributes
12193 <span data-foo="bar">Baz</span>
12194 <p data-abc-def_hij="">Quuz</p>
12196 <p><span data-foo="bar">Baz</span>
12198 <p data-abc-def_hij="">Quuz</p>
12203 percent-encoding and + signs in internal links (Bug 26410)
12205 [[User:+%]] [[Page+title%]]
12206 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12207 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12208 [[%33%45]] [[%33%45+]]
12210 <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>
12211 <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>
12212 <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>
12213 <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>
12218 Special characters in embedded file links (bug 27679)
12220 [[File:Contains & ampersand.jpg]]
12221 [[File:Does not exist.jpg|Title with & ampersand]]
12223 <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>
12224 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12230 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12232 Text's been normalized?
12234 <p>Text's been normalized?
12239 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12241 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12243 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12248 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12250 [http://www.example.org/ ideograms]
12252 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12257 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12259 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12261 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12285 Bug 31098 Template which includes system messages which includes the template
12289 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12290 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12295 Bug31490 Turkish: ucfirst 'blah'
12306 Bug31490 Turkish: ucfirst 'ix'
12317 Bug31490 Turkish: lcfirst 'BLAH'
12328 Bug31490 Turkish: ucfırst (with a dotless i)
12334 <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>
12339 Bug31490 ucfırst (with a dotless i) with English language
12345 <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>
12350 Bug 26375: TOC with italics
12352 title=[[Main Page]]
12355 == ''Lost'' episodes ==
12357 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12359 <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>
12362 <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>
12367 Bug 26375: TOC with bold
12369 title=[[Main Page]]
12372 == '''should be bold''' then normal text ==
12374 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12376 <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>
12379 <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>
12384 Bug 33845: Headings become cursive in TOC when they contain an image
12386 title=[[Main Page]]
12389 == Image [[Image:foobar.jpg]] ==
12391 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12393 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12396 <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>
12401 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12403 title=[[Main Page]]
12406 == <blockquote>Quote</blockquote> ==
12408 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12410 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12413 <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>
12418 Unclosed tags in TOC
12420 title=[[Main Page]]
12424 <small>Hanc marginis exiguitas non caperet.</small>
12427 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12429 <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>
12432 <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>
12433 <p><small>Hanc marginis exiguitas non caperet.</small>
12439 Multiple tags in TOC
12442 == <i>Foo</i> <b>Bar</b> ==
12444 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12446 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12448 <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>
12449 <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>
12452 <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>
12453 <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>
12458 Tags with parameters in TOC
12461 == <sup class="in-h2">Hello</sup> ==
12463 == <sup class="a > b">Evilbye</sup> ==
12465 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12467 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12468 <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>
12471 <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>
12472 <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>
12477 span tags with directionality in TOC
12480 == <span dir="ltr">C++</span> ==
12482 == <span dir="rtl">זבנג!</span> ==
12484 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12486 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12488 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12490 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12492 <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>
12493 <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>
12494 <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>
12495 <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>
12496 <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>
12499 <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>
12500 <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>
12501 <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>
12502 <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>
12503 <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>
12510 == {{int:headline_sample}} ==
12514 Bug 32057: Title needed when expanding <h> nodes.
12516 title=[[Main Page]]
12520 <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>
12525 Strip marker in urlencode
12527 {{urlencode:x<nowiki/>y}}
12528 {{urlencode:x<nowiki/>y|wiki}}
12529 {{urlencode:x<nowiki/>y|path}}
12556 Strip marker in formatNum
12558 {{formatnum:1<nowiki/>2}}
12559 {{formatnum:1<nowiki/>2|R}}
12567 Strip marker in grammar
12571 {{grammar:elative|foo<nowiki/>bar}}
12578 Strip marker in padleft
12580 {{padleft:|2|x<nowiki/>y}}
12587 Strip marker in padright
12589 {{padright:|2|x<nowiki/>y}}
12596 Strip marker in anchorencode
12598 {{anchorencode:x<nowiki/>y}}
12605 nowiki inside link inside heading (bug 18295)
12607 ==[[foo|x<nowiki>y</nowiki>z]]==
12609 <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>
12614 new support for bdi element (bug 31817)
12616 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12618 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12623 Ignore pipe between table row attributes
12627 |- id=foo | style='color: red'
12635 <tr id="foo" style="color: red">
12642 Gallery override link with WikiLink (bug 34852)
12645 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12648 <ul class="gallery">
12649 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12650 <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>
12651 <div class="gallerytext">
12661 Gallery override link with absolute external link (bug 34852)
12664 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12667 <ul class="gallery">
12668 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12669 <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>
12670 <div class="gallerytext">
12680 Gallery override link with malicious javascript (bug 34852)
12683 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12686 <ul class="gallery">
12687 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12688 <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>
12689 <div class="gallerytext">
12699 Gallery with invalid title as link (bug 43964)
12702 File:foobar.jpg|link=<
12705 <ul class="gallery">
12706 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12707 <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>
12708 <div class="gallerytext">
12716 Language parser function
12725 Padleft and padright as substr
12727 {{padleft:|3|abcde}}
12728 {{padright:|3|abcde}}
12736 Bug 34939 - Case insensitive link parsing ([HttP://])
12738 [HttP://MediaWiki.Org/]
12740 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12745 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12747 [HttP://MediaWiki.Org/ MediaWiki]
12749 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12754 Bug 34939 - Case insensitive link parsing (HttP://)
12756 HttP://MediaWiki.Org/
12758 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12763 ### Parsoids-specific tests
12764 ### Parsoid-PHP parser incompatibilities
12767 1. SOL-sensitive wikitext tokens as template-args
12781 #### The following section of tests are primarily to test
12782 #### wikitext escaping capabilities of Parsoid.
12783 #### A lot of the tests are disabled for the PHP parser either
12784 #### because of minor newline diffs or other reasons.
12785 #### As Parsoid serializer can handle newlines and other HTML
12786 #### more robustly, some of these tests might get reenabled
12787 #### for the PHP parser.
12789 #### --------------- Headings ---------------
12791 #### 1. Nested inside html <h1>=foo=</h1>
12792 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12793 #### 3. Nested inside html with wikitext split by html tags
12794 #### 4. No escape needed
12795 #### 5. Empty headings <h1></h1>
12796 #### 6. Heading chars in SOL context
12797 #### ----------------------------------------
12799 Headings: 0. Unnested
12801 <nowiki>=foo=</nowiki>
12803 <nowiki>=foo</nowiki>''a''=
12806 </p><p>=foo<i>a</i>=
12811 Headings: 1. Nested inside html
12815 =<nowiki>=foo=</nowiki>=
12816 ==<nowiki>=foo=</nowiki>==
12817 ===<nowiki>=foo=</nowiki>===
12818 ====<nowiki>=foo=</nowiki>====
12819 =====<nowiki>=foo=</nowiki>=====
12820 ======<nowiki>=foo=</nowiki>======
12831 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12836 <nowiki>*bar</nowiki>
12840 <nowiki>=bar=</nowiki>
12848 Headings: 3. Nested inside html with wikitext split by html tags
12852 =<nowiki>=</nowiki>'''bold'''foo==
12854 <h1>=<b>bold</b>foo=</h1>
12858 Headings: 4. No escaping needed (testing just h1 and h2)
12873 <h1><i>=</i>foo=</h1>
12878 Headings: 5. Empty headings
12882 =<nowiki></nowiki>=
12883 ==<nowiki></nowiki>==
12884 ===<nowiki></nowiki>===
12885 ====<nowiki></nowiki>====
12886 =====<nowiki></nowiki>=====
12887 ======<nowiki></nowiki>======
12898 Headings: 6. Heading chars in SOL context
12902 <!--cmt--><nowiki>=h1=</nowiki>
12908 #### --------------- Lists ---------------
12909 #### 0. Outside nests (*foo, etc.)
12910 #### 1. Nested inside html <ul><li>*foo</li></ul>
12911 #### 2. Inside definition lists
12912 #### 3. Only bullets at start should be escaped
12913 #### 4. No escapes needed
12914 #### 5. No unnecessary escapes
12915 #### 6. Escape bullets in SOL position
12916 #### 7. Escape bullets in a multi-line context
12917 #### ----------------------------------------
12920 Lists: 0. Outside nests
12922 <nowiki>*foo</nowiki>
12924 <nowiki>#foo</nowiki>
12932 Lists: 1. Nested inside html
12934 *<nowiki>*foo</nowiki>
12936 *<nowiki>#foo</nowiki>
12938 *<nowiki>:foo</nowiki>
12940 *<nowiki>;foo</nowiki>
12942 #<nowiki>*foo</nowiki>
12944 #<nowiki>#foo</nowiki>
12946 #<nowiki>:foo</nowiki>
12948 #<nowiki>;foo</nowiki>
12970 Lists: 2. Inside definition lists
12972 ;<nowiki>;foo</nowiki>
12974 ;<nowiki>:foo</nowiki>
12976 ;<nowiki>:foo</nowiki>
12979 :<nowiki>:foo</nowiki>
12994 Lists: 3. Only bullets at start of text should be escaped
12996 *<nowiki>*foo*bar</nowiki>
12998 *<nowiki>*foo</nowiki>''it''*bar
13002 <ul><li>*foo<i>it</i>*bar
13008 Lists: 4. No escapes needed
13020 <ul><li><i>foo</i>*bar
13022 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13027 Lists: 5. No unnecessary escapes
13029 * bar <span><nowiki>[[foo]]</nowiki></span>
13031 *=bar <span><nowiki>[[foo]]</nowiki></span>
13033 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13035 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13037 *=bar <span>foo]]</span>=
13039 <ul><li> bar <span>[[foo]]</span>
13041 <ul><li>=bar <span>[[foo]]</span>
13043 <ul><li>[[bar <span>[[foo]]</span>
13045 <ul><li>]]bar <span>[[foo]]</span>
13047 <ul><li>=bar <span>foo]]</span>=
13053 Lists: 6. Escape bullets in SOL position
13057 <!--cmt--><nowiki>*foo</nowiki>
13064 Lists: 7. Escape bullets in a multi-line context
13074 #### --------------- HRs ---------------
13075 #### 1. Single line
13076 #### -----------------------------------
13079 HRs: 1. Single line
13084 <nowiki>----</nowiki>
13086 <nowiki>=foo=</nowiki>
13088 <nowiki>*foo</nowiki>
13095 #### --------------- Tables ---------------
13096 #### 1a. Simple example
13097 #### 1b. No escaping needed (!foo)
13098 #### 1c. No escaping needed (|foo)
13099 #### 1d. No escaping needed (|}foo)
13101 #### 2a. Nested in td (<td>foo|bar</td>)
13102 #### 2b. Nested in td (<td>foo||bar</td>)
13103 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13105 #### 3a. Nested in th (<th>foo!bar</th>)
13106 #### 3b. Nested in th (<th>foo!!bar</th>)
13107 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13111 #### 4c. No escaping needed
13112 #### --------------------------------------
13115 Tables: 1a. Simple example
13126 Tables: 1b. No escaping needed
13135 Tables: 1c. No escaping needed
13144 Tables: 1d. No escaping needed
13153 Tables: 2a. Nested in td
13158 |<nowiki>foo|bar</nowiki>
13168 Tables: 2b. Nested in td
13173 |<nowiki>foo||bar</nowiki>
13174 |''it''<nowiki>foo||bar</nowiki>
13179 </td><td><i>it</i>foo||bar
13185 Tables: 2c. Nested in td -- no escaping needed
13200 Tables: 3a. Nested in th
13215 Tables: 3b. Nested in th
13220 !<nowiki>foo!!bar</nowiki>
13230 Tables: 3c. Nested in th -- no escaping needed
13245 Tables: 4a. Escape -
13253 |<nowiki>-bar</nowiki>
13257 <tr><th>-bar</th></tr>
13258 <tr><td>-bar</td></tr>
13263 Tables: 4b. Escape +
13271 |<nowiki>+bar</nowiki>
13275 <tr><th>+bar</th></tr>
13276 <tr><td>+bar</td></tr>
13281 Tables: 4c. No escaping needed
13295 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13296 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13301 Tables: 4d. No escaping needed
13317 #### --------------- Links ---------------
13318 #### 1. Quote marks in link text
13319 #### 2. Wikilinks: Escapes needed
13320 #### 3. Wikilinks: No escapes needed
13321 #### 4. Extlinks: Escapes needed
13322 #### 5. Extlinks: No escapes needed
13323 #### --------------------------------------
13325 Links 1. Quote marks in link text
13329 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13331 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13335 Links 2. WikiLinks: Escapes needed
13339 [[Foo|<nowiki>[Foobar]</nowiki>]]
13340 [[Foo|<nowiki>Foobar]</nowiki>]]
13341 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13342 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13343 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13344 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13345 [[Foo|<nowiki>|Bar</nowiki>]]
13347 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13348 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13349 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13350 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13351 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13352 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13353 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13357 Links 3. WikiLinks: No escapes needed
13364 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13365 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13369 Links 4. ExtLinks: Escapes needed
13373 [http://google.com <nowiki>[google]</nowiki>]
13374 [http://google.com <nowiki>google]</nowiki>]
13376 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13377 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13381 Links 5. ExtLinks: No escapes needed
13385 [http://google.com [google]
13387 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13390 #### --------------- Quotes ---------------
13391 #### 1. Quotes inside <b> and <i>
13392 #### 2. Link fragments separated by <i> and <b> tags
13393 #### 3. Link fragments inside <i> and <b>
13394 #### --------------------------------------
13396 1. Quotes inside <b> and <i>
13398 ''<nowiki>'foo'</nowiki>''
13399 ''<nowiki>''foo''</nowiki>''
13400 ''<nowiki>'''foo'''</nowiki>''
13401 '''<nowiki>'foo'</nowiki>'''
13402 '''<nowiki>''foo''</nowiki>'''
13403 '''<nowiki>'''foo'''</nowiki>'''
13404 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13412 <b>foo'<i>bar'</i>baz</b>
13417 2. Link fragments separated by <i> and <b> tags
13419 [[''foo''<nowiki>hello]]</nowiki>
13421 [['''foo'''<nowiki>hello]]</nowiki>
13423 <p>[[<i>foo</i>hello]]
13424 </p><p>[[<b>foo</b>hello]]
13429 2. Link fragments inside <i> and <b>
13430 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13431 this is one of the shortcomings of this format)
13433 ''[[foo''<nowiki>]]</nowiki>
13435 '''[[foo'''<nowiki>]]</nowiki>
13438 </p><p><b>[[foo</b>]]
13442 #### --------------- Paragraphs ---------------
13443 #### 1. No unnecessary escapes
13444 #### --------------------------------------
13447 1. No unnecessary escapes
13449 bar <span><nowiki>[[foo]]</nowiki></span>
13451 =bar <span><nowiki>[[foo]]</nowiki></span>
13453 [[bar <span><nowiki>[[foo]]</nowiki></span>
13455 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13457 <nowiki>=bar </nowiki><span>foo]]</span>=
13459 <p>bar <span>[[foo]]</span>
13460 </p><p>=bar <span>[[foo]]</span>
13461 </p><p>[[bar <span>[[foo]]</span>
13462 </p><p>]]bar <span>[[foo]]</span>
13463 </p><p>=bar <span>foo]]</span>=
13467 #### --------------- PRE ------------------
13468 #### 1. Leading space in SOL context should be escaped
13469 #### --------------------------------------
13471 1. Leading space in SOL context should be escaped
13475 <nowiki> foo</nowiki>
13476 <!--cmt--><nowiki> foo</nowiki>
13483 #### --------------- HTML tags ---------------
13486 #### 3. multi-line html tag
13487 #### --------------------------------------
13493 <a href="http://google.com">google</a>
13495 <a href="http://google.com">google</a>
13501 <nowiki><div>foo</div>
13502 <div style="color:red">foo</div></nowiki>
13504 <p><div>foo</div>
13505 <div style="color:red">foo</div>
13510 3. multi-line html tag
13522 #### --------------- Others ---------------
13526 <nowiki>foo</nowiki>
13528 <p><nowiki>foo</nowiki>
13533 Tag-like HTML structures are passed through as text
13555 </p><p>1<d e>f
13560 # This fails in the PHP parser (see bug 40670,
13561 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13563 Tag names followed by punctuation should not be recognized as tags
13569 <p><s.ome> text
13574 HTML tag with necessary entities in attributes
13576 <span title="&amp;">foo</span>
13578 <p><span title="&amp;">foo</span>
13583 HTML tag with 'unnecessary' entity encoding in attributes
13585 <span title="&">foo</span>
13587 <p><span title="&">foo</span>
13592 HTML tag with broken attribute value quoting
13594 <span title="Hello world>Foo</span>
13596 <p><span>Foo</span>
13601 Parsoid-only: HTML tag with broken attribute value quoting
13605 <span title="Hello world>Foo</span>
13607 <p><span title="Hello world">Foo</span>
13612 Table with broken attribute value quoting
13615 | title="Hello world|Foo
13626 Table with broken attribute value quoting on consecutive lines
13629 | title="Hello world|Foo
13630 | style="color:red|Bar
13643 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13648 | title="Hello world|Foo
13649 | style="color:red|Bar
13654 <td title="Hello world">Foo
13655 </td><td style="color: red;">Bar
13661 Accept empty td cell attribute
13664 | align="center" | foo || |
13669 <td align="center"> foo </td>
13676 Non-empty attributes in th-cells
13679 ! Foo !! style="color: red" | Bar
13685 <th style="color: red"> Bar
13691 Accept empty attributes in th-cells
13710 Try for 100% code coverage