1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
168 http://fr.wikipedia.org/wiki/🍺
169 <!-- EasterEgg we love beer, better be able be able to link to it -->
171 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
191 * plain''italic''plain
192 * plain''italic''plain''italic''plain
193 * plain'''bold'''plain
194 * plain'''bold'''plain'''bold'''plain
195 * plain''italic''plain'''bold'''plain
196 * plain'''bold'''plain''italic''plain
197 * plain''italic'''bold-italic'''italic''plain
198 * plain'''bold''bold-italic''bold'''plain
199 * plain'''''bold-italic'''italic''plain
200 * plain'''''bold-italic''bold'''plain
201 * plain''italic'''bold-italic'''''plain
202 * plain'''bold''bold-italic'''''plain
203 * plain l'''italic''plain
204 * plain l''''bold''' plain
207 </li><li> plain<i>italic</i>plain
208 </li><li> plain<i>italic</i>plain<i>italic</i>plain
209 </li><li> plain<b>bold</b>plain
210 </li><li> plain<b>bold</b>plain<b>bold</b>plain
211 </li><li> plain<i>italic</i>plain<b>bold</b>plain
212 </li><li> plain<b>bold</b>plain<i>italic</i>plain
213 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
214 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
215 </li><li> plain<i><b>bold-italic</b>italic</i>plain
216 </li><li> plain<b><i>bold-italic</i>bold</b>plain
217 </li><li> plain<i>italic<b>bold-italic</b></i>plain
218 </li><li> plain<b>bold<i>bold-italic</i></b>plain
219 </li><li> plain l'<i>italic</i>plain
220 </li><li> plain l'<b>bold</b> plain
226 ### 2-quote opening sequence tests
229 Italics and bold: 2-quote opening sequence: (2,2)
239 Italics and bold: 2-quote opening sequence: (2,3)
249 Italics and bold: 2-quote opening sequence: (2,4)
259 Italics and bold: 2-quote opening sequence: (2,5)
269 ### 3-quote opening sequence tests
273 Italics and bold: 3-quote opening sequence: (3,2)
283 Italics and bold: 3-quote opening sequence: (3,3)
293 Italics and bold: 3-quote opening sequence: (3,4)
303 Italics and bold: 3-quote opening sequence: (3,5)
313 ### 4-quote opening sequence tests
317 Italics and bold: 4-quote opening sequence: (4,2)
327 Italics and bold: 4-quote opening sequence: (4,3)
337 Italics and bold: 4-quote opening sequence: (4,4)
347 Italics and bold: 4-quote opening sequence: (4,5)
357 ### 5-quote opening sequence tests
361 Italics and bold: 5-quote opening sequence: (5,2)
371 Italics and bold: 5-quote opening sequence: (5,3)
381 Italics and bold: 5-quote opening sequence: (5,4)
385 <p><i><b>foo'</b></i>
391 Italics and bold: 5-quote opening sequence: (5,5)
400 ### multiple quote sequences in a line
403 Italics and bold: multiple quote sequences: (2,4,2)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,3)
417 <p><i>foo'<b>bar</b></i>
423 Italics and bold: multiple quote sequences: (2,4,4)
427 <p><i>foo'<b>bar'</b></i>
433 Italics and bold: multiple quote sequences: (3,4,2)
443 Italics and bold: multiple quote sequences: (3,4,3)
452 ### other quote tests
455 Italics and bold: other quote tests: (2,3,5)
457 ''this is about '''foo's family'''''
459 <p><i>this is about <b>foo's family</b></i>
465 Italics and bold: other quote tests: (2,(3,3),2)
467 ''this is about '''foo's''' family''
469 <p><i>this is about <b>foo's</b> family</i>
475 Italics and bold: other quote tests: (3,2,3,2)
477 '''this is about ''foo'''s family''
479 <p><b>this is about <i>foo</i></b><i>s family</i>
485 Italics and bold: other quote tests: (3,2,3,3)
487 '''this is about ''foo'''s family'''
489 <p>'<i>this is about </i>foo<b>s family</b>
495 Italics and bold: other quote tests: (3,(2,2),3)
497 '''this is about ''foo's'' family'''
499 <p><b>this is about <i>foo's</i> family</b>
505 Italicized possessive
507 The ''[[Main Page]]'''s talk page.
509 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
514 ### <nowiki> test cases
518 <nowiki> unordered list
520 <nowiki>* This is not an unordered list item.</nowiki>
522 <p>* This is not an unordered list item.
529 <nowiki>Lorem ipsum dolor
550 :There is not nowiki.
551 :There is <nowiki>nowiki</nowiki>.
553 #There is not nowiki.
554 #There is <nowiki>nowiki</nowiki>.
556 *There is not nowiki.
557 *There is <nowiki>nowiki</nowiki>.
559 <dl><dd>There is not nowiki.
560 </dd><dd>There is nowiki.
562 <ol><li>There is not nowiki.
563 </li><li>There is nowiki.
565 <ul><li>There is not nowiki.
566 </li><li>There is nowiki.
572 Entities inside <nowiki>
574 <nowiki><</nowiki>
585 Comments and Indent-Pre
587 <!-- comment 1 --> asdf
589 <!-- comment 1 --> asdf
592 <!-- comment 1 --> asdf
593 <!-- comment 2 -->xyz
595 <!-- comment 1 --> asdf
596 <!-- comment 2 --> xyz
652 asdf<!-- comment 1 -->jkl
662 <!-- foo --> b <!-- bar -->
676 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
682 Comment semantics and delimiters
684 <!-- --><!----><!-----><!------>
690 Comment semantics and delimiters, redux
692 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
693 -- foo -- funky huh? ... -->
699 Comment semantics and delimiters: directors cut
701 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
702 everything starting with < followed by !-- until the first -- and > we see,
703 that wouldn't be valid XML however, since in XML -- has to terminate a comment
711 Comment semantics: nesting
713 <!--<!-- no, we're not going to do anything fancy here -->-->
720 Comment semantics: unclosed comment at end
722 <!--This comment will run out to the end of the document
728 Comment in template title
737 Comment on its own line post-expand
749 Comment on its own line post-expand with non-significant whitespace
761 ### paragraph wraping tests
775 Block tag on one line
787 Block tag on both lines
799 Multiple lines without block tags
817 Empty lines between block tags to test open p-tags are closed between the block tags
835 ### Preformatted text
844 And a [[Main Page|link]]
850 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
855 Ident preformatting with inline content
866 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
883 Regression with preformatted in <center>
896 # Expected output in the following test is not really expected (there should be
897 # <pre> in the output) -- it's only testing for well-formedness.
899 Bug 6200: Preformatted in <blockquote>
912 <pre> with attributes (bug 3202)
914 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
916 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
921 <pre> with width attribute (bug 3202)
923 <pre width="8">Narrow screen goodies</pre>
925 <pre width="8">Narrow screen goodies</pre>
930 <pre> with forbidden attribute (bug 3202)
932 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
934 <pre width="8">Narrow screen goodies</pre>
939 Entities inside <pre>
948 <pre> with forbidden attribute values (bug 3202)
950 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
952 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
957 <nowiki> inside <pre> (bug 13238)
965 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
973 <pre><nowiki>Foo</nowiki></pre>
978 <nowiki> and <pre> preference (first one wins)
1009 </pre> inside nowiki
1011 <nowiki></pre></nowiki>
1018 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1026 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1036 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1048 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1069 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1073 {{echo| foo}}{{echo| bar}}
1078 {{echo|<!--cmt--> foo}}
1080 <!--cmt-->{{echo| foo}}
1082 {{echo|{{echo| }}bar}}
1100 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1137 Templates: Single-line variant of parameter whitespace stripping test
1143 {{echo|{{echo| a}}}}
1145 {{echo|1={{echo| a}}}}
1158 Templates: Strip whitespace from named parameters, but not positional ones
1186 ### Parsoid-centric tests for testing RT edge cases for pre
1190 1a. Indent-Pre and Comments
1203 1b. Indent-Pre and Comments
1216 1c. Indent-Pre and Comments
1229 2a. Indent-Pre and tables
1250 2b. Indent-Pre and tables
1266 2c. Indent-Pre and tables (bug 42252)
1283 3a. Indent-Pre and block tags (single-line html)
1291 <pre><span> foo </span>
1296 3b. Indent-Pre and block tags (pre-content on separate line)
1348 4. Multiple spaces at start-of-line
1367 5. White-space in indent-pre
1368 NOTE: the white-space char on 2nd line is significant
1381 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1385 HTML-pre: 1. embedded newlines
1421 HTML-pre: 2: indented text
1434 HTML-pre: 3: other wikitext
1455 ### Definition lists
1462 <dl><dt> name </dt><dd> Definition
1468 Definition list for indentation only
1472 <dl><dd> Indented text
1478 Definition list with no space
1482 <dl><dt>name</dt><dd>Definition
1488 Definition list with URL link
1490 ; http://example.com/ : definition
1492 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1498 Definition list with bracketed URL link
1500 ;[http://www.example.com/ Example]:Something about it
1502 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1508 Definition list with wikilink containing colon
1510 ; [[Help:FAQ]]: The least-read page on Wikipedia
1512 <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
1517 # At Brion's and JeLuF's insistence... :)
1519 Definition list with news link containing colon
1521 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1523 <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!
1529 Malformed definition list with colon
1531 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1533 <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
1539 Definition lists: colon in external link text
1541 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1543 <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
1549 Definition lists: colon in HTML attribute
1551 ;<b style="display: inline">bold</b>
1553 <dl><dt><b style="display: inline">bold</b>
1559 Definition lists: self-closed tag
1561 ;one<br/>two : two-line fun
1563 <dl><dt>one<br />two </dt><dd> two-line fun
1569 Bug 11748: Literal closing tags
1573 <dd>test test test test test</dd>
1575 <dd>test test test test test</dd>
1580 <dd>test test test test test</dd>
1582 <dd>test test test test test</dd>
1588 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1591 ; term : description
1597 <dl><dt> term </dt><dd> description
1608 Definition list with empty definition and following paragraph
1613 <dl><dt> term</dt><dd>
1620 Nested definition lists using html syntax
1637 Definition Lists: No nesting: Multiple dd's
1651 Definition Lists: Indentation: Regular
1667 Definition Lists: Indentation: Missing 1st level
1681 Definition Lists: Indentation: Multi-level indent
1685 <dl><dd><dl><dd><dl><dd>i3
1693 Definition Lists: Hacky use to indent tables
1700 should be left alone
1702 <dl><dd><dl><dd><table>
1707 </td></tr></table></dd></dl></dd></dl>
1709 should be left alone
1712 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1713 ## as an empty dt item. It also ignores all but the last ";" when followed
1714 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1715 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1718 ## Ex: ";;t2 ::d2" is transformed into:
1730 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1731 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1742 ## All Parsoid only definition list tests have this difference.
1744 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1745 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1748 Table / list interaction: indented table with lists in table contents
1770 </td></tr></table></dd></dl>
1775 Table / list interaction: lists nested in tables nested in indented lists
1800 </td></tr></table></dd></dl>
1808 Definition Lists: Nesting: Multi-level (Parsoid only)
1838 Definition Lists: Nesting: Test 2 (Parsoid only)
1858 Definition Lists: Nesting: Test 3 (Parsoid only)
1886 Definition Lists: Nesting: Test 4
1891 <dl><dd><dl><dd><dl><dt>t3
1901 Definition Lists: Mixed Lists: Test 1
1907 <dl><dd><dl><dt><ul><li> foo
1919 Definition Lists: Mixed Lists: Test 2
1933 Definition Lists: Mixed Lists: Test 3
1938 <ul><li><dl><dd><dl><dd><dl><dd> d1
1949 Definition Lists: Mixed Lists: Test 4
1954 <ul><li><dl><dt>d1 </dt><dd>d2
1955 </dd><dt>d3 </dt><dd>d4
1963 Definition Lists: Mixed Lists: Test 5
1978 Definition Lists: Mixed Lists: Test 6
1983 <ol><li><ul><li><dl><dd>d1
1995 Definition Lists: Mixed Lists: Test 7
2009 Definition Lists: Mixed Lists: Test 8
2025 Definition Lists: Mixed Lists: Test 9
2029 <ul><li><dl><dt>foo </dt><dd>bar
2037 Definition Lists: Mixed Lists: Test 10
2041 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2050 Definition Lists: Mixed Lists: Test 11
2055 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2060 <dl><dt>boo </dt><dd>baz
2071 Definition Lists: Weird Ones: Test 1
2073 *#;*::;; foo : bar (who uses this?)
2075 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2091 External links: non-bracketed
2093 Non-bracketed: http://example.com
2095 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2100 External links: numbered
2102 Numbered: [http://example.com]
2103 Numbered: [http://example.net]
2104 Numbered: [http://example.com]
2106 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2107 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2108 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2113 External links: specified text
2115 Specified text: [http://example.com link]
2117 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2122 External links: trail
2124 Linktrails should not work for external links: [http://example.com link]s
2126 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2131 External links: dollar sign in URL
2133 http://example.com/1$2345
2135 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2140 External links: dollar sign in URL (named)
2142 [http://example.com/1$2345]
2144 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2149 External links: open square bracket forbidden in URL (bug 4377)
2151 http://example.com/1[2345
2153 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2158 External links: open square bracket forbidden in URL (named) (bug 4377)
2160 [http://example.com/1[2345]
2162 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2167 External links: nowiki in URL link text (bug 6230)
2169 [http://example.com/ <nowiki>''example site''</nowiki>]
2171 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2176 External links: newline forbidden in text (bug 6230 regression check)
2178 [http://example.com/ first
2181 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2187 External links: Pipe char between url and text
2189 [http://example.com | link]
2191 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2196 External links: protocol-relative URL in brackets
2198 [//example.com/ Test]
2200 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2205 External links: protocol-relative URL in brackets without text
2209 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2214 External links: protocol-relative URL in free text is left alone
2218 <p>//example.com/Foo
2223 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2225 foo//example.com/Foo
2227 <p>foo//example.com/Foo
2234 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2236 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2241 External image from https
2243 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2245 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2250 Link to non-http image, no img tag
2252 Link to non-http image, no img tag: ftp://example.com/test.jpg
2254 <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>
2259 External links: terminating separator
2261 Terminating separator: http://example.com/thing,
2263 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2268 External links: intervening separator
2270 Intervening separator: http://example.com/1,2,3
2272 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2277 External links: old bug with URL in query
2279 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2281 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2286 External links: old URL-in-URL bug, mixed protocols
2288 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2290 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2295 External links: URL in text
2297 URL in text: [http://example.com http://example.com]
2299 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2304 External links: Clickable images
2306 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2308 <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>
2313 External links: raw ampersand
2315 Old & use: http://x&y
2317 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2322 External links: encoded ampersand
2324 Old & use: http://x&y
2326 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2331 External links: encoded equals (bug 6102)
2333 http://example.com/?foo=bar
2335 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2340 External links: [raw ampersand]
2342 Old & use: [http://x&y]
2344 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2349 External links: [encoded ampersand]
2351 Old & use: [http://x&y]
2353 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2358 External links: [encoded equals] (bug 6102)
2360 [http://example.com/?foo=bar]
2362 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2367 External links: [IDN ignored character reference in hostname; strip it right off]
2369 [http://e‌xample.com/]
2371 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2375 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2376 # Where an external link could easily circumvent the sanitization of the text of
2377 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2378 # test demands a higher standard. That's a bit strange.
2382 # http://example.com -> [http://example.com|http://example.com]
2383 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2385 # The first example is sanitized, but the second is not. Any security benefits
2386 # from this production are trivial to circumvent. Either remove this test and
2387 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2388 # the test accordingly.
2393 External links: IDN ignored character reference in hostname; strip it right off
2395 http://e‌xample.com/
2397 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2402 External links: www.jpeg.org (bug 554)
2406 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2411 External links: URL within URL (original bug 2)
2413 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2415 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2420 BUG 361: URL inside bracketed URL
2422 [http://www.example.com/foo http://www.example.com/bar]
2424 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2429 BUG 361: URL within URL, not bracketed
2431 http://www.example.com/foo?=http://www.example.com/bar
2433 <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>
2438 BUG 289: ">"-token in URL-tail
2440 http://www.example.com/<hello>
2442 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2447 BUG 289: literal ">"-token in URL-tail
2449 http://www.example.com/<b>html</b>
2451 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2456 BUG 289: ">"-token in bracketed URL
2458 [http://www.example.com/<hello> stuff]
2460 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2465 BUG 289: literal ">"-token in bracketed URL
2467 [http://www.example.com/<b>html</b> stuff]
2469 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2474 BUG 289: literal double quote at end of URL
2476 http://www.example.com/"hello"
2478 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2483 BUG 289: literal double quote in bracketed URL
2485 [http://www.example.com/"hello" stuff]
2487 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2492 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2494 [http://www.example.com test]
2496 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2501 External links: wiki links within external link (Bug 3695)
2503 [http://example.com [[wikilink]] embedded in ext link]
2505 <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>
2510 BUG 787: Links with one slash after the url protocol are invalid
2514 [http:/example.com title]
2516 <p>http:/example.com
2517 </p><p>[http:/example.com title]
2522 Bracketed external links with template-generated invalid target
2524 [{{echo|http:/example.com}} title]
2526 <p>[http:/example.com title]
2531 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2533 ''[http://example.com text'']
2534 [http://example.com '''text]'''
2535 ''Something [http://example.com in italic'']
2536 ''Something [http://example.com mixed''''', even bold]'''
2537 '''''Now [http://example.com both''''']
2539 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2540 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2541 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2542 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2543 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2549 Bug 4781: %26 in URL
2551 http://www.example.com/?title=AT%26T
2553 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2557 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2558 # % is actually legal in HTML5. Any change in output would need testing though.
2560 Bug 4781, 5267: %25 in URL
2562 http://www.example.com/?title=100%25_Bran
2564 <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>
2569 Bug 4781, 5267: %28, %29 in URL
2571 http://www.example.com/?title=Ben-Hur_%281959_film%29
2573 <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>
2579 Bug 4781: %26 in autonumber URL
2581 [http://www.example.com/?title=AT%26T]
2583 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2588 Bug 4781, 5267: %26 in autonumber URL
2590 [http://www.example.com/?title=100%25_Bran]
2592 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2597 Bug 4781, 5267: %28, %29 in autonumber URL
2599 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2601 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2607 Bug 4781: %26 in bracketed URL
2609 [http://www.example.com/?title=AT%26T link]
2611 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2616 Bug 4781, 5267: %26 in bracketed URL
2618 [http://www.example.com/?title=100%25_Bran link]
2620 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2625 Bug 4781, 5267: %28, %29 in bracketed URL
2627 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2629 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2634 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2636 Some [http://example.com/ pretty ''italics'' and stuff]!
2638 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2643 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2645 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2647 <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>
2652 External link containing double-single-quotes with no space separating the url from text in italics
2654 [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]].]
2656 <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>
2661 Text in square brackets that is not a link should parse as text
2666 [url=http://example.com]
2671 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
2676 URL-encoding in URL functions (single parameter)
2678 {{localurl:Some page|amp=&}}
2680 <p>/index.php?title=Some_page&amp=&
2685 URL-encoding in URL functions (multiple parameters)
2687 {{localurl:Some page|q=?&=&}}
2689 <p>/index.php?title=Some_page&q=?&amp=&
2696 http://example.com/index.php?foozoid%5B%5D=bar
2698 http://example.com/index.php?foozoid[]=bar
2700 <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>
2701 </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>
2706 IPv6 urls (bug 21261)
2710 http://[2404:130:0:1000::187:2]/index.php
2712 <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>
2717 Non-extlinks in brackets
2726 [{{echo|foo}} ''bar'']
2727 [{{echo|foo}}l's] errand
2728 [{{echo|foo}}l's errand]
2750 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2752 Normal text. '''''Bold italic text.''''' Normal text.
2754 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2755 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2761 Unclosed and unmatched quotes
2763 '''''Bold italic text '''with bold deactivated''' in between.'''''
2765 '''''Bold italic text ''with italic deactivated'' in between.'''''
2769 ..spanning two paragraphs (should not work).'''
2771 '''Bold tag left open
2773 ''Italic tag left open
2777 <!-- Unmatching number of opening, closing tags: -->
2778 '''This year''''s election ''should'' beat '''last year''''s.
2780 ''Tom'''s car is bigger than ''Susan'''s.
2782 Plain ''italic'''s plain
2784 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2785 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2786 </p><p><b>Bold text..</b>
2787 </p><p>..spanning two paragraphs (should not work).
2788 </p><p><b>Bold tag left open</b>
2789 </p><p><i>Italic tag left open</i>
2791 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2792 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2793 </p><p>Plain <i>italic'</i>s plain
2800 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2803 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2804 # is the bare minimun required by the spec, see:
2805 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2807 A table with no data.
2813 # A table with nothing but a caption is invalid XHTML, we might want to render
2814 # this as <p>caption</p>
2816 A table with nothing but a caption
2824 </caption><tr><td></td></tr></table>
2829 A table with caption with default-spaced attributes and a table row
2832 |+ style="color: red;" | caption1
2838 <caption style="color: red;"> caption1
2847 A table with captions with non-default spaced attributes and a table row
2850 |+style="color: red;"|caption2
2851 |+ style="color: red;"| caption3
2857 <caption style="color: red;">caption2
2859 <caption style="color: red;"> caption3
2868 Table td-cell syntax variations
2872 | foo bar foo || baz
2873 | style='color:red;' | baz
2874 | style='color:red;' || baz
2881 <td> foo bar foo </td>
2884 <td style="color:red;"> baz
2886 <td> style='color:red;' </td>
2914 Simple table but with multiple dashes for row wikitext
2932 Multiplication table
2934 {| border="1" cellpadding="2"
2935 |+Multiplication table
2937 ! × !! 1 !! 2 !! 3
2955 <table border="1" cellpadding="2">
2956 <caption>Multiplication table
3003 Accept "||" in table headings
3018 Accept "||" in indented table headings
3028 </th></tr></table></dd></dl>
3033 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3050 Accept "| !" at start of line in tables (ignore !-attribute)
3054 | !style="color:red" | bar
3066 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 +/-
3070 |style='color:red;'|+1
3071 |style='color:blue;'|-1
3083 <td style="color:red;">+1
3085 <td style="color:blue;">-1
3109 |rowspan=2| Cell 2, row 1 (and 2)
3120 <td rowspan="2"> Cell 2, row 1 (and 2)
3138 {| bgcolor=#ABCDEF border=2
3143 |the original table again
3151 <table bgcolor="#ABCDEF" border="2">
3159 <td>the original table again
3165 Invalid attributes in table cell (bug 1830)
3180 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3183 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3187 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3188 <td>]" onmouseover="alert(document.cookie)">test
3197 Indented table markup mixed with indented pre content (proposed in bug 6200)
3202 Text that should be rendered preformatted
3210 <pre>Text that should be rendered preformatted
3219 Template-generated table cell attributes and cell content
3227 <td style="color: red"> Foo
3233 Table with row followed by newlines and table heading
3250 # FIXME: Preserve the attribute properly (with an empty string as value) in
3251 # the PHP parser. Parsoid implements the behavior below.
3253 Table attributes with empty value
3269 Wikitext table with a lot of comments
3295 Plain link, capitalized
3299 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3304 Plain link, uncapitalized
3308 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3315 [[Main Page|The Main Page]]
3317 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3326 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3331 Broken link with fragment
3333 [[Zigzagzogzagzig#zug]]
3335 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3340 Special page link with fragment
3342 [[Special:Version#anchor]]
3344 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3349 Nonexistent special page link with fragment
3351 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3353 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3360 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3362 <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>
3369 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3371 <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>!!!
3382 Bug 43661: Piped links with identical prefixes
3384 [[prefixed article|prefixed articles with spaces]]
3386 [[prefixed article|prefixed articlesaoeu]]
3388 [[Main Page|Main Page test]]
3390 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3391 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3392 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3398 Link with HTML entity in suffix / tail
3400 [[Main Page]]", [[Main Page]]a
3402 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3407 Link with 3 brackets
3416 Piped link with 3 brackets
3418 [[[main page|the main page]]]
3420 <p>[[[main page|the main page]]]
3425 Link with multiple pipes
3427 [[Main Page|The|Main|Page]]
3429 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3436 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3438 <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>
3443 Piped link to namespace
3445 [[Meta:Disclaimers|The disclaimers]]
3447 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3454 [[Usually caused by a typo (oops}]]
3456 <p>[[Usually caused by a typo (oops}]]
3461 Link containing % (not as a hex sequence)
3465 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3470 Link containing % as a single hex sequence interpreted to char
3474 <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>
3479 Link containing % as a double hex sequence interpreted to hex sequence
3483 <p>[[7%2525 Solution]]
3488 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3489 Example for such a section: == < ==
3491 [[%23%3c]][[%23%3e]]
3493 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3498 Link containing "<#" and ">#" as a hex sequences
3500 [[%3c%23]][[%3e%23]]
3502 <p>[[%3c%23]][[%3e%23]]
3507 Link containing double-single-quotes '' (bug 4598)
3509 [[Lista d''e paise d''o munno]]
3511 <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>
3516 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3518 Some [[Link|pretty ''italics'' and stuff]]!
3520 <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>!
3525 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3527 ''Some [[Link|pretty ''italics'' and stuff]]!
3529 <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>
3534 Link with double quotes in title part (literal) and alternate part (interpreted)
3536 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3540 [[''Pentecoste''|Pentecoste]]
3542 [[''Pentecoste''|''Pentecoste'']]
3544 <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>
3545 </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>
3546 </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>
3547 </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>
3552 Broken image links with HTML captions (bug 39700)
3554 [[File:Nonexistent|<script></script>]]
3555 [[File:Nonexistent|100px|<script></script>]]
3556 [[File:Nonexistent|<]]
3557 [[File:Nonexistent|a<i>b</i>c]]
3559 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3560 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3561 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3562 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3569 [[http://www.example.com]]
3571 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3576 Plain link to URL with link text
3578 [[http://www.example.com Link text]]
3580 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3585 Plain link to protocol-relative URL
3587 [[//www.example.com]]
3589 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3594 Plain link to protocol-relative URL with link text
3596 [[//www.example.com Link text]]
3598 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3603 Plain link to page with question mark in title
3609 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3610 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3615 # I'm fairly sure the expected result here is wrong.
3616 # We want these to be URL links, not pseudo-pages with URLs for titles....
3617 # However the current output is also pretty screwy.
3620 # I'm changing it to match the current output--it arguably makes more
3621 # sense in the light of the test above. Old expected result was:
3622 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3624 # But I think this test is bordering on "garbage in, garbage out" anyway.
3629 Piped link to URL: [[http://www.example.com|an example URL]]
3631 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3636 BUG 2: [[page|http://url/]] should link to page, not http://url/
3638 [[Main Page|http://url/]]
3640 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3645 BUG 337: Escaped self-links should be bold
3649 [[Bug462]] [[Bug462]]
3651 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3656 Self-link to section should not be bold
3660 [[Main Page#section]]
3662 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3673 Self-link to numeric title
3679 <p><strong class="selflink">0</strong>
3684 Link to numeric-equivalent title
3690 <p><a href="/wiki/00" title="00">00</a>
3695 <nowiki> inside a link
3697 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3699 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3704 Non-breaking spaces in title
3706 [[ Main Page ]]
3708 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3713 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3719 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3724 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3730 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3735 Internal link with en linktrail: no apostrophes (bug 27473)
3741 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3746 Internal link with ca linktrail with apostrophes (bug 27473)
3752 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3757 Internal link with kaa linktrail with apostrophes (bug 27473)
3763 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3768 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3776 [http://wp.org ''foo'']
3778 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3779 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3780 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3781 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3786 ### Interwiki links (see maintenance/interwiki.sql)
3790 Inline interwiki link
3792 [[MeatBall:SoftSecurity]]
3794 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3799 Inline interwiki link with empty title (bug 2372)
3803 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3808 Interwiki link encoding conversion (bug 1636)
3810 *[[Wikipedia:ro:Olteniţa]]
3811 *[[Wikipedia:ro:Olteniţa]]
3813 <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>
3814 </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>
3820 Interwiki link with fragment (bug 2130)
3822 [[MeatBall:SoftSecurity#foo]]
3824 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3839 Double interlanguage link
3850 Interlanguage link, with prefix links
3862 Double interlanguage link, with prefix links (bug 8897)
3875 Parsoid-specific test: Wikilinks with should RT properly
3881 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3899 Broken br tag sanitization
3908 Incorrecly removing closing slashes from correctly formed XHTML
3910 <br style="clear:both;" />
3912 <p><br style="clear:both;" />
3917 Failing to transform badly formed HTML into correct XHTML
3919 <br style="clear: left;">
3920 <br style="clear: right;">
3921 <br style="clear: both;">
3923 <p><br style="clear: left;" />
3924 <br style="clear: right;" />
3925 <br style="clear: both;" />
3930 Handling html with a div self-closing tag
3939 <p><div title />
3943 <p><div title=bar />
3944 <div title=bar/>
3946 <div title="bar/"></div>
3952 Handling html with a br self-closing tag
3961 <p><br title="title" />
3962 <br title="title" />
3971 Horizontal ruler (should it add that extra space?)
3985 Horizontal ruler -- 4+ dashes render hr
3994 Horizontal ruler -- eats additional dashes on the same line
4003 Horizontal ruler -- does not collaps dashes on consecutive lines
4014 Horizontal ruler -- <4 dashes render as plain text
4023 Horizontal ruler -- Supports content following dashes on same line
4032 ### Block-level elements
4055 <ol><li>Numbered list
4072 ***#Number on level 4
4074 **#Number on level 3
4075 **#Number on level 3
4079 #** Level 3, but ordered
4082 <ol><li> with numbers
4084 <ul><li> and bullets
4086 <ol><li> and numbers
4088 </li><li>bullets again
4089 <ul><li>bullet level 2
4090 <ul><li>bullet level 3
4091 <ol><li>Number on level 4
4094 </li><li>bullet level 2
4095 <ol><li>Number on level 3
4096 </li><li>Number on level 3
4099 <ol><li>number level 2
4102 <ul><li><ul><li> Level 3
4106 <ol><li><ul><li><ul><li> Level 3, but ordered
4140 Nested lists 3 (first element empty)
4153 Nested lists 4 (first element empty)
4166 Nested lists 5 (both elements empty)
4179 Nested lists 6 (both elements empty)
4192 Nested lists 7 (skip initial nesting levels)
4196 <ul><li><ul><li><ul><li> foo
4204 Nested lists 8 (multiple nesting transitions)
4212 <ul><li><ul><li> bar
4222 1. Lists with start-of-line-transparent tokens before bullets: Comments
4236 2. Lists with start-of-line-transparent tokens before bullets: Template close
4248 Unbalanced closing block tags break a list
4249 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4259 </li></ul></div><div>
4265 Unbalanced closing non-block tags don't break a list
4266 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4276 <ul><li>a<span></span>
4282 Unclosed formatting tags that straddle lists are closed and reopened
4283 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4291 </li><li> <s> b </s>
4296 List embedded in a non-block tag
4297 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4305 <p><small></small></p>
4311 <p><small></small></p>
4315 List items are not parsed correctly following a <pre> block (bug 785)
4321 <ul><li> <pre>foo</pre>
4322 </li><li> <pre>bar</pre>
4329 List items from template
4340 * notSOL{{inner list}}
4359 List interrupted by empty line or heading
4369 <ul><li><ul><li> bar
4372 <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>
4373 <ul><li> Another list item
4379 Multiple list tags generated by templates
4398 Magic Word: {{CURRENTDAY}}
4407 Magic Word: {{CURRENTDAY2}}
4416 Magic Word: {{CURRENTDAYNAME}}
4425 Magic Word: {{CURRENTDOW}}
4434 Magic Word: {{CURRENTMONTH}}
4443 Magic Word: {{CURRENTMONTHABBREV}}
4445 {{CURRENTMONTHABBREV}}
4452 Magic Word: {{CURRENTMONTHNAME}}
4454 {{CURRENTMONTHNAME}}
4461 Magic Word: {{CURRENTMONTHNAMEGEN}}
4463 {{CURRENTMONTHNAMEGEN}}
4470 Magic Word: {{CURRENTTIME}}
4479 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4488 Magic Word: {{CURRENTYEAR}}
4497 Magic Word: {{FULLPAGENAME}}
4499 title=[[User:Ævar Arnfjörð Bjarmason]]
4503 <p>User:Ævar Arnfjörð Bjarmason
4508 Magic Word: {{FULLPAGENAMEE}}
4510 title=[[User:Ævar Arnfjörð Bjarmason]]
4514 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4519 Magic Word: {{NAMESPACE}}
4521 title=[[User:Ævar Arnfjörð Bjarmason]]
4530 Magic Word: {{NAMESPACEE}}
4532 title=[[User:Ævar Arnfjörð Bjarmason]]
4541 Magic Word: {{NAMESPACENUMBER}}
4543 title=[[User:Ævar Arnfjörð Bjarmason]]
4552 Magic Word: {{NUMBEROFFILES}}
4561 Magic Word: {{PAGENAME}}
4563 title=[[User:Ævar Arnfjörð Bjarmason]]
4567 <p>Ævar Arnfjörð Bjarmason
4572 Magic Word: {{PAGENAME}} with metacharacters
4574 title=[['foo & bar = baz']]
4578 <p><i>'foo & bar = baz'</i>
4583 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4585 title=[[*RFC 1234 http://example.com/]]
4589 <p>*RFC 1234 http://example.com/
4594 Magic Word: {{PAGENAMEE}}
4596 title=[[User:Ævar Arnfjörð Bjarmason]]
4600 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4605 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4607 title=[[*RFC 1234 http://example.com/]]
4611 <p>*RFC_1234_http://example.com/
4616 Magic Word: {{REVISIONID}}
4625 Magic Word: {{SCRIPTPATH}}
4634 Magic Word: {{SERVER}}
4638 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
4643 Magic Word: {{SERVERNAME}}
4652 Magic Word: {{SITENAME}}
4661 Namespace 1 {{ns:1}}
4670 Namespace 1 {{ns:01}}
4679 Namespace 0 {{ns:0}} (bug 4783)
4687 Namespace 0 {{ns:00}} (bug 4783)
4695 Namespace -1 {{ns:-1}}
4704 Namespace User {{ns:User}}
4713 Namespace User talk {{ns:User_talk}}
4722 Namespace User talk {{ns:uSeR tAlK}}
4731 Namespace File {{ns:File}}
4740 Namespace File {{ns:Image}}
4749 Namespace (lang=de) Benutzer {{ns:User}}
4760 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4766 <p>Benutzer Diskussion
4774 {{urlencode:hi world?!}}
4775 {{urlencode:hi world?!|WIKI}}
4776 {{urlencode:hi world?!|PATH}}
4777 {{urlencode:hi world?!|QUERY}}
4790 Magic links: internal link to RFC (bug 479)
4794 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4799 Magic links: RFC (bug 479)
4803 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4808 Magic links: ISBN (bug 1937)
4812 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4817 Magic links: PMID incorrectly converts space to underscore
4821 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4830 Nonexistent template
4832 {{thistemplatedoesnotexist}}
4834 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4839 Template with invalid target containing tags
4841 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4843 <p>{{a<b>b</b>|foo|a=b|a = b}}
4848 Template with invalid target containing unclosed tag
4850 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4852 <p>{{a<b>|foo|a=b|a = b}}</b>
4859 This is a test template
4867 <p>This is a test template
4872 Template with explicit namespace
4876 <p>This is a test template
4884 This is a test template with parameter {{{param}}}
4890 {{paramtest|param=foo}}
4892 <p>This is a test template with parameter foo
4897 Template:paramtestnum
4903 Template unnamed parameter
4905 {{paramtestnum|Main Page|the main page}}
4907 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4912 Template:templatesimple
4918 Template:templateredirect
4920 #redirect [[Template:templatesimple]]
4924 Template:templateasargtestnum
4930 Template:templateasargtest
4932 {{template{{{templ}}}}}
4936 Template:templateasargtest2
4942 Template with template name as unnamed argument
4944 {{templateasargtestnum|templatesimple}}
4951 Template with template name as argument
4953 {{templateasargtest|templ=simple}}
4960 Template with template name as argument (2)
4962 {{templateasargtest2|templ=templatesimple}}
4969 Template:templateasargtestdefault
4971 {{{{{templ|templatesimple}}}}}
4981 Template with default value
4983 {{templateasargtestdefault}}
4990 Template with default value (value set)
4992 {{templateasargtestdefault|templ=templa}}
5001 {{templateredirect}}
5008 Template with argument in separate line
5010 {{ templateasargtest |
5018 Template with complex template as argument
5021 param ={{ templateasargtest |
5024 <p>This is a test template with parameter (test)
5029 Template with thumb image (with link in description)
5032 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5034 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>
5039 Template:complextemplate
5041 {{{1}}} {{paramtest|
5042 param ={{{param}}}}}
5046 Template with complex arguments
5049 param ={{ templateasargtest |
5050 templ = simple }}|[[Template:complextemplate|link]]}}
5052 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5057 BUG 553: link with two variables in a piped link
5060 |[[{{{1}}}|{{{2}}}]]
5065 <td>[[{{{1}}}|{{{2}}}]]
5071 Magic variable as template parameter
5073 {{paramtest|param={{SITENAME}}}}
5075 <p>This is a test template with parameter MediaWiki
5082 [[{{{param}}}|link]]
5086 Template parameter as link source
5088 {{linktest|param=Main Page}}
5090 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5095 Template-generated attribute string (k='v')
5097 <span {{attr_str|id|v1}}>bar</span>
5099 <p><span id="v1">bar</span>
5106 including another template, {{paramtest|param={{{arg}}}}}
5110 Template passing argument to another template
5112 {{paramtest2|arg='hmm'}}
5114 <p>including another template, This is a test template with parameter 'hmm'
5125 Template as link source
5129 [[{{linktest2}}|Main Page]]
5131 [[{{linktest2}}]]Page
5133 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5134 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5135 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5153 Template infinite loop
5157 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5162 Template from main namespace
5181 BUG 529: Template with table, not included at beginning of line
5200 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5220 BUG 41: Template parameters shown as broken links
5229 Template with targets containing wikilinks
5233 {{[[{{echo|foo}}]]}}
5235 {{{{echo|[[foo}}]]}}
5237 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5238 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5246 ''None'' of '''this''' should be
5248 but rather passed unmodified
5252 # hmm, fix this or just deprecate msgnw and document its behavior?
5258 {{msgnw:MSGNW test}}
5260 <p>''None'' of '''this''' should be
5262 but rather passed unmodified
5270 {{int:youhavenewmessages|lots of money|not!}}
5272 <p>You have lots of money (not!).
5279 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5283 <includeonly> and <noinclude> being included
5294 <onlyinclude>Foo</onlyinclude>bar
5298 <onlyinclude> being included
5310 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5314 <onlyinclude> and <includeonly> being included
5323 <includeonly> and <noinclude> on a page
5325 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5332 Un-closed <noinclude>
5339 <onlyinclude> on a page
5341 <onlyinclude>Foo</onlyinclude>bar
5348 Un-closed <onlyinclude>
5355 Self-closed noinclude, includeonly, onlyinclude tags
5366 Unbalanced includeonly and noinclude tags
5370 |b</noinclude></noinclude>
5371 |c</noinclude></includeonly>
5372 |d</includeonly></includeonly>
5381 <td>c</includeonly>
5383 <td>d</includeonly></includeonly>
5389 Template:Includeonly section
5392 ==Includeonly section==
5398 Bug 6563: Edit link generation for section shown by <includeonly>
5400 {{includeonly section}}
5402 <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>
5403 <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>
5407 # Uses same input as the contents of [[Template:Includeonly section]]
5409 Bug 6563: Section extraction for section shown by <includeonly>
5414 ==Includeonly section==
5422 Bug 6563: Edit link generation for section suppressed by <includeonly>
5425 ==Includeonly section==
5429 <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>
5434 Bug 6563: Section extraction for section suppressed by <includeonly>
5439 ==Includeonly section==
5447 Un-closed <includeonly>
5454 ### <includeonly> and <noinclude> in attributes
5457 0. includeonly around the entire attribute
5459 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5461 <p><span id="v2">bar</span>
5466 1. includeonly in html attr key
5468 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5470 <p><span id="foo">bar</span>
5475 2. includeonly in html attr value
5477 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5478 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5480 <p><span id="v1">bar</span>
5481 <span id="v1">bar</span>
5486 3. includeonly in part of an attr value
5488 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5490 <p><span style="color:red;">bar</span>
5495 ### Testing parsing of templates where a template arg
5496 ### has the same name as the template itself.
5506 Templates: Template Name/Arg clash: 1. Use of positional param
5515 Templates: Template Name/Arg clash: 2. Use of named param
5524 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5533 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5537 Templates: 1. Simple use
5546 Templates: 2. Inside a block tag
5548 <div>{{echo|Foo}}</div>
5555 Templates: P-wrapping: 1a. Templates on consecutive lines
5566 Templates: P-wrapping: 1b. Templates on consecutive lines
5580 Templates: P-wrapping: 1c. Templates on consecutive lines
5583 {{echo|bar}} <div>baz</div>
5592 Templates: Inline Text: 1. Multiple tmeplate uses
5594 {{echo|Foo}}bar{{echo|baz}}
5601 Templates: Inline Text: 2. Back-to-back template uses
5603 {{echo|Foo}}{{echo|bar}}
5610 Templates: Block Tags: 1. Multiple template uses
5612 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5614 <div>Foo</div><div>bar</div><div>baz</div>
5619 Templates: Block Tags: 2. Back-to-back template uses
5621 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5623 <div>Foo</div><div>bar</div>
5628 Templates: Links: 1. Simple example
5630 {{echo|[[Foo|bar]]}}
5632 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5637 Templates: Links: 2. Generation of link href
5639 [[{{echo|Foo}}|bar]]
5641 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5646 Templates: Links: 3. Generation of part of a link href
5648 [[Fo{{echo|o}}|bar]]
5652 [[Foo{{echo|bar}}baz]]
5654 [[Foo{{echo|bar}}|bar]]
5656 [[:Foo{{echo|bar}}]]
5658 [[:Foo{{echo|bar}}|bar]]
5660 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5661 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5662 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5663 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5664 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5665 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5670 Templates: Links: 4. Multiple templates generating link href
5672 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5674 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5679 Templates: Links: 5. Generation of link text
5681 [[Foo|{{echo|bar}}]]
5683 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5688 Templates: Links: 5. Nested templates (only outermost template should be marked)
5690 {{echo|[[{{echo|Foo}}|bar]]}}
5692 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5697 Templates: HTML Tag: 1. Generation of HTML attr. key
5699 <div {{echo|style}}="color:red;">foo</div>
5701 <div style="color:red;">foo</div>
5706 Templates: HTML Tag: 2. Generation of HTML attr. value
5708 <div style={{echo|'color:red;'}}>foo</div>
5710 <div style="color:red;">foo</div>
5715 Templates: HTML Tag: 3. Generation of HTML attr key and value
5717 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5719 <div style="color:red;">foo</div>
5724 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5726 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5728 <div title="This is a long title with just one piece templated">foo</div>
5733 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5735 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5737 <div title="This is a long title with just one piece templated">foo</div>
5742 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5744 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5746 <div title="This is a long title with just one piece templated">foo</div>
5751 Templates: HTML Tables: 1. Generating start of a HTML table
5753 {{echo|<table><tr><td>foo</td>}}</tr></table>
5755 <table><tr><td>foo</td></tr></table>
5760 Templates: HTML Tables: 2a. Generating middle of a HTML table
5762 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5764 <table><tr><td>foo</td></tr></table>
5769 Templates: HTML Tables: 2b. Generating middle of a HTML table
5771 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5773 <table><tr><td>foo</td></tr></table>
5778 Templates: HTML Tables: 3. Generating end of a HTML table
5780 <table><tr>{{echo|<td>foo</td></tr></table>}}
5782 <table><tr><td>foo</td></tr></table>
5787 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5789 {{echo|<table>}}<tr><td>foo</td></tr></table>
5791 <table><tr><td>foo</td></tr></table>
5796 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5798 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5800 <table><tr><td>foo</td></tr></table>
5805 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5807 <table><tr>{{echo|<td>}}foo</td></tr></table>
5809 <table><tr><td>foo</td></tr></table>
5814 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5816 <table><tr><td>foo{{echo|</td>}}</tr></table>
5818 <table><tr><td>foo</td></tr></table>
5823 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5825 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5827 <table><tr><td>foo</td></tr></table>
5832 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5834 <table><tr><td>foo</td></tr>{{echo|</table>}}
5836 <table><tr><td>foo</td></tr></table>
5841 Templates: Wiki Tables: 1. Fostering of entire template content
5849 <tr><td></td></tr></table>
5854 Templates: Wiki Tables: 2. Fostering of partial template content
5864 <tr><td></td></tr></table>
5869 Templates: Wiki Tables: 3. td-content via multiple templates
5872 {{echo|{{pipe}}a}}{{echo|b}}
5883 Templates: Wiki Tables: 4. Templated tags, no content
5889 <tr><td></td></tr></table>
5894 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5908 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5922 Templates: Lists: Multi-line list-items via templates
5924 *{{echo|a {{nonexistent|
5926 *{{echo|b {{nonexistent|
5929 <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>
5930 </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>
5936 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5938 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5940 <p><i>ab</i>c<i>d</i>e
5945 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5946 (PHP parser generates misnested html)
5950 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5952 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5956 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5957 (PHP parser generates misnested html)
5961 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5964 <div><i>b</i>c<i>d</i></div>
5969 Templates: Ugly nesting: 4. Divs opened/closed across templates
5971 a<div>b{{echo|c</div>d}}e
5978 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5984 |{{echo|foo</table>}}
5988 <table about="#mwt1" typeof="mw:Object/Template ">
5989 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5990 bar</span><span about="#mwt1">
5995 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6005 <td>1. {{echo|foo </table>}}</td>
6007 <td>2. {{echo|baz </table>}}</td>
6020 <table about="#mwt1" typeof="mw:Object/Template">
6025 <td >1. foo </td></tr></tbody></table></td>
6027 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6028 </span><span about="#mwt1">
6030 abc</span><span about="#mwt1">
6031 </span><span about="#mwt1">
6032 </span><span about="#mwt1">
6033 </span><span about="#mwt1">
6034 </span><span about="#mwt1">
6036 xyz</span><span about="#mwt1">
6037 </span><span about="#mwt1">
6042 Templates: Ugly templates: 3. newline-only template parameter
6051 # This looks like a bug: a single newline triggers p/br for some reason.
6053 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6064 Parser Functions: 1. Simple example
6073 Parser Functions: 2. Nested use (only outermost should be marked up)
6082 ### Pre-save transform tests
6085 pre-save transform: subst:
6091 This is a test template
6095 pre-save transform: normal template
6105 pre-save transform: nonexistent template
6109 {{thistemplatedoesnotexist}}
6111 {{thistemplatedoesnotexist}}
6116 pre-save transform: subst magic variables
6125 # This is bug 89, which I fixed. -- wtm
6127 pre-save transform: subst: templates with parameters
6131 {{subst:paramtest|param="something else"}}
6133 This is a test template with parameter "something else"
6139 <nowiki>'''not wiki'''</nowiki>
6143 pre-save transform: nowiki in subst (bug 1188)
6147 {{subst:nowikitest}}
6149 <nowiki>'''not wiki'''</nowiki>
6154 Template:commenttest
6156 This template has <!-- a comment --> in it.
6160 pre-save transform: comment in subst (bug 1936)
6164 {{subst:commenttest}}
6166 This template has <!-- a comment --> in it.
6170 pre-save transform: unclosed tag
6174 <nowiki>'''not wiki'''
6176 <nowiki>'''not wiki'''
6180 pre-save transform: mixed tag case
6184 <NOwiki>'''not wiki'''</noWIKI>
6186 <NOwiki>'''not wiki'''</noWIKI>
6190 pre-save transform: unclosed comment in <nowiki>
6194 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6196 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6202 <span onmouseover="alert('crap')">Oh no</span>
6206 (confirming safety of fix for subst bug 1936)
6208 {{Template:dangerous}}
6210 <p><span>Oh no</span>
6215 pre-save transform: comment containing gallery (bug 5024)
6219 <!-- <gallery>data</gallery> -->
6221 <!-- <gallery>data</gallery> -->
6225 pre-save transform: comment containing extension
6229 <!-- <tag>data</tag> -->
6231 <!-- <tag>data</tag> -->
6235 pre-save transform: comment containing nowiki
6239 <!-- <nowiki>data</nowiki> -->
6241 <!-- <nowiki>data</nowiki> -->
6245 pre-save transform: <noinclude> in subst (bug 3298)
6255 pre-save transform: <onlyinclude> in subst (bug 3298)
6267 {{<includeonly>subst:</includeonly>Includes}}
6271 Template:SafeSubstTest
6273 {{<includeonly>safesubst:</includeonly>Includes}}
6277 bug 22297: safesubst: works during PST
6281 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6287 bug 22297: safesubst: works during normal parse
6296 subst: does not work during normal parse
6300 <p>{{subst:Includes}}
6305 pre-save transform: context links ("pipe trick")
6309 [[Article (context)|]]
6312 [[Bar:Article (context)|]]
6313 [[:Bar:Article (context)|]]
6315 [[|Article (context)]]
6319 [[Article (context)|Article]]
6320 [[Bar:Article|Article]]
6321 [[:Bar:Article|Article]]
6322 [[Bar:Article (context)|Article]]
6323 [[:Bar:Article (context)|Article]]
6325 [[Article (context)]]
6326 [[Bar:X (Y) Z|X (Y) Z]]
6327 [[:Bar:X (Y) Z|X (Y) Z]]
6331 pre-save transform: context links ("pipe trick") with interwiki prefix
6335 [[interwiki:Article|]]
6336 [[:interwiki:Article|]]
6337 [[interwiki:Bar:Article|]]
6338 [[:interwiki:Bar:Article|]]
6340 [[interwiki:Article|Article]]
6341 [[:interwiki:Article|Article]]
6342 [[interwiki:Bar:Article|Bar:Article]]
6343 [[:interwiki:Bar:Article|Bar:Article]]
6347 pre-save transform: context links ("pipe trick") with parens in title
6349 pst title=[[Somearticle (context)]]
6353 [[Article (context)|Article]]
6357 pre-save transform: context links ("pipe trick") with comma in title
6359 pst title=[[Someplace, Somewhere]]
6362 [[Otherplace, Elsewhere|]]
6363 [[Otherplace, Elsewhere, Anywhere|]]
6365 [[Otherplace, Somewhere|Otherplace]]
6366 [[Otherplace, Elsewhere|Otherplace]]
6367 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6371 pre-save transform: context links ("pipe trick") with parens and comma
6373 pst title=[[Someplace (IGNORED), Somewhere]]
6376 [[Otherplace (place), Elsewhere|]]
6378 [[Otherplace, Somewhere|Otherplace]]
6379 [[Otherplace (place), Elsewhere|Otherplace]]
6383 pre-save transform: context links ("pipe trick") with comma and parens
6385 pst title=[[Who, me? (context)]]
6388 [[Me, Myself, and I (1937 song)|]]
6390 [[Yes, you. (context)|Yes, you.]]
6391 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6395 pre-save transform: context links ("pipe trick") with namespace
6397 pst title=[[Ns:Somearticle]]
6401 [[Ns:Article|Article]]
6405 pre-save transform: context links ("pipe trick") with namespace and parens
6407 pst title=[[Ns:Somearticle (context)]]
6411 [[Ns:Article (context)|Article]]
6415 pre-save transform: context links ("pipe trick") with namespace and comma
6417 pst title=[[Ns:Somearticle, Context, Whatever]]
6421 [[Ns:Article, Context, Whatever|Article]]
6425 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6427 pst title=[[Ns:Somearticle, Context (context)]]
6431 [[Ns:Article (context)|Article]]
6435 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6437 pst title=[[Ns:Somearticle (IGNORED), Context]]
6441 [[Ns:Article, Context|Article]]
6445 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6449 [[Article(context)|]]
6450 [[Bar:Article(context)|]]
6451 [[:Bar:Article(context)|]]
6452 [[|Article(context)]]
6456 [[Article(context)|Article]]
6457 [[Bar:Article(context)|Article]]
6458 [[:Bar:Article(context)|Article]]
6459 [[Article(context)]]
6461 [[:Bar:X(Y)Z|X(Y)Z]]
6465 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6469 [[Article (context)|]]
6470 [[Bar:Article (context)|]]
6471 [[:Bar:Article (context)|]]
6472 [[|Article (context)]]
6476 [[Article (context)|Article]]
6477 [[Bar:Article (context)|Article]]
6478 [[:Bar:Article (context)|Article]]
6479 [[Article (context)]]
6480 [[Bar:X (Y) Z|X (Y) Z]]
6481 [[:Bar:X (Y) Z|X (Y) Z]]
6485 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6489 [[Article(context)|]]
6490 [[Bar:Article(context)|]]
6491 [[:Bar:Article(context)|]]
6492 [[|Article(context)]]
6496 [[Article(context)|Article]]
6497 [[Bar:Article(context)|Article]]
6498 [[:Bar:Article(context)|Article]]
6499 [[Article(context)]]
6501 [[:Bar:X(Y)Z|X(Y)Z]]
6505 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6509 [[Article (context), context|]]
6510 [[Article (context),context|]]
6511 [[Bar:Article (context), context|]]
6512 [[Bar:Article (context),context|]]
6513 [[:Bar:Article (context), context|]]
6514 [[:Bar:Article (context),context|]]
6516 [[Article (context), context|Article]]
6517 [[Article (context),context|Article]]
6518 [[Bar:Article (context), context|Article]]
6519 [[Bar:Article (context),context|Article]]
6520 [[:Bar:Article (context), context|Article]]
6521 [[:Bar:Article (context),context|Article]]
6525 pre-save transform: trim trailing empty lines
6529 Empty lines are trimmed
6535 Empty lines are trimmed
6539 pre-save transform: Signature expansion
6544 * <noinclude>~~~</noinclude>
6545 * <includeonly>~~~</includeonly>
6546 * <onlyinclude>~~~</onlyinclude>
6548 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6549 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6550 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6551 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6556 pre-save transform: Signature expansion in nowiki tags (bug 93)
6562 <nowiki>~~~~</nowiki>
6564 <includeonly><nowiki>~~~~</nowiki></includeonly>
6566 <noinclude><nowiki>~~~~</nowiki></noinclude>
6568 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6570 {{subst:Foo}} shall be converted to FOO
6572 As well as inside noinclude/onlyinclude
6573 <noinclude>{{subst:Foo}}</noinclude>
6574 <onlyinclude>{{subst:Foo}}</onlyinclude>
6576 But not inside includeonly
6577 <includeonly>{{subst:Foo}}</includeonly>
6581 <nowiki>~~~~</nowiki>
6583 <includeonly><nowiki>~~~~</nowiki></includeonly>
6585 <noinclude><nowiki>~~~~</nowiki></noinclude>
6587 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6589 FOO shall be converted to FOO
6591 As well as inside noinclude/onlyinclude
6592 <noinclude>FOO</noinclude>
6593 <onlyinclude>FOO</onlyinclude>
6595 But not inside includeonly
6596 <includeonly>{{subst:Foo}}</includeonly>
6600 ### Message transform tests
6603 message transform: magic variables
6613 message transform: should not transform wiki markup
6623 message transform: <noinclude> in transcluded template (bug 4926)
6633 message transform: <onlyinclude> in transcluded template (bug 4926)
6643 {{#special:}} page name, known
6647 {{#special:Recentchanges}}
6649 Special:RecentChanges
6653 {{#special:}} page name with subpage, known
6657 {{#special:Recentchanges/param}}
6659 Special:RecentChanges/param
6663 {{#special:}} page name, unknown
6667 {{#special:foobarnonexistent}}
6669 No such special page
6673 {{#speciale:}} page name, known
6677 {{#speciale:Recentchanges}}
6679 Special:RecentChanges
6683 {{#speciale:}} page name with subpage, known
6687 {{#speciale:Recentchanges/param}}
6689 Special:RecentChanges/param
6693 {{#speciale:}} page name, unknown
6697 {{#speciale:foobarnonexistent}}
6699 No_such_special_page
6708 [[Image:foobar.jpg]]
6710 <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>
6717 [[Image:foobar.jpg|right]]
6719 <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>
6724 Simple image (using File: namespace, now canonical)
6728 <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>
6735 [[Image:foobar.jpg|right|Caption text]]
6737 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6742 Image with empty attribute
6744 [[Image:foobar.jpg|right||Caption text]]
6746 <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>
6751 Image with link tails
6753 123[[Image:foobar.jpg]]456
6754 123[[Image:foobar.jpg|right]]456
6755 123[[Image:foobar.jpg|thumb]]456
6757 <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
6759 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
6760 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
6765 Image with multiple captions -- only last one is accepted
6767 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6769 <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>
6774 Image with width attribute at different positions
6776 [[Image:foobar.jpg|200px|right|Caption]]
6777 [[Image:foobar.jpg|right|200px|Caption]]
6778 [[Image:foobar.jpg|right|Caption|200px]]
6780 <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>
6781 <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>
6782 <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>
6787 Image with link parameter, wiki target
6789 [[Image:foobar.jpg|link=Target page]]
6791 <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>
6796 Image with link parameter, URL target
6798 [[Image:foobar.jpg|link=http://example.com/]]
6800 <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>
6805 Image with link parameter, wgExternalLinkTarget
6807 [[Image:foobar.jpg|link=http://example.com/]]
6809 wgExternalLinkTarget='foobar'
6811 <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>
6816 Image with link parameter, wgNoFollowLinks set to false
6818 [[Image:foobar.jpg|link=http://example.com/]]
6820 wgNoFollowLinks=false
6822 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6827 Image with link parameter, wgNoFollowDomainExceptions
6829 [[Image:foobar.jpg|link=http://example.com/]]
6831 wgNoFollowDomainExceptions='example.com'
6833 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6838 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6840 [[Image:foobar.jpg|link=http://example.com/|Title]]
6842 wgExternalLinkTarget='foobar'
6844 <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>
6849 Image with empty link parameter
6851 [[Image:foobar.jpg|link=]]
6853 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6858 Image with link parameter (wiki target) and unnamed parameter
6860 [[Image:foobar.jpg|link=Target page|Title]]
6862 <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>
6867 Image with link parameter (URL target) and unnamed parameter
6869 [[Image:foobar.jpg|link=http://example.com/|Title]]
6871 <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>
6876 Thumbnail image with link parameter
6878 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6880 <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>
6885 Image with frame and link
6887 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6889 <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>
6894 Image with frame and link and explicit alt
6896 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6898 <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>
6903 Image with wiki markup in implicit alt
6905 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6907 <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>
6912 Image with wiki markup in explicit alt
6914 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6916 <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>
6921 Link to image page- image page normally doesn't exists, hence edit link
6922 Add test with existing image page
6923 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6927 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6932 bug 18784 Link to non-existent image page with caption should use caption as link text
6934 [[:Image:test|caption]]
6936 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6941 Frameless image caption with a free URL
6943 [[Image:foobar.jpg|http://example.com]]
6945 <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>
6950 Thumbnail image caption with a free URL
6952 [[Image:foobar.jpg|thumb|http://example.com]]
6954 <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>
6959 Thumbnail image caption with a free URL and explicit alt
6961 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6963 <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>
6968 BUG 1887: A ISBN with a thumbnail
6970 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6972 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6977 BUG 1887: A RFC with a thumbnail
6979 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6981 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6986 BUG 1887: A mailto link with a thumbnail
6988 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6990 <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>
6994 # Pending resolution to bug 368
6996 BUG 648: Frameless image caption with a link
6998 [[Image:foobar.jpg|text with a [[link]] in it]]
7000 <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>
7005 BUG 648: Frameless image caption with a link (suffix)
7007 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7009 <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>
7014 BUG 648: Frameless image caption with an interwiki link
7016 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7018 <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>
7023 BUG 648: Frameless image caption with a piped interwiki link
7025 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7027 <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>
7032 Escape HTML special chars in image alt text
7034 [[Image:foobar.jpg|& < > "]]
7036 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7041 BUG 499: Alt text should have Ӓ, not &1234;
7043 [[Image:foobar.jpg|♀]]
7045 <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>
7050 Broken image caption with link
7052 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7054 <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.
7059 Image caption containing another image
7061 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7063 <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>
7068 Image caption containing a newline
7070 [[Image:Foobar.jpg|This
7073 <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>
7078 Parsoid: Image caption containing leading space
7079 (The leading space should not trigger nowiki escaping in wt2wt mode)
7081 [[Image:Foobar.jpg|thumb| bar]]
7083 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
7088 Bug 3090: External links other than http: in image captions
7090 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7092 <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>
7099 [[Image:foobar.jpg|a|class=b]]
7101 <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>
7106 Localized image handling (1).
7110 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7112 <div class="floatleft"><a href="/wiki/Foo" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7117 Localized image handling (2).
7121 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7123 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><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/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
7128 "border", "frameless" and "class" attributes on an image.
7130 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7132 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" 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>
7139 #REDIRECT [[File:Barfoo.jpg]]
7145 [[Image:Barfoo.jpg]]
7147 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7152 Missing image with uploads disabled
7156 [[Image:Foobaz.jpg]]
7158 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7167 Subpage test/subpage
7175 subpage title=[[Subpage test]]
7179 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7184 Subpage noslash link
7186 subpage title=[[Subpage test]]
7190 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7199 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7204 BUG 561: {{/Subpage}}
7206 subpage title=[[Page]]
7210 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7218 Category:MediaWiki User's Guide
7226 [[:Category:MediaWiki User's Guide]]
7228 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7237 [[Category:MediaWiki User's Guide]]
7239 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7243 PAGESINCATEGORY invalid title fatal (r33546 fix)
7245 {{PAGESINCATEGORY:<bogus>}}
7252 Category with different sort key
7256 [[Category:MediaWiki User's Guide|Foo]]
7258 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7262 Category with identical sort key
7266 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7268 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7272 Category with empty sort key
7277 [[Category:MediaWiki User's Guide|]]
7279 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7283 Category with empty sort key and parentheses
7288 [[Category:Foo (bar)|]]
7290 [[Category:Foo (bar)|Foo]]
7294 Category with link tail
7299 123[[Category:Foo]]456
7301 123[[Category:Foo]]456
7305 Category with template
7310 [[Category:{{echo|Foo}}]]
7312 [[Category:{{echo|Foo}}]]
7316 Category with template in sort key
7321 [[Category:Foo|{{echo|Bar}}]]
7323 [[Category:Foo|{{echo|Bar}}]]
7327 Category with template in sort key and title
7332 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7334 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7338 Category / paragraph interactions
7340 Foo [[Category:Baz]] Bar
7342 Foo [[Category:Baz]]
7350 [[Category:Baz]] Bar
7363 {{echo|[[Category:Baz]]}}
7378 ### Inter-language links
7381 Inter-language links
7387 [[zh:食品]]
7389 es:Alimento fr:Nourriture zh:食品
7393 Duplicate interlanguage links (bug 24502)
7409 Basic section headings
7416 ===Smaller headline===
7419 <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>
7422 <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>
7425 <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>
7431 Section headings with TOC
7434 === Subheadline 1 ===
7435 ===== Skipping a level =====
7436 ====== Skipping a level ======
7440 ===Another headline===
7442 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7444 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7446 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7448 <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>
7450 <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>
7457 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7459 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7464 <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>
7465 <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>
7466 <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>
7467 <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>
7468 <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>
7471 <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>
7475 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7477 Handling of sections up to level 6 and beyond
7480 == Level 2 Heading==
7481 === Level 3 Heading===
7482 ==== Level 4 Heading====
7483 ===== Level 5 Heading=====
7484 ====== Level 6 Heading======
7485 ======= Level 7 Heading=======
7486 ======== Level 8 Heading========
7487 ========= Level 9 Heading=========
7488 ========== Level 10 Heading==========
7490 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7492 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7494 <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>
7496 <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>
7498 <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>
7500 <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>
7502 <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>
7503 <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>
7504 <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>
7505 <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>
7506 <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>
7519 <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>
7520 <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>
7521 <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>
7522 <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>
7523 <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>
7524 <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>
7525 <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>
7526 <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>
7527 <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>
7528 <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>
7533 TOC regression (bug 9764)
7537 ==== title 1.1.1 ====
7542 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7544 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7546 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
7548 <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>
7551 <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>
7554 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7556 <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>
7561 <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>
7562 <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>
7563 <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>
7564 <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>
7565 <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>
7566 <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>
7571 TOC with wgMaxTocLevel=3 (bug 6204)
7577 ==== title 1.1.1 ====
7582 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7584 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7586 <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>
7587 <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>
7590 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7592 <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>
7597 <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>
7598 <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>
7599 <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>
7600 <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>
7601 <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>
7602 <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>
7607 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7613 ====Section 1.1.1====
7614 ====Section 1.1.1.1====
7617 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7619 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7621 <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>
7624 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7627 <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>
7628 <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>
7629 <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>
7630 <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>
7631 <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>
7637 Resolving duplicate section names
7642 <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>
7643 <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>
7648 Resolving duplicate section names with differing case (bug 10721)
7653 <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>
7654 <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>
7666 Template with sections, __NOTOC__
7673 <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>
7674 <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>
7675 <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>
7676 <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>
7681 __NOEDITSECTION__ keyword
7687 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7688 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7693 Link inside a section heading
7695 ==Section with a [[Main Page|link]] in it==
7697 <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>
7702 TOC regression (bug 12077)
7709 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7711 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7713 <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>
7716 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7719 <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>
7720 <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>
7721 <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>
7726 BUG 1219 URL next to image (good)
7728 http://example.com [[Image:foobar.jpg]]
7730 <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>
7735 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7738 The line above must have a trailing space!
7741 But just in case it doesn't...
7743 <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>
7744 <p>The line above must have a trailing space!
7746 <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>
7747 <p>But just in case it doesn't...
7752 Header with special characters (bug 25462)
7754 The tooltips shall not show entities to the user (ie. be double escaped)
7771 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7773 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7775 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7776 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7777 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7778 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7779 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7782 <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>
7785 <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>
7788 <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>
7791 <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>
7794 <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>
7800 Headers with excess '=' characters
7801 (Are similar tests necessary beyond the 1st level?)
7805 =''italic'' heading==
7806 ==''italic'' heading=
7808 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7810 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7811 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7812 <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>
7813 <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>
7816 <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>
7817 <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>
7818 <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>
7819 <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>
7824 BUG 1219 URL next to image (broken)
7826 http://example.com[[Image:foobar.jpg]]
7828 <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>
7833 Bug 1186 news: in the middle of text
7835 http://en.wikinews.org/wiki/Wikinews:Workplace
7837 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7843 Namespaced link must have a title
7852 Namespaced link must have a title (bad fragment version)
7854 [[Project:#fragment]]
7856 <p>[[Project:#fragment]]
7862 ### HTML tags and HTML attributes
7866 div with no attributes
7868 <div>HTML rocks</div>
7870 <div>HTML rocks</div>
7875 div with double-quoted attribute
7877 <div id="rock">HTML rocks</div>
7879 <div id="rock">HTML rocks</div>
7884 div with single-quoted attribute
7886 <div id='rock'>HTML rocks</div>
7888 <div id="rock">HTML rocks</div>
7893 div with unquoted attribute
7895 <div id=rock>HTML rocks</div>
7897 <div id="rock">HTML rocks</div>
7902 div with illegal double attributes
7904 <div id="a" id="b">HTML rocks</div>
7906 <div id="b">HTML rocks</div>
7910 # FIXME: produce empty string instead of "class" in the PHP parser, following
7913 div with empty attribute value, space before equals
7917 <div class =>HTML rocks</div>
7919 <div class="">HTML rocks</div>
7923 # The PHP parser escapes the opening brace to { for some reason, so
7924 # disabled this test for it.
7926 div with braces in attribute value
7930 <div title="{}">Foo</div>
7932 <div title="{}">Foo</div>
7935 # This it very inconsistent in the PHP parser: it returns
7936 # class="class" if there is a space between the name and the equal sign (see
7937 # 'div with empty attribute value, space before equals'), but strips the
7938 # attribute completely if the space is missing. We hope that not much content
7939 # depends on this, so are implementing the behavior below in Parsoid for
7940 # consistencies' sake. Disabled for the PHP parser.
7941 # FIXME: fix this behavior in the PHP parser?
7943 div with empty attribute value, no space before equals
7947 <div class=>HTML rocks</div>
7949 <div class="">HTML rocks</div>
7954 HTML multiple attributes correction
7956 <p class="error" class="awesome">Awesome!</p>
7958 <p class="awesome">Awesome!</p>
7963 Table multiple attributes correction
7966 !+ class="error" class="awesome"| status
7971 <th class="awesome"> status
7979 <DIV ID="x">HTML ROCKS</DIV>
7981 <div id="x">HTML ROCKS</div>
7986 Non-ASCII pseudo-tags are rendered as text
7995 Pseudo-tag with URL 'name' renders as url link
7997 <http://example.com/>
7999 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8004 text with amp in the middle of nowhere
8008 <p>Remember AT&T?
8013 text with character entity: eacute
8015 I always thought é was a cute letter.
8017 <p>I always thought é was a cute letter.
8022 text with entity-escaped character entity-like string: eacute
8024 I always thought &eacute; was a cute letter.
8026 <p>I always thought &eacute; was a cute letter.
8031 text with undefined character entity: xacute
8033 I always thought &xacute; was a cute letter.
8035 <p>I always thought &xacute; was a cute letter.
8047 [[Media:Foobar.jpg]]
8049 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8054 Media link with text
8056 [[Media:Foobar.jpg|A neat file to look at]]
8058 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8062 # FIXME: this is still bad HTML tag nesting
8064 Media link with nasty text
8065 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8067 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8069 <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>
8074 Media link to nonexistent file (bug 1702)
8076 [[Media:No such.jpg]]
8078 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8083 Image link to nonexistent file (bug 1850 - good)
8085 [[Image:No such.jpg]]
8087 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8092 :Image link to nonexistent file (bug 1850 - bad)
8094 [[:Image:No such.jpg]]
8096 <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>
8103 Character reference normalization in link text (bug 1938)
8105 [[Main Page|this&that]]
8107 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8114 Test for unicode normalization
8116 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8120 (bug 19451) Links should refer to the normalized form.
8128 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8129 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8130 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8131 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8132 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8137 Empty attribute crash test (bug 2067)
8139 <font color="">foo</font>
8141 <p><font color="">foo</font>
8146 Empty attribute crash test single-quotes (bug 2067)
8148 <font color=''>foo</font>
8150 <p><font color="">foo</font>
8155 Attribute test: equals, then nothing
8157 <font color=>foo</font>
8164 Attribute test: unquoted value
8166 <font color=x>foo</font>
8168 <p><font color="x">foo</font>
8173 Attribute test: unquoted but illegal value (hash)
8175 <font color=#x>foo</font>
8177 <p><font color="#x">foo</font>
8182 Attribute test: no value
8184 <font color>foo</font>
8186 <p><font color="color">foo</font>
8191 Bug 2095: link with three closing brackets
8195 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8200 Bug 2095: link with pipe and three closing brackets
8204 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8209 Bug 2095: link with pipe and three closing brackets, version 2
8211 [[Main Page|[http://example.com/]]]
8213 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8223 Template:Dangerous attribute
8225 " onmouseover="alert(document.cookie)
8229 Template:Dangerous style attribute
8231 border-size: expression(alert(document.cookie))
8237 <div style="float: right; {{{1}}}">Magic div</div>
8241 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8243 <div title="{{test}}"></div>
8245 <div title="This is a test template"></div>
8250 Bug 2304: HTML attribute safety (dangerous template; 2309)
8252 <div title="{{dangerous attribute}}"></div>
8254 <div title=""></div>
8259 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8261 <div style="{{dangerous style attribute}}"></div>
8263 <div style="/* insecure input */"></div>
8268 Bug 2304: HTML attribute safety (safe parameter; 2309)
8270 {{div style|width: 200px}}
8272 <div style="float: right; width: 200px">Magic div</div>
8277 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8279 {{div style|width: expression(alert(document.cookie))}}
8281 <div style="/* insecure input */">Magic div</div>
8286 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8288 {{div style|"><script>alert(document.cookie)</script>}}
8290 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8295 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8297 {{div style|" ><script>alert(document.cookie)</script>}}
8299 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8304 Bug 2304: HTML attribute safety (link)
8306 <div title="[[Main Page]]"></div>
8308 <div title="[[Main Page]]"></div>
8313 Bug 2304: HTML attribute safety (italics)
8315 <div title="''foobar''"></div>
8317 <div title="''foobar''"></div>
8322 Bug 2304: HTML attribute safety (bold)
8324 <div title="'''foobar'''"></div>
8326 <div title="'''foobar'''"></div>
8332 Bug 2304: HTML attribute safety (ISBN)
8334 <div title="ISBN 1234567890"></div>
8336 <div title="ISBN 1234567890"></div>
8341 Bug 2304: HTML attribute safety (RFC)
8343 <div title="RFC 1234"></div>
8345 <div title="RFC 1234"></div>
8350 Bug 2304: HTML attribute safety (PMID)
8352 <div title="PMID 1234567890"></div>
8354 <div title="PMID 1234567890"></div>
8359 Bug 2304: HTML attribute safety (web link)
8361 <div title="http://example.com/"></div>
8363 <div title="http://example.com/"></div>
8368 Bug 2304: HTML attribute safety (named web link)
8370 <div title="[http://example.com/ link]"></div>
8372 <div title="[http://example.com/ link]"></div>
8377 Bug 3244: HTML attribute safety (extension; safe)
8379 <div style="<nowiki>background:blue</nowiki>"></div>
8381 <div style="background:blue"></div>
8386 Bug 3244: HTML attribute safety (extension; unsafe)
8388 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8390 <div style="/* insecure input */"></div>
8394 # More MSIE fun discovered by Tom Gilder
8397 MSIE CSS safety test: spurious slash
8399 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8401 <div style="/* insecure input */">evil</div>
8406 MSIE CSS safety test: hex code
8408 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8410 <div style="/* insecure input */">evil</div>
8415 MSIE CSS safety test: comment in url
8417 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8419 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8424 MSIE CSS safety test: comment in expression
8426 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8428 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8434 Table attribute legitimate extension
8437 !+ style="<nowiki>color:blue</nowiki>"| status
8442 <th style="color:blue"> status
8448 Table attribute safety
8451 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8456 <th style="/* insecure input */"> status
8462 CSS line continuation 1
8464 <div style="background-image: u\ rl(test.jpg);"></div>
8466 <div style="/* insecure input */"></div>
8471 CSS line continuation 2
8473 <div style="background-image: u\ rl(test.jpg); "></div>
8475 <div style="/* insecure input */"></div>
8486 Expansion of multi-line templates in attribute values (bug 6255)
8488 <div style="background: {{identity|#00FF00}}">-</div>
8490 <div style="background: #00FF00">-</div>
8496 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8498 <div style="background:
8501 <div style="background: #00FF00">-</div>
8506 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8508 <div style="background: #00FF00">-</div>
8510 <div style="background: #00FF00">-</div>
8515 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8518 Parser hook: empty input
8531 Parser hook: empty input using terminated empty elements
8544 Parser hook: empty input using terminated empty elements (space before)
8557 Parser hook: basic input
8571 Parser hook: case insensitive
8585 Parser hook: case insensitive, redux
8598 Parser hook: nested tags
8602 <tag><tag></tag></tag>
8613 Parser hook: basic arguments
8615 <tag width=200 height = "100" depth = '50' square></tag>
8623 'square' => 'square',
8630 Parser hook: argument containing a forward slash (bug 5344)
8632 <tag filename='/tmp/bla'></tag>
8637 'filename' => '/tmp/bla',
8644 Parser hook: empty input using terminated empty elements (bug 2374)
8657 # </tag> should be output literally since there is no matching tag that begins it
8659 Parser hook: basic arguments using terminated empty elements (bug 2374)
8661 <tag width=200 height = "100" depth = '50' square/>
8671 'square' => 'square',
8680 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8684 Parser hook: static parser hook not inside a comment
8686 <statictag>hello, world</statictag>
8687 <statictag action=flush/>
8695 Parser hook: static parser hook inside a comment
8697 <!-- <statictag>hello, world</statictag> -->
8698 <statictag action=flush/>
8704 # Nested template calls; this case was broken by Parser.php rev 1.506,
8708 Template:One-parameter
8710 (My parameter is: {{{1}}})
8714 Template:Map-one-parameter
8720 Nested template calls
8722 {{Map-one-parameter|One-parameter|param}}
8724 <p>(My parameter is: param)
8733 Sanitizer: Closing of open tags
8735 <s></s><table></table>
8737 <s></s><table></table>
8742 Sanitizer: Closing of open but not closed tags
8751 Sanitizer: Closing of closed but not open tags
8760 Sanitizer: Closing of closed but not open table tags
8762 Table not started</td></tr></table>
8764 <p>Table not started</td></tr></table>
8769 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8771 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8773 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8778 Sanitizer: Validating the contents of the id attribute (bug 4515)
8784 Something, but definitely not <br id="9" />...
8788 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8792 <br id="foo" /><br id="foo" />
8794 Something need to be done. foo-2 ?
8798 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8801 <meta itemprop="hello" content="world">
8802 <meta http-equiv="refresh" content="5">
8803 <meta itemprop="hello" http-equiv="refresh" content="5">
8804 <link itemprop="hello" href="{{SERVER}}">
8805 <link rel="stylesheet" href="{{SERVER}}">
8806 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8809 <div itemscope="itemscope">
8810 <p> <meta itemprop="hello" content="world" />
8811 <meta http-equiv="refresh" content="5">
8812 <meta itemprop="hello" content="5" />
8814 <link itemprop="hello" href="http://example.org" />
8815 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
8816 <link itemprop="hello" href="http://example.org" />
8822 Language converter: output gets cut off unexpectedly (bug 5757)
8826 this bit is safe: }-
8828 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8830 then we get cut off here: }-
8832 all additional text is vanished
8834 <p>this bit is safe: }-
8835 </p><p>but if we add a conversion instance: xxx
8836 </p><p>then we get cut off here: }-
8837 </p><p>all additional text is vanished
8842 Self closed html pairs (bug 5487)
8845 <center><font id="bug" />Centered text</center>
8846 <div><font id="bug2" />In div text</div>
8848 <center><font id="bug" />Centered text</center>
8849 <div><font id="bug2" />In div text</div>
8858 Punctuation: nbsp before exclamation
8862 <p>C'est grave !
8867 Punctuation: CSS !important (bug 11874)
8869 <div style="width:50% !important">important</div>
8871 <div style="width:50% !important">important</div>
8876 Punctuation: CSS ! important (bug 11874; with space after)
8878 <div style="width:50% ! important">important</div>
8880 <div style="width:50% ! important">important</div>
8886 HTML bullet list, closed tags (bug 5497)
8901 HTML bullet list, unclosed tags (bug 5497)
8918 HTML ordered list, closed tags (bug 5497)
8933 HTML ordered list, unclosed tags (bug 5497)
8950 HTML nested bullet list, closed tags (bug 5497)
8975 HTML nested bullet list, open tags (bug 5497)
9000 HTML nested ordered list, closed tags (bug 5497)
9025 HTML nested ordered list, open tags (bug 5497)
9050 HTML ordered list item with parameters oddity
9052 <ol><li id="fragment">One</li></ol>
9054 <ol><li id="fragment">One</li></ol>
9059 bug 5918: autonumbering
9061 [http://first/] [http://second] [ftp://ftp]
9065 [mailto:enclosed@mail.tld With target]
9067 [mailto:enclosed@mail.tld]
9069 mailto:inline@mail.tld
9071 <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>
9072 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9073 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9074 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9075 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9081 # Security and HTML correctness
9082 # From Nick Jenkins' fuzz testing
9086 Fuzz testing: Parser13
9101 Fuzz testing: Parser14
9106 <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>
9107 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9109 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9116 Fuzz testing: Parser14-table
9121 <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>
9122 <table style="__TOC__">
9128 # Known to produce bogus xml (extra </td>)
9130 Fuzz testing: Parser16
9150 Fuzz testing: Parser21
9153 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9158 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9168 Fuzz testing: Parser22
9170 http://===r:::https://b
9174 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9182 # Known to produce bad XML for now
9184 Fuzz testing: Parser24
9191 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9192 <br style="onmouseover='alert(document.cookie);' " />
9194 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9199 <u class="|">}}}} >
9200 <br style="onmouseover='alert(document.cookie);'" />
9202 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9211 # Note: the current result listed for this is not what the original one was,
9212 # but the original bug was JavaScript injection, which is fixed in any case.
9213 # It's not clear that the original result listed was any more correct than the
9214 # current one. Original result:
9217 # <li class="||">
9218 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9220 Fuzz testing: Parser25 (bug 6055)
9226 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9228 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9233 Fuzz testing: URL adjacent extension (with space, clean)
9236 http://example.com <nowiki>junk</nowiki>
9238 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9243 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9246 http://example.com<nowiki>junk</nowiki>
9248 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9253 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9256 http://example.com<pre>junk</pre>
9258 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9263 Fuzz testing: image with bogus manual thumbnail
9265 [[Image:foobar.jpg|thumbnail= ]]
9267 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9272 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9274 <pre dir=" "></pre>
9276 <pre dir=" "></pre>
9281 Parsing optional HTML elements (Bug 6171)
9286 <td> Some tabular data</td>
9287 <td> More tabular data ...
9288 <td> And yet som tabular data</td>
9294 <td> Some tabular data</td>
9295 <td> More tabular data ...
9296 </td><td> And yet som tabular data</td>
9303 Correct handling of <td>, <tr> (Bug 6171)
9308 <td> Some tabular data</td>
9309 <td> More tabular data ...</td>
9310 <td> And yet som tabular data</td>
9316 <td> Some tabular data</td>
9317 <td> More tabular data ...</td>
9318 <td> And yet som tabular data</td>
9326 Parsing crashing regression (fr:JavaScript)
9330 <p></body></x>
9335 Inline wiki vs wiki block nesting
9341 <p><b>Bold paragraph</b>
9342 </p><p>New wiki paragraph
9347 Inline HTML vs wiki block nesting
9355 <p><b>Bold paragraph</b>
9356 </p><p>New wiki paragraph
9360 # Original result was this:
9361 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9363 # While that might be marginally more intuitive, maybe, the six-apostrophe
9364 # construct is clearly pathological and the result stated here (which is what
9365 # the parser actually does) is about as reasonable as anything.
9367 Mixing markup for italics and bold
9370 '''bold''''''bold''bolditalics'''''
9372 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9380 Article for special page transclusion test
9384 Special page transclusion
9387 {{Special:Prefixindex/Xyzzyx}}
9389 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9394 Special page transclusion twice (bug 5021)
9397 {{Special:Prefixindex/Xyzzyx}}
9398 {{Special:Prefixindex/Xyzzyx}}
9400 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9401 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9406 Transclusion of default MediaWiki message
9408 {{MediaWiki:Mainpage}}
9415 Transclusion of nonexistent MediaWiki message
9417 {{MediaWiki:Mainpagexxx}}
9419 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9424 Transclusion of MediaWiki message with underscore
9426 {{MediaWiki:history_short}}
9433 Transclusion of MediaWiki message with space
9435 {{MediaWiki:history short}}
9442 Invalid header with following text
9452 Section extraction test (section 0)
9472 Section extraction test (section 1)
9494 Section extraction test (section 2)
9515 Section extraction test (section 3)
9535 Section extraction test (section 4)
9559 Section extraction test (section 5)
9579 Section extraction test (section 6)
9600 Section extraction test (section 7)
9620 Section extraction test (section 8)
9640 Section extraction test (section 9)
9661 Section extraction test (section 10)
9681 Section extraction test (nonexistent section 11)
9700 Section extraction test with bogus heading (section 1)
9705 ==bogus== not a legal section
9709 ==bogus== not a legal section
9713 Section extraction test with bogus heading (section 2)
9718 ==bogus== not a legal section
9725 Section extraction test with comment after heading (section 1)
9737 Section extraction test with comment after heading (section 2)
9749 Section extraction test with bogus <nowiki> heading (section 1)
9754 ==bogus== <nowiki>not a legal section</nowiki>
9758 ==bogus== <nowiki>not a legal section</nowiki>
9762 Section extraction test with bogus <nowiki> heading (section 2)
9767 ==bogus== <nowiki>not a legal section</nowiki>
9774 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9775 # instead of respecting commented sections
9777 Section extraction prefixed by comment (section 1)
9788 Section extraction prefixed by comment (section 2)
9799 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9800 # instead of respecting HTML-style headings
9802 Section extraction, mixed wiki and html (section 1)
9818 Section extraction, mixed wiki and html (section 2)
9834 # Formerly testing for bug 3342
9836 Section extraction, heading surrounded by <noinclude>
9840 <noinclude>==unmarked==</noinclude>
9846 # Test behaviour of bug 19910
9848 Sectiion with all-equals
9853 The line above must have a trailing space
9856 But just in case it doesn't...
9860 But just in case it doesn't...
9864 Section replacement test (section 0)
9895 Section replacement test (section 1)
9924 Section replacement test (section 2)
9954 Section replacement test (section 3)
9985 Section replacement test (section 4)
10012 Section replacement test (section 5)
10043 Section replacement test (section 6)
10073 Section replacement test (section 7)
10104 Section replacement test (section 8)
10135 Section replacement test (section 9)
10164 Section replacement test (section 10)
10194 Section replacement test with initial whitespace (bug 13728)
10198 Preformatted initial line
10202 Preformatted initial line
10209 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10221 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10234 Section extraction, <pre> around bogus header (bug 10309)
10251 Section replacement, <pre> around bogus header (bug 10309)
10253 noxml replace=2,"xxx"
10274 Handling of 
 in URLs
10278 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10285 5 quotes, code coverage +1 line
10292 Special:Search page linking.
10296 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10308 * {{BASEPAGENAMEE}}
10310 * {{TALKPAGENAMEE}}
10311 * {{SUBJECTPAGENAME}}
10312 * {{SUBJECTPAGENAMEE}}
10318 * {{SUBJECTSPACEE}}
10319 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10321 <ul><li> Parser test
10322 </li><li> Parser test
10323 </li><li> Parser test
10324 </li><li> Parser_test
10325 </li><li> Parser test
10326 </li><li> Parser_test
10327 </li><li> Talk:Parser test
10328 </li><li> Talk:Parser_test
10329 </li><li> Parser test
10330 </li><li> Parser_test
10337 </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>
10341 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10351 image4 |300px| centre
10352 image5.svg| http://///////
10357 <ul class="gallery">
10358 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10359 <div style="height: 150px;">Image1.png</div>
10360 <div class="gallerytext">
10363 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10364 <div style="height: 150px;">Image2.gif</div>
10365 <div class="gallerytext">
10370 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10371 <div style="height: 150px;">Image3</div>
10372 <div class="gallerytext">
10375 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10376 <div style="height: 150px;">Image4</div>
10377 <div class="gallerytext">
10382 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10383 <div style="height: 150px;">Image5.svg</div>
10384 <div class="gallerytext">
10385 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10389 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10390 <div style="height: 150px;">* image6</div>
10391 <div class="gallerytext">
10399 Gallery (with options)
10401 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10402 File:Nonexistant.jpg|caption
10403 File:Nonexistant.jpg
10404 image:foobar.jpg|some '''caption''' [[Main Page]]
10406 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10409 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10410 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10411 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10412 <div style="height: 70px;">Nonexistant.jpg</div>
10413 <div class="gallerytext">
10418 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10419 <div style="height: 70px;">Nonexistant.jpg</div>
10420 <div class="gallerytext">
10423 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10424 <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>
10425 <div class="gallerytext">
10426 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10430 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10431 <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>
10432 <div class="gallerytext">
10435 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10436 <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>
10437 <div class="gallerytext">
10447 Gallery with wikitext inside caption
10450 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10451 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10454 <ul class="gallery">
10455 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10456 <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>
10457 <div class="gallerytext">
10458 <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>
10462 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10463 <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>
10464 <div class="gallerytext">
10465 <p>This is a test template
10474 gallery (with showfilename option)
10476 <gallery showfilename>
10477 File:Nonexistant.jpg|caption
10478 File:Nonexistant.jpg
10479 image:foobar.jpg|some '''caption''' [[Main Page]]
10483 <ul class="gallery">
10484 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10485 <div style="height: 150px;">Nonexistant.jpg</div>
10486 <div class="gallerytext">
10487 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10492 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10493 <div style="height: 150px;">Nonexistant.jpg</div>
10494 <div class="gallerytext">
10495 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10499 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10500 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
10501 <div class="gallerytext">
10502 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10503 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10507 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10508 <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>
10509 <div class="gallerytext">
10510 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10519 Gallery (with namespace-less filenames)
10522 File:Nonexistant.jpg
10528 <ul class="gallery">
10529 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10530 <div style="height: 150px;">Nonexistant.jpg</div>
10531 <div class="gallerytext">
10534 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10535 <div style="height: 150px;">Nonexistant.jpg</div>
10536 <div class="gallerytext">
10539 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10540 <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>
10541 <div class="gallerytext">
10544 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10545 <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>
10546 <div class="gallerytext">
10554 HTML Hex character encoding (spells the word "JavaScript")
10556 JavaScript
10558 <p>JavaScript
10563 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10567 <p>&#xsee;&#XSEE;
10572 HTML Hex character encoding mixed case
10581 __FORCETOC__ override
10593 ISBN 978-0-1234-56 789
10595 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10600 ISBN followed by 5 spaces
10611 ISBN ISBN 1234567890
10613 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10618 Bug 22905: <abbr> followed by ISBN followed by </a>
10620 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10622 <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>
10631 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10636 Double RFC with a wiki link
10640 <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>
10649 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10654 Centre-aligned image
10656 [[Image:foobar.jpg|centre]]
10658 <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>
10665 [[Image:foobar.jpg|none]]
10667 <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>
10672 Width + Height sized image (using px) (height is ignored)
10674 [[Image:foobar.jpg|640x480px]]
10676 <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>
10681 Width-sized image (using px, no following whitespace)
10683 [[Image:foobar.jpg|640px]]
10685 <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>
10690 Width-sized image (using px, with following whitespace - test regression from r39467)
10692 [[Image:foobar.jpg|640px ]]
10694 <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>
10699 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10701 [[Image:foobar.jpg| 640px]]
10703 <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>
10708 Another italics / bold test
10716 # Note the results may be incorrect, as parserTest output included this:
10717 # XML error: Mismatched tag at byte 6120:
10718 # ...<dd> </dt></dl> </dd...
10726 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10737 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10739 Images with the "|" character in the comment
10741 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10743 <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>
10748 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10750 <html><script>alert(1);</script></html>
10752 <p><html><script>alert(1);</script></html>
10757 HTML with raw HTML ($wgRawHtml==true)
10761 <html><script>alert(1);</script></html>
10763 <p><script>alert(1);</script>
10768 Parents of subpages, one level up
10770 subpage title=[[Subpage test/L1/L2/L3]]
10774 <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>
10780 Parents of subpages, one level up, not named
10782 subpage title=[[Subpage test/L1/L2/L3]]
10786 <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>
10793 Parents of subpages, two levels up
10795 subpage title=[[Subpage test/L1/L2/L3]]
10801 <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
10802 </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>
10807 Parents of subpages, two levels up, without trailing slash or name.
10809 subpage title=[[Subpage test/L1/L2/L3]]
10818 Parents of subpages, two levels up, with lots of extra trailing slashes.
10820 subpage title=[[Subpage test/L1/L2/L3]]
10824 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10829 Definition list code coverage
10835 <dl><dt> title  </dt><dd> def
10836 </dd><dt> title </dt><dd> def
10837 </dd><dt>title</dt><dd> def
10843 Don't fall for the self-closing div
10845 <div>hello world</div/>
10847 <div>hello world</div>
10856 <p>[[:Template:Msg]]
10865 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10869 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10871 Always escape literal '>' in output, not just after '<'
10885 <p>This is a test template
10886 This is a test template
10898 Inclusion of !userCanEdit() content
10902 <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>
10908 Out-of-order TOC heading levels
10917 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10919 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10921 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10922 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10925 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10927 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10928 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10933 <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>
10934 <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>
10935 <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>
10936 <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>
10937 <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>
10938 <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>
10944 ISBN with a dummy number
10954 ISBN with space-delimited number
10958 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10964 ISBN with multiple spaces, no number
10983 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10984 </p><p>ISBN 12345678901
10990 ISBN with trailing year (bug 8110)
10992 ISBN 1-234-56789-0 - 2006
10994 ISBN 1 234 56789 0 - 2006
10996 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10997 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11005 {{anchorencode:foo bar©#%n}}
11007 <p>foo_bar.C2.A9.23.25n
11012 anchorencode trims spaces
11014 {{anchorencode: __pretty__please__}}
11021 anchorencode deals with links
11023 {{anchorencode: [[hello|world]] [[hi]]}}
11030 anchorencode deals with templates
11032 {{anchorencode: {{Foo}} }}
11039 anchorencode encodes like the TOC generator: (bug 18431)
11041 === _ +:.3A%3A&&]] ===
11042 {{anchorencode: _ +:.3A%3A&&]] }}
11045 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
11046 <p>.2B:.3A.253A.26.26.5D.5D
11050 # Expected output in the following test is not necessarily expected (there
11051 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11052 # only testing for well-formedness.
11054 Bug 6200: blockquotes and paragraph formatting
11074 Bug 8293: Use of center tag ruins paragraph formatting
11096 ### Language variants related tests
11099 Self-link in language variants
11101 title=[[Dunav]] language=sr
11103 Both [[Dunav]] and [[Дунав]] are names for this river.
11105 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11116 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11118 title=[[Duna]] language=sr
11120 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11122 <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.
11127 Link to pages in language variants
11131 Main Page can be written as [[Маин Паге]]
11133 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11139 Multiple links to pages in language variants
11143 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11145 <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>.
11151 Simple template in language variants
11157 <p>This is a test template
11163 Template with explicit namespace in language variants
11169 <p>This is a test template
11175 Basic test for template parameter in language variants
11179 {{парамтест|param=foo}}
11181 <p>This is a test template with parameter foo
11187 Simple category in language variants
11191 [[Category:МедиаWики Усер'с Гуиде]]
11193 <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>
11210 Don't convert blue categorylinks to another variant (bug 33210)
11214 [[A]][[Category:分类]]
11216 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11221 Stripping -{}- tags (language variants)
11225 Latin proverb: -{Ne nuntium necare}-
11227 <p>Latin proverb: Ne nuntium necare
11233 Prevent conversion with -{}- tags (language variants)
11235 language=sr variant=sr-ec
11237 Latinski: -{Ne nuntium necare}-
11239 <p>Латински: Ne nuntium necare
11245 Prevent conversion of text with -{}- tags (language variants)
11247 language=sr variant=sr-ec
11249 Latinski: -{Ne nuntium necare}-
11251 <p>Латински: Ne nuntium necare
11257 Prevent conversion of links with -{}- tags (language variants)
11259 language=sr variant=sr-ec
11263 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11269 -{}- tags within headlines (within html for parserConvert())
11271 language=sr variant=sr-ec
11275 <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>
11281 Explicit definition of language variant alternatives
11283 language=zh variant=zh-tw
11285 -{zh:China;zh-tw:Taiwan}-, not China
11287 <p>Taiwan, not China
11293 Conversion around HTML tags
11295 language=sr variant=sr-ec
11297 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11298 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11301 <span title="ЛаCтин">ски</span>
11307 Explicit session-wise language variant mapping (A flag and - flag)
11309 language=zh variant=zh-tw
11311 Taiwan is not China.
11312 But -{A|zh:China;zh-tw:Taiwan}- is China,
11313 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11314 and -{China}- is China.
11316 <p>Taiwan is not China.
11317 But Taiwan is Taiwan,
11318 (This should be stripped!)
11319 and China is China.
11324 Explicit session-wise language variant mapping (H flag for hide)
11326 language=zh variant=zh-tw
11328 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11331 <p>(This should be stripped!)
11337 Adding explicit conversion rule for title (T flag)
11339 language=zh variant=zh-tw showtitle
11341 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11344 <p>Should be stripped!
11349 Testing that changing the language variant here in the tests actually works
11351 language=zh variant=zh showtitle
11353 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11356 <p>Should be stripped!
11361 Recursive conversion of alt and title attrs shouldn't clear converter state
11363 language=zh variant=zh-cn showtitle
11365 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11366 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11370 Should be stripped<span title="Exclamation">!</span>
11375 Bug 24072: more test on conversion rule for title
11377 language=zh variant=zh-tw showtitle
11379 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11380 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11383 <p>This should be stripped!
11384 This won't take interferes with the title rule.
11389 Raw output of variant escape tags (R flag)
11391 language=zh variant=zh-tw
11393 Raw: -{R|zh:China;zh-tw:Taiwan}-
11395 <p>Raw: zh:China;zh-tw:Taiwan
11400 Nested using of manual convert syntax
11402 language=zh variant=zh-hk
11404 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11406 <p>Nested: Hello Hong Kong!
11411 Proper conversion of text in external links
11413 language=sr variant=sr-ec
11415 http://www.google.com
11416 gopher://www.google.com
11417 [http://www.google.com http://www.google.com]
11418 [gopher://www.google.com gopher://www.google.com]
11419 [https://www.google.com irc://www.google.com]
11420 [ftp://www.google.com www.google.com/ftp://dir]
11421 [//www.google.com www.google.com]
11423 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11424 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11425 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11426 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11427 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11428 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11429 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11434 Do not convert roman numbers to language variants
11436 language=sr variant=sr-ec
11440 <p>Фридрих IV је цар.
11445 Unclosed language converter markup "-{"
11456 Don't convert raw rule "-{R|=>}-" to "=>"
11473 Bug 529: Uncovered bullet
11483 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11484 # Templates in Wikipedia rely on this behavior, as tidy has always been
11485 # enabled there. These tests are normally run *without* tidy, so specify the
11486 # full output here.
11487 # To test realistic parsing behavior, apply a tidy-like transformation to both
11488 # the expected output and your parser's output.
11490 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11492 ******* Foo {{bullet}}
11494 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11507 Bug 529: Uncovered table already at line-start
11530 Bug 529: Uncovered bullet in parser function result
11532 * Foo {{lc:{{bullet}} }}
11541 Bug 5678: Double-parsed template argument
11543 {{lc:{{{1}}}|hello}}
11550 Bug 5678: Double-parsed template invocation
11552 {{lc:{{paramtest {{!}} param = hello }} }}
11554 <p>{{paramtest | param = hello }}
11559 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11562 title=[[Main Page]]
11564 {{PRVNÍVELKÉ:ěščř}}
11565 {{prvnívelké:ěščř}}
11585 Morwen/13: Unclosed link followed by heading
11592 <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>
11597 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11604 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11609 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11616 <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>
11631 Paragraphs inside divs (no extra line breaks)
11643 Paragraphs inside divs (extra line break on open)
11658 Paragraphs inside divs (extra line break on close)
11673 Paragraphs inside divs (extra line break on open and close)
11690 Nesting tags, paragraphs on lines which begin with <div>
11694 <div></div><strong>A
11703 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11705 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11709 <blockquote>Line one
11711 Line two</blockquote>
11713 <blockquote>Line one
11714 Line two</blockquote>
11719 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11726 Line two</blockquote>
11731 Line two</blockquote>
11736 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11740 <blockquote>Line one
11745 <blockquote>Line one
11753 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11772 Paragraphs inside blockquotes/divs (no extra line breaks)
11774 <blockquote><div>Line one
11776 Line two</div></blockquote>
11778 <blockquote><div>Line one
11779 Line two</div></blockquote>
11784 Paragraphs inside blockquotes/divs (extra line break on open)
11789 Line two</div></blockquote>
11794 Line two</div></blockquote>
11799 Paragraphs inside blockquotes/divs (extra line break on close)
11801 <blockquote><div>Line one
11804 </div></blockquote>
11806 <blockquote><div>Line one
11809 </div></blockquote>
11814 Paragraphs inside blockquotes/divs (extra line break on open and close)
11820 </div></blockquote>
11826 </div></blockquote>
11831 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11833 wgLinkHolderBatchSize=0
11839 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11840 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11841 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11846 Free external link invading image caption
11848 [[Image:Foobar.jpg|thumb|http://x|hello]]
11850 <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>
11855 Bug 15196: localised external link numbers
11859 [http://en.wikipedia.org/]
11861 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11866 Multibyte character in padleft
11868 {{padleft:-Hello|7|Æ}}
11875 Multibyte character in padright
11877 {{padright:Hello-|7|Æ}}
11884 formatdate parser function
11886 {{#formatdate:2009-03-24}}
11888 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11893 formatdate parser function, with default format
11895 {{#formatdate:2009-03-24|mdy}}
11897 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11902 Spacing of numbers in formatted dates
11904 {{#formatdate:January 15}}
11906 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11911 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
11913 language=nl title=[[MediaWiki:Common.css]]
11915 {{#formatdate:2009-03-24|dmy}}
11917 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11930 Edit comment with link
11934 I like the [[Main Page]] a lot
11936 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11940 Edit comment with link and link text
11944 I like the [[Main Page|best pages]] a lot
11946 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11950 Edit comment with link and link text with suffix
11954 I like the [[Main Page|best page]]s a lot
11956 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11960 Edit comment with section link (non-local, eg in history list)
11962 comment title=[[Main Page]]
11964 /* External links */ removed bogus entries
11966 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11970 Edit comment with section link and text before it (non-local, eg in history list)
11972 comment title=[[Main Page]]
11974 pre-comment text /* External links */ removed bogus entries
11976 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>
11980 Edit comment with section link (local, eg in diff view)
11982 comment local title=[[Main Page]]
11984 /* External links */ removed bogus entries
11986 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11990 Edit comment with subpage link (bug 14080)
11994 title=[[Subpage test]]
11996 Poked at a [[/subpage]] here...
11998 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12002 Edit comment with subpage link and link text (bug 14080)
12006 title=[[Subpage test]]
12008 Poked at a [[/subpage|neat little page]] here...
12010 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12014 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12017 title=[[Subpage test]]
12019 Poked at a [[/subpage]] here...
12021 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12025 Edit comment with bare anchor link (local, as on diff)
12029 title=[[Main Page]]
12033 <a href="#section">#section</a>
12037 Edit comment with bare anchor link (non-local, as on history)
12040 title=[[Main Page]]
12044 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12048 Anchor starting with underscore
12052 <p><a href="#_ref">One</a>
12057 Id starting with underscore
12059 <div id="_ref"></div>
12061 <div id="_ref"></div>
12066 Space normalisation on autocomment (bug 22784)
12069 title=[[Main Page]]
12071 /* __hello__world__ */
12073 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12077 percent-encoding and + signs in comments (Bug 26410)
12081 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12083 <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>
12087 Bad images - basic functionality
12096 Bad images - bug 16039: text after bad image disappears
12110 Verify that displaytitle works (bug #22501) no displaytitle
12114 wgAllowDisplayTitle=true
12115 wgRestrictDisplayTitle=false
12117 this is not the the title
12120 <p>this is not the the title
12125 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12130 wgAllowDisplayTitle=true
12131 wgRestrictDisplayTitle=false
12133 this is not the the title
12134 {{DISPLAYTITLE:whatever}}
12137 <p>this is not the the title
12142 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12147 wgAllowDisplayTitle=true
12148 wgRestrictDisplayTitle=true
12150 this is not the the title
12151 {{DISPLAYTITLE:whatever}}
12154 <p>this is not the the title
12159 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12164 wgAllowDisplayTitle=true
12165 wgRestrictDisplayTitle=true
12167 this is not the the title
12168 {{DISPLAYTITLE:screen}}
12171 <p>this is not the the title
12176 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12181 wgAllowDisplayTitle=false
12183 this is not the the title
12184 {{DISPLAYTITLE:screen}}
12187 <p>this is not the the title
12188 <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>
12193 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12198 wgAllowDisplayTitle=false
12200 this is not the the title
12203 <p>this is not the the title
12208 preload: check <noinclude> and <includeonly>
12212 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12218 preload: check <onlyinclude>
12222 Goodbye <onlyinclude>Hello world</onlyinclude>
12228 preload: can pass tags through if we want to
12232 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12234 <includeonly>Hello world</includeonly>
12238 preload: check that it doesn't try to do tricks
12242 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12244 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12248 Play a bit with r67090 and bug 3158
12252 <div style="width:50% !important"> </div>
12253 <div style="width:50% !important"> </div>
12254 <div style="width:50% !important"> </div>
12255 <div style="border : solid;"> </div>
12257 <div style="width:50% !important"> </div>
12258 <div style="width:50% !important"> </div>
12259 <div style="width:50% !important"> </div>
12260 <div style="border : solid;"> </div>
12265 HTML5 data attributes
12267 <span data-foo="bar">Baz</span>
12268 <p data-abc-def_hij="">Quuz</p>
12270 <p><span data-foo="bar">Baz</span>
12272 <p data-abc-def_hij="">Quuz</p>
12277 percent-encoding and + signs in internal links (Bug 26410)
12279 [[User:+%]] [[Page+title%]]
12280 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12281 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12282 [[%33%45]] [[%33%45+]]
12284 <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>
12285 <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>
12286 <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>
12287 <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>
12292 Special characters in embedded file links (bug 27679)
12294 [[File:Contains & ampersand.jpg]]
12295 [[File:Does not exist.jpg|Title with & ampersand]]
12297 <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>
12298 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12304 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12306 Text's been normalized?
12308 <p>Text's been normalized?
12313 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12315 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12317 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12322 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12324 [http://www.example.org/ ideograms]
12326 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12331 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12333 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12335 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12359 Bug 31098 Template which includes system messages which includes the template
12363 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12364 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12369 Bug31490 Turkish: ucfirst 'blah'
12380 Bug31490 Turkish: ucfirst 'ix'
12391 Bug31490 Turkish: lcfirst 'BLAH'
12402 Bug31490 Turkish: ucfırst (with a dotless i)
12408 <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>
12413 Bug31490 ucfırst (with a dotless i) with English language
12419 <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>
12424 Bug 26375: TOC with italics
12426 title=[[Main Page]]
12429 == ''Lost'' episodes ==
12431 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12433 <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>
12436 <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>
12441 Bug 26375: TOC with bold
12443 title=[[Main Page]]
12446 == '''should be bold''' then normal text ==
12448 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12450 <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>
12453 <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>
12458 Bug 33845: Headings become cursive in TOC when they contain an image
12460 title=[[Main Page]]
12463 == Image [[Image:foobar.jpg]] ==
12465 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12467 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12470 <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>
12475 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12477 title=[[Main Page]]
12480 == <blockquote>Quote</blockquote> ==
12482 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12484 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12487 <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>
12492 Unclosed tags in TOC
12494 title=[[Main Page]]
12498 <small>Hanc marginis exiguitas non caperet.</small>
12501 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12503 <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>
12506 <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>
12507 <p><small>Hanc marginis exiguitas non caperet.</small>
12513 Multiple tags in TOC
12516 == <i>Foo</i> <b>Bar</b> ==
12518 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12520 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12522 <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>
12523 <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>
12526 <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>
12527 <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>
12532 Tags with parameters in TOC
12535 == <sup class="in-h2">Hello</sup> ==
12537 == <sup class="a > b">Evilbye</sup> ==
12539 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12541 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12542 <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>
12545 <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>
12546 <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>
12551 span tags with directionality in TOC
12554 == <span dir="ltr">C++</span> ==
12556 == <span dir="rtl">זבנג!</span> ==
12558 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12560 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12562 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12564 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12566 <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>
12567 <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>
12568 <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>
12569 <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>
12570 <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>
12573 <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>
12574 <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>
12575 <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>
12576 <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>
12577 <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>
12584 == {{int:headline_sample}} ==
12588 Bug 32057: Title needed when expanding <h> nodes.
12590 title=[[Main Page]]
12594 <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>
12599 Strip marker in urlencode
12601 {{urlencode:x<nowiki/>y}}
12602 {{urlencode:x<nowiki/>y|wiki}}
12603 {{urlencode:x<nowiki/>y|path}}
12630 Strip marker in formatNum
12632 {{formatnum:1<nowiki/>2}}
12633 {{formatnum:1<nowiki/>2|R}}
12641 Check noCommafy in formatNum
12645 {{formatnum:123456.78}}
12646 {{formatnum:123456.78|NOSEP}}
12654 Strip marker in grammar
12658 {{grammar:elative|foo<nowiki/>bar}}
12665 Strip marker in padleft
12667 {{padleft:|2|x<nowiki/>y}}
12674 Strip marker in padright
12676 {{padright:|2|x<nowiki/>y}}
12683 Strip marker in anchorencode
12685 {{anchorencode:x<nowiki/>y}}
12692 nowiki inside link inside heading (bug 18295)
12694 ==[[foo|x<nowiki>y</nowiki>z]]==
12696 <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>
12701 new support for bdi element (bug 31817)
12703 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12705 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12710 Ignore pipe between table row attributes
12714 |- id=foo | style='color: red'
12722 <tr id="foo" style="color: red">
12729 Gallery override link with WikiLink (bug 34852)
12732 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12735 <ul class="gallery">
12736 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12737 <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>
12738 <div class="gallerytext">
12748 Gallery override link with absolute external link (bug 34852)
12751 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12754 <ul class="gallery">
12755 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12756 <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>
12757 <div class="gallerytext">
12767 Gallery override link with malicious javascript (bug 34852)
12770 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12773 <ul class="gallery">
12774 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12775 <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>
12776 <div class="gallerytext">
12786 Gallery with invalid title as link (bug 43964)
12789 File:foobar.jpg|link=<
12792 <ul class="gallery">
12793 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12794 <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>
12795 <div class="gallerytext">
12803 Language parser function
12812 Padleft and padright as substr
12814 {{padleft:|3|abcde}}
12815 {{padright:|3|abcde}}
12823 Bug 34939 - Case insensitive link parsing ([HttP://])
12825 [HttP://MediaWiki.Org/]
12827 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12832 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12834 [HttP://MediaWiki.Org/ MediaWiki]
12836 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12841 Bug 34939 - Case insensitive link parsing (HttP://)
12843 HttP://MediaWiki.Org/
12845 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12850 ### Parsoids-specific tests
12851 ### Parsoid-PHP parser incompatibilities
12854 1. SOL-sensitive wikitext tokens as template-args
12868 #### The following section of tests are primarily to test
12869 #### wikitext escaping capabilities of Parsoid.
12870 #### A lot of the tests are disabled for the PHP parser either
12871 #### because of minor newline diffs or other reasons.
12872 #### As Parsoid serializer can handle newlines and other HTML
12873 #### more robustly, some of these tests might get reenabled
12874 #### for the PHP parser.
12876 #### --------------- Headings ---------------
12878 #### 1. Nested inside html <h1>=foo=</h1>
12879 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12880 #### 3. Nested inside html with wikitext split by html tags
12881 #### 4. No escape needed
12882 #### 5. Empty headings <h1></h1>
12883 #### 6. Heading chars in SOL context
12884 #### ----------------------------------------
12886 Headings: 0. Unnested
12888 <nowiki>=foo=</nowiki>
12890 <nowiki>=foo</nowiki>''a''=
12893 </p><p>=foo<i>a</i>=
12898 Headings: 1. Nested inside html
12902 =<nowiki>=foo=</nowiki>=
12903 ==<nowiki>=foo=</nowiki>==
12904 ===<nowiki>=foo=</nowiki>===
12905 ====<nowiki>=foo=</nowiki>====
12906 =====<nowiki>=foo=</nowiki>=====
12907 ======<nowiki>=foo=</nowiki>======
12918 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12923 <nowiki>*bar</nowiki>
12927 <nowiki>=bar=</nowiki>
12935 Headings: 3. Nested inside html with wikitext split by html tags
12939 =<nowiki>=</nowiki>'''bold'''foo==
12941 <h1>=<b>bold</b>foo=</h1>
12945 Headings: 4. No escaping needed (testing just h1 and h2)
12960 <h1><i>=</i>foo=</h1>
12965 Headings: 5. Empty headings
12969 =<nowiki></nowiki>=
12970 ==<nowiki></nowiki>==
12971 ===<nowiki></nowiki>===
12972 ====<nowiki></nowiki>====
12973 =====<nowiki></nowiki>=====
12974 ======<nowiki></nowiki>======
12985 Headings: 6. Heading chars in SOL context
12989 <!--cmt--><nowiki>=h1=</nowiki>
12995 #### --------------- Lists ---------------
12996 #### 0. Outside nests (*foo, etc.)
12997 #### 1. Nested inside html <ul><li>*foo</li></ul>
12998 #### 2. Inside definition lists
12999 #### 3. Only bullets at start should be escaped
13000 #### 4. No escapes needed
13001 #### 5. No unnecessary escapes
13002 #### 6. Escape bullets in SOL position
13003 #### 7. Escape bullets in a multi-line context
13004 #### ----------------------------------------
13007 Lists: 0. Outside nests
13009 <nowiki>*foo</nowiki>
13011 <nowiki>#foo</nowiki>
13019 Lists: 1. Nested inside html
13021 *<nowiki>*foo</nowiki>
13023 *<nowiki>#foo</nowiki>
13025 *<nowiki>:foo</nowiki>
13027 *<nowiki>;foo</nowiki>
13029 #<nowiki>*foo</nowiki>
13031 #<nowiki>#foo</nowiki>
13033 #<nowiki>:foo</nowiki>
13035 #<nowiki>;foo</nowiki>
13057 Lists: 2. Inside definition lists
13059 ;<nowiki>;foo</nowiki>
13061 ;<nowiki>:foo</nowiki>
13063 ;<nowiki>:foo</nowiki>
13066 :<nowiki>:foo</nowiki>
13081 Lists: 3. Only bullets at start of text should be escaped
13083 *<nowiki>*foo*bar</nowiki>
13085 *<nowiki>*foo</nowiki>''it''*bar
13089 <ul><li>*foo<i>it</i>*bar
13095 Lists: 4. No escapes needed
13107 <ul><li><i>foo</i>*bar
13109 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13114 Lists: 5. No unnecessary escapes
13116 * bar <span><nowiki>[[foo]]</nowiki></span>
13118 *=bar <span><nowiki>[[foo]]</nowiki></span>
13120 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13122 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13124 *=bar <span>foo]]</span>=
13126 <ul><li> bar <span>[[foo]]</span>
13128 <ul><li>=bar <span>[[foo]]</span>
13130 <ul><li>[[bar <span>[[foo]]</span>
13132 <ul><li>]]bar <span>[[foo]]</span>
13134 <ul><li>=bar <span>foo]]</span>=
13140 Lists: 6. Escape bullets in SOL position
13144 <!--cmt--><nowiki>*foo</nowiki>
13151 Lists: 7. Escape bullets in a multi-line context
13161 #### --------------- HRs ---------------
13162 #### 1. Single line
13163 #### -----------------------------------
13166 HRs: 1. Single line
13171 <nowiki>----</nowiki>
13173 <nowiki>=foo=</nowiki>
13175 <nowiki>*foo</nowiki>
13182 #### --------------- Tables ---------------
13183 #### 1a. Simple example
13184 #### 1b. No escaping needed (!foo)
13185 #### 1c. No escaping needed (|foo)
13186 #### 1d. No escaping needed (|}foo)
13188 #### 2a. Nested in td (<td>foo|bar</td>)
13189 #### 2b. Nested in td (<td>foo||bar</td>)
13190 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13192 #### 3a. Nested in th (<th>foo!bar</th>)
13193 #### 3b. Nested in th (<th>foo!!bar</th>)
13194 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13198 #### 4c. No escaping needed
13199 #### --------------------------------------
13202 Tables: 1a. Simple example
13213 Tables: 1b. No escaping needed
13222 Tables: 1c. No escaping needed
13231 Tables: 1d. No escaping needed
13240 Tables: 2a. Nested in td
13245 |<nowiki>foo|bar</nowiki>
13255 Tables: 2b. Nested in td
13260 |<nowiki>foo||bar</nowiki>
13261 |''it''<nowiki>foo||bar</nowiki>
13266 </td><td><i>it</i>foo||bar
13272 Tables: 2c. Nested in td -- no escaping needed
13287 Tables: 3a. Nested in th
13302 Tables: 3b. Nested in th
13307 !<nowiki>foo!!bar</nowiki>
13317 Tables: 3c. Nested in th -- no escaping needed
13332 Tables: 4a. Escape -
13340 |<nowiki>-bar</nowiki>
13344 <tr><th>-bar</th></tr>
13345 <tr><td>-bar</td></tr>
13350 Tables: 4b. Escape +
13358 |<nowiki>+bar</nowiki>
13362 <tr><th>+bar</th></tr>
13363 <tr><td>+bar</td></tr>
13368 Tables: 4c. No escaping needed
13382 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13383 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13388 Tables: 4d. No escaping needed
13404 #### --------------- Links ---------------
13405 #### 1. Quote marks in link text
13406 #### 2. Wikilinks: Escapes needed
13407 #### 3. Wikilinks: No escapes needed
13408 #### 4. Extlinks: Escapes needed
13409 #### 5. Extlinks: No escapes needed
13410 #### --------------------------------------
13412 Links 1. Quote marks in link text
13416 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13418 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13422 Links 2. WikiLinks: Escapes needed
13426 [[Foo|<nowiki>[Foobar]</nowiki>]]
13427 [[Foo|<nowiki>Foobar]</nowiki>]]
13428 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13429 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13430 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13431 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13432 [[Foo|<nowiki>|Bar</nowiki>]]
13434 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13435 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13436 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13437 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13438 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13439 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13440 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13444 Links 3. WikiLinks: No escapes needed
13451 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13452 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13456 Links 4. ExtLinks: Escapes needed
13460 [http://google.com <nowiki>[google]</nowiki>]
13461 [http://google.com <nowiki>google]</nowiki>]
13463 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13464 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13468 Links 5. ExtLinks: No escapes needed
13472 [http://google.com [google]
13474 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13477 #### --------------- Quotes ---------------
13478 #### 1. Quotes inside <b> and <i>
13479 #### 2. Link fragments separated by <i> and <b> tags
13480 #### 3. Link fragments inside <i> and <b>
13481 #### --------------------------------------
13483 1. Quotes inside <b> and <i>
13485 ''<nowiki>'foo'</nowiki>''
13486 ''<nowiki>''foo''</nowiki>''
13487 ''<nowiki>'''foo'''</nowiki>''
13488 '''<nowiki>'foo'</nowiki>'''
13489 '''<nowiki>''foo''</nowiki>'''
13490 '''<nowiki>'''foo'''</nowiki>'''
13491 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13499 <b>foo'<i>bar'</i>baz</b>
13504 2. Link fragments separated by <i> and <b> tags
13506 [[''foo''<nowiki>hello]]</nowiki>
13508 [['''foo'''<nowiki>hello]]</nowiki>
13510 <p>[[<i>foo</i>hello]]
13511 </p><p>[[<b>foo</b>hello]]
13516 2. Link fragments inside <i> and <b>
13517 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13518 this is one of the shortcomings of this format)
13520 ''[[foo''<nowiki>]]</nowiki>
13522 '''[[foo'''<nowiki>]]</nowiki>
13525 </p><p><b>[[foo</b>]]
13529 #### --------------- Paragraphs ---------------
13530 #### 1. No unnecessary escapes
13531 #### --------------------------------------
13534 1. No unnecessary escapes
13536 bar <span><nowiki>[[foo]]</nowiki></span>
13538 =bar <span><nowiki>[[foo]]</nowiki></span>
13540 [[bar <span><nowiki>[[foo]]</nowiki></span>
13542 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13544 <nowiki>=bar </nowiki><span>foo]]</span>=
13546 <p>bar <span>[[foo]]</span>
13547 </p><p>=bar <span>[[foo]]</span>
13548 </p><p>[[bar <span>[[foo]]</span>
13549 </p><p>]]bar <span>[[foo]]</span>
13550 </p><p>=bar <span>foo]]</span>=
13554 #### --------------- PRE ------------------
13555 #### 1. Leading space in SOL context should be escaped
13556 #### --------------------------------------
13558 1. Leading space in SOL context should be escaped
13562 <nowiki> foo</nowiki>
13563 <!--cmt--><nowiki> foo</nowiki>
13570 #### --------------- HTML tags ---------------
13573 #### 3. multi-line html tag
13574 #### --------------------------------------
13580 <a href="http://google.com">google</a>
13582 <a href="http://google.com">google</a>
13588 <nowiki><div>foo</div>
13589 <div style="color:red">foo</div></nowiki>
13591 <p><div>foo</div>
13592 <div style="color:red">foo</div>
13597 3. multi-line html tag
13609 #### --------------- Others ---------------
13613 <nowiki>foo</nowiki>
13615 <p><nowiki>foo</nowiki>
13620 Tag-like HTML structures are passed through as text
13642 </p><p>1<d e>f
13647 # This fails in the PHP parser (see bug 40670,
13648 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13650 Tag names followed by punctuation should not be recognized as tags
13656 <p><s.ome> text
13661 HTML tag with necessary entities in attributes
13663 <span title="&amp;">foo</span>
13665 <p><span title="&amp;">foo</span>
13670 HTML tag with 'unnecessary' entity encoding in attributes
13672 <span title="&">foo</span>
13674 <p><span title="&">foo</span>
13679 HTML tag with broken attribute value quoting
13681 <span title="Hello world>Foo</span>
13683 <p><span>Foo</span>
13688 Parsoid-only: HTML tag with broken attribute value quoting
13692 <span title="Hello world>Foo</span>
13694 <p><span title="Hello world">Foo</span>
13699 Table with broken attribute value quoting
13702 | title="Hello world|Foo
13713 Table with broken attribute value quoting on consecutive lines
13716 | title="Hello world|Foo
13717 | style="color:red|Bar
13730 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13735 | title="Hello world|Foo
13736 | style="color:red|Bar
13741 <td title="Hello world">Foo
13742 </td><td style="color: red">Bar
13748 Accept empty td cell attribute
13751 | align="center" | foo || |
13756 <td align="center"> foo </td>
13763 Non-empty attributes in th-cells
13766 ! Foo !! style="color: red" | Bar
13772 <th style="color: red"> Bar
13778 Accept empty attributes in th-cells
13793 Empty table rows go away
13818 Try for 100% code coverage