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: wiki links within external link (Bug 3695)
2505 [http://example.com [[wikilink]] embedded in ext link]
2507 <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>
2512 BUG 787: Links with one slash after the url protocol are invalid
2516 [http:/example.com title]
2518 <p>http:/example.com
2519 </p><p>[http:/example.com title]
2524 Bracketed external links with template-generated invalid target
2526 [{{echo|http:/example.com}} title]
2528 <p>[http:/example.com title]
2533 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2535 ''[http://example.com text'']
2536 [http://example.com '''text]'''
2537 ''Something [http://example.com in italic'']
2538 ''Something [http://example.com mixed''''', even bold]'''
2539 '''''Now [http://example.com both''''']
2541 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2542 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2543 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2544 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2545 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2551 Bug 4781: %26 in URL
2553 http://www.example.com/?title=AT%26T
2555 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2559 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2560 # % is actually legal in HTML5. Any change in output would need testing though.
2562 Bug 4781, 5267: %25 in URL
2564 http://www.example.com/?title=100%25_Bran
2566 <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>
2571 Bug 4781, 5267: %28, %29 in URL
2573 http://www.example.com/?title=Ben-Hur_%281959_film%29
2575 <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>
2581 Bug 4781: %26 in autonumber URL
2583 [http://www.example.com/?title=AT%26T]
2585 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2590 Bug 4781, 5267: %26 in autonumber URL
2592 [http://www.example.com/?title=100%25_Bran]
2594 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2599 Bug 4781, 5267: %28, %29 in autonumber URL
2601 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2603 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2609 Bug 4781: %26 in bracketed URL
2611 [http://www.example.com/?title=AT%26T link]
2613 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2618 Bug 4781, 5267: %26 in bracketed URL
2620 [http://www.example.com/?title=100%25_Bran link]
2622 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2627 Bug 4781, 5267: %28, %29 in bracketed URL
2629 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2631 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2636 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2638 Some [http://example.com/ pretty ''italics'' and stuff]!
2640 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2645 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2647 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2649 <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>
2654 External link containing double-single-quotes with no space separating the url from text in italics
2656 [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]].]
2658 <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>
2663 Text in square brackets that is not a link should parse as text
2668 [url=http://example.com]
2673 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
2678 URL-encoding in URL functions (single parameter)
2680 {{localurl:Some page|amp=&}}
2682 <p>/index.php?title=Some_page&amp=&
2687 URL-encoding in URL functions (multiple parameters)
2689 {{localurl:Some page|q=?&=&}}
2691 <p>/index.php?title=Some_page&q=?&amp=&
2698 http://example.com/index.php?foozoid%5B%5D=bar
2700 http://example.com/index.php?foozoid[]=bar
2702 <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>
2703 </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>
2708 IPv6 urls (bug 21261)
2712 http://[2404:130:0:1000::187:2]/index.php
2714 <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>
2719 Non-extlinks in brackets
2728 [{{echo|foo}} ''bar'']
2729 [{{echo|foo}}l's] errand
2730 [{{echo|foo}}l's errand]
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: 1. Fostering of entire template content
5851 <tr><td></td></tr></table>
5856 Templates: Wiki Tables: 2. Fostering of partial template content
5866 <tr><td></td></tr></table>
5871 Templates: Wiki Tables: 3. td-content via multiple templates
5874 {{echo|{{pipe}}a}}{{echo|b}}
5885 Templates: Wiki Tables: 4. Templated tags, no content
5891 <tr><td></td></tr></table>
5896 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5910 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5924 Templates: Lists: Multi-line list-items via templates
5926 *{{echo|a {{nonexistent|
5928 *{{echo|b {{nonexistent|
5931 <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>
5932 </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>
5938 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5940 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5942 <p><i>ab</i>c<i>d</i>e
5947 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5948 (PHP parser generates misnested html)
5952 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5954 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5958 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5959 (PHP parser generates misnested html)
5963 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5966 <div><i>b</i>c<i>d</i></div>
5971 Templates: Ugly nesting: 4. Divs opened/closed across templates
5973 a<div>b{{echo|c</div>d}}e
5980 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5986 |{{echo|foo</table>}}
5990 <table about="#mwt1" typeof="mw:Object/Template ">
5991 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5992 bar</span><span about="#mwt1">
5997 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6007 <td>1. {{echo|foo </table>}}</td>
6009 <td>2. {{echo|baz </table>}}</td>
6022 <table about="#mwt1" typeof="mw:Object/Template">
6027 <td >1. foo </td></tr></tbody></table></td>
6029 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6030 </span><span about="#mwt1">
6032 abc</span><span about="#mwt1">
6033 </span><span about="#mwt1">
6034 </span><span about="#mwt1">
6035 </span><span about="#mwt1">
6036 </span><span about="#mwt1">
6038 xyz</span><span about="#mwt1">
6039 </span><span about="#mwt1">
6044 Templates: Ugly templates: 3. newline-only template parameter
6053 # This looks like a bug: a single newline triggers p/br for some reason.
6055 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6066 Parser Functions: 1. Simple example
6075 Parser Functions: 2. Nested use (only outermost should be marked up)
6084 ### Pre-save transform tests
6087 pre-save transform: subst:
6093 This is a test template
6097 pre-save transform: normal template
6107 pre-save transform: nonexistent template
6111 {{thistemplatedoesnotexist}}
6113 {{thistemplatedoesnotexist}}
6118 pre-save transform: subst magic variables
6127 # This is bug 89, which I fixed. -- wtm
6129 pre-save transform: subst: templates with parameters
6133 {{subst:paramtest|param="something else"}}
6135 This is a test template with parameter "something else"
6141 <nowiki>'''not wiki'''</nowiki>
6145 pre-save transform: nowiki in subst (bug 1188)
6149 {{subst:nowikitest}}
6151 <nowiki>'''not wiki'''</nowiki>
6156 Template:commenttest
6158 This template has <!-- a comment --> in it.
6162 pre-save transform: comment in subst (bug 1936)
6166 {{subst:commenttest}}
6168 This template has <!-- a comment --> in it.
6172 pre-save transform: unclosed tag
6176 <nowiki>'''not wiki'''
6178 <nowiki>'''not wiki'''
6182 pre-save transform: mixed tag case
6186 <NOwiki>'''not wiki'''</noWIKI>
6188 <NOwiki>'''not wiki'''</noWIKI>
6192 pre-save transform: unclosed comment in <nowiki>
6196 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6198 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6204 <span onmouseover="alert('crap')">Oh no</span>
6208 (confirming safety of fix for subst bug 1936)
6210 {{Template:dangerous}}
6212 <p><span>Oh no</span>
6217 pre-save transform: comment containing gallery (bug 5024)
6221 <!-- <gallery>data</gallery> -->
6223 <!-- <gallery>data</gallery> -->
6227 pre-save transform: comment containing extension
6231 <!-- <tag>data</tag> -->
6233 <!-- <tag>data</tag> -->
6237 pre-save transform: comment containing nowiki
6241 <!-- <nowiki>data</nowiki> -->
6243 <!-- <nowiki>data</nowiki> -->
6247 pre-save transform: <noinclude> in subst (bug 3298)
6257 pre-save transform: <onlyinclude> in subst (bug 3298)
6269 {{<includeonly>subst:</includeonly>Includes}}
6273 Template:SafeSubstTest
6275 {{<includeonly>safesubst:</includeonly>Includes}}
6279 bug 22297: safesubst: works during PST
6283 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6289 bug 22297: safesubst: works during normal parse
6298 subst: does not work during normal parse
6302 <p>{{subst:Includes}}
6307 pre-save transform: context links ("pipe trick")
6311 [[Article (context)|]]
6314 [[Bar:Article (context)|]]
6315 [[:Bar:Article (context)|]]
6317 [[|Article (context)]]
6321 [[Article (context)|Article]]
6322 [[Bar:Article|Article]]
6323 [[:Bar:Article|Article]]
6324 [[Bar:Article (context)|Article]]
6325 [[:Bar:Article (context)|Article]]
6327 [[Article (context)]]
6328 [[Bar:X (Y) Z|X (Y) Z]]
6329 [[:Bar:X (Y) Z|X (Y) Z]]
6333 pre-save transform: context links ("pipe trick") with interwiki prefix
6337 [[interwiki:Article|]]
6338 [[:interwiki:Article|]]
6339 [[interwiki:Bar:Article|]]
6340 [[:interwiki:Bar:Article|]]
6342 [[interwiki:Article|Article]]
6343 [[:interwiki:Article|Article]]
6344 [[interwiki:Bar:Article|Bar:Article]]
6345 [[:interwiki:Bar:Article|Bar:Article]]
6349 pre-save transform: context links ("pipe trick") with parens in title
6351 pst title=[[Somearticle (context)]]
6355 [[Article (context)|Article]]
6359 pre-save transform: context links ("pipe trick") with comma in title
6361 pst title=[[Someplace, Somewhere]]
6364 [[Otherplace, Elsewhere|]]
6365 [[Otherplace, Elsewhere, Anywhere|]]
6367 [[Otherplace, Somewhere|Otherplace]]
6368 [[Otherplace, Elsewhere|Otherplace]]
6369 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6373 pre-save transform: context links ("pipe trick") with parens and comma
6375 pst title=[[Someplace (IGNORED), Somewhere]]
6378 [[Otherplace (place), Elsewhere|]]
6380 [[Otherplace, Somewhere|Otherplace]]
6381 [[Otherplace (place), Elsewhere|Otherplace]]
6385 pre-save transform: context links ("pipe trick") with comma and parens
6387 pst title=[[Who, me? (context)]]
6390 [[Me, Myself, and I (1937 song)|]]
6392 [[Yes, you. (context)|Yes, you.]]
6393 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6397 pre-save transform: context links ("pipe trick") with namespace
6399 pst title=[[Ns:Somearticle]]
6403 [[Ns:Article|Article]]
6407 pre-save transform: context links ("pipe trick") with namespace and parens
6409 pst title=[[Ns:Somearticle (context)]]
6413 [[Ns:Article (context)|Article]]
6417 pre-save transform: context links ("pipe trick") with namespace and comma
6419 pst title=[[Ns:Somearticle, Context, Whatever]]
6423 [[Ns:Article, Context, Whatever|Article]]
6427 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6429 pst title=[[Ns:Somearticle, Context (context)]]
6433 [[Ns:Article (context)|Article]]
6437 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6439 pst title=[[Ns:Somearticle (IGNORED), Context]]
6443 [[Ns:Article, Context|Article]]
6447 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6451 [[Article(context)|]]
6452 [[Bar:Article(context)|]]
6453 [[:Bar:Article(context)|]]
6454 [[|Article(context)]]
6458 [[Article(context)|Article]]
6459 [[Bar:Article(context)|Article]]
6460 [[:Bar:Article(context)|Article]]
6461 [[Article(context)]]
6463 [[:Bar:X(Y)Z|X(Y)Z]]
6467 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6471 [[Article (context)|]]
6472 [[Bar:Article (context)|]]
6473 [[:Bar:Article (context)|]]
6474 [[|Article (context)]]
6478 [[Article (context)|Article]]
6479 [[Bar:Article (context)|Article]]
6480 [[:Bar:Article (context)|Article]]
6481 [[Article (context)]]
6482 [[Bar:X (Y) Z|X (Y) Z]]
6483 [[:Bar:X (Y) Z|X (Y) Z]]
6487 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6491 [[Article(context)|]]
6492 [[Bar:Article(context)|]]
6493 [[:Bar:Article(context)|]]
6494 [[|Article(context)]]
6498 [[Article(context)|Article]]
6499 [[Bar:Article(context)|Article]]
6500 [[:Bar:Article(context)|Article]]
6501 [[Article(context)]]
6503 [[:Bar:X(Y)Z|X(Y)Z]]
6507 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6511 [[Article (context), context|]]
6512 [[Article (context),context|]]
6513 [[Bar:Article (context), context|]]
6514 [[Bar:Article (context),context|]]
6515 [[:Bar:Article (context), context|]]
6516 [[:Bar:Article (context),context|]]
6518 [[Article (context), context|Article]]
6519 [[Article (context),context|Article]]
6520 [[Bar:Article (context), context|Article]]
6521 [[Bar:Article (context),context|Article]]
6522 [[:Bar:Article (context), context|Article]]
6523 [[:Bar:Article (context),context|Article]]
6527 pre-save transform: trim trailing empty lines
6531 Empty lines are trimmed
6537 Empty lines are trimmed
6541 pre-save transform: Signature expansion
6546 * <noinclude>~~~</noinclude>
6547 * <includeonly>~~~</includeonly>
6548 * <onlyinclude>~~~</onlyinclude>
6550 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6551 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6552 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6553 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6558 pre-save transform: Signature expansion in nowiki tags (bug 93)
6564 <nowiki>~~~~</nowiki>
6566 <includeonly><nowiki>~~~~</nowiki></includeonly>
6568 <noinclude><nowiki>~~~~</nowiki></noinclude>
6570 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6572 {{subst:Foo}} shall be converted to FOO
6574 As well as inside noinclude/onlyinclude
6575 <noinclude>{{subst:Foo}}</noinclude>
6576 <onlyinclude>{{subst:Foo}}</onlyinclude>
6578 But not inside includeonly
6579 <includeonly>{{subst:Foo}}</includeonly>
6583 <nowiki>~~~~</nowiki>
6585 <includeonly><nowiki>~~~~</nowiki></includeonly>
6587 <noinclude><nowiki>~~~~</nowiki></noinclude>
6589 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6591 FOO shall be converted to FOO
6593 As well as inside noinclude/onlyinclude
6594 <noinclude>FOO</noinclude>
6595 <onlyinclude>FOO</onlyinclude>
6597 But not inside includeonly
6598 <includeonly>{{subst:Foo}}</includeonly>
6602 ### Message transform tests
6605 message transform: magic variables
6615 message transform: should not transform wiki markup
6625 message transform: <noinclude> in transcluded template (bug 4926)
6635 message transform: <onlyinclude> in transcluded template (bug 4926)
6645 {{#special:}} page name, known
6649 {{#special:Recentchanges}}
6651 Special:RecentChanges
6655 {{#special:}} page name with subpage, known
6659 {{#special:Recentchanges/param}}
6661 Special:RecentChanges/param
6665 {{#special:}} page name, unknown
6669 {{#special:foobarnonexistent}}
6671 No such special page
6675 {{#speciale:}} page name, known
6679 {{#speciale:Recentchanges}}
6681 Special:RecentChanges
6685 {{#speciale:}} page name with subpage, known
6689 {{#speciale:Recentchanges/param}}
6691 Special:RecentChanges/param
6695 {{#speciale:}} page name, unknown
6699 {{#speciale:foobarnonexistent}}
6701 No_such_special_page
6710 [[Image:foobar.jpg]]
6712 <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>
6719 [[Image:foobar.jpg|right]]
6721 <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>
6726 Simple image (using File: namespace, now canonical)
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|Caption text]]
6739 <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>
6744 Image with empty attribute
6746 [[Image:foobar.jpg|right||Caption text]]
6748 <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>
6753 Image with link tails
6755 123[[Image:foobar.jpg]]456
6756 123[[Image:foobar.jpg|right]]456
6757 123[[Image:foobar.jpg|thumb]]456
6759 <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
6761 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
6762 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
6767 Image with multiple captions -- only last one is accepted
6769 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6771 <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>
6776 Image with width attribute at different positions
6778 [[Image:foobar.jpg|200px|right|Caption]]
6779 [[Image:foobar.jpg|right|200px|Caption]]
6780 [[Image:foobar.jpg|right|Caption|200px]]
6782 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6783 <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>
6784 <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>
6789 Image with link parameter, wiki target
6791 [[Image:foobar.jpg|link=Target page]]
6793 <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>
6798 Image with link parameter, URL target
6800 [[Image:foobar.jpg|link=http://example.com/]]
6802 <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>
6807 Image with link parameter, wgExternalLinkTarget
6809 [[Image:foobar.jpg|link=http://example.com/]]
6811 wgExternalLinkTarget='foobar'
6813 <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>
6818 Image with link parameter, wgNoFollowLinks set to false
6820 [[Image:foobar.jpg|link=http://example.com/]]
6822 wgNoFollowLinks=false
6824 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6829 Image with link parameter, wgNoFollowDomainExceptions
6831 [[Image:foobar.jpg|link=http://example.com/]]
6833 wgNoFollowDomainExceptions='example.com'
6835 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6840 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6842 [[Image:foobar.jpg|link=http://example.com/|Title]]
6844 wgExternalLinkTarget='foobar'
6846 <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>
6851 Image with empty link parameter
6853 [[Image:foobar.jpg|link=]]
6855 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6860 Image with link parameter (wiki target) and unnamed parameter
6862 [[Image:foobar.jpg|link=Target page|Title]]
6864 <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>
6869 Image with link parameter (URL target) and unnamed parameter
6871 [[Image:foobar.jpg|link=http://example.com/|Title]]
6873 <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>
6878 Thumbnail image with link parameter
6880 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6882 <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>
6887 Image with frame and link
6889 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6891 <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>
6896 Image with frame and link and explicit alt
6898 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6900 <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>
6905 Image with wiki markup in implicit alt
6907 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6909 <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>
6914 Image with wiki markup in explicit alt
6916 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6918 <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>
6923 Link to image page- image page normally doesn't exists, hence edit link
6924 Add test with existing image page
6925 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6929 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6934 bug 18784 Link to non-existent image page with caption should use caption as link text
6936 [[:Image:test|caption]]
6938 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6943 Frameless image caption with a free URL
6945 [[Image:foobar.jpg|http://example.com]]
6947 <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>
6952 Thumbnail image caption with a free URL
6954 [[Image:foobar.jpg|thumb|http://example.com]]
6956 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
6961 Thumbnail image caption with a free URL and explicit alt
6963 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6965 <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>
6970 BUG 1887: A ISBN with a thumbnail
6972 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
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 href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6979 BUG 1887: A RFC with a thumbnail
6981 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6983 <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>
6988 BUG 1887: A mailto link with a thumbnail
6990 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
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>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
6996 # Pending resolution to bug 368
6998 BUG 648: Frameless image caption with a link
7000 [[Image:foobar.jpg|text with a [[link]] in it]]
7002 <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>
7007 BUG 648: Frameless image caption with a link (suffix)
7009 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7011 <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>
7016 BUG 648: Frameless image caption with an interwiki link
7018 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7020 <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>
7025 BUG 648: Frameless image caption with a piped interwiki link
7027 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7029 <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>
7034 Escape HTML special chars in image alt text
7036 [[Image:foobar.jpg|& < > "]]
7038 <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>
7043 BUG 499: Alt text should have Ӓ, not &1234;
7045 [[Image:foobar.jpg|♀]]
7047 <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>
7052 Broken image caption with link
7054 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7056 <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.
7061 Image caption containing another image
7063 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7065 <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>
7070 Image caption containing a newline
7072 [[Image:Foobar.jpg|This
7075 <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>
7080 Parsoid: Image caption containing leading space
7081 (The leading space should not trigger nowiki escaping in wt2wt mode)
7083 [[Image:Foobar.jpg|thumb| bar]]
7085 <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>
7090 Bug 3090: External links other than http: in image captions
7092 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7094 <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>
7101 [[Image:foobar.jpg|a|class=b]]
7103 <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>
7108 Localized image handling (1).
7112 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7114 <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>
7119 Localized image handling (2).
7123 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7125 <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>
7130 "border", "frameless" and "class" attributes on an image.
7132 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7134 <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>
7141 #REDIRECT [[File:Barfoo.jpg]]
7147 [[Image:Barfoo.jpg]]
7149 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7154 Missing image with uploads disabled
7158 [[Image:Foobaz.jpg]]
7160 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7169 Subpage test/subpage
7177 subpage title=[[Subpage test]]
7181 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7186 Subpage noslash link
7188 subpage title=[[Subpage test]]
7192 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7201 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7206 BUG 561: {{/Subpage}}
7208 subpage title=[[Page]]
7212 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7220 Category:MediaWiki User's Guide
7228 [[:Category:MediaWiki User's Guide]]
7230 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7239 [[Category:MediaWiki User's Guide]]
7241 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7245 PAGESINCATEGORY invalid title fatal (r33546 fix)
7247 {{PAGESINCATEGORY:<bogus>}}
7254 Category with different sort key
7258 [[Category:MediaWiki User's Guide|Foo]]
7260 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7264 Category with identical sort key
7268 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7270 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7274 Category with empty sort key
7279 [[Category:MediaWiki User's Guide|]]
7281 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7285 Category with empty sort key and parentheses
7290 [[Category:Foo (bar)|]]
7292 [[Category:Foo (bar)|Foo]]
7296 Category with link tail
7301 123[[Category:Foo]]456
7303 123[[Category:Foo]]456
7307 Category with template
7312 [[Category:{{echo|Foo}}]]
7314 [[Category:{{echo|Foo}}]]
7318 Category with template in sort key
7323 [[Category:Foo|{{echo|Bar}}]]
7325 [[Category:Foo|{{echo|Bar}}]]
7329 Category with template in sort key and title
7334 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7336 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7340 Category / paragraph interactions
7342 Foo [[Category:Baz]] Bar
7344 Foo [[Category:Baz]]
7352 [[Category:Baz]] Bar
7365 {{echo|[[Category:Baz]]}}
7380 ### Inter-language links
7383 Inter-language links
7389 [[zh:食品]]
7391 es:Alimento fr:Nourriture zh:食品
7395 Duplicate interlanguage links (bug 24502)
7411 Basic section headings
7418 ===Smaller headline===
7421 <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>
7424 <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>
7427 <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>
7433 Section headings with TOC
7436 === Subheadline 1 ===
7437 ===== Skipping a level =====
7438 ====== Skipping a level ======
7442 ===Another headline===
7444 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7446 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7448 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7450 <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>
7452 <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>
7459 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7461 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7466 <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>
7467 <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>
7468 <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>
7469 <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>
7470 <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>
7473 <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>
7477 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7479 Handling of sections up to level 6 and beyond
7482 == Level 2 Heading==
7483 === Level 3 Heading===
7484 ==== Level 4 Heading====
7485 ===== Level 5 Heading=====
7486 ====== Level 6 Heading======
7487 ======= Level 7 Heading=======
7488 ======== Level 8 Heading========
7489 ========= Level 9 Heading=========
7490 ========== Level 10 Heading==========
7492 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7494 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7496 <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>
7498 <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>
7500 <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>
7502 <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>
7504 <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>
7505 <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>
7506 <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>
7507 <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>
7508 <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>
7521 <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>
7522 <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>
7523 <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>
7524 <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>
7525 <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>
7526 <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>
7527 <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>
7528 <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>
7529 <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>
7530 <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>
7535 TOC regression (bug 9764)
7539 ==== title 1.1.1 ====
7544 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7546 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7548 <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>
7550 <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>
7553 <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>
7556 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7558 <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>
7563 <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>
7564 <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>
7565 <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>
7566 <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>
7567 <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>
7568 <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>
7573 TOC with wgMaxTocLevel=3 (bug 6204)
7579 ==== title 1.1.1 ====
7584 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7586 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7588 <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>
7589 <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>
7592 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7594 <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>
7599 <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>
7600 <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>
7601 <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>
7602 <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>
7603 <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>
7604 <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>
7609 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7615 ====Section 1.1.1====
7616 ====Section 1.1.1.1====
7619 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7621 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7623 <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>
7626 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7629 <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>
7630 <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>
7631 <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>
7632 <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>
7633 <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>
7639 Resolving duplicate section names
7644 <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>
7645 <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>
7650 Resolving duplicate section names with differing case (bug 10721)
7655 <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>
7656 <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 Template with sections, __NOTOC__
7675 <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>
7676 <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>
7677 <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>
7678 <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>
7683 __NOEDITSECTION__ keyword
7689 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7690 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7695 Link inside a section heading
7697 ==Section with a [[Main Page|link]] in it==
7699 <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>
7704 TOC regression (bug 12077)
7711 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7713 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7715 <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>
7718 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7721 <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>
7722 <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>
7723 <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>
7728 BUG 1219 URL next to image (good)
7730 http://example.com [[Image:foobar.jpg]]
7732 <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>
7737 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7740 The line above must have a trailing space!
7743 But just in case it doesn't...
7745 <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>
7746 <p>The line above must have a trailing space!
7748 <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>
7749 <p>But just in case it doesn't...
7754 Header with special characters (bug 25462)
7756 The tooltips shall not show entities to the user (ie. be double escaped)
7773 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7775 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7777 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7778 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7779 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7780 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7781 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7784 <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>
7787 <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>
7790 <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>
7793 <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>
7796 <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>
7802 Headers with excess '=' characters
7803 (Are similar tests necessary beyond the 1st level?)
7807 =''italic'' heading==
7808 ==''italic'' heading=
7810 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7812 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7813 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7814 <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>
7815 <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>
7818 <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>
7819 <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>
7820 <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>
7821 <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>
7826 BUG 1219 URL next to image (broken)
7828 http://example.com[[Image:foobar.jpg]]
7830 <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>
7835 Bug 1186 news: in the middle of text
7837 http://en.wikinews.org/wiki/Wikinews:Workplace
7839 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7845 Namespaced link must have a title
7854 Namespaced link must have a title (bad fragment version)
7856 [[Project:#fragment]]
7858 <p>[[Project:#fragment]]
7864 ### HTML tags and HTML attributes
7868 div with no attributes
7870 <div>HTML rocks</div>
7872 <div>HTML rocks</div>
7877 div with double-quoted attribute
7879 <div id="rock">HTML rocks</div>
7881 <div id="rock">HTML rocks</div>
7886 div with single-quoted attribute
7888 <div id='rock'>HTML rocks</div>
7890 <div id="rock">HTML rocks</div>
7895 div with unquoted attribute
7897 <div id=rock>HTML rocks</div>
7899 <div id="rock">HTML rocks</div>
7904 div with illegal double attributes
7906 <div id="a" id="b">HTML rocks</div>
7908 <div id="b">HTML rocks</div>
7912 # FIXME: produce empty string instead of "class" in the PHP parser, following
7915 div with empty attribute value, space before equals
7919 <div class =>HTML rocks</div>
7921 <div class="">HTML rocks</div>
7925 # The PHP parser escapes the opening brace to { for some reason, so
7926 # disabled this test for it.
7928 div with braces in attribute value
7932 <div title="{}">Foo</div>
7934 <div title="{}">Foo</div>
7937 # This it very inconsistent in the PHP parser: it returns
7938 # class="class" if there is a space between the name and the equal sign (see
7939 # 'div with empty attribute value, space before equals'), but strips the
7940 # attribute completely if the space is missing. We hope that not much content
7941 # depends on this, so are implementing the behavior below in Parsoid for
7942 # consistencies' sake. Disabled for the PHP parser.
7943 # FIXME: fix this behavior in the PHP parser?
7945 div with empty attribute value, no space before equals
7949 <div class=>HTML rocks</div>
7951 <div class="">HTML rocks</div>
7956 HTML multiple attributes correction
7958 <p class="error" class="awesome">Awesome!</p>
7960 <p class="awesome">Awesome!</p>
7965 Table multiple attributes correction
7968 !+ class="error" class="awesome"| status
7973 <th class="awesome"> status
7981 <DIV ID="x">HTML ROCKS</DIV>
7983 <div id="x">HTML ROCKS</div>
7988 Non-ASCII pseudo-tags are rendered as text
7997 Pseudo-tag with URL 'name' renders as url link
7999 <http://example.com/>
8001 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8006 text with amp in the middle of nowhere
8010 <p>Remember AT&T?
8015 text with character entity: eacute
8017 I always thought é was a cute letter.
8019 <p>I always thought é was a cute letter.
8024 text with entity-escaped character entity-like string: eacute
8026 I always thought &eacute; was a cute letter.
8028 <p>I always thought &eacute; was a cute letter.
8033 text with undefined character entity: xacute
8035 I always thought &xacute; was a cute letter.
8037 <p>I always thought &xacute; was a cute letter.
8049 [[Media:Foobar.jpg]]
8051 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8056 Media link with text
8058 [[Media:Foobar.jpg|A neat file to look at]]
8060 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8064 # FIXME: this is still bad HTML tag nesting
8066 Media link with nasty text
8067 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8069 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8071 <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>
8076 Media link to nonexistent file (bug 1702)
8078 [[Media:No such.jpg]]
8080 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8085 Image link to nonexistent file (bug 1850 - good)
8087 [[Image:No such.jpg]]
8089 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8094 :Image link to nonexistent file (bug 1850 - bad)
8096 [[:Image:No such.jpg]]
8098 <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>
8105 Character reference normalization in link text (bug 1938)
8107 [[Main Page|this&that]]
8109 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8116 Test for unicode normalization
8118 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8122 (bug 19451) Links should refer to the normalized form.
8130 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8131 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8132 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8133 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8134 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8139 Empty attribute crash test (bug 2067)
8141 <font color="">foo</font>
8143 <p><font color="">foo</font>
8148 Empty attribute crash test single-quotes (bug 2067)
8150 <font color=''>foo</font>
8152 <p><font color="">foo</font>
8157 Attribute test: equals, then nothing
8159 <font color=>foo</font>
8166 Attribute test: unquoted value
8168 <font color=x>foo</font>
8170 <p><font color="x">foo</font>
8175 Attribute test: unquoted but illegal value (hash)
8177 <font color=#x>foo</font>
8179 <p><font color="#x">foo</font>
8184 Attribute test: no value
8186 <font color>foo</font>
8188 <p><font color="color">foo</font>
8193 Bug 2095: link with three closing brackets
8197 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8202 Bug 2095: link with pipe and three closing brackets
8206 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8211 Bug 2095: link with pipe and three closing brackets, version 2
8213 [[Main Page|[http://example.com/]]]
8215 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8225 Template:Dangerous attribute
8227 " onmouseover="alert(document.cookie)
8231 Template:Dangerous style attribute
8233 border-size: expression(alert(document.cookie))
8239 <div style="float: right; {{{1}}}">Magic div</div>
8243 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8245 <div title="{{test}}"></div>
8247 <div title="This is a test template"></div>
8252 Bug 2304: HTML attribute safety (dangerous template; 2309)
8254 <div title="{{dangerous attribute}}"></div>
8256 <div title=""></div>
8261 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8263 <div style="{{dangerous style attribute}}"></div>
8265 <div style="/* insecure input */"></div>
8270 Bug 2304: HTML attribute safety (safe parameter; 2309)
8272 {{div style|width: 200px}}
8274 <div style="float: right; width: 200px">Magic div</div>
8279 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8281 {{div style|width: expression(alert(document.cookie))}}
8283 <div style="/* insecure input */">Magic div</div>
8288 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8290 {{div style|"><script>alert(document.cookie)</script>}}
8292 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8297 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8299 {{div style|" ><script>alert(document.cookie)</script>}}
8301 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8306 Bug 2304: HTML attribute safety (link)
8308 <div title="[[Main Page]]"></div>
8310 <div title="[[Main Page]]"></div>
8315 Bug 2304: HTML attribute safety (italics)
8317 <div title="''foobar''"></div>
8319 <div title="''foobar''"></div>
8324 Bug 2304: HTML attribute safety (bold)
8326 <div title="'''foobar'''"></div>
8328 <div title="'''foobar'''"></div>
8334 Bug 2304: HTML attribute safety (ISBN)
8336 <div title="ISBN 1234567890"></div>
8338 <div title="ISBN 1234567890"></div>
8343 Bug 2304: HTML attribute safety (RFC)
8345 <div title="RFC 1234"></div>
8347 <div title="RFC 1234"></div>
8352 Bug 2304: HTML attribute safety (PMID)
8354 <div title="PMID 1234567890"></div>
8356 <div title="PMID 1234567890"></div>
8361 Bug 2304: HTML attribute safety (web link)
8363 <div title="http://example.com/"></div>
8365 <div title="http://example.com/"></div>
8370 Bug 2304: HTML attribute safety (named web link)
8372 <div title="[http://example.com/ link]"></div>
8374 <div title="[http://example.com/ link]"></div>
8379 Bug 3244: HTML attribute safety (extension; safe)
8381 <div style="<nowiki>background:blue</nowiki>"></div>
8383 <div style="background:blue"></div>
8388 Bug 3244: HTML attribute safety (extension; unsafe)
8390 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8392 <div style="/* insecure input */"></div>
8396 # More MSIE fun discovered by Tom Gilder
8399 MSIE CSS safety test: spurious slash
8401 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8403 <div style="/* insecure input */">evil</div>
8408 MSIE CSS safety test: hex code
8410 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8412 <div style="/* insecure input */">evil</div>
8417 MSIE CSS safety test: comment in url
8419 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8421 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8426 MSIE CSS safety test: comment in expression
8428 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8430 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8436 Table attribute legitimate extension
8439 !+ style="<nowiki>color:blue</nowiki>"| status
8444 <th style="color:blue"> status
8450 Table attribute safety
8453 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8458 <th style="/* insecure input */"> status
8464 CSS line continuation 1
8466 <div style="background-image: u\ rl(test.jpg);"></div>
8468 <div style="/* insecure input */"></div>
8473 CSS line continuation 2
8475 <div style="background-image: u\ rl(test.jpg); "></div>
8477 <div style="/* insecure input */"></div>
8488 Expansion of multi-line templates in attribute values (bug 6255)
8490 <div style="background: {{identity|#00FF00}}">-</div>
8492 <div style="background: #00FF00">-</div>
8498 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8500 <div style="background:
8503 <div style="background: #00FF00">-</div>
8508 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8510 <div style="background: #00FF00">-</div>
8512 <div style="background: #00FF00">-</div>
8517 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8520 Parser hook: empty input
8533 Parser hook: empty input using terminated empty elements
8546 Parser hook: empty input using terminated empty elements (space before)
8559 Parser hook: basic input
8573 Parser hook: case insensitive
8587 Parser hook: case insensitive, redux
8600 Parser hook: nested tags
8604 <tag><tag></tag></tag>
8615 Parser hook: basic arguments
8617 <tag width=200 height = "100" depth = '50' square></tag>
8625 'square' => 'square',
8632 Parser hook: argument containing a forward slash (bug 5344)
8634 <tag filename='/tmp/bla'></tag>
8639 'filename' => '/tmp/bla',
8646 Parser hook: empty input using terminated empty elements (bug 2374)
8659 # </tag> should be output literally since there is no matching tag that begins it
8661 Parser hook: basic arguments using terminated empty elements (bug 2374)
8663 <tag width=200 height = "100" depth = '50' square/>
8673 'square' => 'square',
8682 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8686 Parser hook: static parser hook not inside a comment
8688 <statictag>hello, world</statictag>
8689 <statictag action=flush/>
8697 Parser hook: static parser hook inside a comment
8699 <!-- <statictag>hello, world</statictag> -->
8700 <statictag action=flush/>
8706 # Nested template calls; this case was broken by Parser.php rev 1.506,
8710 Template:One-parameter
8712 (My parameter is: {{{1}}})
8716 Template:Map-one-parameter
8722 Nested template calls
8724 {{Map-one-parameter|One-parameter|param}}
8726 <p>(My parameter is: param)
8735 Sanitizer: Closing of open tags
8737 <s></s><table></table>
8739 <s></s><table></table>
8744 Sanitizer: Closing of open but not closed tags
8753 Sanitizer: Closing of closed but not open tags
8762 Sanitizer: Closing of closed but not open table tags
8764 Table not started</td></tr></table>
8766 <p>Table not started</td></tr></table>
8771 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8773 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8775 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8780 Sanitizer: Validating the contents of the id attribute (bug 4515)
8786 Something, but definitely not <br id="9" />...
8790 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8794 <br id="foo" /><br id="foo" />
8796 Something need to be done. foo-2 ?
8800 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8803 <meta itemprop="hello" content="world">
8804 <meta http-equiv="refresh" content="5">
8805 <meta itemprop="hello" http-equiv="refresh" content="5">
8806 <link itemprop="hello" href="{{SERVER}}">
8807 <link rel="stylesheet" href="{{SERVER}}">
8808 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8811 <div itemscope="itemscope">
8812 <p> <meta itemprop="hello" content="world" />
8813 <meta http-equiv="refresh" content="5">
8814 <meta itemprop="hello" content="5" />
8816 <link itemprop="hello" href="http://example.org" />
8817 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
8818 <link itemprop="hello" href="http://example.org" />
8824 Language converter: output gets cut off unexpectedly (bug 5757)
8828 this bit is safe: }-
8830 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8832 then we get cut off here: }-
8834 all additional text is vanished
8836 <p>this bit is safe: }-
8837 </p><p>but if we add a conversion instance: xxx
8838 </p><p>then we get cut off here: }-
8839 </p><p>all additional text is vanished
8844 Self closed html pairs (bug 5487)
8847 <center><font id="bug" />Centered text</center>
8848 <div><font id="bug2" />In div text</div>
8850 <center><font id="bug" />Centered text</center>
8851 <div><font id="bug2" />In div text</div>
8860 Punctuation: nbsp before exclamation
8864 <p>C'est grave !
8869 Punctuation: CSS !important (bug 11874)
8871 <div style="width:50% !important">important</div>
8873 <div style="width:50% !important">important</div>
8878 Punctuation: CSS ! important (bug 11874; with space after)
8880 <div style="width:50% ! important">important</div>
8882 <div style="width:50% ! important">important</div>
8888 HTML bullet list, closed tags (bug 5497)
8903 HTML bullet list, unclosed tags (bug 5497)
8920 HTML ordered list, closed tags (bug 5497)
8935 HTML ordered list, unclosed tags (bug 5497)
8952 HTML nested bullet list, closed tags (bug 5497)
8977 HTML nested bullet list, open tags (bug 5497)
9002 HTML nested ordered list, closed tags (bug 5497)
9027 HTML nested ordered list, open tags (bug 5497)
9052 HTML ordered list item with parameters oddity
9054 <ol><li id="fragment">One</li></ol>
9056 <ol><li id="fragment">One</li></ol>
9061 bug 5918: autonumbering
9063 [http://first/] [http://second] [ftp://ftp]
9067 [mailto:enclosed@mail.tld With target]
9069 [mailto:enclosed@mail.tld]
9071 mailto:inline@mail.tld
9073 <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>
9074 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9075 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9076 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9077 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9083 # Security and HTML correctness
9084 # From Nick Jenkins' fuzz testing
9088 Fuzz testing: Parser13
9103 Fuzz testing: Parser14
9108 <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>
9109 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9111 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9118 Fuzz testing: Parser14-table
9123 <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>
9124 <table style="__TOC__">
9130 # Known to produce bogus xml (extra </td>)
9132 Fuzz testing: Parser16
9152 Fuzz testing: Parser21
9155 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9160 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9170 Fuzz testing: Parser22
9172 http://===r:::https://b
9176 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9184 # Known to produce bad XML for now
9186 Fuzz testing: Parser24
9193 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9194 <br style="onmouseover='alert(document.cookie);' " />
9196 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9201 <u class="|">}}}} >
9202 <br style="onmouseover='alert(document.cookie);'" />
9204 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9213 # Note: the current result listed for this is not what the original one was,
9214 # but the original bug was JavaScript injection, which is fixed in any case.
9215 # It's not clear that the original result listed was any more correct than the
9216 # current one. Original result:
9219 # <li class="||">
9220 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9222 Fuzz testing: Parser25 (bug 6055)
9228 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9230 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9235 Fuzz testing: URL adjacent extension (with space, clean)
9238 http://example.com <nowiki>junk</nowiki>
9240 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9245 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9248 http://example.com<nowiki>junk</nowiki>
9250 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9255 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9258 http://example.com<pre>junk</pre>
9260 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9265 Fuzz testing: image with bogus manual thumbnail
9267 [[Image:foobar.jpg|thumbnail= ]]
9269 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9274 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9276 <pre dir=" "></pre>
9278 <pre dir=" "></pre>
9283 Parsing optional HTML elements (Bug 6171)
9288 <td> Some tabular data</td>
9289 <td> More tabular data ...
9290 <td> And yet som tabular data</td>
9296 <td> Some tabular data</td>
9297 <td> More tabular data ...
9298 </td><td> And yet som tabular data</td>
9305 Correct handling of <td>, <tr> (Bug 6171)
9310 <td> Some tabular data</td>
9311 <td> More tabular data ...</td>
9312 <td> And yet som tabular data</td>
9318 <td> Some tabular data</td>
9319 <td> More tabular data ...</td>
9320 <td> And yet som tabular data</td>
9328 Parsing crashing regression (fr:JavaScript)
9332 <p></body></x>
9337 Inline wiki vs wiki block nesting
9343 <p><b>Bold paragraph</b>
9344 </p><p>New wiki paragraph
9349 Inline HTML vs wiki block nesting
9357 <p><b>Bold paragraph</b>
9358 </p><p>New wiki paragraph
9362 # Original result was this:
9363 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9365 # While that might be marginally more intuitive, maybe, the six-apostrophe
9366 # construct is clearly pathological and the result stated here (which is what
9367 # the parser actually does) is about as reasonable as anything.
9369 Mixing markup for italics and bold
9372 '''bold''''''bold''bolditalics'''''
9374 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9382 Article for special page transclusion test
9386 Special page transclusion
9389 {{Special:Prefixindex/Xyzzyx}}
9391 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9396 Special page transclusion twice (bug 5021)
9399 {{Special:Prefixindex/Xyzzyx}}
9400 {{Special:Prefixindex/Xyzzyx}}
9402 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9403 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9408 Transclusion of default MediaWiki message
9410 {{MediaWiki:Mainpage}}
9417 Transclusion of nonexistent MediaWiki message
9419 {{MediaWiki:Mainpagexxx}}
9421 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9426 Transclusion of MediaWiki message with underscore
9428 {{MediaWiki:history_short}}
9435 Transclusion of MediaWiki message with space
9437 {{MediaWiki:history short}}
9444 Invalid header with following text
9454 Section extraction test (section 0)
9474 Section extraction test (section 1)
9496 Section extraction test (section 2)
9517 Section extraction test (section 3)
9537 Section extraction test (section 4)
9561 Section extraction test (section 5)
9581 Section extraction test (section 6)
9602 Section extraction test (section 7)
9622 Section extraction test (section 8)
9642 Section extraction test (section 9)
9663 Section extraction test (section 10)
9683 Section extraction test (nonexistent section 11)
9702 Section extraction test with bogus heading (section 1)
9707 ==bogus== not a legal section
9711 ==bogus== not a legal section
9715 Section extraction test with bogus heading (section 2)
9720 ==bogus== not a legal section
9727 Section extraction test with comment after heading (section 1)
9739 Section extraction test with comment after heading (section 2)
9751 Section extraction test with bogus <nowiki> heading (section 1)
9756 ==bogus== <nowiki>not a legal section</nowiki>
9760 ==bogus== <nowiki>not a legal section</nowiki>
9764 Section extraction test with bogus <nowiki> heading (section 2)
9769 ==bogus== <nowiki>not a legal section</nowiki>
9776 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9777 # instead of respecting commented sections
9779 Section extraction prefixed by comment (section 1)
9790 Section extraction prefixed by comment (section 2)
9801 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9802 # instead of respecting HTML-style headings
9804 Section extraction, mixed wiki and html (section 1)
9820 Section extraction, mixed wiki and html (section 2)
9836 # Formerly testing for bug 3342
9838 Section extraction, heading surrounded by <noinclude>
9842 <noinclude>==unmarked==</noinclude>
9848 # Test behaviour of bug 19910
9850 Sectiion with all-equals
9855 The line above must have a trailing space
9858 But just in case it doesn't...
9862 But just in case it doesn't...
9866 Section replacement test (section 0)
9897 Section replacement test (section 1)
9926 Section replacement test (section 2)
9956 Section replacement test (section 3)
9987 Section replacement test (section 4)
10014 Section replacement test (section 5)
10045 Section replacement test (section 6)
10075 Section replacement test (section 7)
10106 Section replacement test (section 8)
10137 Section replacement test (section 9)
10166 Section replacement test (section 10)
10196 Section replacement test with initial whitespace (bug 13728)
10200 Preformatted initial line
10204 Preformatted initial line
10211 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10223 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10236 Section extraction, <pre> around bogus header (bug 10309)
10253 Section replacement, <pre> around bogus header (bug 10309)
10255 noxml replace=2,"xxx"
10276 Handling of 
 in URLs
10280 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10287 5 quotes, code coverage +1 line
10294 Special:Search page linking.
10298 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10310 * {{BASEPAGENAMEE}}
10312 * {{TALKPAGENAMEE}}
10313 * {{SUBJECTPAGENAME}}
10314 * {{SUBJECTPAGENAMEE}}
10320 * {{SUBJECTSPACEE}}
10321 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10323 <ul><li> Parser test
10324 </li><li> Parser test
10325 </li><li> Parser test
10326 </li><li> Parser_test
10327 </li><li> Parser test
10328 </li><li> Parser_test
10329 </li><li> Talk:Parser test
10330 </li><li> Talk:Parser_test
10331 </li><li> Parser test
10332 </li><li> Parser_test
10339 </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>
10343 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10353 image4 |300px| centre
10354 image5.svg| http://///////
10359 <ul class="gallery">
10360 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10361 <div style="height: 150px;">Image1.png</div>
10362 <div class="gallerytext">
10365 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10366 <div style="height: 150px;">Image2.gif</div>
10367 <div class="gallerytext">
10372 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10373 <div style="height: 150px;">Image3</div>
10374 <div class="gallerytext">
10377 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10378 <div style="height: 150px;">Image4</div>
10379 <div class="gallerytext">
10384 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10385 <div style="height: 150px;">Image5.svg</div>
10386 <div class="gallerytext">
10387 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10391 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10392 <div style="height: 150px;">* image6</div>
10393 <div class="gallerytext">
10401 Gallery (with options)
10403 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10404 File:Nonexistant.jpg|caption
10405 File:Nonexistant.jpg
10406 image:foobar.jpg|some '''caption''' [[Main Page]]
10408 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10411 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10412 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10413 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10414 <div style="height: 70px;">Nonexistant.jpg</div>
10415 <div class="gallerytext">
10420 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10421 <div style="height: 70px;">Nonexistant.jpg</div>
10422 <div class="gallerytext">
10425 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10426 <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>
10427 <div class="gallerytext">
10428 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10432 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10433 <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>
10434 <div class="gallerytext">
10437 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10438 <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>
10439 <div class="gallerytext">
10449 Gallery with wikitext inside caption
10452 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10453 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10456 <ul class="gallery">
10457 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10458 <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>
10459 <div class="gallerytext">
10460 <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>
10464 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10465 <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>
10466 <div class="gallerytext">
10467 <p>This is a test template
10476 gallery (with showfilename option)
10478 <gallery showfilename>
10479 File:Nonexistant.jpg|caption
10480 File:Nonexistant.jpg
10481 image:foobar.jpg|some '''caption''' [[Main Page]]
10485 <ul class="gallery">
10486 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10487 <div style="height: 150px;">Nonexistant.jpg</div>
10488 <div class="gallerytext">
10489 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10494 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10495 <div style="height: 150px;">Nonexistant.jpg</div>
10496 <div class="gallerytext">
10497 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10501 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10502 <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>
10503 <div class="gallerytext">
10504 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10505 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10509 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10510 <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>
10511 <div class="gallerytext">
10512 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10521 Gallery (with namespace-less filenames)
10524 File:Nonexistant.jpg
10530 <ul class="gallery">
10531 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10532 <div style="height: 150px;">Nonexistant.jpg</div>
10533 <div class="gallerytext">
10536 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10537 <div style="height: 150px;">Nonexistant.jpg</div>
10538 <div class="gallerytext">
10541 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10542 <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>
10543 <div class="gallerytext">
10546 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10547 <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>
10548 <div class="gallerytext">
10556 HTML Hex character encoding (spells the word "JavaScript")
10558 JavaScript
10560 <p>JavaScript
10565 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10569 <p>&#xsee;&#XSEE;
10574 HTML Hex character encoding mixed case
10583 __FORCETOC__ override
10595 ISBN 978-0-1234-56 789
10597 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10602 ISBN followed by 5 spaces
10613 ISBN ISBN 1234567890
10615 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10620 Bug 22905: <abbr> followed by ISBN followed by </a>
10622 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10624 <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>
10633 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10638 Double RFC with a wiki link
10642 <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>
10651 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10656 Centre-aligned image
10658 [[Image:foobar.jpg|centre]]
10660 <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>
10667 [[Image:foobar.jpg|none]]
10669 <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>
10674 Width + Height sized image (using px) (height is ignored)
10676 [[Image:foobar.jpg|640x480px]]
10678 <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>
10683 Width-sized image (using px, no following whitespace)
10685 [[Image:foobar.jpg|640px]]
10687 <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>
10692 Width-sized image (using px, with following whitespace - test regression from r39467)
10694 [[Image:foobar.jpg|640px ]]
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, with preceding whitespace - test regression from r39467)
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 Another italics / bold test
10718 # Note the results may be incorrect, as parserTest output included this:
10719 # XML error: Mismatched tag at byte 6120:
10720 # ...<dd> </dt></dl> </dd...
10728 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10739 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10741 Images with the "|" character in the comment
10743 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10745 <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>
10750 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10752 <html><script>alert(1);</script></html>
10754 <p><html><script>alert(1);</script></html>
10759 HTML with raw HTML ($wgRawHtml==true)
10763 <html><script>alert(1);</script></html>
10765 <p><script>alert(1);</script>
10770 Parents of subpages, one level up
10772 subpage title=[[Subpage test/L1/L2/L3]]
10776 <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>
10782 Parents of subpages, one level up, not named
10784 subpage title=[[Subpage test/L1/L2/L3]]
10788 <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>
10795 Parents of subpages, two levels up
10797 subpage title=[[Subpage test/L1/L2/L3]]
10803 <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
10804 </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>
10809 Parents of subpages, two levels up, without trailing slash or name.
10811 subpage title=[[Subpage test/L1/L2/L3]]
10820 Parents of subpages, two levels up, with lots of extra trailing slashes.
10822 subpage title=[[Subpage test/L1/L2/L3]]
10826 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10831 Definition list code coverage
10837 <dl><dt> title  </dt><dd> def
10838 </dd><dt> title </dt><dd> def
10839 </dd><dt>title</dt><dd> def
10845 Don't fall for the self-closing div
10847 <div>hello world</div/>
10849 <div>hello world</div>
10858 <p>[[:Template:Msg]]
10867 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10871 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10873 Always escape literal '>' in output, not just after '<'
10887 <p>This is a test template
10888 This is a test template
10900 Inclusion of !userCanEdit() content
10904 <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>
10910 Out-of-order TOC heading levels
10919 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10921 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10923 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10924 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10927 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10929 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10930 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10935 <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>
10936 <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>
10937 <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>
10938 <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>
10939 <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>
10940 <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>
10946 ISBN with a dummy number
10956 ISBN with space-delimited number
10960 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10966 ISBN with multiple spaces, no number
10985 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10986 </p><p>ISBN 12345678901
10992 ISBN with trailing year (bug 8110)
10994 ISBN 1-234-56789-0 - 2006
10996 ISBN 1 234 56789 0 - 2006
10998 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10999 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11007 {{anchorencode:foo bar©#%n}}
11009 <p>foo_bar.C2.A9.23.25n
11014 anchorencode trims spaces
11016 {{anchorencode: __pretty__please__}}
11023 anchorencode deals with links
11025 {{anchorencode: [[hello|world]] [[hi]]}}
11032 anchorencode deals with templates
11034 {{anchorencode: {{Foo}} }}
11041 anchorencode encodes like the TOC generator: (bug 18431)
11043 === _ +:.3A%3A&&]] ===
11044 {{anchorencode: _ +:.3A%3A&&]] }}
11047 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
11048 <p>.2B:.3A.253A.26.26.5D.5D
11052 # Expected output in the following test is not necessarily expected (there
11053 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11054 # only testing for well-formedness.
11056 Bug 6200: blockquotes and paragraph formatting
11076 Bug 8293: Use of center tag ruins paragraph formatting
11098 ### Language variants related tests
11101 Self-link in language variants
11103 title=[[Dunav]] language=sr
11105 Both [[Dunav]] and [[Дунав]] are names for this river.
11107 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11118 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11120 title=[[Duna]] language=sr
11122 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11124 <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.
11129 Link to pages in language variants
11133 Main Page can be written as [[Маин Паге]]
11135 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11141 Multiple links to pages in language variants
11145 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11147 <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>.
11153 Simple template in language variants
11159 <p>This is a test template
11165 Template with explicit namespace in language variants
11171 <p>This is a test template
11177 Basic test for template parameter in language variants
11181 {{парамтест|param=foo}}
11183 <p>This is a test template with parameter foo
11189 Simple category in language variants
11193 [[Category:МедиаWики Усер'с Гуиде]]
11195 <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>
11212 Don't convert blue categorylinks to another variant (bug 33210)
11216 [[A]][[Category:分类]]
11218 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11223 Stripping -{}- tags (language variants)
11227 Latin proverb: -{Ne nuntium necare}-
11229 <p>Latin proverb: Ne nuntium necare
11235 Prevent conversion with -{}- tags (language variants)
11237 language=sr variant=sr-ec
11239 Latinski: -{Ne nuntium necare}-
11241 <p>Латински: Ne nuntium necare
11247 Prevent conversion of text with -{}- tags (language variants)
11249 language=sr variant=sr-ec
11251 Latinski: -{Ne nuntium necare}-
11253 <p>Латински: Ne nuntium necare
11259 Prevent conversion of links with -{}- tags (language variants)
11261 language=sr variant=sr-ec
11265 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11271 -{}- tags within headlines (within html for parserConvert())
11273 language=sr variant=sr-ec
11277 <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>
11283 Explicit definition of language variant alternatives
11285 language=zh variant=zh-tw
11287 -{zh:China;zh-tw:Taiwan}-, not China
11289 <p>Taiwan, not China
11295 Conversion around HTML tags
11297 language=sr variant=sr-ec
11299 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11300 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11303 <span title="ЛаCтин">ски</span>
11309 Explicit session-wise language variant mapping (A flag and - flag)
11311 language=zh variant=zh-tw
11313 Taiwan is not China.
11314 But -{A|zh:China;zh-tw:Taiwan}- is China,
11315 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11316 and -{China}- is China.
11318 <p>Taiwan is not China.
11319 But Taiwan is Taiwan,
11320 (This should be stripped!)
11321 and China is China.
11326 Explicit session-wise language variant mapping (H flag for hide)
11328 language=zh variant=zh-tw
11330 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11333 <p>(This should be stripped!)
11339 Adding explicit conversion rule for title (T flag)
11341 language=zh variant=zh-tw showtitle
11343 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11346 <p>Should be stripped!
11351 Testing that changing the language variant here in the tests actually works
11353 language=zh variant=zh showtitle
11355 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11358 <p>Should be stripped!
11363 Recursive conversion of alt and title attrs shouldn't clear converter state
11365 language=zh variant=zh-cn showtitle
11367 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11368 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11372 Should be stripped<span title="Exclamation">!</span>
11377 Bug 24072: more test on conversion rule for title
11379 language=zh variant=zh-tw showtitle
11381 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11382 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11385 <p>This should be stripped!
11386 This won't take interferes with the title rule.
11391 Raw output of variant escape tags (R flag)
11393 language=zh variant=zh-tw
11395 Raw: -{R|zh:China;zh-tw:Taiwan}-
11397 <p>Raw: zh:China;zh-tw:Taiwan
11402 Nested using of manual convert syntax
11404 language=zh variant=zh-hk
11406 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11408 <p>Nested: Hello Hong Kong!
11413 Proper conversion of text in external links
11415 language=sr variant=sr-ec
11417 http://www.google.com
11418 gopher://www.google.com
11419 [http://www.google.com http://www.google.com]
11420 [gopher://www.google.com gopher://www.google.com]
11421 [https://www.google.com irc://www.google.com]
11422 [ftp://www.google.com www.google.com/ftp://dir]
11423 [//www.google.com www.google.com]
11425 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11426 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11427 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11428 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11429 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11430 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11431 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11436 Do not convert roman numbers to language variants
11438 language=sr variant=sr-ec
11442 <p>Фридрих IV је цар.
11447 Unclosed language converter markup "-{"
11458 Don't convert raw rule "-{R|=>}-" to "=>"
11475 Bug 529: Uncovered bullet
11485 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11486 # Templates in Wikipedia rely on this behavior, as tidy has always been
11487 # enabled there. These tests are normally run *without* tidy, so specify the
11488 # full output here.
11489 # To test realistic parsing behavior, apply a tidy-like transformation to both
11490 # the expected output and your parser's output.
11492 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11494 ******* Foo {{bullet}}
11496 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11509 Bug 529: Uncovered table already at line-start
11532 Bug 529: Uncovered bullet in parser function result
11534 * Foo {{lc:{{bullet}} }}
11543 Bug 5678: Double-parsed template argument
11545 {{lc:{{{1}}}|hello}}
11552 Bug 5678: Double-parsed template invocation
11554 {{lc:{{paramtest {{!}} param = hello }} }}
11556 <p>{{paramtest | param = hello }}
11561 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11564 title=[[Main Page]]
11566 {{PRVNÍVELKÉ:ěščř}}
11567 {{prvnívelké:ěščř}}
11587 Morwen/13: Unclosed link followed by heading
11594 <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>
11599 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11606 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11611 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11618 <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>
11633 Paragraphs inside divs (no extra line breaks)
11645 Paragraphs inside divs (extra line break on open)
11660 Paragraphs inside divs (extra line break on close)
11675 Paragraphs inside divs (extra line break on open and close)
11692 Nesting tags, paragraphs on lines which begin with <div>
11696 <div></div><strong>A
11705 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11707 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11711 <blockquote>Line one
11713 Line two</blockquote>
11715 <blockquote>Line one
11716 Line two</blockquote>
11721 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11728 Line two</blockquote>
11733 Line two</blockquote>
11738 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11742 <blockquote>Line one
11747 <blockquote>Line one
11755 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11774 Paragraphs inside blockquotes/divs (no extra line breaks)
11776 <blockquote><div>Line one
11778 Line two</div></blockquote>
11780 <blockquote><div>Line one
11781 Line two</div></blockquote>
11786 Paragraphs inside blockquotes/divs (extra line break on open)
11791 Line two</div></blockquote>
11796 Line two</div></blockquote>
11801 Paragraphs inside blockquotes/divs (extra line break on close)
11803 <blockquote><div>Line one
11806 </div></blockquote>
11808 <blockquote><div>Line one
11811 </div></blockquote>
11816 Paragraphs inside blockquotes/divs (extra line break on open and close)
11822 </div></blockquote>
11828 </div></blockquote>
11833 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11835 wgLinkHolderBatchSize=0
11841 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11842 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11843 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11848 Free external link invading image caption
11850 [[Image:Foobar.jpg|thumb|http://x|hello]]
11852 <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>
11857 Bug 15196: localised external link numbers
11861 [http://en.wikipedia.org/]
11863 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11868 Multibyte character in padleft
11870 {{padleft:-Hello|7|Æ}}
11877 Multibyte character in padright
11879 {{padright:Hello-|7|Æ}}
11886 formatdate parser function
11888 {{#formatdate:2009-03-24}}
11890 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11895 formatdate parser function, with default format
11897 {{#formatdate:2009-03-24|mdy}}
11899 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11904 Spacing of numbers in formatted dates
11906 {{#formatdate:January 15}}
11908 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11913 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
11915 language=nl title=[[MediaWiki:Common.css]]
11917 {{#formatdate:2009-03-24|dmy}}
11919 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11932 Edit comment with link
11936 I like the [[Main Page]] a lot
11938 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11942 Edit comment with link and link text
11946 I like the [[Main Page|best pages]] a lot
11948 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11952 Edit comment with link and link text with suffix
11956 I like the [[Main Page|best page]]s a lot
11958 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11962 Edit comment with section link (non-local, eg in history list)
11964 comment title=[[Main Page]]
11966 /* External links */ removed bogus entries
11968 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11972 Edit comment with section link and text before it (non-local, eg in history list)
11974 comment title=[[Main Page]]
11976 pre-comment text /* External links */ removed bogus entries
11978 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>
11982 Edit comment with section link (local, eg in diff view)
11984 comment local title=[[Main Page]]
11986 /* External links */ removed bogus entries
11988 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11992 Edit comment with subpage link (bug 14080)
11996 title=[[Subpage test]]
11998 Poked at a [[/subpage]] here...
12000 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12004 Edit comment with subpage link and link text (bug 14080)
12008 title=[[Subpage test]]
12010 Poked at a [[/subpage|neat little page]] here...
12012 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12016 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12019 title=[[Subpage test]]
12021 Poked at a [[/subpage]] here...
12023 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12027 Edit comment with bare anchor link (local, as on diff)
12031 title=[[Main Page]]
12035 <a href="#section">#section</a>
12039 Edit comment with bare anchor link (non-local, as on history)
12042 title=[[Main Page]]
12046 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12050 Anchor starting with underscore
12054 <p><a href="#_ref">One</a>
12059 Id starting with underscore
12061 <div id="_ref"></div>
12063 <div id="_ref"></div>
12068 Space normalisation on autocomment (bug 22784)
12071 title=[[Main Page]]
12073 /* __hello__world__ */
12075 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12079 percent-encoding and + signs in comments (Bug 26410)
12083 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12085 <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>
12089 Bad images - basic functionality
12098 Bad images - bug 16039: text after bad image disappears
12112 Verify that displaytitle works (bug #22501) no displaytitle
12116 wgAllowDisplayTitle=true
12117 wgRestrictDisplayTitle=false
12119 this is not the the title
12122 <p>this is not the the title
12127 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12132 wgAllowDisplayTitle=true
12133 wgRestrictDisplayTitle=false
12135 this is not the the title
12136 {{DISPLAYTITLE:whatever}}
12139 <p>this is not the the title
12144 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12149 wgAllowDisplayTitle=true
12150 wgRestrictDisplayTitle=true
12152 this is not the the title
12153 {{DISPLAYTITLE:whatever}}
12156 <p>this is not the the title
12161 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12166 wgAllowDisplayTitle=true
12167 wgRestrictDisplayTitle=true
12169 this is not the the title
12170 {{DISPLAYTITLE:screen}}
12173 <p>this is not the the title
12178 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12183 wgAllowDisplayTitle=false
12185 this is not the the title
12186 {{DISPLAYTITLE:screen}}
12189 <p>this is not the the title
12190 <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>
12195 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12200 wgAllowDisplayTitle=false
12202 this is not the the title
12205 <p>this is not the the title
12210 preload: check <noinclude> and <includeonly>
12214 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12220 preload: check <onlyinclude>
12224 Goodbye <onlyinclude>Hello world</onlyinclude>
12230 preload: can pass tags through if we want to
12234 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12236 <includeonly>Hello world</includeonly>
12240 preload: check that it doesn't try to do tricks
12244 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12246 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12250 Play a bit with r67090 and bug 3158
12254 <div style="width:50% !important"> </div>
12255 <div style="width:50% !important"> </div>
12256 <div style="width:50% !important"> </div>
12257 <div style="border : solid;"> </div>
12259 <div style="width:50% !important"> </div>
12260 <div style="width:50% !important"> </div>
12261 <div style="width:50% !important"> </div>
12262 <div style="border : solid;"> </div>
12267 HTML5 data attributes
12269 <span data-foo="bar">Baz</span>
12270 <p data-abc-def_hij="">Quuz</p>
12272 <p><span data-foo="bar">Baz</span>
12274 <p data-abc-def_hij="">Quuz</p>
12279 percent-encoding and + signs in internal links (Bug 26410)
12281 [[User:+%]] [[Page+title%]]
12282 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12283 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12284 [[%33%45]] [[%33%45+]]
12286 <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>
12287 <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>
12288 <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>
12289 <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>
12294 Special characters in embedded file links (bug 27679)
12296 [[File:Contains & ampersand.jpg]]
12297 [[File:Does not exist.jpg|Title with & ampersand]]
12299 <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>
12300 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12306 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12308 Text's been normalized?
12310 <p>Text's been normalized?
12315 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12317 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12319 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12324 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12326 [http://www.example.org/ ideograms]
12328 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12333 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12335 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12337 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12361 Bug 31098 Template which includes system messages which includes the template
12365 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12366 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12371 Bug31490 Turkish: ucfirst 'blah'
12382 Bug31490 Turkish: ucfirst 'ix'
12393 Bug31490 Turkish: lcfirst 'BLAH'
12404 Bug31490 Turkish: ucfırst (with a dotless i)
12410 <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>
12415 Bug31490 ucfırst (with a dotless i) with English language
12421 <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>
12426 Bug 26375: TOC with italics
12428 title=[[Main Page]]
12431 == ''Lost'' episodes ==
12433 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12435 <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>
12438 <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>
12443 Bug 26375: TOC with bold
12445 title=[[Main Page]]
12448 == '''should be bold''' then normal text ==
12450 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12452 <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>
12455 <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>
12460 Bug 33845: Headings become cursive in TOC when they contain an image
12462 title=[[Main Page]]
12465 == Image [[Image:foobar.jpg]] ==
12467 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12469 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12472 <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>
12477 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12479 title=[[Main Page]]
12482 == <blockquote>Quote</blockquote> ==
12484 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12486 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12489 <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>
12494 Unclosed tags in TOC
12496 title=[[Main Page]]
12500 <small>Hanc marginis exiguitas non caperet.</small>
12503 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12505 <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>
12508 <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>
12509 <p><small>Hanc marginis exiguitas non caperet.</small>
12515 Multiple tags in TOC
12518 == <i>Foo</i> <b>Bar</b> ==
12520 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12522 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12524 <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>
12525 <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>
12528 <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>
12529 <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>
12534 Tags with parameters in TOC
12537 == <sup class="in-h2">Hello</sup> ==
12539 == <sup class="a > b">Evilbye</sup> ==
12541 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12543 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12544 <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>
12547 <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>
12548 <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>
12553 span tags with directionality in TOC
12556 == <span dir="ltr">C++</span> ==
12558 == <span dir="rtl">זבנג!</span> ==
12560 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12562 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12564 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12566 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12568 <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>
12569 <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>
12570 <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>
12571 <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>
12572 <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>
12575 <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>
12576 <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>
12577 <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>
12578 <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>
12579 <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>
12586 == {{int:headline_sample}} ==
12590 Bug 32057: Title needed when expanding <h> nodes.
12592 title=[[Main Page]]
12596 <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>
12601 Strip marker in urlencode
12603 {{urlencode:x<nowiki/>y}}
12604 {{urlencode:x<nowiki/>y|wiki}}
12605 {{urlencode:x<nowiki/>y|path}}
12632 Strip marker in formatNum
12634 {{formatnum:1<nowiki/>2}}
12635 {{formatnum:1<nowiki/>2|R}}
12643 Check noCommafy in formatNum
12647 {{formatnum:123456.78}}
12648 {{formatnum:123456.78|NOSEP}}
12656 Strip marker in grammar
12660 {{grammar:elative|foo<nowiki/>bar}}
12667 Strip marker in padleft
12669 {{padleft:|2|x<nowiki/>y}}
12676 Strip marker in padright
12678 {{padright:|2|x<nowiki/>y}}
12685 Strip marker in anchorencode
12687 {{anchorencode:x<nowiki/>y}}
12694 nowiki inside link inside heading (bug 18295)
12696 ==[[foo|x<nowiki>y</nowiki>z]]==
12698 <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>
12703 new support for bdi element (bug 31817)
12705 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12707 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12712 Ignore pipe between table row attributes
12716 |- id=foo | style='color: red'
12724 <tr id="foo" style="color: red">
12731 Gallery override link with WikiLink (bug 34852)
12734 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12737 <ul class="gallery">
12738 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12739 <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>
12740 <div class="gallerytext">
12750 Gallery override link with absolute external link (bug 34852)
12753 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12756 <ul class="gallery">
12757 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12758 <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>
12759 <div class="gallerytext">
12769 Gallery override link with malicious javascript (bug 34852)
12772 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12775 <ul class="gallery">
12776 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12777 <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>
12778 <div class="gallerytext">
12788 Gallery with invalid title as link (bug 43964)
12791 File:foobar.jpg|link=<
12794 <ul class="gallery">
12795 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12796 <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>
12797 <div class="gallerytext">
12805 Language parser function
12814 Padleft and padright as substr
12816 {{padleft:|3|abcde}}
12817 {{padright:|3|abcde}}
12825 Bug 34939 - Case insensitive link parsing ([HttP://])
12827 [HttP://MediaWiki.Org/]
12829 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12834 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12836 [HttP://MediaWiki.Org/ MediaWiki]
12838 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12843 Bug 34939 - Case insensitive link parsing (HttP://)
12845 HttP://MediaWiki.Org/
12847 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12852 ### Parsoids-specific tests
12853 ### Parsoid-PHP parser incompatibilities
12856 1. SOL-sensitive wikitext tokens as template-args
12870 #### The following section of tests are primarily to test
12871 #### wikitext escaping capabilities of Parsoid.
12872 #### A lot of the tests are disabled for the PHP parser either
12873 #### because of minor newline diffs or other reasons.
12874 #### As Parsoid serializer can handle newlines and other HTML
12875 #### more robustly, some of these tests might get reenabled
12876 #### for the PHP parser.
12878 #### --------------- Headings ---------------
12880 #### 1. Nested inside html <h1>=foo=</h1>
12881 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12882 #### 3. Nested inside html with wikitext split by html tags
12883 #### 4. No escape needed
12884 #### 5. Empty headings <h1></h1>
12885 #### 6. Heading chars in SOL context
12886 #### ----------------------------------------
12888 Headings: 0. Unnested
12890 <nowiki>=foo=</nowiki>
12892 <nowiki>=foo</nowiki>''a''=
12895 </p><p>=foo<i>a</i>=
12900 Headings: 1. Nested inside html
12904 =<nowiki>=foo=</nowiki>=
12905 ==<nowiki>=foo=</nowiki>==
12906 ===<nowiki>=foo=</nowiki>===
12907 ====<nowiki>=foo=</nowiki>====
12908 =====<nowiki>=foo=</nowiki>=====
12909 ======<nowiki>=foo=</nowiki>======
12920 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12925 <nowiki>*bar</nowiki>
12929 <nowiki>=bar=</nowiki>
12937 Headings: 3. Nested inside html with wikitext split by html tags
12941 =<nowiki>=</nowiki>'''bold'''foo==
12943 <h1>=<b>bold</b>foo=</h1>
12947 Headings: 4. No escaping needed (testing just h1 and h2)
12962 <h1><i>=</i>foo=</h1>
12967 Headings: 5. Empty headings
12971 =<nowiki></nowiki>=
12972 ==<nowiki></nowiki>==
12973 ===<nowiki></nowiki>===
12974 ====<nowiki></nowiki>====
12975 =====<nowiki></nowiki>=====
12976 ======<nowiki></nowiki>======
12987 Headings: 6. Heading chars in SOL context
12991 <!--cmt--><nowiki>=h1=</nowiki>
12997 #### --------------- Lists ---------------
12998 #### 0. Outside nests (*foo, etc.)
12999 #### 1. Nested inside html <ul><li>*foo</li></ul>
13000 #### 2. Inside definition lists
13001 #### 3. Only bullets at start should be escaped
13002 #### 4. No escapes needed
13003 #### 5. No unnecessary escapes
13004 #### 6. Escape bullets in SOL position
13005 #### 7. Escape bullets in a multi-line context
13006 #### ----------------------------------------
13009 Lists: 0. Outside nests
13011 <nowiki>*foo</nowiki>
13013 <nowiki>#foo</nowiki>
13021 Lists: 1. Nested inside html
13023 *<nowiki>*foo</nowiki>
13025 *<nowiki>#foo</nowiki>
13027 *<nowiki>:foo</nowiki>
13029 *<nowiki>;foo</nowiki>
13031 #<nowiki>*foo</nowiki>
13033 #<nowiki>#foo</nowiki>
13035 #<nowiki>:foo</nowiki>
13037 #<nowiki>;foo</nowiki>
13059 Lists: 2. Inside definition lists
13061 ;<nowiki>;foo</nowiki>
13063 ;<nowiki>:foo</nowiki>
13065 ;<nowiki>:foo</nowiki>
13068 :<nowiki>:foo</nowiki>
13083 Lists: 3. Only bullets at start of text should be escaped
13085 *<nowiki>*foo*bar</nowiki>
13087 *<nowiki>*foo</nowiki>''it''*bar
13091 <ul><li>*foo<i>it</i>*bar
13097 Lists: 4. No escapes needed
13109 <ul><li><i>foo</i>*bar
13111 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13116 Lists: 5. No unnecessary escapes
13118 * bar <span><nowiki>[[foo]]</nowiki></span>
13120 *=bar <span><nowiki>[[foo]]</nowiki></span>
13122 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13124 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13126 *=bar <span>foo]]</span>=
13128 <ul><li> bar <span>[[foo]]</span>
13130 <ul><li>=bar <span>[[foo]]</span>
13132 <ul><li>[[bar <span>[[foo]]</span>
13134 <ul><li>]]bar <span>[[foo]]</span>
13136 <ul><li>=bar <span>foo]]</span>=
13142 Lists: 6. Escape bullets in SOL position
13146 <!--cmt--><nowiki>*foo</nowiki>
13153 Lists: 7. Escape bullets in a multi-line context
13163 #### --------------- HRs ---------------
13164 #### 1. Single line
13165 #### -----------------------------------
13168 HRs: 1. Single line
13173 <nowiki>----</nowiki>
13175 <nowiki>=foo=</nowiki>
13177 <nowiki>*foo</nowiki>
13184 #### --------------- Tables ---------------
13185 #### 1a. Simple example
13186 #### 1b. No escaping needed (!foo)
13187 #### 1c. No escaping needed (|foo)
13188 #### 1d. No escaping needed (|}foo)
13190 #### 2a. Nested in td (<td>foo|bar</td>)
13191 #### 2b. Nested in td (<td>foo||bar</td>)
13192 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13194 #### 3a. Nested in th (<th>foo!bar</th>)
13195 #### 3b. Nested in th (<th>foo!!bar</th>)
13196 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13200 #### 4c. No escaping needed
13201 #### --------------------------------------
13204 Tables: 1a. Simple example
13215 Tables: 1b. No escaping needed
13224 Tables: 1c. No escaping needed
13233 Tables: 1d. No escaping needed
13242 Tables: 2a. Nested in td
13247 |<nowiki>foo|bar</nowiki>
13257 Tables: 2b. Nested in td
13262 |<nowiki>foo||bar</nowiki>
13263 |''it''<nowiki>foo||bar</nowiki>
13268 </td><td><i>it</i>foo||bar
13274 Tables: 2c. Nested in td -- no escaping needed
13289 Tables: 3a. Nested in th
13304 Tables: 3b. Nested in th
13309 !<nowiki>foo!!bar</nowiki>
13319 Tables: 3c. Nested in th -- no escaping needed
13334 Tables: 4a. Escape -
13342 |<nowiki>-bar</nowiki>
13346 <tr><th>-bar</th></tr>
13347 <tr><td>-bar</td></tr>
13352 Tables: 4b. Escape +
13360 |<nowiki>+bar</nowiki>
13364 <tr><th>+bar</th></tr>
13365 <tr><td>+bar</td></tr>
13370 Tables: 4c. No escaping needed
13384 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13385 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13390 Tables: 4d. No escaping needed
13406 #### --------------- Links ---------------
13407 #### 1. Quote marks in link text
13408 #### 2. Wikilinks: Escapes needed
13409 #### 3. Wikilinks: No escapes needed
13410 #### 4. Extlinks: Escapes needed
13411 #### 5. Extlinks: No escapes needed
13412 #### --------------------------------------
13414 Links 1. Quote marks in link text
13418 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13420 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13424 Links 2. WikiLinks: Escapes needed
13428 [[Foo|<nowiki>[Foobar]</nowiki>]]
13429 [[Foo|<nowiki>Foobar]</nowiki>]]
13430 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13431 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13432 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13433 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13434 [[Foo|<nowiki>|Bar</nowiki>]]
13436 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13437 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13438 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13439 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13440 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13441 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13442 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13446 Links 3. WikiLinks: No escapes needed
13453 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13454 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13458 Links 4. ExtLinks: Escapes needed
13462 [http://google.com <nowiki>[google]</nowiki>]
13463 [http://google.com <nowiki>google]</nowiki>]
13465 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13466 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13470 Links 5. ExtLinks: No escapes needed
13474 [http://google.com [google]
13476 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13479 #### --------------- Quotes ---------------
13480 #### 1. Quotes inside <b> and <i>
13481 #### 2. Link fragments separated by <i> and <b> tags
13482 #### 3. Link fragments inside <i> and <b>
13483 #### --------------------------------------
13485 1. Quotes inside <b> and <i>
13487 ''<nowiki>'foo'</nowiki>''
13488 ''<nowiki>''foo''</nowiki>''
13489 ''<nowiki>'''foo'''</nowiki>''
13490 '''<nowiki>'foo'</nowiki>'''
13491 '''<nowiki>''foo''</nowiki>'''
13492 '''<nowiki>'''foo'''</nowiki>'''
13493 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13501 <b>foo'<i>bar'</i>baz</b>
13506 2. Link fragments separated by <i> and <b> tags
13508 [[''foo''<nowiki>hello]]</nowiki>
13510 [['''foo'''<nowiki>hello]]</nowiki>
13512 <p>[[<i>foo</i>hello]]
13513 </p><p>[[<b>foo</b>hello]]
13518 2. Link fragments inside <i> and <b>
13519 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13520 this is one of the shortcomings of this format)
13522 ''[[foo''<nowiki>]]</nowiki>
13524 '''[[foo'''<nowiki>]]</nowiki>
13527 </p><p><b>[[foo</b>]]
13531 #### --------------- Paragraphs ---------------
13532 #### 1. No unnecessary escapes
13533 #### --------------------------------------
13536 1. No unnecessary escapes
13538 bar <span><nowiki>[[foo]]</nowiki></span>
13540 =bar <span><nowiki>[[foo]]</nowiki></span>
13542 [[bar <span><nowiki>[[foo]]</nowiki></span>
13544 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13546 <nowiki>=bar </nowiki><span>foo]]</span>=
13548 <p>bar <span>[[foo]]</span>
13549 </p><p>=bar <span>[[foo]]</span>
13550 </p><p>[[bar <span>[[foo]]</span>
13551 </p><p>]]bar <span>[[foo]]</span>
13552 </p><p>=bar <span>foo]]</span>=
13556 #### --------------- PRE ------------------
13557 #### 1. Leading space in SOL context should be escaped
13558 #### --------------------------------------
13560 1. Leading space in SOL context should be escaped
13564 <nowiki> foo</nowiki>
13565 <!--cmt--><nowiki> foo</nowiki>
13572 #### --------------- HTML tags ---------------
13575 #### 3. multi-line html tag
13576 #### --------------------------------------
13582 <a href="http://google.com">google</a>
13584 <a href="http://google.com">google</a>
13590 <nowiki><div>foo</div>
13591 <div style="color:red">foo</div></nowiki>
13593 <p><div>foo</div>
13594 <div style="color:red">foo</div>
13599 3. multi-line html tag
13611 #### --------------- Others ---------------
13615 <nowiki>foo</nowiki>
13617 <p><nowiki>foo</nowiki>
13622 Tag-like HTML structures are passed through as text
13644 </p><p>1<d e>f
13649 # This fails in the PHP parser (see bug 40670,
13650 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13652 Tag names followed by punctuation should not be recognized as tags
13658 <p><s.ome> text
13663 HTML tag with necessary entities in attributes
13665 <span title="&amp;">foo</span>
13667 <p><span title="&amp;">foo</span>
13672 HTML tag with 'unnecessary' entity encoding in attributes
13674 <span title="&">foo</span>
13676 <p><span title="&">foo</span>
13681 HTML tag with broken attribute value quoting
13683 <span title="Hello world>Foo</span>
13685 <p><span>Foo</span>
13690 Parsoid-only: HTML tag with broken attribute value quoting
13694 <span title="Hello world>Foo</span>
13696 <p><span title="Hello world">Foo</span>
13701 Table with broken attribute value quoting
13704 | title="Hello world|Foo
13715 Table with broken attribute value quoting on consecutive lines
13718 | title="Hello world|Foo
13719 | style="color:red|Bar
13732 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13737 | title="Hello world|Foo
13738 | style="color:red|Bar
13743 <td title="Hello world">Foo
13744 </td><td style="color: red">Bar
13750 Accept empty td cell attribute
13753 | align="center" | foo || |
13758 <td align="center"> foo </td>
13765 Non-empty attributes in th-cells
13768 ! Foo !! style="color: red" | Bar
13774 <th style="color: red"> Bar
13780 Accept empty attributes in th-cells
13795 Empty table rows go away
13820 Try for 100% code coverage