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 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
170 http://fr.wikipedia.org/wiki/🍺
171 <!-- EasterEgg we love beer, better be able be able to link to it -->
173 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
193 * plain''italic''plain
194 * plain''italic''plain''italic''plain
195 * plain'''bold'''plain
196 * plain'''bold'''plain'''bold'''plain
197 * plain''italic''plain'''bold'''plain
198 * plain'''bold'''plain''italic''plain
199 * plain''italic'''bold-italic'''italic''plain
200 * plain'''bold''bold-italic''bold'''plain
201 * plain'''''bold-italic'''italic''plain
202 * plain'''''bold-italic''bold'''plain
203 * plain''italic'''bold-italic'''''plain
204 * plain'''bold''bold-italic'''''plain
205 * plain l'''italic''plain
206 * plain l''''bold''' plain
209 </li><li> plain<i>italic</i>plain
210 </li><li> plain<i>italic</i>plain<i>italic</i>plain
211 </li><li> plain<b>bold</b>plain
212 </li><li> plain<b>bold</b>plain<b>bold</b>plain
213 </li><li> plain<i>italic</i>plain<b>bold</b>plain
214 </li><li> plain<b>bold</b>plain<i>italic</i>plain
215 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
216 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
217 </li><li> plain<i><b>bold-italic</b>italic</i>plain
218 </li><li> plain<b><i>bold-italic</i>bold</b>plain
219 </li><li> plain<i>italic<b>bold-italic</b></i>plain
220 </li><li> plain<b>bold<i>bold-italic</i></b>plain
221 </li><li> plain l'<i>italic</i>plain
222 </li><li> plain l'<b>bold</b> plain
228 ### 2-quote opening sequence tests
231 Italics and bold: 2-quote opening sequence: (2,2)
241 Italics and bold: 2-quote opening sequence: (2,3)
251 Italics and bold: 2-quote opening sequence: (2,4)
261 Italics and bold: 2-quote opening sequence: (2,5)
271 ### 3-quote opening sequence tests
275 Italics and bold: 3-quote opening sequence: (3,2)
285 Italics and bold: 3-quote opening sequence: (3,3)
295 Italics and bold: 3-quote opening sequence: (3,4)
305 Italics and bold: 3-quote opening sequence: (3,5)
315 ### 4-quote opening sequence tests
319 Italics and bold: 4-quote opening sequence: (4,2)
329 Italics and bold: 4-quote opening sequence: (4,3)
339 Italics and bold: 4-quote opening sequence: (4,4)
349 Italics and bold: 4-quote opening sequence: (4,5)
359 ### 5-quote opening sequence tests
363 Italics and bold: 5-quote opening sequence: (5,2)
373 Italics and bold: 5-quote opening sequence: (5,3)
383 Italics and bold: 5-quote opening sequence: (5,4)
387 <p><i><b>foo'</b></i>
393 Italics and bold: 5-quote opening sequence: (5,5)
402 ### multiple quote sequences in a line
405 Italics and bold: multiple quote sequences: (2,4,2)
409 <p><i>foo'<b>bar</b></i>
415 Italics and bold: multiple quote sequences: (2,4,3)
419 <p><i>foo'<b>bar</b></i>
425 Italics and bold: multiple quote sequences: (2,4,4)
429 <p><i>foo'<b>bar'</b></i>
435 Italics and bold: multiple quote sequences: (3,4,2)
445 Italics and bold: multiple quote sequences: (3,4,3)
454 ### other quote tests
457 Italics and bold: other quote tests: (2,3,5)
459 ''this is about '''foo's family'''''
461 <p><i>this is about <b>foo's family</b></i>
467 Italics and bold: other quote tests: (2,(3,3),2)
469 ''this is about '''foo's''' family''
471 <p><i>this is about <b>foo's</b> family</i>
477 Italics and bold: other quote tests: (3,2,3,2)
479 '''this is about ''foo'''s family''
481 <p><b>this is about <i>foo</i></b><i>s family</i>
487 Italics and bold: other quote tests: (3,2,3,3)
489 '''this is about ''foo'''s family'''
491 <p>'<i>this is about </i>foo<b>s family</b>
497 Italics and bold: other quote tests: (3,(2,2),3)
499 '''this is about ''foo's'' family'''
501 <p><b>this is about <i>foo's</i> family</b>
507 Italicized possessive
509 The ''[[Main Page]]'''s talk page.
511 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
516 ### <nowiki> test cases
520 <nowiki> unordered list
522 <nowiki>* This is not an unordered list item.</nowiki>
524 <p>* This is not an unordered list item.
531 <nowiki>Lorem ipsum dolor
552 :There is not nowiki.
553 :There is <nowiki>nowiki</nowiki>.
555 #There is not nowiki.
556 #There is <nowiki>nowiki</nowiki>.
558 *There is not nowiki.
559 *There is <nowiki>nowiki</nowiki>.
561 <dl><dd>There is not nowiki.
562 </dd><dd>There is nowiki.
564 <ol><li>There is not nowiki.
565 </li><li>There is nowiki.
567 <ul><li>There is not nowiki.
568 </li><li>There is nowiki.
574 Entities inside <nowiki>
576 <nowiki><</nowiki>
587 Comments and Indent-Pre
589 <!-- comment 1 --> asdf
591 <!-- comment 1 --> asdf
594 <!-- comment 1 --> asdf
595 <!-- comment 2 -->xyz
597 <!-- comment 1 --> asdf
598 <!-- comment 2 --> xyz
654 asdf<!-- comment 1 -->jkl
664 <!-- foo --> b <!-- bar -->
678 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
684 Comment semantics and delimiters
686 <!-- --><!----><!-----><!------>
692 Comment semantics and delimiters, redux
694 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
695 -- foo -- funky huh? ... -->
701 Comment semantics and delimiters: directors cut
703 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
704 everything starting with < followed by !-- until the first -- and > we see,
705 that wouldn't be valid XML however, since in XML -- has to terminate a comment
713 Comment semantics: nesting
715 <!--<!-- no, we're not going to do anything fancy here -->-->
722 Comment semantics: unclosed comment at end
724 <!--This comment will run out to the end of the document
730 Comment in template title
739 Comment on its own line post-expand
751 Comment on its own line post-expand with non-significant whitespace
763 ### paragraph wraping tests
777 Block tag on one line
789 Block tag on both lines
801 Multiple lines without block tags
819 Empty lines between block tags to test open p-tags are closed between the block tags
837 ### Preformatted text
846 And a [[Main Page|link]]
852 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
857 Ident preformatting with inline content
868 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
885 Regression with preformatted in <center>
898 # Expected output in the following test is not really expected (there should be
899 # <pre> in the output) -- it's only testing for well-formedness.
901 Bug 6200: Preformatted in <blockquote>
914 <pre> with attributes (bug 3202)
916 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
918 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
923 <pre> with width attribute (bug 3202)
925 <pre width="8">Narrow screen goodies</pre>
927 <pre width="8">Narrow screen goodies</pre>
932 <pre> with forbidden attribute (bug 3202)
934 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
936 <pre width="8">Narrow screen goodies</pre>
941 Entities inside <pre>
950 <pre> with forbidden attribute values (bug 3202)
952 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
954 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
959 <nowiki> inside <pre> (bug 13238)
967 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
975 <pre><nowiki>Foo</nowiki></pre>
980 <nowiki> and <pre> preference (first one wins)
1011 </pre> inside nowiki
1013 <nowiki></pre></nowiki>
1020 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1028 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1038 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1050 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1071 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1075 {{echo| foo}}{{echo| bar}}
1080 {{echo|<!--cmt--> foo}}
1082 <!--cmt-->{{echo| foo}}
1084 {{echo|{{echo| }}bar}}
1102 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1139 Templates: Single-line variant of parameter whitespace stripping test
1145 {{echo|{{echo| a}}}}
1147 {{echo|1={{echo| a}}}}
1160 Templates: Strip whitespace from named parameters, but not positional ones
1188 ### Parsoid-centric tests for testing RT edge cases for pre
1192 1a. Indent-Pre and Comments
1205 1b. Indent-Pre and Comments
1218 1c. Indent-Pre and Comments
1231 2a. Indent-Pre and tables
1252 2b. Indent-Pre and tables
1268 2c. Indent-Pre and tables (bug 42252)
1285 3a. Indent-Pre and block tags (single-line html)
1293 <pre><span> foo </span>
1298 3b. Indent-Pre and block tags (pre-content on separate line)
1350 4. Multiple spaces at start-of-line
1369 5. White-space in indent-pre
1370 NOTE: the white-space char on 2nd line is significant
1383 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1387 HTML-pre: 1. embedded newlines
1423 HTML-pre: 2: indented text
1436 HTML-pre: 3: other wikitext
1457 ### Definition lists
1464 <dl><dt> name </dt><dd> Definition
1470 Definition list for indentation only
1474 <dl><dd> Indented text
1480 Definition list with no space
1484 <dl><dt>name</dt><dd>Definition
1490 Definition list with URL link
1492 ; http://example.com/ : definition
1494 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1500 Definition list with bracketed URL link
1502 ;[http://www.example.com/ Example]:Something about it
1504 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1510 Definition list with wikilink containing colon
1512 ; [[Help:FAQ]]: The least-read page on Wikipedia
1514 <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
1519 # At Brion's and JeLuF's insistence... :)
1521 Definition list with news link containing colon
1523 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1525 <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!
1531 Malformed definition list with colon
1533 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1535 <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
1541 Definition lists: colon in external link text
1543 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1545 <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
1551 Definition lists: colon in HTML attribute
1553 ;<b style="display: inline">bold</b>
1555 <dl><dt><b style="display: inline">bold</b>
1561 Definition lists: self-closed tag
1563 ;one<br/>two : two-line fun
1565 <dl><dt>one<br />two </dt><dd> two-line fun
1571 Bug 11748: Literal closing tags
1575 <dd>test test test test test</dd>
1577 <dd>test test test test test</dd>
1582 <dd>test test test test test</dd>
1584 <dd>test test test test test</dd>
1590 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1593 ; term : description
1599 <dl><dt> term </dt><dd> description
1610 Definition list with empty definition and following paragraph
1615 <dl><dt> term</dt><dd>
1622 Nested definition lists using html syntax
1639 Definition Lists: No nesting: Multiple dd's
1653 Definition Lists: Indentation: Regular
1669 Definition Lists: Indentation: Missing 1st level
1683 Definition Lists: Indentation: Multi-level indent
1687 <dl><dd><dl><dd><dl><dd>i3
1695 Definition Lists: Hacky use to indent tables
1702 should be left alone
1704 <dl><dd><dl><dd><table>
1709 </td></tr></table></dd></dl></dd></dl>
1711 should be left alone
1714 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1715 ## as an empty dt item. It also ignores all but the last ";" when followed
1716 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1717 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1720 ## Ex: ";;t2 ::d2" is transformed into:
1732 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1733 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1744 ## All Parsoid only definition list tests have this difference.
1746 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1747 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1750 Table / list interaction: indented table with lists in table contents
1772 </td></tr></table></dd></dl>
1777 Table / list interaction: lists nested in tables nested in indented lists
1802 </td></tr></table></dd></dl>
1810 Definition Lists: Nesting: Multi-level (Parsoid only)
1840 Definition Lists: Nesting: Test 2 (Parsoid only)
1860 Definition Lists: Nesting: Test 3 (Parsoid only)
1888 Definition Lists: Nesting: Test 4
1893 <dl><dd><dl><dd><dl><dt>t3
1903 Definition Lists: Mixed Lists: Test 1
1909 <dl><dd><dl><dt><ul><li> foo
1921 Definition Lists: Mixed Lists: Test 2
1935 Definition Lists: Mixed Lists: Test 3
1940 <ul><li><dl><dd><dl><dd><dl><dd> d1
1951 Definition Lists: Mixed Lists: Test 4
1956 <ul><li><dl><dt>d1 </dt><dd>d2
1957 </dd><dt>d3 </dt><dd>d4
1965 Definition Lists: Mixed Lists: Test 5
1980 Definition Lists: Mixed Lists: Test 6
1985 <ol><li><ul><li><dl><dd>d1
1997 Definition Lists: Mixed Lists: Test 7
2011 Definition Lists: Mixed Lists: Test 8
2027 Definition Lists: Mixed Lists: Test 9
2031 <ul><li><dl><dt>foo </dt><dd>bar
2039 Definition Lists: Mixed Lists: Test 10
2043 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2052 Definition Lists: Mixed Lists: Test 11
2057 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2062 <dl><dt>boo </dt><dd>baz
2073 Definition Lists: Weird Ones: Test 1
2075 *#;*::;; foo : bar (who uses this?)
2077 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2093 External links: non-bracketed
2095 Non-bracketed: http://example.com
2097 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2102 External links: numbered
2104 Numbered: [http://example.com]
2105 Numbered: [http://example.net]
2106 Numbered: [http://example.com]
2108 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2109 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2110 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2115 External links: specified text
2117 Specified text: [http://example.com link]
2119 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2124 External links: trail
2126 Linktrails should not work for external links: [http://example.com link]s
2128 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2133 External links: dollar sign in URL
2135 http://example.com/1$2345
2137 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2142 External links: dollar sign in URL (named)
2144 [http://example.com/1$2345]
2146 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2151 External links: open square bracket forbidden in URL (bug 4377)
2153 http://example.com/1[2345
2155 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2160 External links: open square bracket forbidden in URL (named) (bug 4377)
2162 [http://example.com/1[2345]
2164 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2169 External links: nowiki in URL link text (bug 6230)
2171 [http://example.com/ <nowiki>''example site''</nowiki>]
2173 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2178 External links: newline forbidden in text (bug 6230 regression check)
2180 [http://example.com/ first
2183 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2189 External links: Pipe char between url and text
2191 [http://example.com | link]
2193 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2198 External links: protocol-relative URL in brackets
2200 [//example.com/ Test]
2202 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2207 External links: protocol-relative URL in brackets without text
2211 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2216 External links: protocol-relative URL in free text is left alone
2220 <p>//example.com/Foo
2225 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2227 foo//example.com/Foo
2229 <p>foo//example.com/Foo
2236 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2238 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2243 External image from https
2245 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2247 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2252 Link to non-http image, no img tag
2254 Link to non-http image, no img tag: ftp://example.com/test.jpg
2256 <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>
2261 External links: terminating separator
2263 Terminating separator: http://example.com/thing,
2265 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2270 External links: intervening separator
2272 Intervening separator: http://example.com/1,2,3
2274 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2279 External links: old bug with URL in query
2281 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2283 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2288 External links: old URL-in-URL bug, mixed protocols
2290 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2292 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2297 External links: URL in text
2299 URL in text: [http://example.com http://example.com]
2301 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2306 External links: Clickable images
2308 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2310 <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>
2315 External links: raw ampersand
2317 Old & use: http://x&y
2319 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2324 External links: encoded ampersand
2326 Old & use: http://x&y
2328 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2333 External links: encoded equals (bug 6102)
2335 http://example.com/?foo=bar
2337 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2342 External links: [raw ampersand]
2344 Old & use: [http://x&y]
2346 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2351 External links: [encoded ampersand]
2353 Old & use: [http://x&y]
2355 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2360 External links: [encoded equals] (bug 6102)
2362 [http://example.com/?foo=bar]
2364 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2369 External links: [IDN ignored character reference in hostname; strip it right off]
2371 [http://e‌xample.com/]
2373 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2377 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2378 # Where an external link could easily circumvent the sanitization of the text of
2379 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2380 # test demands a higher standard. That's a bit strange.
2384 # http://example.com -> [http://example.com|http://example.com]
2385 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2387 # The first example is sanitized, but the second is not. Any security benefits
2388 # from this production are trivial to circumvent. Either remove this test and
2389 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2390 # the test accordingly.
2395 External links: IDN ignored character reference in hostname; strip it right off
2397 http://e‌xample.com/
2399 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2404 External links: www.jpeg.org (bug 554)
2408 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2413 External links: URL within URL (original bug 2)
2415 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2417 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2422 BUG 361: URL inside bracketed URL
2424 [http://www.example.com/foo http://www.example.com/bar]
2426 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2431 BUG 361: URL within URL, not bracketed
2433 http://www.example.com/foo?=http://www.example.com/bar
2435 <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>
2440 BUG 289: ">"-token in URL-tail
2442 http://www.example.com/<hello>
2444 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2449 BUG 289: literal ">"-token in URL-tail
2451 http://www.example.com/<b>html</b>
2453 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2458 BUG 289: ">"-token in bracketed URL
2460 [http://www.example.com/<hello> stuff]
2462 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2467 BUG 289: literal ">"-token in bracketed URL
2469 [http://www.example.com/<b>html</b> stuff]
2471 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2476 BUG 289: literal double quote at end of URL
2478 http://www.example.com/"hello"
2480 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2485 BUG 289: literal double quote in bracketed URL
2487 [http://www.example.com/"hello" stuff]
2489 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2494 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2496 [http://www.example.com test]
2498 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2503 External links: link text with spaces
2505 [http://www.example.com a b c]
2506 [http://www.example.com ''a'' ''b'']
2508 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2509 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2514 External links: wiki links within external link (Bug 3695)
2516 [http://example.com [[wikilink]] embedded in ext link]
2518 <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>
2523 BUG 787: Links with one slash after the url protocol are invalid
2527 [http:/example.com title]
2529 <p>http:/example.com
2530 </p><p>[http:/example.com title]
2535 Bracketed external links with template-generated invalid target
2537 [{{echo|http:/example.com}} title]
2539 <p>[http:/example.com title]
2544 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2546 ''[http://example.com text'']
2547 [http://example.com '''text]'''
2548 ''Something [http://example.com in italic'']
2549 ''Something [http://example.com mixed''''', even bold]'''
2550 '''''Now [http://example.com both''''']
2552 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2553 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2554 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2555 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2556 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2562 Bug 4781: %26 in URL
2564 http://www.example.com/?title=AT%26T
2566 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2570 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2571 # % is actually legal in HTML5. Any change in output would need testing though.
2573 Bug 4781, 5267: %25 in URL
2575 http://www.example.com/?title=100%25_Bran
2577 <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>
2582 Bug 4781, 5267: %28, %29 in URL
2584 http://www.example.com/?title=Ben-Hur_%281959_film%29
2586 <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>
2592 Bug 4781: %26 in autonumber URL
2594 [http://www.example.com/?title=AT%26T]
2596 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2601 Bug 4781, 5267: %26 in autonumber URL
2603 [http://www.example.com/?title=100%25_Bran]
2605 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2610 Bug 4781, 5267: %28, %29 in autonumber URL
2612 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2614 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2620 Bug 4781: %26 in bracketed URL
2622 [http://www.example.com/?title=AT%26T link]
2624 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2629 Bug 4781, 5267: %26 in bracketed URL
2631 [http://www.example.com/?title=100%25_Bran link]
2633 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2638 Bug 4781, 5267: %28, %29 in bracketed URL
2640 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2642 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2647 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2649 Some [http://example.com/ pretty ''italics'' and stuff]!
2651 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2656 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2658 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2660 <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>
2665 External link containing double-single-quotes with no space separating the url from text in italics
2667 [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]].]
2669 <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>
2674 URL-encoding in URL functions (single parameter)
2676 {{localurl:Some page|amp=&}}
2678 <p>/index.php?title=Some_page&amp=&
2683 URL-encoding in URL functions (multiple parameters)
2685 {{localurl:Some page|q=?&=&}}
2687 <p>/index.php?title=Some_page&q=?&amp=&
2694 http://example.com/index.php?foozoid%5B%5D=bar
2696 http://example.com/index.php?foozoid[]=bar
2698 <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>
2699 </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>
2704 IPv6 urls (bug 21261)
2708 http://[2404:130:0:1000::187:2]/index.php
2710 <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>
2715 Non-extlinks in brackets
2724 [{{echo|foo}} ''bar'']
2725 [{{echo|foo}}l's] errand
2726 [{{echo|foo}}l's errand]
2728 [url=http://example.com]
2741 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
2752 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2754 Normal text. '''''Bold italic text.''''' Normal text.
2756 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2757 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2763 Unclosed and unmatched quotes
2765 '''''Bold italic text '''with bold deactivated''' in between.'''''
2767 '''''Bold italic text ''with italic deactivated'' in between.'''''
2771 ..spanning two paragraphs (should not work).'''
2773 '''Bold tag left open
2775 ''Italic tag left open
2779 <!-- Unmatching number of opening, closing tags: -->
2780 '''This year''''s election ''should'' beat '''last year''''s.
2782 ''Tom'''s car is bigger than ''Susan'''s.
2784 Plain ''italic'''s plain
2786 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2787 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2788 </p><p><b>Bold text..</b>
2789 </p><p>..spanning two paragraphs (should not work).
2790 </p><p><b>Bold tag left open</b>
2791 </p><p><i>Italic tag left open</i>
2793 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2794 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2795 </p><p>Plain <i>italic'</i>s plain
2802 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2805 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2806 # is the bare minimun required by the spec, see:
2807 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2809 A table with no data.
2815 # A table with nothing but a caption is invalid XHTML, we might want to render
2816 # this as <p>caption</p>
2818 A table with nothing but a caption
2826 </caption><tr><td></td></tr></table>
2831 A table with caption with default-spaced attributes and a table row
2834 |+ style="color: red;" | caption1
2840 <caption style="color: red;"> caption1
2849 A table with captions with non-default spaced attributes and a table row
2852 |+style="color: red;"|caption2
2853 |+ style="color: red;"| caption3
2859 <caption style="color: red;">caption2
2861 <caption style="color: red;"> caption3
2870 Table td-cell syntax variations
2874 | foo bar foo || baz
2875 | style='color:red;' | baz
2876 | style='color:red;' || baz
2883 <td> foo bar foo </td>
2886 <td style="color:red;"> baz
2888 <td> style='color:red;' </td>
2916 Simple table but with multiple dashes for row wikitext
2934 Multiplication table
2936 {| border="1" cellpadding="2"
2937 |+Multiplication table
2939 ! × !! 1 !! 2 !! 3
2957 <table border="1" cellpadding="2">
2958 <caption>Multiplication table
3005 Accept "||" in table headings
3020 Accept "||" in indented table headings
3030 </th></tr></table></dd></dl>
3035 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3052 Accept "| !" at start of line in tables (ignore !-attribute)
3056 | !style="color:red" | bar
3068 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 +/-
3072 |style='color:red;'|+1
3073 |style='color:blue;'|-1
3085 <td style="color:red;">+1
3087 <td style="color:blue;">-1
3111 |rowspan=2| Cell 2, row 1 (and 2)
3122 <td rowspan="2"> Cell 2, row 1 (and 2)
3140 {| bgcolor=#ABCDEF border=2
3145 |the original table again
3153 <table bgcolor="#ABCDEF" border="2">
3161 <td>the original table again
3167 Invalid attributes in table cell (bug 1830)
3182 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3185 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3189 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3190 <td>]" onmouseover="alert(document.cookie)">test
3199 Indented table markup mixed with indented pre content (proposed in bug 6200)
3204 Text that should be rendered preformatted
3212 <pre>Text that should be rendered preformatted
3221 Template-generated table cell attributes and cell content
3229 <td style="color: red"> Foo
3235 Table with row followed by newlines and table heading
3252 # FIXME: Preserve the attribute properly (with an empty string as value) in
3253 # the PHP parser. Parsoid implements the behavior below.
3255 Table attributes with empty value
3271 Wikitext table with a lot of comments
3297 Plain link, capitalized
3301 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3306 Plain link, uncapitalized
3310 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3317 [[Main Page|The Main Page]]
3319 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3328 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3333 Broken link with fragment
3335 [[Zigzagzogzagzig#zug]]
3337 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3342 Special page link with fragment
3344 [[Special:Version#anchor]]
3346 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3351 Nonexistent special page link with fragment
3353 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3355 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3362 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3364 <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>
3371 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3373 <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>!!!
3384 Bug 43661: Piped links with identical prefixes
3386 [[prefixed article|prefixed articles with spaces]]
3388 [[prefixed article|prefixed articlesaoeu]]
3390 [[Main Page|Main Page test]]
3392 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3393 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3394 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3400 Link with HTML entity in suffix / tail
3402 [[Main Page]]", [[Main Page]]a
3404 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3409 Link with 3 brackets
3418 Piped link with 3 brackets
3420 [[[main page|the main page]]]
3422 <p>[[[main page|the main page]]]
3427 Link with multiple pipes
3429 [[Main Page|The|Main|Page]]
3431 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3438 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3440 <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>
3445 Piped link to namespace
3447 [[Meta:Disclaimers|The disclaimers]]
3449 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3456 [[Usually caused by a typo (oops}]]
3458 <p>[[Usually caused by a typo (oops}]]
3463 Link containing % (not as a hex sequence)
3467 <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>
3472 Link containing % as a single hex sequence interpreted to char
3476 <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>
3481 Link containing % as a double hex sequence interpreted to hex sequence
3485 <p>[[7%2525 Solution]]
3490 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3491 Example for such a section: == < ==
3493 [[%23%3c]][[%23%3e]]
3495 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3500 Link containing "<#" and ">#" as a hex sequences
3502 [[%3c%23]][[%3e%23]]
3504 <p>[[%3c%23]][[%3e%23]]
3509 Link containing double-single-quotes '' (bug 4598)
3511 [[Lista d''e paise d''o munno]]
3513 <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>
3518 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3520 Some [[Link|pretty ''italics'' and stuff]]!
3522 <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>!
3527 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3529 ''Some [[Link|pretty ''italics'' and stuff]]!
3531 <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>
3536 Link with double quotes in title part (literal) and alternate part (interpreted)
3538 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3542 [[''Pentecoste''|Pentecoste]]
3544 [[''Pentecoste''|''Pentecoste'']]
3546 <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>
3547 </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>
3548 </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>
3549 </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>
3554 Broken image links with HTML captions (bug 39700)
3556 [[File:Nonexistent|<script></script>]]
3557 [[File:Nonexistent|100px|<script></script>]]
3558 [[File:Nonexistent|<]]
3559 [[File:Nonexistent|a<i>b</i>c]]
3561 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3562 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3563 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3564 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3571 [[http://www.example.com]]
3573 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3578 Plain link to URL with link text
3580 [[http://www.example.com Link text]]
3582 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3587 Plain link to protocol-relative URL
3589 [[//www.example.com]]
3591 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3596 Plain link to protocol-relative URL with link text
3598 [[//www.example.com Link text]]
3600 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3605 Plain link to page with question mark in title
3611 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3612 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3617 # I'm fairly sure the expected result here is wrong.
3618 # We want these to be URL links, not pseudo-pages with URLs for titles....
3619 # However the current output is also pretty screwy.
3622 # I'm changing it to match the current output--it arguably makes more
3623 # sense in the light of the test above. Old expected result was:
3624 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3626 # But I think this test is bordering on "garbage in, garbage out" anyway.
3631 Piped link to URL: [[http://www.example.com|an example URL]]
3633 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3638 BUG 2: [[page|http://url/]] should link to page, not http://url/
3640 [[Main Page|http://url/]]
3642 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3647 BUG 337: Escaped self-links should be bold
3651 [[Bug462]] [[Bug462]]
3653 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3658 Self-link to section should not be bold
3662 [[Main Page#section]]
3664 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3675 Self-link to numeric title
3681 <p><strong class="selflink">0</strong>
3686 Link to numeric-equivalent title
3692 <p><a href="/wiki/00" title="00">00</a>
3697 <nowiki> inside a link
3699 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3701 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3706 Non-breaking spaces in title
3708 [[ Main Page ]]
3710 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3715 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3721 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3726 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3732 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3737 Internal link with en linktrail: no apostrophes (bug 27473)
3743 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3748 Internal link with ca linktrail with apostrophes (bug 27473)
3754 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3759 Internal link with kaa linktrail with apostrophes (bug 27473)
3765 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3770 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3778 [http://wp.org ''foo'']
3780 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3781 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3782 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3783 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3788 ### Interwiki links (see maintenance/interwiki.sql)
3792 Inline interwiki link
3794 [[MeatBall:SoftSecurity]]
3796 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3801 Inline interwiki link with empty title (bug 2372)
3805 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3810 Interwiki link encoding conversion (bug 1636)
3812 *[[Wikipedia:ro:Olteniţa]]
3813 *[[Wikipedia:ro:Olteniţa]]
3815 <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>
3816 </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>
3822 Interwiki link with fragment (bug 2130)
3824 [[MeatBall:SoftSecurity#foo]]
3826 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3841 Double interlanguage link
3852 Interlanguage link, with prefix links
3864 Double interlanguage link, with prefix links (bug 8897)
3877 Parsoid-specific test: Wikilinks with should RT properly
3883 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3901 Broken br tag sanitization
3910 Incorrecly removing closing slashes from correctly formed XHTML
3912 <br style="clear:both;" />
3914 <p><br style="clear:both;" />
3919 Failing to transform badly formed HTML into correct XHTML
3921 <br style="clear: left;">
3922 <br style="clear: right;">
3923 <br style="clear: both;">
3925 <p><br style="clear: left;" />
3926 <br style="clear: right;" />
3927 <br style="clear: both;" />
3932 Handling html with a div self-closing tag
3941 <p><div title />
3945 <p><div title=bar />
3946 <div title=bar/>
3948 <div title="bar/"></div>
3954 Handling html with a br self-closing tag
3963 <p><br title="title" />
3964 <br title="title" />
3973 Horizontal ruler (should it add that extra space?)
3987 Horizontal ruler -- 4+ dashes render hr
3996 Horizontal ruler -- eats additional dashes on the same line
4005 Horizontal ruler -- does not collaps dashes on consecutive lines
4016 Horizontal ruler -- <4 dashes render as plain text
4025 Horizontal ruler -- Supports content following dashes on same line
4034 ### Block-level elements
4057 <ol><li>Numbered list
4074 ***#Number on level 4
4076 **#Number on level 3
4077 **#Number on level 3
4081 #** Level 3, but ordered
4084 <ol><li> with numbers
4086 <ul><li> and bullets
4088 <ol><li> and numbers
4090 </li><li>bullets again
4091 <ul><li>bullet level 2
4092 <ul><li>bullet level 3
4093 <ol><li>Number on level 4
4096 </li><li>bullet level 2
4097 <ol><li>Number on level 3
4098 </li><li>Number on level 3
4101 <ol><li>number level 2
4104 <ul><li><ul><li> Level 3
4108 <ol><li><ul><li><ul><li> Level 3, but ordered
4142 Nested lists 3 (first element empty)
4155 Nested lists 4 (first element empty)
4168 Nested lists 5 (both elements empty)
4181 Nested lists 6 (both elements empty)
4194 Nested lists 7 (skip initial nesting levels)
4198 <ul><li><ul><li><ul><li> foo
4206 Nested lists 8 (multiple nesting transitions)
4214 <ul><li><ul><li> bar
4224 1. Lists with start-of-line-transparent tokens before bullets: Comments
4238 2. Lists with start-of-line-transparent tokens before bullets: Template close
4250 Unbalanced closing block tags break a list
4251 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4261 </li></ul></div><div>
4267 Unbalanced closing non-block tags don't break a list
4268 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4278 <ul><li>a<span></span>
4284 Unclosed formatting tags that straddle lists are closed and reopened
4285 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4293 </li><li> <s> b </s>
4298 List embedded in a non-block tag
4299 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4307 <p><small></small></p>
4313 <p><small></small></p>
4317 List items are not parsed correctly following a <pre> block (bug 785)
4323 <ul><li> <pre>foo</pre>
4324 </li><li> <pre>bar</pre>
4331 List items from template
4342 * notSOL{{inner list}}
4361 List interrupted by empty line or heading
4371 <ul><li><ul><li> bar
4374 <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>
4375 <ul><li> Another list item
4381 Multiple list tags generated by templates
4400 Magic Word: {{CURRENTDAY}}
4409 Magic Word: {{CURRENTDAY2}}
4418 Magic Word: {{CURRENTDAYNAME}}
4427 Magic Word: {{CURRENTDOW}}
4436 Magic Word: {{CURRENTMONTH}}
4445 Magic Word: {{CURRENTMONTHABBREV}}
4447 {{CURRENTMONTHABBREV}}
4454 Magic Word: {{CURRENTMONTHNAME}}
4456 {{CURRENTMONTHNAME}}
4463 Magic Word: {{CURRENTMONTHNAMEGEN}}
4465 {{CURRENTMONTHNAMEGEN}}
4472 Magic Word: {{CURRENTTIME}}
4481 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4490 Magic Word: {{CURRENTYEAR}}
4499 Magic Word: {{FULLPAGENAME}}
4501 title=[[User:Ævar Arnfjörð Bjarmason]]
4505 <p>User:Ævar Arnfjörð Bjarmason
4510 Magic Word: {{FULLPAGENAMEE}}
4512 title=[[User:Ævar Arnfjörð Bjarmason]]
4516 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4521 Magic Word: {{NAMESPACE}}
4523 title=[[User:Ævar Arnfjörð Bjarmason]]
4532 Magic Word: {{NAMESPACEE}}
4534 title=[[User:Ævar Arnfjörð Bjarmason]]
4543 Magic Word: {{NAMESPACENUMBER}}
4545 title=[[User:Ævar Arnfjörð Bjarmason]]
4554 Magic Word: {{NUMBEROFFILES}}
4563 Magic Word: {{PAGENAME}}
4565 title=[[User:Ævar Arnfjörð Bjarmason]]
4569 <p>Ævar Arnfjörð Bjarmason
4574 Magic Word: {{PAGENAME}} with metacharacters
4576 title=[['foo & bar = baz']]
4580 <p><i>'foo & bar = baz'</i>
4585 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4587 title=[[*RFC 1234 http://example.com/]]
4591 <p>*RFC 1234 http://example.com/
4596 Magic Word: {{PAGENAMEE}}
4598 title=[[User:Ævar Arnfjörð Bjarmason]]
4602 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4607 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4609 title=[[*RFC 1234 http://example.com/]]
4613 <p>*RFC_1234_http://example.com/
4618 Magic Word: {{REVISIONID}}
4627 Magic Word: {{SCRIPTPATH}}
4636 Magic Word: {{SERVER}}
4640 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
4645 Magic Word: {{SERVERNAME}}
4654 Magic Word: {{SITENAME}}
4663 Namespace 1 {{ns:1}}
4672 Namespace 1 {{ns:01}}
4681 Namespace 0 {{ns:0}} (bug 4783)
4689 Namespace 0 {{ns:00}} (bug 4783)
4697 Namespace -1 {{ns:-1}}
4706 Namespace User {{ns:User}}
4715 Namespace User talk {{ns:User_talk}}
4724 Namespace User talk {{ns:uSeR tAlK}}
4733 Namespace File {{ns:File}}
4742 Namespace File {{ns:Image}}
4751 Namespace (lang=de) Benutzer {{ns:User}}
4762 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4768 <p>Benutzer Diskussion
4776 {{urlencode:hi world?!}}
4777 {{urlencode:hi world?!|WIKI}}
4778 {{urlencode:hi world?!|PATH}}
4779 {{urlencode:hi world?!|QUERY}}
4792 Magic links: internal link to RFC (bug 479)
4796 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4801 Magic links: RFC (bug 479)
4805 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4810 Magic links: ISBN (bug 1937)
4814 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4819 Magic links: PMID incorrectly converts space to underscore
4823 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4832 Nonexistent template
4834 {{thistemplatedoesnotexist}}
4836 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4841 Template with invalid target containing tags
4843 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4845 <p>{{a<b>b</b>|foo|a=b|a = b}}
4850 Template with invalid target containing unclosed tag
4852 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4854 <p>{{a<b>|foo|a=b|a = b}}</b>
4861 This is a test template
4869 <p>This is a test template
4874 Template with explicit namespace
4878 <p>This is a test template
4886 This is a test template with parameter {{{param}}}
4892 {{paramtest|param=foo}}
4894 <p>This is a test template with parameter foo
4899 Template:paramtestnum
4905 Template unnamed parameter
4907 {{paramtestnum|Main Page|the main page}}
4909 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4914 Template:templatesimple
4920 Template:templateredirect
4922 #redirect [[Template:templatesimple]]
4926 Template:templateasargtestnum
4932 Template:templateasargtest
4934 {{template{{{templ}}}}}
4938 Template:templateasargtest2
4944 Template with template name as unnamed argument
4946 {{templateasargtestnum|templatesimple}}
4953 Template with template name as argument
4955 {{templateasargtest|templ=simple}}
4962 Template with template name as argument (2)
4964 {{templateasargtest2|templ=templatesimple}}
4971 Template:templateasargtestdefault
4973 {{{{{templ|templatesimple}}}}}
4983 Template with default value
4985 {{templateasargtestdefault}}
4992 Template with default value (value set)
4994 {{templateasargtestdefault|templ=templa}}
5003 {{templateredirect}}
5010 Template with argument in separate line
5012 {{ templateasargtest |
5020 Template with complex template as argument
5023 param ={{ templateasargtest |
5026 <p>This is a test template with parameter (test)
5031 Template with thumb image (with link in description)
5034 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5036 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>
5041 Template:complextemplate
5043 {{{1}}} {{paramtest|
5044 param ={{{param}}}}}
5048 Template with complex arguments
5051 param ={{ templateasargtest |
5052 templ = simple }}|[[Template:complextemplate|link]]}}
5054 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5059 BUG 553: link with two variables in a piped link
5062 |[[{{{1}}}|{{{2}}}]]
5067 <td>[[{{{1}}}|{{{2}}}]]
5073 Magic variable as template parameter
5075 {{paramtest|param={{SITENAME}}}}
5077 <p>This is a test template with parameter MediaWiki
5084 [[{{{param}}}|link]]
5088 Template parameter as link source
5090 {{linktest|param=Main Page}}
5092 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5097 Template-generated attribute string (k='v')
5099 <span {{attr_str|id|v1}}>bar</span>
5101 <p><span id="v1">bar</span>
5108 including another template, {{paramtest|param={{{arg}}}}}
5112 Template passing argument to another template
5114 {{paramtest2|arg='hmm'}}
5116 <p>including another template, This is a test template with parameter 'hmm'
5127 Template as link source
5131 [[{{linktest2}}|Main Page]]
5133 [[{{linktest2}}]]Page
5135 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5136 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5137 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5155 Template infinite loop
5159 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5164 Template from main namespace
5183 BUG 529: Template with table, not included at beginning of line
5202 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5222 BUG 41: Template parameters shown as broken links
5231 Template with targets containing wikilinks
5235 {{[[{{echo|foo}}]]}}
5237 {{{{echo|[[foo}}]]}}
5239 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5240 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5248 ''None'' of '''this''' should be
5250 but rather passed unmodified
5254 # hmm, fix this or just deprecate msgnw and document its behavior?
5260 {{msgnw:MSGNW test}}
5262 <p>''None'' of '''this''' should be
5264 but rather passed unmodified
5272 {{int:youhavenewmessages|lots of money|not!}}
5274 <p>You have lots of money (not!).
5281 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5285 <includeonly> and <noinclude> being included
5296 <onlyinclude>Foo</onlyinclude>bar
5300 <onlyinclude> being included
5312 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5316 <onlyinclude> and <includeonly> being included
5325 <includeonly> and <noinclude> on a page
5327 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5334 Un-closed <noinclude>
5341 <onlyinclude> on a page
5343 <onlyinclude>Foo</onlyinclude>bar
5350 Un-closed <onlyinclude>
5357 Self-closed noinclude, includeonly, onlyinclude tags
5368 Unbalanced includeonly and noinclude tags
5372 |b</noinclude></noinclude>
5373 |c</noinclude></includeonly>
5374 |d</includeonly></includeonly>
5383 <td>c</includeonly>
5385 <td>d</includeonly></includeonly>
5391 Template:Includeonly section
5394 ==Includeonly section==
5400 Bug 6563: Edit link generation for section shown by <includeonly>
5402 {{includeonly section}}
5404 <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>
5405 <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>
5409 # Uses same input as the contents of [[Template:Includeonly section]]
5411 Bug 6563: Section extraction for section shown by <includeonly>
5416 ==Includeonly section==
5424 Bug 6563: Edit link generation for section suppressed by <includeonly>
5427 ==Includeonly section==
5431 <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>
5436 Bug 6563: Section extraction for section suppressed by <includeonly>
5441 ==Includeonly section==
5449 Un-closed <includeonly>
5456 ### <includeonly> and <noinclude> in attributes
5459 0. includeonly around the entire attribute
5461 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5463 <p><span id="v2">bar</span>
5468 1. includeonly in html attr key
5470 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5472 <p><span id="foo">bar</span>
5477 2. includeonly in html attr value
5479 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5480 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5482 <p><span id="v1">bar</span>
5483 <span id="v1">bar</span>
5488 3. includeonly in part of an attr value
5490 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5492 <p><span style="color:red;">bar</span>
5497 ### Testing parsing of templates where a template arg
5498 ### has the same name as the template itself.
5508 Templates: Template Name/Arg clash: 1. Use of positional param
5517 Templates: Template Name/Arg clash: 2. Use of named param
5526 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5535 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5539 Templates: 1. Simple use
5548 Templates: 2. Inside a block tag
5550 <div>{{echo|Foo}}</div>
5557 Templates: P-wrapping: 1a. Templates on consecutive lines
5568 Templates: P-wrapping: 1b. Templates on consecutive lines
5582 Templates: P-wrapping: 1c. Templates on consecutive lines
5585 {{echo|bar}} <div>baz</div>
5594 Templates: Inline Text: 1. Multiple tmeplate uses
5596 {{echo|Foo}}bar{{echo|baz}}
5603 Templates: Inline Text: 2. Back-to-back template uses
5605 {{echo|Foo}}{{echo|bar}}
5612 Templates: Block Tags: 1. Multiple template uses
5614 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5616 <div>Foo</div><div>bar</div><div>baz</div>
5621 Templates: Block Tags: 2. Back-to-back template uses
5623 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5625 <div>Foo</div><div>bar</div>
5630 Templates: Links: 1. Simple example
5632 {{echo|[[Foo|bar]]}}
5634 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5639 Templates: Links: 2. Generation of link href
5641 [[{{echo|Foo}}|bar]]
5643 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5648 Templates: Links: 3. Generation of part of a link href
5650 [[Fo{{echo|o}}|bar]]
5654 [[Foo{{echo|bar}}baz]]
5656 [[Foo{{echo|bar}}|bar]]
5658 [[:Foo{{echo|bar}}]]
5660 [[:Foo{{echo|bar}}|bar]]
5662 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5663 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5664 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5665 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5666 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5667 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5672 Templates: Links: 4. Multiple templates generating link href
5674 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5676 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5681 Templates: Links: 5. Generation of link text
5683 [[Foo|{{echo|bar}}]]
5685 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5690 Templates: Links: 5. Nested templates (only outermost template should be marked)
5692 {{echo|[[{{echo|Foo}}|bar]]}}
5694 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5699 Templates: HTML Tag: 1. Generation of HTML attr. key
5701 <div {{echo|style}}="color:red;">foo</div>
5703 <div style="color:red;">foo</div>
5708 Templates: HTML Tag: 2. Generation of HTML attr. value
5710 <div style={{echo|'color:red;'}}>foo</div>
5712 <div style="color:red;">foo</div>
5717 Templates: HTML Tag: 3. Generation of HTML attr key and value
5719 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5721 <div style="color:red;">foo</div>
5726 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5728 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5730 <div title="This is a long title with just one piece templated">foo</div>
5735 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5737 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5739 <div title="This is a long title with just one piece templated">foo</div>
5744 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5746 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5748 <div title="This is a long title with just one piece templated">foo</div>
5753 Templates: HTML Tables: 1. Generating start of a HTML table
5755 {{echo|<table><tr><td>foo</td>}}</tr></table>
5757 <table><tr><td>foo</td></tr></table>
5762 Templates: HTML Tables: 2a. Generating middle of a HTML table
5764 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5766 <table><tr><td>foo</td></tr></table>
5771 Templates: HTML Tables: 2b. Generating middle of a HTML table
5773 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5775 <table><tr><td>foo</td></tr></table>
5780 Templates: HTML Tables: 3. Generating end of a HTML table
5782 <table><tr>{{echo|<td>foo</td></tr></table>}}
5784 <table><tr><td>foo</td></tr></table>
5789 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5791 {{echo|<table>}}<tr><td>foo</td></tr></table>
5793 <table><tr><td>foo</td></tr></table>
5798 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5800 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5802 <table><tr><td>foo</td></tr></table>
5807 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5809 <table><tr>{{echo|<td>}}foo</td></tr></table>
5811 <table><tr><td>foo</td></tr></table>
5816 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5818 <table><tr><td>foo{{echo|</td>}}</tr></table>
5820 <table><tr><td>foo</td></tr></table>
5825 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5827 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5829 <table><tr><td>foo</td></tr></table>
5834 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5836 <table><tr><td>foo</td></tr>{{echo|</table>}}
5838 <table><tr><td>foo</td></tr></table>
5843 Templates: Wiki Tables: 1a. Fostering of entire template content
5851 <tr><td></td></tr></table>
5856 Templates: Wiki Tables: 1b. Fostering of entire template content
5869 <tr><td></td></tr></table>
5874 Templates: Wiki Tables: 2. Fostering of partial template content
5884 <tr><td></td></tr></table>
5889 Templates: Wiki Tables: 3. td-content via multiple templates
5892 {{echo|{{pipe}}a}}{{echo|b}}
5903 Templates: Wiki Tables: 4. Templated tags, no content
5909 <tr><td></td></tr></table>
5914 Templates: Wiki Tables: 5. Templated tags, regular td-tags
5928 Templates: Wiki Tables: 6. Templated tags, templated td-tags
5942 Templates: Lists: Multi-line list-items via templates
5944 *{{echo|a {{nonexistent|
5946 *{{echo|b {{nonexistent|
5949 <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>
5950 </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>
5956 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5958 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5960 <p><i>ab</i>c<i>d</i>e
5965 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5966 (PHP parser generates misnested html)
5970 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5972 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5976 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5977 (PHP parser generates misnested html)
5981 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5984 <div><i>b</i>c<i>d</i></div>
5989 Templates: Ugly nesting: 4. Divs opened/closed across templates
5991 a<div>b{{echo|c</div>d}}e
5998 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6004 |{{echo|foo</table>}}
6008 <table about="#mwt1" typeof="mw:Object/Template ">
6009 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
6010 bar</span><span about="#mwt1">
6015 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6025 <td>1. {{echo|foo </table>}}</td>
6027 <td>2. {{echo|baz </table>}}</td>
6040 <table about="#mwt1" typeof="mw:Object/Template">
6045 <td >1. foo </td></tr></tbody></table></td>
6047 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6048 </span><span about="#mwt1">
6050 abc</span><span about="#mwt1">
6051 </span><span about="#mwt1">
6052 </span><span about="#mwt1">
6053 </span><span about="#mwt1">
6054 </span><span about="#mwt1">
6056 xyz</span><span about="#mwt1">
6057 </span><span about="#mwt1">
6062 Templates: Ugly templates: 3. newline-only template parameter
6071 # This looks like a bug: a single newline triggers p/br for some reason.
6073 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6084 Parser Functions: 1. Simple example
6093 Parser Functions: 2. Nested use (only outermost should be marked up)
6102 ### Pre-save transform tests
6105 pre-save transform: subst:
6111 This is a test template
6115 pre-save transform: normal template
6125 pre-save transform: nonexistent template
6129 {{thistemplatedoesnotexist}}
6131 {{thistemplatedoesnotexist}}
6136 pre-save transform: subst magic variables
6145 # This is bug 89, which I fixed. -- wtm
6147 pre-save transform: subst: templates with parameters
6151 {{subst:paramtest|param="something else"}}
6153 This is a test template with parameter "something else"
6159 <nowiki>'''not wiki'''</nowiki>
6163 pre-save transform: nowiki in subst (bug 1188)
6167 {{subst:nowikitest}}
6169 <nowiki>'''not wiki'''</nowiki>
6174 Template:commenttest
6176 This template has <!-- a comment --> in it.
6180 pre-save transform: comment in subst (bug 1936)
6184 {{subst:commenttest}}
6186 This template has <!-- a comment --> in it.
6190 pre-save transform: unclosed tag
6194 <nowiki>'''not wiki'''
6196 <nowiki>'''not wiki'''
6200 pre-save transform: mixed tag case
6204 <NOwiki>'''not wiki'''</noWIKI>
6206 <NOwiki>'''not wiki'''</noWIKI>
6210 pre-save transform: unclosed comment in <nowiki>
6214 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6216 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6222 <span onmouseover="alert('crap')">Oh no</span>
6226 (confirming safety of fix for subst bug 1936)
6228 {{Template:dangerous}}
6230 <p><span>Oh no</span>
6235 pre-save transform: comment containing gallery (bug 5024)
6239 <!-- <gallery>data</gallery> -->
6241 <!-- <gallery>data</gallery> -->
6245 pre-save transform: comment containing extension
6249 <!-- <tag>data</tag> -->
6251 <!-- <tag>data</tag> -->
6255 pre-save transform: comment containing nowiki
6259 <!-- <nowiki>data</nowiki> -->
6261 <!-- <nowiki>data</nowiki> -->
6265 pre-save transform: <noinclude> in subst (bug 3298)
6275 pre-save transform: <onlyinclude> in subst (bug 3298)
6287 {{<includeonly>subst:</includeonly>Includes}}
6291 Template:SafeSubstTest
6293 {{<includeonly>safesubst:</includeonly>Includes}}
6297 bug 22297: safesubst: works during PST
6301 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6307 bug 22297: safesubst: works during normal parse
6316 subst: does not work during normal parse
6320 <p>{{subst:Includes}}
6325 pre-save transform: context links ("pipe trick")
6329 [[Article (context)|]]
6332 [[Bar:Article (context)|]]
6333 [[:Bar:Article (context)|]]
6335 [[|Article (context)]]
6339 [[Article (context)|Article]]
6340 [[Bar:Article|Article]]
6341 [[:Bar:Article|Article]]
6342 [[Bar:Article (context)|Article]]
6343 [[:Bar:Article (context)|Article]]
6345 [[Article (context)]]
6346 [[Bar:X (Y) Z|X (Y) Z]]
6347 [[:Bar:X (Y) Z|X (Y) Z]]
6351 pre-save transform: context links ("pipe trick") with interwiki prefix
6355 [[interwiki:Article|]]
6356 [[:interwiki:Article|]]
6357 [[interwiki:Bar:Article|]]
6358 [[:interwiki:Bar:Article|]]
6360 [[interwiki:Article|Article]]
6361 [[:interwiki:Article|Article]]
6362 [[interwiki:Bar:Article|Bar:Article]]
6363 [[:interwiki:Bar:Article|Bar:Article]]
6367 pre-save transform: context links ("pipe trick") with parens in title
6369 pst title=[[Somearticle (context)]]
6373 [[Article (context)|Article]]
6377 pre-save transform: context links ("pipe trick") with comma in title
6379 pst title=[[Someplace, Somewhere]]
6382 [[Otherplace, Elsewhere|]]
6383 [[Otherplace, Elsewhere, Anywhere|]]
6385 [[Otherplace, Somewhere|Otherplace]]
6386 [[Otherplace, Elsewhere|Otherplace]]
6387 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6391 pre-save transform: context links ("pipe trick") with parens and comma
6393 pst title=[[Someplace (IGNORED), Somewhere]]
6396 [[Otherplace (place), Elsewhere|]]
6398 [[Otherplace, Somewhere|Otherplace]]
6399 [[Otherplace (place), Elsewhere|Otherplace]]
6403 pre-save transform: context links ("pipe trick") with comma and parens
6405 pst title=[[Who, me? (context)]]
6408 [[Me, Myself, and I (1937 song)|]]
6410 [[Yes, you. (context)|Yes, you.]]
6411 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6415 pre-save transform: context links ("pipe trick") with namespace
6417 pst title=[[Ns:Somearticle]]
6421 [[Ns:Article|Article]]
6425 pre-save transform: context links ("pipe trick") with namespace and parens
6427 pst title=[[Ns:Somearticle (context)]]
6431 [[Ns:Article (context)|Article]]
6435 pre-save transform: context links ("pipe trick") with namespace and comma
6437 pst title=[[Ns:Somearticle, Context, Whatever]]
6441 [[Ns:Article, Context, Whatever|Article]]
6445 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6447 pst title=[[Ns:Somearticle, Context (context)]]
6451 [[Ns:Article (context)|Article]]
6455 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6457 pst title=[[Ns:Somearticle (IGNORED), Context]]
6461 [[Ns:Article, Context|Article]]
6465 pre-save transform: context links ("pipe trick") with full-width parens and no 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)]]
6481 [[:Bar:X(Y)Z|X(Y)Z]]
6485 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese 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)]]
6500 [[Bar:X (Y) Z|X (Y) Z]]
6501 [[:Bar:X (Y) Z|X (Y) Z]]
6505 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6509 [[Article(context)|]]
6510 [[Bar:Article(context)|]]
6511 [[:Bar:Article(context)|]]
6512 [[|Article(context)]]
6516 [[Article(context)|Article]]
6517 [[Bar:Article(context)|Article]]
6518 [[:Bar:Article(context)|Article]]
6519 [[Article(context)]]
6521 [[:Bar:X(Y)Z|X(Y)Z]]
6525 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6529 [[Article (context), context|]]
6530 [[Article (context),context|]]
6531 [[Bar:Article (context), context|]]
6532 [[Bar:Article (context),context|]]
6533 [[:Bar:Article (context), context|]]
6534 [[:Bar:Article (context),context|]]
6536 [[Article (context), context|Article]]
6537 [[Article (context),context|Article]]
6538 [[Bar:Article (context), context|Article]]
6539 [[Bar:Article (context),context|Article]]
6540 [[:Bar:Article (context), context|Article]]
6541 [[:Bar:Article (context),context|Article]]
6545 pre-save transform: trim trailing empty lines
6549 Empty lines are trimmed
6555 Empty lines are trimmed
6559 pre-save transform: Signature expansion
6564 * <noinclude>~~~</noinclude>
6565 * <includeonly>~~~</includeonly>
6566 * <onlyinclude>~~~</onlyinclude>
6568 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6569 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6570 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6571 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6576 pre-save transform: Signature expansion in nowiki tags (bug 93)
6582 <nowiki>~~~~</nowiki>
6584 <includeonly><nowiki>~~~~</nowiki></includeonly>
6586 <noinclude><nowiki>~~~~</nowiki></noinclude>
6588 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6590 {{subst:Foo}} shall be converted to FOO
6592 As well as inside noinclude/onlyinclude
6593 <noinclude>{{subst:Foo}}</noinclude>
6594 <onlyinclude>{{subst:Foo}}</onlyinclude>
6596 But not inside includeonly
6597 <includeonly>{{subst:Foo}}</includeonly>
6601 <nowiki>~~~~</nowiki>
6603 <includeonly><nowiki>~~~~</nowiki></includeonly>
6605 <noinclude><nowiki>~~~~</nowiki></noinclude>
6607 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6609 FOO shall be converted to FOO
6611 As well as inside noinclude/onlyinclude
6612 <noinclude>FOO</noinclude>
6613 <onlyinclude>FOO</onlyinclude>
6615 But not inside includeonly
6616 <includeonly>{{subst:Foo}}</includeonly>
6620 ### Message transform tests
6623 message transform: magic variables
6633 message transform: should not transform wiki markup
6643 message transform: <noinclude> in transcluded template (bug 4926)
6653 message transform: <onlyinclude> in transcluded template (bug 4926)
6663 {{#special:}} page name, known
6667 {{#special:Recentchanges}}
6669 Special:RecentChanges
6673 {{#special:}} page name with subpage, known
6677 {{#special:Recentchanges/param}}
6679 Special:RecentChanges/param
6683 {{#special:}} page name, unknown
6687 {{#special:foobarnonexistent}}
6689 No such special page
6693 {{#speciale:}} page name, known
6697 {{#speciale:Recentchanges}}
6699 Special:RecentChanges
6703 {{#speciale:}} page name with subpage, known
6707 {{#speciale:Recentchanges/param}}
6709 Special:RecentChanges/param
6713 {{#speciale:}} page name, unknown
6717 {{#speciale:foobarnonexistent}}
6719 No_such_special_page
6728 [[Image:foobar.jpg]]
6730 <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>
6737 [[Image:foobar.jpg|right]]
6739 <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>
6744 Simple image (using File: namespace, now canonical)
6748 <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>
6755 [[Image:foobar.jpg|right|Caption text]]
6757 <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>
6762 Image with empty attribute
6764 [[Image:foobar.jpg|right||Caption text]]
6766 <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>
6771 Image with link tails
6773 123[[Image:foobar.jpg]]456
6774 123[[Image:foobar.jpg|right]]456
6775 123[[Image:foobar.jpg|thumb]]456
6777 <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
6779 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
6780 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
6785 Image with multiple captions -- only last one is accepted
6787 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6789 <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>
6794 Image with width attribute at different positions
6796 [[Image:foobar.jpg|200px|right|Caption]]
6797 [[Image:foobar.jpg|right|200px|Caption]]
6798 [[Image:foobar.jpg|right|Caption|200px]]
6800 <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>
6801 <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>
6802 <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>
6807 Image with link parameter, wiki target
6809 [[Image:foobar.jpg|link=Target page]]
6811 <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>
6816 Image with link parameter, URL target
6818 [[Image:foobar.jpg|link=http://example.com/]]
6820 <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>
6825 Image with link parameter, wgExternalLinkTarget
6827 [[Image:foobar.jpg|link=http://example.com/]]
6829 wgExternalLinkTarget='foobar'
6831 <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>
6836 Image with link parameter, wgNoFollowLinks set to false
6838 [[Image:foobar.jpg|link=http://example.com/]]
6840 wgNoFollowLinks=false
6842 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6847 Image with link parameter, wgNoFollowDomainExceptions
6849 [[Image:foobar.jpg|link=http://example.com/]]
6851 wgNoFollowDomainExceptions='example.com'
6853 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6858 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6860 [[Image:foobar.jpg|link=http://example.com/|Title]]
6862 wgExternalLinkTarget='foobar'
6864 <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>
6869 Image with empty link parameter
6871 [[Image:foobar.jpg|link=]]
6873 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6878 Image with link parameter (wiki target) and unnamed parameter
6880 [[Image:foobar.jpg|link=Target page|Title]]
6882 <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>
6887 Image with link parameter (URL target) and unnamed parameter
6889 [[Image:foobar.jpg|link=http://example.com/|Title]]
6891 <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>
6896 Thumbnail image with link parameter
6898 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6900 <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>
6905 Image with frame and link
6907 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6909 <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>
6914 Image with frame and link and explicit alt
6916 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6918 <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>
6923 Image with wiki markup in implicit alt
6925 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6927 <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>
6932 Image with wiki markup in explicit alt
6934 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6936 <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>
6941 Link to image page- image page normally doesn't exists, hence edit link
6942 Add test with existing image page
6943 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6947 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6952 bug 18784 Link to non-existent image page with caption should use caption as link text
6954 [[:Image:test|caption]]
6956 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6961 Frameless image caption with a free URL
6963 [[Image:foobar.jpg|http://example.com]]
6965 <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>
6970 Thumbnail image caption with a free URL
6972 [[Image:foobar.jpg|thumb|http://example.com]]
6974 <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>
6979 Thumbnail image caption with a free URL and explicit alt
6981 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6983 <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>
6988 BUG 1887: A ISBN with a thumbnail
6990 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6992 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6997 BUG 1887: A RFC with a thumbnail
6999 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7001 <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>
7006 BUG 1887: A mailto link with a thumbnail
7008 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7010 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
7014 # Pending resolution to bug 368
7016 BUG 648: Frameless image caption with a link
7018 [[Image:foobar.jpg|text with a [[link]] in it]]
7020 <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>
7025 BUG 648: Frameless image caption with a link (suffix)
7027 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7029 <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>
7034 BUG 648: Frameless image caption with an interwiki link
7036 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7038 <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>
7043 BUG 648: Frameless image caption with a piped interwiki link
7045 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7047 <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>
7052 Escape HTML special chars in image alt text
7054 [[Image:foobar.jpg|& < > "]]
7056 <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>
7061 BUG 499: Alt text should have Ӓ, not &1234;
7063 [[Image:foobar.jpg|♀]]
7065 <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>
7070 Broken image caption with link
7072 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7074 <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.
7079 Image caption containing another image
7081 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
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>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>
7088 Image caption containing a newline
7090 [[Image:Foobar.jpg|This
7093 <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>
7098 Parsoid: Image caption containing leading space
7099 (The leading space should not trigger nowiki escaping in wt2wt mode)
7101 [[Image:Foobar.jpg|thumb| bar]]
7103 <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>
7108 Bug 3090: External links other than http: in image captions
7110 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7112 <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>
7119 [[Image:foobar.jpg|a|class=b]]
7121 <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>
7126 Localized image handling (1).
7130 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7132 <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>
7137 Localized image handling (2).
7141 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7143 <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>
7148 "border", "frameless" and "class" attributes on an image.
7150 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7152 <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>
7159 #REDIRECT [[File:Barfoo.jpg]]
7165 [[Image:Barfoo.jpg]]
7167 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7172 Missing image with uploads disabled
7176 [[Image:Foobaz.jpg]]
7178 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7187 Subpage test/subpage
7195 subpage title=[[Subpage test]]
7199 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7204 Subpage noslash link
7206 subpage title=[[Subpage test]]
7210 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7219 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7224 BUG 561: {{/Subpage}}
7226 subpage title=[[Page]]
7230 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7238 Category:MediaWiki User's Guide
7246 [[:Category:MediaWiki User's Guide]]
7248 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7257 [[Category:MediaWiki User's Guide]]
7259 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7263 PAGESINCATEGORY invalid title fatal (r33546 fix)
7265 {{PAGESINCATEGORY:<bogus>}}
7272 Category with different sort key
7276 [[Category:MediaWiki User's Guide|Foo]]
7278 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7282 Category with identical sort key
7286 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7288 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7292 Category with empty sort key
7297 [[Category:MediaWiki User's Guide|]]
7299 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7303 Category with empty sort key and parentheses
7308 [[Category:Foo (bar)|]]
7310 [[Category:Foo (bar)|Foo]]
7314 Category with link tail
7319 123[[Category:Foo]]456
7321 123[[Category:Foo]]456
7325 Category with template
7330 [[Category:{{echo|Foo}}]]
7332 [[Category:{{echo|Foo}}]]
7336 Category with template in sort key
7341 [[Category:Foo|{{echo|Bar}}]]
7343 [[Category:Foo|{{echo|Bar}}]]
7347 Category with template in sort key and title
7352 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7354 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7358 Category / paragraph interactions
7360 Foo [[Category:Baz]] Bar
7362 Foo [[Category:Baz]]
7370 [[Category:Baz]] Bar
7383 {{echo|[[Category:Baz]]}}
7398 ### Inter-language links
7401 Inter-language links
7407 [[zh:食品]]
7409 es:Alimento fr:Nourriture zh:食品
7413 Duplicate interlanguage links (bug 24502)
7429 Basic section headings
7436 ===Smaller headline===
7439 <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>
7442 <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>
7445 <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>
7451 Section headings with TOC
7454 === Subheadline 1 ===
7455 ===== Skipping a level =====
7456 ====== Skipping a level ======
7460 ===Another headline===
7462 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7464 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7466 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7468 <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>
7470 <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>
7477 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7479 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7484 <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>
7485 <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>
7486 <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>
7487 <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>
7488 <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>
7491 <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>
7495 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7497 Handling of sections up to level 6 and beyond
7500 == Level 2 Heading==
7501 === Level 3 Heading===
7502 ==== Level 4 Heading====
7503 ===== Level 5 Heading=====
7504 ====== Level 6 Heading======
7505 ======= Level 7 Heading=======
7506 ======== Level 8 Heading========
7507 ========= Level 9 Heading=========
7508 ========== Level 10 Heading==========
7510 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7512 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7514 <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>
7516 <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>
7518 <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>
7520 <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>
7522 <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>
7523 <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>
7524 <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>
7525 <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>
7526 <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>
7539 <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>
7540 <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>
7541 <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>
7542 <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>
7543 <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>
7544 <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>
7545 <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>
7546 <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>
7547 <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>
7548 <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>
7553 TOC regression (bug 9764)
7557 ==== title 1.1.1 ====
7562 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7564 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7566 <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>
7568 <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>
7571 <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>
7574 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7576 <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>
7581 <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>
7582 <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>
7583 <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>
7584 <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>
7585 <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>
7586 <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>
7591 TOC with wgMaxTocLevel=3 (bug 6204)
7597 ==== title 1.1.1 ====
7602 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7604 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7606 <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>
7607 <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>
7610 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7612 <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>
7617 <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>
7618 <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>
7619 <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>
7620 <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>
7621 <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>
7622 <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>
7627 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7633 ====Section 1.1.1====
7634 ====Section 1.1.1.1====
7637 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7639 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7641 <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>
7644 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7647 <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>
7648 <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>
7649 <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>
7650 <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>
7651 <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>
7657 Resolving duplicate section names
7662 <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>
7663 <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>
7668 Resolving duplicate section names with differing case (bug 10721)
7673 <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>
7674 <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>
7686 Template with sections, __NOTOC__
7693 <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>
7694 <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>
7695 <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>
7696 <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>
7701 __NOEDITSECTION__ keyword
7707 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7708 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7713 Link inside a section heading
7715 ==Section with a [[Main Page|link]] in it==
7717 <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>
7722 TOC regression (bug 12077)
7729 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7731 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7733 <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>
7736 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7739 <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>
7740 <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>
7741 <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>
7746 BUG 1219 URL next to image (good)
7748 http://example.com [[Image:foobar.jpg]]
7750 <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>
7755 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7758 The line above must have a trailing space!
7761 But just in case it doesn't...
7763 <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>
7764 <p>The line above must have a trailing space!
7766 <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>
7767 <p>But just in case it doesn't...
7772 Header with special characters (bug 25462)
7774 The tooltips shall not show entities to the user (ie. be double escaped)
7791 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7793 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7795 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7796 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7797 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7798 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7799 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7802 <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>
7805 <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>
7808 <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>
7811 <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>
7814 <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>
7820 Headers with excess '=' characters
7821 (Are similar tests necessary beyond the 1st level?)
7825 =''italic'' heading==
7826 ==''italic'' heading=
7828 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7830 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7831 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7832 <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>
7833 <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>
7836 <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>
7837 <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>
7838 <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>
7839 <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>
7844 BUG 1219 URL next to image (broken)
7846 http://example.com[[Image:foobar.jpg]]
7848 <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>
7853 Bug 1186 news: in the middle of text
7855 http://en.wikinews.org/wiki/Wikinews:Workplace
7857 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7863 Namespaced link must have a title
7872 Namespaced link must have a title (bad fragment version)
7874 [[Project:#fragment]]
7876 <p>[[Project:#fragment]]
7882 ### HTML tags and HTML attributes
7886 div with no attributes
7888 <div>HTML rocks</div>
7890 <div>HTML rocks</div>
7895 div with double-quoted attribute
7897 <div id="rock">HTML rocks</div>
7899 <div id="rock">HTML rocks</div>
7904 div with single-quoted attribute
7906 <div id='rock'>HTML rocks</div>
7908 <div id="rock">HTML rocks</div>
7913 div with unquoted attribute
7915 <div id=rock>HTML rocks</div>
7917 <div id="rock">HTML rocks</div>
7922 div with illegal double attributes
7924 <div id="a" id="b">HTML rocks</div>
7926 <div id="b">HTML rocks</div>
7930 # FIXME: produce empty string instead of "class" in the PHP parser, following
7933 div with empty attribute value, space before equals
7937 <div class =>HTML rocks</div>
7939 <div class="">HTML rocks</div>
7943 # The PHP parser escapes the opening brace to { for some reason, so
7944 # disabled this test for it.
7946 div with braces in attribute value
7950 <div title="{}">Foo</div>
7952 <div title="{}">Foo</div>
7955 # This it very inconsistent in the PHP parser: it returns
7956 # class="class" if there is a space between the name and the equal sign (see
7957 # 'div with empty attribute value, space before equals'), but strips the
7958 # attribute completely if the space is missing. We hope that not much content
7959 # depends on this, so are implementing the behavior below in Parsoid for
7960 # consistencies' sake. Disabled for the PHP parser.
7961 # FIXME: fix this behavior in the PHP parser?
7963 div with empty attribute value, no space before equals
7967 <div class=>HTML rocks</div>
7969 <div class="">HTML rocks</div>
7974 HTML multiple attributes correction
7976 <p class="error" class="awesome">Awesome!</p>
7978 <p class="awesome">Awesome!</p>
7983 Table multiple attributes correction
7986 !+ class="error" class="awesome"| status
7991 <th class="awesome"> status
7999 <DIV ID="x">HTML ROCKS</DIV>
8001 <div id="x">HTML ROCKS</div>
8006 Non-ASCII pseudo-tags are rendered as text
8015 Pseudo-tag with URL 'name' renders as url link
8017 <http://example.com/>
8019 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8024 text with amp in the middle of nowhere
8028 <p>Remember AT&T?
8033 text with character entity: eacute
8035 I always thought é was a cute letter.
8037 <p>I always thought é was a cute letter.
8042 text with entity-escaped character entity-like string: eacute
8044 I always thought &eacute; was a cute letter.
8046 <p>I always thought &eacute; was a cute letter.
8051 text with undefined character entity: xacute
8053 I always thought &xacute; was a cute letter.
8055 <p>I always thought &xacute; was a cute letter.
8067 [[Media:Foobar.jpg]]
8069 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8074 Media link with text
8076 [[Media:Foobar.jpg|A neat file to look at]]
8078 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8082 # FIXME: this is still bad HTML tag nesting
8084 Media link with nasty text
8085 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8087 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8089 <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>
8094 Media link to nonexistent file (bug 1702)
8096 [[Media:No such.jpg]]
8098 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8103 Image link to nonexistent file (bug 1850 - good)
8105 [[Image:No such.jpg]]
8107 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8112 :Image link to nonexistent file (bug 1850 - bad)
8114 [[:Image:No such.jpg]]
8116 <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>
8123 Character reference normalization in link text (bug 1938)
8125 [[Main Page|this&that]]
8127 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8134 Test for unicode normalization
8136 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8140 (bug 19451) Links should refer to the normalized form.
8148 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8149 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8150 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8151 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8152 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8157 Empty attribute crash test (bug 2067)
8159 <font color="">foo</font>
8161 <p><font color="">foo</font>
8166 Empty attribute crash test single-quotes (bug 2067)
8168 <font color=''>foo</font>
8170 <p><font color="">foo</font>
8175 Attribute test: equals, then nothing
8177 <font color=>foo</font>
8184 Attribute test: unquoted value
8186 <font color=x>foo</font>
8188 <p><font color="x">foo</font>
8193 Attribute test: unquoted but illegal value (hash)
8195 <font color=#x>foo</font>
8197 <p><font color="#x">foo</font>
8202 Attribute test: no value
8204 <font color>foo</font>
8206 <p><font color="color">foo</font>
8211 Bug 2095: link with three closing brackets
8215 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8220 Bug 2095: link with pipe and three closing brackets
8224 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8229 Bug 2095: link with pipe and three closing brackets, version 2
8231 [[Main Page|[http://example.com/]]]
8233 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8243 Template:Dangerous attribute
8245 " onmouseover="alert(document.cookie)
8249 Template:Dangerous style attribute
8251 border-size: expression(alert(document.cookie))
8257 <div style="float: right; {{{1}}}">Magic div</div>
8261 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8263 <div title="{{test}}"></div>
8265 <div title="This is a test template"></div>
8270 Bug 2304: HTML attribute safety (dangerous template; 2309)
8272 <div title="{{dangerous attribute}}"></div>
8274 <div title=""></div>
8279 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8281 <div style="{{dangerous style attribute}}"></div>
8283 <div style="/* insecure input */"></div>
8288 Bug 2304: HTML attribute safety (safe parameter; 2309)
8290 {{div style|width: 200px}}
8292 <div style="float: right; width: 200px">Magic div</div>
8297 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8299 {{div style|width: expression(alert(document.cookie))}}
8301 <div style="/* insecure input */">Magic div</div>
8306 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8308 {{div style|"><script>alert(document.cookie)</script>}}
8310 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8315 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8317 {{div style|" ><script>alert(document.cookie)</script>}}
8319 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8324 Bug 2304: HTML attribute safety (link)
8326 <div title="[[Main Page]]"></div>
8328 <div title="[[Main Page]]"></div>
8333 Bug 2304: HTML attribute safety (italics)
8335 <div title="''foobar''"></div>
8337 <div title="''foobar''"></div>
8342 Bug 2304: HTML attribute safety (bold)
8344 <div title="'''foobar'''"></div>
8346 <div title="'''foobar'''"></div>
8352 Bug 2304: HTML attribute safety (ISBN)
8354 <div title="ISBN 1234567890"></div>
8356 <div title="ISBN 1234567890"></div>
8361 Bug 2304: HTML attribute safety (RFC)
8363 <div title="RFC 1234"></div>
8365 <div title="RFC 1234"></div>
8370 Bug 2304: HTML attribute safety (PMID)
8372 <div title="PMID 1234567890"></div>
8374 <div title="PMID 1234567890"></div>
8379 Bug 2304: HTML attribute safety (web link)
8381 <div title="http://example.com/"></div>
8383 <div title="http://example.com/"></div>
8388 Bug 2304: HTML attribute safety (named web link)
8390 <div title="[http://example.com/ link]"></div>
8392 <div title="[http://example.com/ link]"></div>
8397 Bug 3244: HTML attribute safety (extension; safe)
8399 <div style="<nowiki>background:blue</nowiki>"></div>
8401 <div style="background:blue"></div>
8406 Bug 3244: HTML attribute safety (extension; unsafe)
8408 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8410 <div style="/* insecure input */"></div>
8414 # More MSIE fun discovered by Tom Gilder
8417 MSIE CSS safety test: spurious slash
8419 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8421 <div style="/* insecure input */">evil</div>
8426 MSIE CSS safety test: hex code
8428 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8430 <div style="/* insecure input */">evil</div>
8435 MSIE CSS safety test: comment in url
8437 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8439 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8444 MSIE CSS safety test: comment in expression
8446 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8448 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8454 Table attribute legitimate extension
8457 !+ style="<nowiki>color:blue</nowiki>"| status
8462 <th style="color:blue"> status
8468 Table attribute safety
8471 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8476 <th style="/* insecure input */"> status
8482 CSS line continuation 1
8484 <div style="background-image: u\ rl(test.jpg);"></div>
8486 <div style="/* insecure input */"></div>
8491 CSS line continuation 2
8493 <div style="background-image: u\ rl(test.jpg); "></div>
8495 <div style="/* insecure input */"></div>
8506 Expansion of multi-line templates in attribute values (bug 6255)
8508 <div style="background: {{identity|#00FF00}}">-</div>
8510 <div style="background: #00FF00">-</div>
8516 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8518 <div style="background:
8521 <div style="background: #00FF00">-</div>
8526 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8528 <div style="background: #00FF00">-</div>
8530 <div style="background: #00FF00">-</div>
8535 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8538 Parser hook: empty input
8551 Parser hook: empty input using terminated empty elements
8564 Parser hook: empty input using terminated empty elements (space before)
8577 Parser hook: basic input
8591 Parser hook: case insensitive
8605 Parser hook: case insensitive, redux
8618 Parser hook: nested tags
8622 <tag><tag></tag></tag>
8633 Parser hook: basic arguments
8635 <tag width=200 height = "100" depth = '50' square></tag>
8643 'square' => 'square',
8650 Parser hook: argument containing a forward slash (bug 5344)
8652 <tag filename='/tmp/bla'></tag>
8657 'filename' => '/tmp/bla',
8664 Parser hook: empty input using terminated empty elements (bug 2374)
8677 # </tag> should be output literally since there is no matching tag that begins it
8679 Parser hook: basic arguments using terminated empty elements (bug 2374)
8681 <tag width=200 height = "100" depth = '50' square/>
8691 'square' => 'square',
8700 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8704 Parser hook: static parser hook not inside a comment
8706 <statictag>hello, world</statictag>
8707 <statictag action=flush/>
8715 Parser hook: static parser hook inside a comment
8717 <!-- <statictag>hello, world</statictag> -->
8718 <statictag action=flush/>
8724 # Nested template calls; this case was broken by Parser.php rev 1.506,
8728 Template:One-parameter
8730 (My parameter is: {{{1}}})
8734 Template:Map-one-parameter
8740 Nested template calls
8742 {{Map-one-parameter|One-parameter|param}}
8744 <p>(My parameter is: param)
8753 Sanitizer: Closing of open tags
8755 <s></s><table></table>
8757 <s></s><table></table>
8762 Sanitizer: Closing of open but not closed tags
8771 Sanitizer: Closing of closed but not open tags
8780 Sanitizer: Closing of closed but not open table tags
8782 Table not started</td></tr></table>
8784 <p>Table not started</td></tr></table>
8789 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8791 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8793 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8798 Sanitizer: Validating the contents of the id attribute (bug 4515)
8804 Something, but definitely not <br id="9" />...
8808 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8812 <br id="foo" /><br id="foo" />
8814 Something need to be done. foo-2 ?
8818 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8821 <meta itemprop="hello" content="world">
8822 <meta http-equiv="refresh" content="5">
8823 <meta itemprop="hello" http-equiv="refresh" content="5">
8824 <link itemprop="hello" href="{{SERVER}}">
8825 <link rel="stylesheet" href="{{SERVER}}">
8826 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8829 <div itemscope="itemscope">
8830 <p> <meta itemprop="hello" content="world" />
8831 <meta http-equiv="refresh" content="5">
8832 <meta itemprop="hello" content="5" />
8834 <link itemprop="hello" href="http://example.org" />
8835 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
8836 <link itemprop="hello" href="http://example.org" />
8842 Language converter: output gets cut off unexpectedly (bug 5757)
8846 this bit is safe: }-
8848 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8850 then we get cut off here: }-
8852 all additional text is vanished
8854 <p>this bit is safe: }-
8855 </p><p>but if we add a conversion instance: xxx
8856 </p><p>then we get cut off here: }-
8857 </p><p>all additional text is vanished
8862 Self closed html pairs (bug 5487)
8865 <center><font id="bug" />Centered text</center>
8866 <div><font id="bug2" />In div text</div>
8868 <center><font id="bug" />Centered text</center>
8869 <div><font id="bug2" />In div text</div>
8878 Punctuation: nbsp before exclamation
8882 <p>C'est grave !
8887 Punctuation: CSS !important (bug 11874)
8889 <div style="width:50% !important">important</div>
8891 <div style="width:50% !important">important</div>
8896 Punctuation: CSS ! important (bug 11874; with space after)
8898 <div style="width:50% ! important">important</div>
8900 <div style="width:50% ! important">important</div>
8906 HTML bullet list, closed tags (bug 5497)
8921 HTML bullet list, unclosed tags (bug 5497)
8938 HTML ordered list, closed tags (bug 5497)
8953 HTML ordered list, unclosed tags (bug 5497)
8970 HTML nested bullet list, closed tags (bug 5497)
8995 HTML nested bullet list, open tags (bug 5497)
9020 HTML nested ordered list, closed tags (bug 5497)
9045 HTML nested ordered list, open tags (bug 5497)
9070 HTML ordered list item with parameters oddity
9072 <ol><li id="fragment">One</li></ol>
9074 <ol><li id="fragment">One</li></ol>
9079 bug 5918: autonumbering
9081 [http://first/] [http://second] [ftp://ftp]
9085 [mailto:enclosed@mail.tld With target]
9087 [mailto:enclosed@mail.tld]
9089 mailto:inline@mail.tld
9091 <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>
9092 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9093 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9094 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9095 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9101 # Security and HTML correctness
9102 # From Nick Jenkins' fuzz testing
9106 Fuzz testing: Parser13
9121 Fuzz testing: Parser14
9126 <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>
9127 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9129 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9136 Fuzz testing: Parser14-table
9141 <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>
9142 <table style="__TOC__">
9148 # Known to produce bogus xml (extra </td>)
9150 Fuzz testing: Parser16
9170 Fuzz testing: Parser21
9173 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9178 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9188 Fuzz testing: Parser22
9190 http://===r:::https://b
9194 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9202 # Known to produce bad XML for now
9204 Fuzz testing: Parser24
9211 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9212 <br style="onmouseover='alert(document.cookie);' " />
9214 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9219 <u class="|">}}}} >
9220 <br style="onmouseover='alert(document.cookie);'" />
9222 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9231 # Note: the current result listed for this is not what the original one was,
9232 # but the original bug was JavaScript injection, which is fixed in any case.
9233 # It's not clear that the original result listed was any more correct than the
9234 # current one. Original result:
9237 # <li class="||">
9238 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9240 Fuzz testing: Parser25 (bug 6055)
9246 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9248 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9253 Fuzz testing: URL adjacent extension (with space, clean)
9256 http://example.com <nowiki>junk</nowiki>
9258 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9263 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9266 http://example.com<nowiki>junk</nowiki>
9268 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9273 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9276 http://example.com<pre>junk</pre>
9278 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9283 Fuzz testing: image with bogus manual thumbnail
9285 [[Image:foobar.jpg|thumbnail= ]]
9287 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9292 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9294 <pre dir=" "></pre>
9296 <pre dir=" "></pre>
9301 Parsing optional HTML elements (Bug 6171)
9306 <td> Some tabular data</td>
9307 <td> More tabular data ...
9308 <td> And yet som tabular data</td>
9314 <td> Some tabular data</td>
9315 <td> More tabular data ...
9316 </td><td> And yet som tabular data</td>
9323 Correct handling of <td>, <tr> (Bug 6171)
9328 <td> Some tabular data</td>
9329 <td> More tabular data ...</td>
9330 <td> And yet som tabular data</td>
9336 <td> Some tabular data</td>
9337 <td> More tabular data ...</td>
9338 <td> And yet som tabular data</td>
9346 Parsing crashing regression (fr:JavaScript)
9350 <p></body></x>
9355 Inline wiki vs wiki block nesting
9361 <p><b>Bold paragraph</b>
9362 </p><p>New wiki paragraph
9367 Inline HTML vs wiki block nesting
9375 <p><b>Bold paragraph</b>
9376 </p><p>New wiki paragraph
9380 # Original result was this:
9381 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9383 # While that might be marginally more intuitive, maybe, the six-apostrophe
9384 # construct is clearly pathological and the result stated here (which is what
9385 # the parser actually does) is about as reasonable as anything.
9387 Mixing markup for italics and bold
9390 '''bold''''''bold''bolditalics'''''
9392 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9400 Article for special page transclusion test
9404 Special page transclusion
9407 {{Special:Prefixindex/Xyzzyx}}
9409 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9414 Special page transclusion twice (bug 5021)
9417 {{Special:Prefixindex/Xyzzyx}}
9418 {{Special:Prefixindex/Xyzzyx}}
9420 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9421 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9426 Transclusion of default MediaWiki message
9428 {{MediaWiki:Mainpage}}
9435 Transclusion of nonexistent MediaWiki message
9437 {{MediaWiki:Mainpagexxx}}
9439 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9444 Transclusion of MediaWiki message with underscore
9446 {{MediaWiki:history_short}}
9453 Transclusion of MediaWiki message with space
9455 {{MediaWiki:history short}}
9462 Invalid header with following text
9472 Section extraction test (section 0)
9492 Section extraction test (section 1)
9514 Section extraction test (section 2)
9535 Section extraction test (section 3)
9555 Section extraction test (section 4)
9579 Section extraction test (section 5)
9599 Section extraction test (section 6)
9620 Section extraction test (section 7)
9640 Section extraction test (section 8)
9660 Section extraction test (section 9)
9681 Section extraction test (section 10)
9701 Section extraction test (nonexistent section 11)
9720 Section extraction test with bogus heading (section 1)
9725 ==bogus== not a legal section
9729 ==bogus== not a legal section
9733 Section extraction test with bogus heading (section 2)
9738 ==bogus== not a legal section
9745 Section extraction test with comment after heading (section 1)
9757 Section extraction test with comment after heading (section 2)
9769 Section extraction test with bogus <nowiki> heading (section 1)
9774 ==bogus== <nowiki>not a legal section</nowiki>
9778 ==bogus== <nowiki>not a legal section</nowiki>
9782 Section extraction test with bogus <nowiki> heading (section 2)
9787 ==bogus== <nowiki>not a legal section</nowiki>
9794 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9795 # instead of respecting commented sections
9797 Section extraction prefixed by comment (section 1)
9808 Section extraction prefixed by comment (section 2)
9819 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9820 # instead of respecting HTML-style headings
9822 Section extraction, mixed wiki and html (section 1)
9838 Section extraction, mixed wiki and html (section 2)
9854 # Formerly testing for bug 3342
9856 Section extraction, heading surrounded by <noinclude>
9860 <noinclude>==unmarked==</noinclude>
9866 # Test behaviour of bug 19910
9868 Sectiion with all-equals
9873 The line above must have a trailing space
9876 But just in case it doesn't...
9880 But just in case it doesn't...
9884 Section replacement test (section 0)
9915 Section replacement test (section 1)
9944 Section replacement test (section 2)
9974 Section replacement test (section 3)
10005 Section replacement test (section 4)
10032 Section replacement test (section 5)
10063 Section replacement test (section 6)
10093 Section replacement test (section 7)
10124 Section replacement test (section 8)
10155 Section replacement test (section 9)
10184 Section replacement test (section 10)
10214 Section replacement test with initial whitespace (bug 13728)
10218 Preformatted initial line
10222 Preformatted initial line
10229 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10241 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10254 Section extraction, <pre> around bogus header (bug 10309)
10271 Section replacement, <pre> around bogus header (bug 10309)
10273 noxml replace=2,"xxx"
10294 Handling of 
 in URLs
10298 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10305 5 quotes, code coverage +1 line
10312 Special:Search page linking.
10316 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10328 * {{BASEPAGENAMEE}}
10330 * {{TALKPAGENAMEE}}
10331 * {{SUBJECTPAGENAME}}
10332 * {{SUBJECTPAGENAMEE}}
10338 * {{SUBJECTSPACEE}}
10339 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10341 <ul><li> Parser test
10342 </li><li> Parser test
10343 </li><li> Parser test
10344 </li><li> Parser_test
10345 </li><li> Parser test
10346 </li><li> Parser_test
10347 </li><li> Talk:Parser test
10348 </li><li> Talk:Parser_test
10349 </li><li> Parser test
10350 </li><li> Parser_test
10357 </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>
10361 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10371 image4 |300px| centre
10372 image5.svg| http://///////
10377 <ul class="gallery">
10378 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10379 <div style="height: 150px;">Image1.png</div>
10380 <div class="gallerytext">
10383 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10384 <div style="height: 150px;">Image2.gif</div>
10385 <div class="gallerytext">
10390 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10391 <div style="height: 150px;">Image3</div>
10392 <div class="gallerytext">
10395 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10396 <div style="height: 150px;">Image4</div>
10397 <div class="gallerytext">
10402 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10403 <div style="height: 150px;">Image5.svg</div>
10404 <div class="gallerytext">
10405 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10409 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10410 <div style="height: 150px;">* image6</div>
10411 <div class="gallerytext">
10419 Gallery (with options)
10421 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10422 File:Nonexistant.jpg|caption
10423 File:Nonexistant.jpg
10424 image:foobar.jpg|some '''caption''' [[Main Page]]
10426 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10429 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10430 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10431 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10432 <div style="height: 70px;">Nonexistant.jpg</div>
10433 <div class="gallerytext">
10438 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10439 <div style="height: 70px;">Nonexistant.jpg</div>
10440 <div class="gallerytext">
10443 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10444 <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>
10445 <div class="gallerytext">
10446 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10450 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10451 <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>
10452 <div class="gallerytext">
10455 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10456 <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>
10457 <div class="gallerytext">
10467 Gallery with wikitext inside caption
10470 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10471 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10474 <ul class="gallery">
10475 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10476 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
10477 <div class="gallerytext">
10478 <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>
10482 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10483 <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>
10484 <div class="gallerytext">
10485 <p>This is a test template
10494 gallery (with showfilename option)
10496 <gallery showfilename>
10497 File:Nonexistant.jpg|caption
10498 File:Nonexistant.jpg
10499 image:foobar.jpg|some '''caption''' [[Main Page]]
10503 <ul class="gallery">
10504 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10505 <div style="height: 150px;">Nonexistant.jpg</div>
10506 <div class="gallerytext">
10507 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10512 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10513 <div style="height: 150px;">Nonexistant.jpg</div>
10514 <div class="gallerytext">
10515 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10520 <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>
10521 <div class="gallerytext">
10522 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10523 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10527 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10528 <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>
10529 <div class="gallerytext">
10530 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10539 Gallery (with namespace-less filenames)
10542 File:Nonexistant.jpg
10548 <ul class="gallery">
10549 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10550 <div style="height: 150px;">Nonexistant.jpg</div>
10551 <div class="gallerytext">
10554 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10555 <div style="height: 150px;">Nonexistant.jpg</div>
10556 <div class="gallerytext">
10559 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10560 <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>
10561 <div class="gallerytext">
10564 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10565 <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>
10566 <div class="gallerytext">
10574 HTML Hex character encoding (spells the word "JavaScript")
10576 JavaScript
10578 <p>JavaScript
10583 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10587 <p>&#xsee;&#XSEE;
10592 HTML Hex character encoding mixed case
10601 __FORCETOC__ override
10613 ISBN 978-0-1234-56 789
10615 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10620 ISBN followed by 5 spaces
10631 ISBN ISBN 1234567890
10633 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10638 Bug 22905: <abbr> followed by ISBN followed by </a>
10640 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10642 <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>
10651 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10656 Double RFC with a wiki link
10660 <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>
10669 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10674 Centre-aligned image
10676 [[Image:foobar.jpg|centre]]
10678 <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>
10685 [[Image:foobar.jpg|none]]
10687 <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>
10692 Width + Height sized image (using px) (height is ignored)
10694 [[Image:foobar.jpg|640x480px]]
10696 <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>
10701 Width-sized image (using px, no following whitespace)
10703 [[Image:foobar.jpg|640px]]
10705 <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>
10710 Width-sized image (using px, with following whitespace - test regression from r39467)
10712 [[Image:foobar.jpg|640px ]]
10714 <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>
10719 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10721 [[Image:foobar.jpg| 640px]]
10723 <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>
10728 Another italics / bold test
10736 # Note the results may be incorrect, as parserTest output included this:
10737 # XML error: Mismatched tag at byte 6120:
10738 # ...<dd> </dt></dl> </dd...
10746 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10757 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10759 Images with the "|" character in the comment
10761 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10763 <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>
10768 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10770 <html><script>alert(1);</script></html>
10772 <p><html><script>alert(1);</script></html>
10777 HTML with raw HTML ($wgRawHtml==true)
10781 <html><script>alert(1);</script></html>
10783 <p><script>alert(1);</script>
10788 Parents of subpages, one level up
10790 subpage title=[[Subpage test/L1/L2/L3]]
10794 <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>
10800 Parents of subpages, one level up, not named
10802 subpage title=[[Subpage test/L1/L2/L3]]
10806 <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>
10813 Parents of subpages, two levels up
10815 subpage title=[[Subpage test/L1/L2/L3]]
10821 <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
10822 </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>
10827 Parents of subpages, two levels up, without trailing slash or name.
10829 subpage title=[[Subpage test/L1/L2/L3]]
10838 Parents of subpages, two levels up, with lots of extra trailing slashes.
10840 subpage title=[[Subpage test/L1/L2/L3]]
10844 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10849 Definition list code coverage
10855 <dl><dt> title  </dt><dd> def
10856 </dd><dt> title </dt><dd> def
10857 </dd><dt>title</dt><dd> def
10863 Don't fall for the self-closing div
10865 <div>hello world</div/>
10867 <div>hello world</div>
10876 <p>[[:Template:Msg]]
10885 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10889 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10891 Always escape literal '>' in output, not just after '<'
10905 <p>This is a test template
10906 This is a test template
10918 Inclusion of !userCanEdit() content
10922 <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>
10928 Out-of-order TOC heading levels
10937 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10939 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10941 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10942 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10945 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10947 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10948 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10953 <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>
10954 <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>
10955 <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>
10956 <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>
10957 <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>
10958 <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>
10964 ISBN with a dummy number
10974 ISBN with space-delimited number
10978 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10984 ISBN with multiple spaces, no number
11003 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11004 </p><p>ISBN 12345678901
11010 ISBN with trailing year (bug 8110)
11012 ISBN 1-234-56789-0 - 2006
11014 ISBN 1 234 56789 0 - 2006
11016 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11017 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11025 {{anchorencode:foo bar©#%n}}
11027 <p>foo_bar.C2.A9.23.25n
11032 anchorencode trims spaces
11034 {{anchorencode: __pretty__please__}}
11041 anchorencode deals with links
11043 {{anchorencode: [[hello|world]] [[hi]]}}
11050 anchorencode deals with templates
11052 {{anchorencode: {{Foo}} }}
11059 anchorencode encodes like the TOC generator: (bug 18431)
11061 === _ +:.3A%3A&&]] ===
11062 {{anchorencode: _ +:.3A%3A&&]] }}
11065 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
11066 <p>.2B:.3A.253A.26.26.5D.5D
11070 # Expected output in the following test is not necessarily expected (there
11071 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11072 # only testing for well-formedness.
11074 Bug 6200: blockquotes and paragraph formatting
11094 Bug 8293: Use of center tag ruins paragraph formatting
11116 ### Language variants related tests
11119 Self-link in language variants
11121 title=[[Dunav]] language=sr
11123 Both [[Dunav]] and [[Дунав]] are names for this river.
11125 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11136 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11138 title=[[Duna]] language=sr
11140 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11142 <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.
11147 Link to pages in language variants
11151 Main Page can be written as [[Маин Паге]]
11153 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11159 Multiple links to pages in language variants
11163 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11165 <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>.
11171 Simple template in language variants
11177 <p>This is a test template
11183 Template with explicit namespace in language variants
11189 <p>This is a test template
11195 Basic test for template parameter in language variants
11199 {{парамтест|param=foo}}
11201 <p>This is a test template with parameter foo
11207 Simple category in language variants
11211 [[Category:МедиаWики Усер'с Гуиде]]
11213 <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>
11230 Don't convert blue categorylinks to another variant (bug 33210)
11234 [[A]][[Category:分类]]
11236 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11241 Stripping -{}- tags (language variants)
11245 Latin proverb: -{Ne nuntium necare}-
11247 <p>Latin proverb: Ne nuntium necare
11253 Prevent conversion with -{}- tags (language variants)
11255 language=sr variant=sr-ec
11257 Latinski: -{Ne nuntium necare}-
11259 <p>Латински: Ne nuntium necare
11265 Prevent conversion of text with -{}- tags (language variants)
11267 language=sr variant=sr-ec
11269 Latinski: -{Ne nuntium necare}-
11271 <p>Латински: Ne nuntium necare
11277 Prevent conversion of links with -{}- tags (language variants)
11279 language=sr variant=sr-ec
11283 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11289 -{}- tags within headlines (within html for parserConvert())
11291 language=sr variant=sr-ec
11295 <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>
11301 Explicit definition of language variant alternatives
11303 language=zh variant=zh-tw
11305 -{zh:China;zh-tw:Taiwan}-, not China
11307 <p>Taiwan, not China
11313 Conversion around HTML tags
11315 language=sr variant=sr-ec
11317 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11318 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11321 <span title="ЛаCтин">ски</span>
11327 Explicit session-wise language variant mapping (A flag and - flag)
11329 language=zh variant=zh-tw
11331 Taiwan is not China.
11332 But -{A|zh:China;zh-tw:Taiwan}- is China,
11333 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11334 and -{China}- is China.
11336 <p>Taiwan is not China.
11337 But Taiwan is Taiwan,
11338 (This should be stripped!)
11339 and China is China.
11344 Explicit session-wise language variant mapping (H flag for hide)
11346 language=zh variant=zh-tw
11348 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11351 <p>(This should be stripped!)
11357 Adding explicit conversion rule for title (T flag)
11359 language=zh variant=zh-tw showtitle
11361 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11364 <p>Should be stripped!
11369 Testing that changing the language variant here in the tests actually works
11371 language=zh variant=zh showtitle
11373 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11376 <p>Should be stripped!
11381 Recursive conversion of alt and title attrs shouldn't clear converter state
11383 language=zh variant=zh-cn showtitle
11385 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11386 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11390 Should be stripped<span title="Exclamation">!</span>
11395 Bug 24072: more test on conversion rule for title
11397 language=zh variant=zh-tw showtitle
11399 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11400 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11403 <p>This should be stripped!
11404 This won't take interferes with the title rule.
11409 Raw output of variant escape tags (R flag)
11411 language=zh variant=zh-tw
11413 Raw: -{R|zh:China;zh-tw:Taiwan}-
11415 <p>Raw: zh:China;zh-tw:Taiwan
11420 Nested using of manual convert syntax
11422 language=zh variant=zh-hk
11424 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11426 <p>Nested: Hello Hong Kong!
11431 Proper conversion of text in external links
11433 language=sr variant=sr-ec
11435 http://www.google.com
11436 gopher://www.google.com
11437 [http://www.google.com http://www.google.com]
11438 [gopher://www.google.com gopher://www.google.com]
11439 [https://www.google.com irc://www.google.com]
11440 [ftp://www.google.com www.google.com/ftp://dir]
11441 [//www.google.com www.google.com]
11443 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11444 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11445 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11446 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11447 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11448 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11449 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11454 Do not convert roman numbers to language variants
11456 language=sr variant=sr-ec
11460 <p>Фридрих IV је цар.
11465 Unclosed language converter markup "-{"
11476 Don't convert raw rule "-{R|=>}-" to "=>"
11493 Bug 529: Uncovered bullet
11503 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11504 # Templates in Wikipedia rely on this behavior, as tidy has always been
11505 # enabled there. These tests are normally run *without* tidy, so specify the
11506 # full output here.
11507 # To test realistic parsing behavior, apply a tidy-like transformation to both
11508 # the expected output and your parser's output.
11510 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11512 ******* Foo {{bullet}}
11514 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11527 Bug 529: Uncovered table already at line-start
11550 Bug 529: Uncovered bullet in parser function result
11552 * Foo {{lc:{{bullet}} }}
11561 Bug 5678: Double-parsed template argument
11563 {{lc:{{{1}}}|hello}}
11570 Bug 5678: Double-parsed template invocation
11572 {{lc:{{paramtest {{!}} param = hello }} }}
11574 <p>{{paramtest | param = hello }}
11579 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11582 title=[[Main Page]]
11584 {{PRVNÍVELKÉ:ěščř}}
11585 {{prvnívelké:ěščř}}
11605 Morwen/13: Unclosed link followed by heading
11612 <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>
11617 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11624 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11629 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11636 <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>
11651 Paragraphs inside divs (no extra line breaks)
11663 Paragraphs inside divs (extra line break on open)
11678 Paragraphs inside divs (extra line break on close)
11693 Paragraphs inside divs (extra line break on open and close)
11710 Nesting tags, paragraphs on lines which begin with <div>
11714 <div></div><strong>A
11723 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11725 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11729 <blockquote>Line one
11731 Line two</blockquote>
11733 <blockquote>Line one
11734 Line two</blockquote>
11739 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11746 Line two</blockquote>
11751 Line two</blockquote>
11756 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11760 <blockquote>Line one
11765 <blockquote>Line one
11773 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11792 Paragraphs inside blockquotes/divs (no extra line breaks)
11794 <blockquote><div>Line one
11796 Line two</div></blockquote>
11798 <blockquote><div>Line one
11799 Line two</div></blockquote>
11804 Paragraphs inside blockquotes/divs (extra line break on open)
11809 Line two</div></blockquote>
11814 Line two</div></blockquote>
11819 Paragraphs inside blockquotes/divs (extra line break on close)
11821 <blockquote><div>Line one
11824 </div></blockquote>
11826 <blockquote><div>Line one
11829 </div></blockquote>
11834 Paragraphs inside blockquotes/divs (extra line break on open and close)
11840 </div></blockquote>
11846 </div></blockquote>
11851 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11853 wgLinkHolderBatchSize=0
11859 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11860 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11861 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11866 Free external link invading image caption
11868 [[Image:Foobar.jpg|thumb|http://x|hello]]
11870 <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>
11875 Bug 15196: localised external link numbers
11879 [http://en.wikipedia.org/]
11881 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11886 Multibyte character in padleft
11888 {{padleft:-Hello|7|Æ}}
11895 Multibyte character in padright
11897 {{padright:Hello-|7|Æ}}
11904 formatdate parser function
11906 {{#formatdate:2009-03-24}}
11908 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11913 formatdate parser function, with default format
11915 {{#formatdate:2009-03-24|mdy}}
11917 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11922 Spacing of numbers in formatted dates
11924 {{#formatdate:January 15}}
11926 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11931 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
11933 language=nl title=[[MediaWiki:Common.css]]
11935 {{#formatdate:2009-03-24|dmy}}
11937 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11950 Edit comment with link
11954 I like the [[Main Page]] a lot
11956 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11960 Edit comment with link and link text
11964 I like the [[Main Page|best pages]] a lot
11966 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11970 Edit comment with link and link text with suffix
11974 I like the [[Main Page|best page]]s a lot
11976 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11980 Edit comment with section link (non-local, eg in history list)
11982 comment title=[[Main Page]]
11984 /* External links */ removed bogus entries
11986 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11990 Edit comment with section link and text before it (non-local, eg in history list)
11992 comment title=[[Main Page]]
11994 pre-comment text /* External links */ removed bogus entries
11996 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>
12000 Edit comment with section link (local, eg in diff view)
12002 comment local title=[[Main Page]]
12004 /* External links */ removed bogus entries
12006 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12010 Edit comment with subpage link (bug 14080)
12014 title=[[Subpage test]]
12016 Poked at a [[/subpage]] here...
12018 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12022 Edit comment with subpage link and link text (bug 14080)
12026 title=[[Subpage test]]
12028 Poked at a [[/subpage|neat little page]] here...
12030 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12034 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12037 title=[[Subpage test]]
12039 Poked at a [[/subpage]] here...
12041 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12045 Edit comment with bare anchor link (local, as on diff)
12049 title=[[Main Page]]
12053 <a href="#section">#section</a>
12057 Edit comment with bare anchor link (non-local, as on history)
12060 title=[[Main Page]]
12064 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12068 Anchor starting with underscore
12072 <p><a href="#_ref">One</a>
12077 Id starting with underscore
12079 <div id="_ref"></div>
12081 <div id="_ref"></div>
12086 Space normalisation on autocomment (bug 22784)
12089 title=[[Main Page]]
12091 /* __hello__world__ */
12093 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12097 percent-encoding and + signs in comments (Bug 26410)
12101 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12103 <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>
12107 Bad images - basic functionality
12116 Bad images - bug 16039: text after bad image disappears
12130 Verify that displaytitle works (bug #22501) no displaytitle
12134 wgAllowDisplayTitle=true
12135 wgRestrictDisplayTitle=false
12137 this is not the the title
12140 <p>this is not the the title
12145 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12150 wgAllowDisplayTitle=true
12151 wgRestrictDisplayTitle=false
12153 this is not the the title
12154 {{DISPLAYTITLE:whatever}}
12157 <p>this is not the the title
12162 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12167 wgAllowDisplayTitle=true
12168 wgRestrictDisplayTitle=true
12170 this is not the the title
12171 {{DISPLAYTITLE:whatever}}
12174 <p>this is not the the title
12179 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12184 wgAllowDisplayTitle=true
12185 wgRestrictDisplayTitle=true
12187 this is not the the title
12188 {{DISPLAYTITLE:screen}}
12191 <p>this is not the the title
12196 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12201 wgAllowDisplayTitle=false
12203 this is not the the title
12204 {{DISPLAYTITLE:screen}}
12207 <p>this is not the the title
12208 <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>
12213 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12218 wgAllowDisplayTitle=false
12220 this is not the the title
12223 <p>this is not the the title
12228 preload: check <noinclude> and <includeonly>
12232 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12238 preload: check <onlyinclude>
12242 Goodbye <onlyinclude>Hello world</onlyinclude>
12248 preload: can pass tags through if we want to
12252 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12254 <includeonly>Hello world</includeonly>
12258 preload: check that it doesn't try to do tricks
12262 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12264 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12268 Play a bit with r67090 and bug 3158
12272 <div style="width:50% !important"> </div>
12273 <div style="width:50% !important"> </div>
12274 <div style="width:50% !important"> </div>
12275 <div style="border : solid;"> </div>
12277 <div style="width:50% !important"> </div>
12278 <div style="width:50% !important"> </div>
12279 <div style="width:50% !important"> </div>
12280 <div style="border : solid;"> </div>
12285 HTML5 data attributes
12287 <span data-foo="bar">Baz</span>
12288 <p data-abc-def_hij="">Quuz</p>
12290 <p><span data-foo="bar">Baz</span>
12292 <p data-abc-def_hij="">Quuz</p>
12297 percent-encoding and + signs in internal links (Bug 26410)
12299 [[User:+%]] [[Page+title%]]
12300 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12301 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12302 [[%33%45]] [[%33%45+]]
12304 <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>
12305 <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>
12306 <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>
12307 <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>
12312 Special characters in embedded file links (bug 27679)
12314 [[File:Contains & ampersand.jpg]]
12315 [[File:Does not exist.jpg|Title with & ampersand]]
12317 <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>
12318 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12324 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12326 Text's been normalized?
12328 <p>Text's been normalized?
12333 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12335 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12337 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12342 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12344 [http://www.example.org/ ideograms]
12346 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12351 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12353 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12355 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12379 Bug 31098 Template which includes system messages which includes the template
12383 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12384 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12389 Bug31490 Turkish: ucfirst 'blah'
12400 Bug31490 Turkish: ucfirst 'ix'
12411 Bug31490 Turkish: lcfirst 'BLAH'
12422 Bug31490 Turkish: ucfırst (with a dotless i)
12428 <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>
12433 Bug31490 ucfırst (with a dotless i) with English language
12439 <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>
12444 Bug 26375: TOC with italics
12446 title=[[Main Page]]
12449 == ''Lost'' episodes ==
12451 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12453 <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>
12456 <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>
12461 Bug 26375: TOC with bold
12463 title=[[Main Page]]
12466 == '''should be bold''' then normal text ==
12468 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12470 <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>
12473 <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>
12478 Bug 33845: Headings become cursive in TOC when they contain an image
12480 title=[[Main Page]]
12483 == Image [[Image:foobar.jpg]] ==
12485 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12487 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12490 <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>
12495 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12497 title=[[Main Page]]
12500 == <blockquote>Quote</blockquote> ==
12502 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12504 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12507 <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>
12512 Unclosed tags in TOC
12514 title=[[Main Page]]
12518 <small>Hanc marginis exiguitas non caperet.</small>
12521 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12523 <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>
12526 <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>
12527 <p><small>Hanc marginis exiguitas non caperet.</small>
12533 Multiple tags in TOC
12536 == <i>Foo</i> <b>Bar</b> ==
12538 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12540 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12542 <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>
12543 <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>
12546 <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>
12547 <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>
12552 Tags with parameters in TOC
12555 == <sup class="in-h2">Hello</sup> ==
12557 == <sup class="a > b">Evilbye</sup> ==
12559 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12561 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12562 <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>
12565 <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>
12566 <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>
12571 span tags with directionality in TOC
12574 == <span dir="ltr">C++</span> ==
12576 == <span dir="rtl">זבנג!</span> ==
12578 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12580 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12582 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12584 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12586 <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>
12587 <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>
12588 <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>
12589 <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>
12590 <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>
12593 <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>
12594 <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>
12595 <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>
12596 <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>
12597 <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>
12604 == {{int:headline_sample}} ==
12608 Bug 32057: Title needed when expanding <h> nodes.
12610 title=[[Main Page]]
12614 <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>
12619 Strip marker in urlencode
12621 {{urlencode:x<nowiki/>y}}
12622 {{urlencode:x<nowiki/>y|wiki}}
12623 {{urlencode:x<nowiki/>y|path}}
12650 Strip marker in formatNum
12652 {{formatnum:1<nowiki/>2}}
12653 {{formatnum:1<nowiki/>2|R}}
12661 Check noCommafy in formatNum
12665 {{formatnum:123456.78}}
12666 {{formatnum:123456.78|NOSEP}}
12674 Strip marker in grammar
12678 {{grammar:elative|foo<nowiki/>bar}}
12685 Strip marker in padleft
12687 {{padleft:|2|x<nowiki/>y}}
12694 Strip marker in padright
12696 {{padright:|2|x<nowiki/>y}}
12703 Strip marker in anchorencode
12705 {{anchorencode:x<nowiki/>y}}
12712 nowiki inside link inside heading (bug 18295)
12714 ==[[foo|x<nowiki>y</nowiki>z]]==
12716 <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>
12721 new support for bdi element (bug 31817)
12723 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12725 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12730 Ignore pipe between table row attributes
12734 |- id=foo | style='color: red'
12742 <tr id="foo" style="color: red">
12749 Gallery override link with WikiLink (bug 34852)
12752 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12755 <ul class="gallery">
12756 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12757 <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>
12758 <div class="gallerytext">
12768 Gallery override link with absolute external link (bug 34852)
12771 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12774 <ul class="gallery">
12775 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12776 <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>
12777 <div class="gallerytext">
12787 Gallery override link with malicious javascript (bug 34852)
12790 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12793 <ul class="gallery">
12794 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12795 <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>
12796 <div class="gallerytext">
12806 Gallery with invalid title as link (bug 43964)
12809 File:foobar.jpg|link=<
12812 <ul class="gallery">
12813 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12814 <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>
12815 <div class="gallerytext">
12823 Language parser function
12832 Padleft and padright as substr
12834 {{padleft:|3|abcde}}
12835 {{padright:|3|abcde}}
12843 Bug 34939 - Case insensitive link parsing ([HttP://])
12845 [HttP://MediaWiki.Org/]
12847 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12852 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12854 [HttP://MediaWiki.Org/ MediaWiki]
12856 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12861 Bug 34939 - Case insensitive link parsing (HttP://)
12863 HttP://MediaWiki.Org/
12865 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12870 ### Parsoids-specific tests
12871 ### Parsoid-PHP parser incompatibilities
12874 1. SOL-sensitive wikitext tokens as template-args
12888 #### The following section of tests are primarily to test
12889 #### wikitext escaping capabilities of Parsoid.
12890 #### A lot of the tests are disabled for the PHP parser either
12891 #### because of minor newline diffs or other reasons.
12892 #### As Parsoid serializer can handle newlines and other HTML
12893 #### more robustly, some of these tests might get reenabled
12894 #### for the PHP parser.
12896 #### --------------- Headings ---------------
12898 #### 1. Nested inside html <h1>=foo=</h1>
12899 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12900 #### 3. Nested inside html with wikitext split by html tags
12901 #### 4. No escape needed
12902 #### 5. Empty headings <h1></h1>
12903 #### 6. Heading chars in SOL context
12904 #### ----------------------------------------
12906 Headings: 0. Unnested
12908 <nowiki>=foo=</nowiki>
12910 <nowiki>=foo</nowiki>''a''=
12913 </p><p>=foo<i>a</i>=
12918 Headings: 1. Nested inside html
12922 =<nowiki>=foo=</nowiki>=
12923 ==<nowiki>=foo=</nowiki>==
12924 ===<nowiki>=foo=</nowiki>===
12925 ====<nowiki>=foo=</nowiki>====
12926 =====<nowiki>=foo=</nowiki>=====
12927 ======<nowiki>=foo=</nowiki>======
12938 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12943 <nowiki>*bar</nowiki>
12947 <nowiki>=bar=</nowiki>
12955 Headings: 3. Nested inside html with wikitext split by html tags
12959 =<nowiki>=</nowiki>'''bold'''foo==
12961 <h1>=<b>bold</b>foo=</h1>
12965 Headings: 4. No escaping needed (testing just h1 and h2)
12980 <h1><i>=</i>foo=</h1>
12985 Headings: 5. Empty headings
12989 =<nowiki></nowiki>=
12990 ==<nowiki></nowiki>==
12991 ===<nowiki></nowiki>===
12992 ====<nowiki></nowiki>====
12993 =====<nowiki></nowiki>=====
12994 ======<nowiki></nowiki>======
13005 Headings: 6. Heading chars in SOL context
13009 <!--cmt--><nowiki>=h1=</nowiki>
13015 #### --------------- Lists ---------------
13016 #### 0. Outside nests (*foo, etc.)
13017 #### 1. Nested inside html <ul><li>*foo</li></ul>
13018 #### 2. Inside definition lists
13019 #### 3. Only bullets at start should be escaped
13020 #### 4. No escapes needed
13021 #### 5. No unnecessary escapes
13022 #### 6. Escape bullets in SOL position
13023 #### 7. Escape bullets in a multi-line context
13024 #### ----------------------------------------
13027 Lists: 0. Outside nests
13029 <nowiki>*foo</nowiki>
13031 <nowiki>#foo</nowiki>
13039 Lists: 1. Nested inside html
13041 *<nowiki>*foo</nowiki>
13043 *<nowiki>#foo</nowiki>
13045 *<nowiki>:foo</nowiki>
13047 *<nowiki>;foo</nowiki>
13049 #<nowiki>*foo</nowiki>
13051 #<nowiki>#foo</nowiki>
13053 #<nowiki>:foo</nowiki>
13055 #<nowiki>;foo</nowiki>
13077 Lists: 2. Inside definition lists
13079 ;<nowiki>;foo</nowiki>
13081 ;<nowiki>:foo</nowiki>
13083 ;<nowiki>:foo</nowiki>
13086 :<nowiki>:foo</nowiki>
13101 Lists: 3. Only bullets at start of text should be escaped
13103 *<nowiki>*foo*bar</nowiki>
13105 *<nowiki>*foo</nowiki>''it''*bar
13109 <ul><li>*foo<i>it</i>*bar
13115 Lists: 4. No escapes needed
13127 <ul><li><i>foo</i>*bar
13129 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13134 Lists: 5. No unnecessary escapes
13136 * bar <span><nowiki>[[foo]]</nowiki></span>
13138 *=bar <span><nowiki>[[foo]]</nowiki></span>
13140 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13142 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13144 *=bar <span>foo]]</span>=
13146 <ul><li> bar <span>[[foo]]</span>
13148 <ul><li>=bar <span>[[foo]]</span>
13150 <ul><li>[[bar <span>[[foo]]</span>
13152 <ul><li>]]bar <span>[[foo]]</span>
13154 <ul><li>=bar <span>foo]]</span>=
13160 Lists: 6. Escape bullets in SOL position
13164 <!--cmt--><nowiki>*foo</nowiki>
13171 Lists: 7. Escape bullets in a multi-line context
13181 #### --------------- HRs ---------------
13182 #### 1. Single line
13183 #### -----------------------------------
13186 HRs: 1. Single line
13191 <nowiki>----</nowiki>
13193 <nowiki>=foo=</nowiki>
13195 <nowiki>*foo</nowiki>
13202 #### --------------- Tables ---------------
13203 #### 1a. Simple example
13204 #### 1b. No escaping needed (!foo)
13205 #### 1c. No escaping needed (|foo)
13206 #### 1d. No escaping needed (|}foo)
13208 #### 2a. Nested in td (<td>foo|bar</td>)
13209 #### 2b. Nested in td (<td>foo||bar</td>)
13210 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13212 #### 3a. Nested in th (<th>foo!bar</th>)
13213 #### 3b. Nested in th (<th>foo!!bar</th>)
13214 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13218 #### 4c. No escaping needed
13219 #### --------------------------------------
13222 Tables: 1a. Simple example
13233 Tables: 1b. No escaping needed
13242 Tables: 1c. No escaping needed
13251 Tables: 1d. No escaping needed
13260 Tables: 2a. Nested in td
13265 |<nowiki>foo|bar</nowiki>
13275 Tables: 2b. Nested in td
13280 |<nowiki>foo||bar</nowiki>
13281 |''it''<nowiki>foo||bar</nowiki>
13286 </td><td><i>it</i>foo||bar
13292 Tables: 2c. Nested in td -- no escaping needed
13307 Tables: 3a. Nested in th
13322 Tables: 3b. Nested in th
13327 !<nowiki>foo!!bar</nowiki>
13337 Tables: 3c. Nested in th -- no escaping needed
13352 Tables: 4a. Escape -
13360 |<nowiki>-bar</nowiki>
13364 <tr><th>-bar</th></tr>
13365 <tr><td>-bar</td></tr>
13370 Tables: 4b. Escape +
13378 |<nowiki>+bar</nowiki>
13382 <tr><th>+bar</th></tr>
13383 <tr><td>+bar</td></tr>
13388 Tables: 4c. No escaping needed
13402 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13403 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13408 Tables: 4d. No escaping needed
13424 #### --------------- Links ---------------
13425 #### 1. Quote marks in link text
13426 #### 2. Wikilinks: Escapes needed
13427 #### 3. Wikilinks: No escapes needed
13428 #### 4. Extlinks: Escapes needed
13429 #### 5. Extlinks: No escapes needed
13430 #### --------------------------------------
13432 Links 1. Quote marks in link text
13436 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13438 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13442 Links 2. WikiLinks: Escapes needed
13446 [[Foo|<nowiki>[Foobar]</nowiki>]]
13447 [[Foo|<nowiki>Foobar]</nowiki>]]
13448 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13449 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13450 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13451 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13452 [[Foo|<nowiki>|Bar</nowiki>]]
13454 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13455 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13456 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13457 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13458 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13459 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13460 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13464 Links 3. WikiLinks: No escapes needed
13471 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13472 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13476 Links 4. ExtLinks: Escapes needed
13480 [http://google.com <nowiki>[google]</nowiki>]
13481 [http://google.com <nowiki>google]</nowiki>]
13483 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13484 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13488 Links 5. ExtLinks: No escapes needed
13492 [http://google.com [google]
13494 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13497 #### --------------- Quotes ---------------
13498 #### 1. Quotes inside <b> and <i>
13499 #### 2. Link fragments separated by <i> and <b> tags
13500 #### 3. Link fragments inside <i> and <b>
13501 #### --------------------------------------
13503 1. Quotes inside <b> and <i>
13505 ''<nowiki>'foo'</nowiki>''
13506 ''<nowiki>''foo''</nowiki>''
13507 ''<nowiki>'''foo'''</nowiki>''
13508 '''<nowiki>'foo'</nowiki>'''
13509 '''<nowiki>''foo''</nowiki>'''
13510 '''<nowiki>'''foo'''</nowiki>'''
13511 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13519 <b>foo'<i>bar'</i>baz</b>
13524 2. Link fragments separated by <i> and <b> tags
13526 [[''foo''<nowiki>hello]]</nowiki>
13528 [['''foo'''<nowiki>hello]]</nowiki>
13530 <p>[[<i>foo</i>hello]]
13531 </p><p>[[<b>foo</b>hello]]
13536 2. Link fragments inside <i> and <b>
13537 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13538 this is one of the shortcomings of this format)
13540 ''[[foo''<nowiki>]]</nowiki>
13542 '''[[foo'''<nowiki>]]</nowiki>
13545 </p><p><b>[[foo</b>]]
13549 #### --------------- Paragraphs ---------------
13550 #### 1. No unnecessary escapes
13551 #### --------------------------------------
13554 1. No unnecessary escapes
13556 bar <span><nowiki>[[foo]]</nowiki></span>
13558 =bar <span><nowiki>[[foo]]</nowiki></span>
13560 [[bar <span><nowiki>[[foo]]</nowiki></span>
13562 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13564 <nowiki>=bar </nowiki><span>foo]]</span>=
13566 <p>bar <span>[[foo]]</span>
13567 </p><p>=bar <span>[[foo]]</span>
13568 </p><p>[[bar <span>[[foo]]</span>
13569 </p><p>]]bar <span>[[foo]]</span>
13570 </p><p>=bar <span>foo]]</span>=
13574 #### --------------- PRE ------------------
13575 #### 1. Leading space in SOL context should be escaped
13576 #### --------------------------------------
13578 1. Leading space in SOL context should be escaped
13582 <nowiki> foo</nowiki>
13583 <!--cmt--><nowiki> foo</nowiki>
13590 #### --------------- HTML tags ---------------
13593 #### 3. multi-line html tag
13594 #### --------------------------------------
13600 <a href="http://google.com">google</a>
13602 <a href="http://google.com">google</a>
13608 <nowiki><div>foo</div>
13609 <div style="color:red">foo</div></nowiki>
13611 <p><div>foo</div>
13612 <div style="color:red">foo</div>
13617 3. multi-line html tag
13629 #### --------------- Others ---------------
13633 <nowiki>foo</nowiki>
13635 <p><nowiki>foo</nowiki>
13640 Tag-like HTML structures are passed through as text
13662 </p><p>1<d e>f
13667 # This fails in the PHP parser (see bug 40670,
13668 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13670 Tag names followed by punctuation should not be recognized as tags
13676 <p><s.ome> text
13681 HTML tag with necessary entities in attributes
13683 <span title="&amp;">foo</span>
13685 <p><span title="&amp;">foo</span>
13690 HTML tag with 'unnecessary' entity encoding in attributes
13692 <span title="&">foo</span>
13694 <p><span title="&">foo</span>
13699 HTML tag with broken attribute value quoting
13701 <span title="Hello world>Foo</span>
13703 <p><span>Foo</span>
13708 Parsoid-only: HTML tag with broken attribute value quoting
13712 <span title="Hello world>Foo</span>
13714 <p><span title="Hello world">Foo</span>
13719 Table with broken attribute value quoting
13722 | title="Hello world|Foo
13733 Table with broken attribute value quoting on consecutive lines
13736 | title="Hello world|Foo
13737 | style="color:red|Bar
13750 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13755 | title="Hello world|Foo
13756 | style="color:red|Bar
13761 <td title="Hello world">Foo
13762 </td><td style="color: red">Bar
13768 Accept empty td cell attribute
13771 | align="center" | foo || |
13776 <td align="center"> foo </td>
13783 Non-empty attributes in th-cells
13786 ! Foo !! style="color: red" | Bar
13792 <th style="color: red"> Bar
13798 Accept empty attributes in th-cells
13813 Empty table rows go away
13838 Try for 100% code coverage