1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
181 * plain''italic''plain
182 * plain''italic''plain''italic''plain
183 * plain'''bold'''plain
184 * plain'''bold'''plain'''bold'''plain
185 * plain''italic''plain'''bold'''plain
186 * plain'''bold'''plain''italic''plain
187 * plain''italic'''bold-italic'''italic''plain
188 * plain'''bold''bold-italic''bold'''plain
189 * plain'''''bold-italic'''italic''plain
190 * plain'''''bold-italic''bold'''plain
191 * plain''italic'''bold-italic'''''plain
192 * plain'''bold''bold-italic'''''plain
193 * plain l'''italic''plain
194 * plain l''''bold''' plain
197 </li><li> plain<i>italic</i>plain
198 </li><li> plain<i>italic</i>plain<i>italic</i>plain
199 </li><li> plain<b>bold</b>plain
200 </li><li> plain<b>bold</b>plain<b>bold</b>plain
201 </li><li> plain<i>italic</i>plain<b>bold</b>plain
202 </li><li> plain<b>bold</b>plain<i>italic</i>plain
203 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
204 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
205 </li><li> plain<i><b>bold-italic</b>italic</i>plain
206 </li><li> plain<b><i>bold-italic</i>bold</b>plain
207 </li><li> plain<i>italic<b>bold-italic</b></i>plain
208 </li><li> plain<b>bold<i>bold-italic</i></b>plain
209 </li><li> plain l'<i>italic</i>plain
210 </li><li> plain l'<b>bold</b> plain
216 ### 2-quote opening sequence tests
219 Italics and bold: 2-quote opening sequence: (2,2)
229 Italics and bold: 2-quote opening sequence: (2,3)
239 Italics and bold: 2-quote opening sequence: (2,4)
249 Italics and bold: 2-quote opening sequence: (2,5)
259 ### 3-quote opening sequence tests
263 Italics and bold: 3-quote opening sequence: (3,2)
273 Italics and bold: 3-quote opening sequence: (3,3)
283 Italics and bold: 3-quote opening sequence: (3,4)
293 Italics and bold: 3-quote opening sequence: (3,5)
303 ### 4-quote opening sequence tests
307 Italics and bold: 4-quote opening sequence: (4,2)
317 Italics and bold: 4-quote opening sequence: (4,3)
327 Italics and bold: 4-quote opening sequence: (4,4)
337 Italics and bold: 4-quote opening sequence: (4,5)
347 ### 5-quote opening sequence tests
351 Italics and bold: 5-quote opening sequence: (5,2)
361 Italics and bold: 5-quote opening sequence: (5,3)
371 Italics and bold: 5-quote opening sequence: (5,4)
375 <p><i><b>foo'</b></i>
381 Italics and bold: 5-quote opening sequence: (5,5)
390 ### multiple quote sequences in a line
393 Italics and bold: multiple quote sequences: (2,4,2)
397 <p><i>foo'<b>bar</b></i>
403 Italics and bold: multiple quote sequences: (2,4,3)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,4)
417 <p><i>foo'<b>bar'</b></i>
423 Italics and bold: multiple quote sequences: (3,4,2)
433 Italics and bold: multiple quote sequences: (3,4,3)
442 ### other quote tests
445 Italics and bold: other quote tests: (2,3,5)
447 ''this is about '''foo's family'''''
449 <p><i>this is about <b>foo's family</b></i>
455 Italics and bold: other quote tests: (2,(3,3),2)
457 ''this is about '''foo's''' family''
459 <p><i>this is about <b>foo's</b> family</i>
465 Italics and bold: other quote tests: (3,2,3,2)
467 '''this is about ''foo'''s family''
469 <p><b>this is about <i>foo</i></b><i>s family</i>
475 Italics and bold: other quote tests: (3,2,3,3)
477 '''this is about ''foo'''s family'''
479 <p>'<i>this is about </i>foo<b>s family</b>
486 Italics and bold: other quote tests: (3,(2,2),3)
488 '''this is about ''foo's'' family'''
490 <p><b>this is about <i>foo's</i> family</b>
495 ### <nowiki> test cases
499 <nowiki> unordered list
501 <nowiki>* This is not an unordered list item.</nowiki>
503 <p>* This is not an unordered list item.
510 <nowiki>Lorem ipsum dolor
531 :There is not nowiki.
532 :There is <nowiki>nowiki</nowiki>.
534 #There is not nowiki.
535 #There is <nowiki>nowiki</nowiki>.
537 *There is not nowiki.
538 *There is <nowiki>nowiki</nowiki>.
540 <dl><dd>There is not nowiki.
541 </dd><dd>There is nowiki.
543 <ol><li>There is not nowiki.
544 </li><li>There is nowiki.
546 <ul><li>There is not nowiki.
547 </li><li>There is nowiki.
557 Comments and Indent-Pre
559 <!-- comment 1 --> asdf
561 <!-- comment 1 --> asdf
564 <!-- comment 1 --> asdf
565 <!-- comment 2 -->xyz
567 <!-- comment 1 --> asdf
568 <!-- comment 2 --> xyz
624 asdf<!-- comment 1 -->jkl
634 <!-- foo --> b <!-- bar -->
648 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
654 Comment semantics and delimiters
656 <!-- --><!----><!-----><!------>
662 Comment semantics and delimiters, redux
664 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
665 -- foo -- funky huh? ... -->
671 Comment semantics and delimiters: directors cut
673 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
674 everything starting with < followed by !-- until the first -- and > we see,
675 that wouldn't be valid XML however, since in XML -- has to terminate a comment
683 Comment semantics: nesting
685 <!--<!-- no, we're not going to do anything fancy here -->-->
692 Comment semantics: unclosed comment at end
694 <!--This comment will run out to the end of the document
700 Comment in template title
709 Comment on its own line post-expand
721 Comment on its own line post-expand with non-significant whitespace
733 ### paragraph wraping tests
747 Block tag on one line
759 Block tag on both lines
771 Multiple lines without block tags
789 ### Preformatted text
798 And a [[Main Page|link]]
804 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
809 Ident preformatting with inline content
820 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
837 Regression with preformatted in <center>
850 # Expected output in the following test is not really expected (there should be
851 # <pre> in the output) -- it's only testing for well-formedness.
853 Bug 6200: Preformatted in <blockquote>
866 <pre> with attributes (bug 3202)
868 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
870 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
875 <pre> with width attribute (bug 3202)
877 <pre width="8">Narrow screen goodies</pre>
879 <pre width="8">Narrow screen goodies</pre>
884 <pre> with forbidden attribute (bug 3202)
886 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
888 <pre width="8">Narrow screen goodies</pre>
893 <pre> with forbidden attribute values (bug 3202)
895 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
897 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
902 <nowiki> inside <pre> (bug 13238)
910 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
918 <pre><nowiki>Foo</nowiki></pre>
923 <nowiki> and <pre> preference (first one wins)
956 <nowiki></pre></nowiki>
963 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
971 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
981 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
993 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1014 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1018 {{echo| foo}}{{echo| bar}}
1023 {{echo|<!--cmt--> foo}}
1025 <!--cmt-->{{echo| foo}}
1027 {{echo|{{echo| }}bar}}
1045 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1082 Templates: Single-line variant of parameter whitespace stripping test
1088 {{echo|{{echo| a}}}}
1090 {{echo|1={{echo| a}}}}
1103 Templates: Strip whitespace from named parameters, but not positional ones
1131 ### Parsoid-centric tests for testing RT edge cases for pre
1135 1a. Indent-Pre and Comments
1148 1b. Indent-Pre and Comments
1161 1c. Indent-Pre and Comments
1174 2a. Indent-Pre and tables
1195 2b. Indent-Pre and tables
1211 3a. Indent-Pre and block tags (single-line html)
1219 <pre><span> foo </span>
1224 3b. Indent-Pre and block tags (pre-content on separate line)
1276 4. Multiple spaces at start-of-line
1295 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1299 HTML-pre: 1. embedded newlines
1335 HTML-pre: 2: indented text
1348 HTML-pre: 3: other wikitext
1369 ### Definition lists
1376 <dl><dt> name </dt><dd> Definition
1382 Definition list for indentation only
1386 <dl><dd> Indented text
1392 Definition list with no space
1396 <dl><dt>name</dt><dd>Definition
1402 Definition list with URL link
1404 ; http://example.com/ : definition
1406 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1412 Definition list with bracketed URL link
1414 ;[http://www.example.com/ Example]:Something about it
1416 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1422 Definition list with wikilink containing colon
1424 ; [[Help:FAQ]]: The least-read page on Wikipedia
1426 <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
1431 # At Brion's and JeLuF's insistence... :)
1433 Definition list with news link containing colon
1435 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1437 <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!
1443 Malformed definition list with colon
1445 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1447 <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
1453 Definition lists: colon in external link text
1455 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1457 <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
1463 Definition lists: colon in HTML attribute
1465 ;<b style="display: inline">bold</b>
1467 <dl><dt><b style="display: inline">bold</b>
1473 Definition lists: self-closed tag
1475 ;one<br/>two : two-line fun
1477 <dl><dt>one<br />two </dt><dd> two-line fun
1483 Bug 11748: Literal closing tags
1487 <dd>test test test test test</dd>
1489 <dd>test test test test test</dd>
1494 <dd>test test test test test</dd>
1496 <dd>test test test test test</dd>
1502 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1505 ; term : description
1511 <dl><dt> term </dt><dd> description
1522 Definition list with empty definition and following paragraph
1527 <dl><dt> term</dt><dd>
1534 Nested definition lists using html syntax
1551 Definition Lists: No nesting: Multiple dd's
1565 Definition Lists: Indentation: Regular
1581 Definition Lists: Indentation: Missing 1st level
1595 Definition Lists: Indentation: Multi-level indent
1599 <dl><dd><dl><dd><dl><dd>i3
1607 Definition Lists: Hacky use to indent tables
1614 should be left alone
1616 <dl><dd><dl><dd><table>
1621 </td></tr></table></dd></dl></dd></dl>
1623 should be left alone
1626 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1627 ## as an empty dt item. It also ignores all but the last ";" when followed
1628 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1629 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1632 ## Ex: ";;t2 ::d2" is transformed into:
1644 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1645 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1656 ## All Parsoid only definition list tests have this difference.
1658 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1659 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1662 Table / list interaction: indented table with lists in table contents
1684 </td></tr></table></dd></dl>
1689 Table / list interaction: lists nested in tables nested in indented lists
1714 </td></tr></table></dd></dl>
1722 Definition Lists: Nesting: Multi-level (Parsoid only)
1752 Definition Lists: Nesting: Test 2 (Parsoid only)
1772 Definition Lists: Nesting: Test 3 (Parsoid only)
1800 Definition Lists: Nesting: Test 4
1805 <dl><dd><dl><dd><dl><dt>t3
1815 Definition Lists: Mixed Lists: Test 1
1821 <dl><dd><dl><dt><ul><li> foo
1833 Definition Lists: Mixed Lists: Test 2
1847 Definition Lists: Mixed Lists: Test 3
1852 <ul><li><dl><dd><dl><dd><dl><dd> d1
1863 Definition Lists: Mixed Lists: Test 4
1868 <ul><li><dl><dt>d1 </dt><dd>d2
1869 </dd><dt>d3 </dt><dd>d4
1877 Definition Lists: Mixed Lists: Test 5
1892 Definition Lists: Mixed Lists: Test 6
1897 <ol><li><ul><li><dl><dd>d1
1909 Definition Lists: Mixed Lists: Test 7
1923 Definition Lists: Mixed Lists: Test 8
1939 Definition Lists: Mixed Lists: Test 9
1943 <ul><li><dl><dt>foo </dt><dd>bar
1951 Definition Lists: Mixed Lists: Test 10
1955 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1964 Definition Lists: Mixed Lists: Test 11
1969 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1974 <dl><dt>boo </dt><dd>baz
1985 Definition Lists: Weird Ones: Test 1
1987 *#;*::;; foo : bar (who uses this?)
1989 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2005 External links: non-bracketed
2007 Non-bracketed: http://example.com
2009 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2014 External links: numbered
2016 Numbered: [http://example.com]
2017 Numbered: [http://example.net]
2018 Numbered: [http://example.com]
2020 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2021 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2022 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2027 External links: specified text
2029 Specified text: [http://example.com link]
2031 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2036 External links: trail
2038 Linktrails should not work for external links: [http://example.com link]s
2040 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2045 External links: dollar sign in URL
2047 http://example.com/1$2345
2049 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2054 External links: dollar sign in URL (named)
2056 [http://example.com/1$2345]
2058 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2063 External links: open square bracket forbidden in URL (bug 4377)
2065 http://example.com/1[2345
2067 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2072 External links: open square bracket forbidden in URL (named) (bug 4377)
2074 [http://example.com/1[2345]
2076 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2081 External links: nowiki in URL link text (bug 6230)
2083 [http://example.com/ <nowiki>''example site''</nowiki>]
2085 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2090 External links: newline forbidden in text (bug 6230 regression check)
2092 [http://example.com/ first
2095 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2101 External links: Pipe char between url and text
2103 [http://example.com | link]
2105 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2110 External links: protocol-relative URL in brackets
2112 [//example.com/ Test]
2114 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2119 External links: protocol-relative URL in brackets without text
2123 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2128 External links: protocol-relative URL in free text is left alone
2132 <p>//example.com/Foo
2137 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2139 foo//example.com/Foo
2141 <p>foo//example.com/Foo
2148 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2150 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2155 External image from https
2157 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2159 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2164 Link to non-http image, no img tag
2166 Link to non-http image, no img tag: ftp://example.com/test.jpg
2168 <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>
2173 External links: terminating separator
2175 Terminating separator: http://example.com/thing,
2177 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2182 External links: intervening separator
2184 Intervening separator: http://example.com/1,2,3
2186 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2191 External links: old bug with URL in query
2193 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2195 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2200 External links: old URL-in-URL bug, mixed protocols
2202 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2204 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2209 External links: URL in text
2211 URL in text: [http://example.com http://example.com]
2213 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2218 External links: Clickable images
2220 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2222 <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>
2227 External links: raw ampersand
2229 Old & use: http://x&y
2231 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2236 External links: encoded ampersand
2238 Old & use: http://x&y
2240 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2245 External links: encoded equals (bug 6102)
2247 http://example.com/?foo=bar
2249 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2254 External links: [raw ampersand]
2256 Old & use: [http://x&y]
2258 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2263 External links: [encoded ampersand]
2265 Old & use: [http://x&y]
2267 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2272 External links: [encoded equals] (bug 6102)
2274 [http://example.com/?foo=bar]
2276 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2281 External links: [IDN ignored character reference in hostname; strip it right off]
2283 [http://e‌xample.com/]
2285 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2289 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2290 # Where an external link could easily circumvent the sanitization of the text of
2291 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2292 # test demands a higher standard. That's a bit strange.
2296 # http://example.com -> [http://example.com|http://example.com]
2297 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2299 # The first example is sanitized, but the second is not. Any security benefits
2300 # from this production are trivial to circumvent. Either remove this test and
2301 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2302 # the test accordingly.
2307 External links: IDN ignored character reference in hostname; strip it right off
2309 http://e‌xample.com/
2311 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2316 External links: www.jpeg.org (bug 554)
2320 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2325 External links: URL within URL (original bug 2)
2327 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2329 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2334 BUG 361: URL inside bracketed URL
2336 [http://www.example.com/foo http://www.example.com/bar]
2338 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2343 BUG 361: URL within URL, not bracketed
2345 http://www.example.com/foo?=http://www.example.com/bar
2347 <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>
2352 BUG 289: ">"-token in URL-tail
2354 http://www.example.com/<hello>
2356 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2361 BUG 289: literal ">"-token in URL-tail
2363 http://www.example.com/<b>html</b>
2365 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2370 BUG 289: ">"-token in bracketed URL
2372 [http://www.example.com/<hello> stuff]
2374 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2379 BUG 289: literal ">"-token in bracketed URL
2381 [http://www.example.com/<b>html</b> stuff]
2383 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2388 BUG 289: literal double quote at end of URL
2390 http://www.example.com/"hello"
2392 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2397 BUG 289: literal double quote in bracketed URL
2399 [http://www.example.com/"hello" stuff]
2401 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2406 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2408 [http://www.example.com test]
2410 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2415 External links: wiki links within external link (Bug 3695)
2417 [http://example.com [[wikilink]] embedded in ext link]
2419 <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>
2424 BUG 787: Links with one slash after the url protocol are invalid
2428 [http:/example.com title]
2430 <p>http:/example.com
2431 </p><p>[http:/example.com title]
2436 Bracketed external links with template-generated invalid target
2438 [{{echo|http:/example.com}} title]
2440 <p>[http:/example.com title]
2445 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2447 ''[http://example.com text'']
2448 [http://example.com '''text]'''
2449 ''Something [http://example.com in italic'']
2450 ''Something [http://example.com mixed''''', even bold]'''
2451 '''''Now [http://example.com both''''']
2453 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2454 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2455 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2456 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2457 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2463 Bug 4781: %26 in URL
2465 http://www.example.com/?title=AT%26T
2467 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2471 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2472 # % is actually legal in HTML5. Any change in output would need testing though.
2474 Bug 4781, 5267: %25 in URL
2476 http://www.example.com/?title=100%25_Bran
2478 <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>
2483 Bug 4781, 5267: %28, %29 in URL
2485 http://www.example.com/?title=Ben-Hur_%281959_film%29
2487 <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>
2493 Bug 4781: %26 in autonumber URL
2495 [http://www.example.com/?title=AT%26T]
2497 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2502 Bug 4781, 5267: %26 in autonumber URL
2504 [http://www.example.com/?title=100%25_Bran]
2506 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2511 Bug 4781, 5267: %28, %29 in autonumber URL
2513 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2515 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2521 Bug 4781: %26 in bracketed URL
2523 [http://www.example.com/?title=AT%26T link]
2525 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2530 Bug 4781, 5267: %26 in bracketed URL
2532 [http://www.example.com/?title=100%25_Bran link]
2534 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2539 Bug 4781, 5267: %28, %29 in bracketed URL
2541 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2543 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2548 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2550 Some [http://example.com/ pretty ''italics'' and stuff]!
2552 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2557 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2559 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2561 <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>
2566 External link containing double-single-quotes with no space separating the url from text in italics
2568 [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]].]
2570 <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>
2575 URL-encoding in URL functions (single parameter)
2577 {{localurl:Some page|amp=&}}
2579 <p>/index.php?title=Some_page&amp=&
2584 URL-encoding in URL functions (multiple parameters)
2586 {{localurl:Some page|q=?&=&}}
2588 <p>/index.php?title=Some_page&q=?&amp=&
2595 http://example.com/index.php?foozoid%5B%5D=bar
2597 http://example.com/index.php?foozoid[]=bar
2599 <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>
2600 </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>
2605 IPv6 urls (bug 21261)
2609 http://[2404:130:0:1000::187:2]/index.php
2611 <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>
2616 Non-extlinks in brackets
2625 [{{echo|foo}} ''bar'']
2626 [{{echo|foo}}l's] errand
2627 [{{echo|foo}}l's errand]
2649 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2651 Normal text. '''''Bold italic text.''''' Normal text.
2653 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2654 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2660 Unclosed and unmatched quotes
2662 '''''Bold italic text '''with bold deactivated''' in between.'''''
2664 '''''Bold italic text ''with italic deactivated'' in between.'''''
2668 ..spanning two paragraphs (should not work).'''
2670 '''Bold tag left open
2672 ''Italic tag left open
2676 <!-- Unmatching number of opening, closing tags: -->
2677 '''This year''''s election ''should'' beat '''last year''''s.
2679 ''Tom'''s car is bigger than ''Susan'''s.
2681 Plain ''italic'''s plain
2683 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2684 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2685 </p><p><b>Bold text..</b>
2686 </p><p>..spanning two paragraphs (should not work).
2687 </p><p><b>Bold tag left open</b>
2688 </p><p><i>Italic tag left open</i>
2690 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2691 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2692 </p><p>Plain <i>italic'</i>s plain
2699 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2702 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2703 # is the bare minimun required by the spec, see:
2704 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2706 A table with no data.
2712 # A table with nothing but a caption is invalid XHTML, we might want to render
2713 # this as <p>caption</p>
2715 A table with nothing but a caption
2723 </caption><tr><td></td></tr></table>
2728 A table with caption with default-spaced attributes and a table row
2731 |+ style="color: red;" | caption1
2737 <caption style="color: red;"> caption1
2746 A table with captions with non-default spaced attributes and a table row
2749 |+style="color: red;"|caption2
2750 |+ style="color: red;"| caption3
2756 <caption style="color: red;">caption2
2758 <caption style="color: red;"> caption3
2767 Table td-cell syntax variations
2771 | foo bar foo || baz
2772 | style='color:red;' | baz
2773 | style='color:red;' || baz
2780 <td> foo bar foo </td>
2783 <td style="color:red;"> baz
2785 <td> style='color:red;' </td>
2813 Simple table but with multiple dashes for row wikitext
2831 Multiplication table
2833 {| border="1" cellpadding="2"
2834 |+Multiplication table
2836 ! × !! 1 !! 2 !! 3
2854 <table border="1" cellpadding="2">
2855 <caption>Multiplication table
2902 Accept "||" in table headings
2917 Accept "||" in indented table headings
2927 </th></tr></table></dd></dl>
2932 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2949 Accept "| !" at start of line in tables (ignore !-attribute)
2953 | !style="color:red" | bar
2965 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 +/-
2969 |style='color:red;'|+1
2970 |style='color:blue;'|-1
2982 <td style="color:red;">+1
2984 <td style="color:blue;">-1
3008 |rowspan=2| Cell 2, row 1 (and 2)
3019 <td rowspan="2"> Cell 2, row 1 (and 2)
3037 {| bgcolor=#ABCDEF border=2
3042 |the original table again
3050 <table bgcolor="#ABCDEF" border="2">
3058 <td>the original table again
3064 Invalid attributes in table cell (bug 1830)
3079 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3082 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3086 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3087 <td>]" onmouseover="alert(document.cookie)">test
3096 Indented table markup mixed with indented pre content (proposed in bug 6200)
3101 Text that should be rendered preformatted
3109 <pre>Text that should be rendered preformatted
3118 Template-generated table cell attributes and cell content
3126 <td style="color: red"> Foo
3132 Table with row followed by newlines and table heading
3149 # FIXME: Preserve the attribute properly (with an empty string as value) in
3150 # the PHP parser. Parsoid implements the behavior below.
3152 Table attributes with empty value
3168 Wikitext table with a lot of comments
3194 Plain link, capitalized
3198 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3203 Plain link, uncapitalized
3207 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3214 [[Main Page|The Main Page]]
3216 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3225 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3230 Broken link with fragment
3232 [[Zigzagzogzagzig#zug]]
3234 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3239 Special page link with fragment
3241 [[Special:Version#anchor]]
3243 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3248 Nonexistent special page link with fragment
3250 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3252 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3259 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3261 <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>
3268 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3270 <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>!!!
3281 Bug 43661: Piped links with identical prefixes
3283 [[prefixed article|prefixed articles with spaces]]
3285 [[prefixed article|prefixed articlesaoeu]]
3287 [[Main Page|Main Page test]]
3289 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3290 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3291 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3297 Link with HTML entity in suffix / tail
3299 [[Main Page]]", [[Main Page]]a
3301 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3306 Link with 3 brackets
3315 Piped link with 3 brackets
3317 [[[main page|the main page]]]
3319 <p>[[[main page|the main page]]]
3324 Link with multiple pipes
3326 [[Main Page|The|Main|Page]]
3328 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3335 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3337 <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>
3342 Piped link to namespace
3344 [[Meta:Disclaimers|The disclaimers]]
3346 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3353 [[Usually caused by a typo (oops}]]
3355 <p>[[Usually caused by a typo (oops}]]
3360 Link containing % (not as a hex sequence)
3364 <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>
3369 Link containing % as a single hex sequence interpreted to char
3373 <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>
3378 Link containing % as a double hex sequence interpreted to hex sequence
3382 <p>[[7%2525 Solution]]
3387 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3388 Example for such a section: == < ==
3390 [[%23%3c]][[%23%3e]]
3392 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3397 Link containing "<#" and ">#" as a hex sequences
3399 [[%3c%23]][[%3e%23]]
3401 <p>[[%3c%23]][[%3e%23]]
3406 Link containing double-single-quotes '' (bug 4598)
3408 [[Lista d''e paise d''o munno]]
3410 <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>
3415 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3417 Some [[Link|pretty ''italics'' and stuff]]!
3419 <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>!
3424 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3426 ''Some [[Link|pretty ''italics'' and stuff]]!
3428 <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>
3433 Link with double quotes in title part (literal) and alternate part (interpreted)
3435 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3439 [[''Pentecoste''|Pentecoste]]
3441 [[''Pentecoste''|''Pentecoste'']]
3443 <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>
3444 </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>
3445 </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>
3446 </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>
3451 Broken image links with HTML captions (bug 39700)
3453 [[File:Nonexistent|<script></script>]]
3454 [[File:Nonexistent|100px|<script></script>]]
3455 [[File:Nonexistent|<]]
3456 [[File:Nonexistent|a<i>b</i>c]]
3458 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3459 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3460 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3461 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3468 [[http://www.example.com]]
3470 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3475 Plain link to URL with link text
3477 [[http://www.example.com Link text]]
3479 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3484 Plain link to protocol-relative URL
3486 [[//www.example.com]]
3488 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3493 Plain link to protocol-relative URL with link text
3495 [[//www.example.com Link text]]
3497 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3502 Plain link to page with question mark in title
3508 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3509 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3514 # I'm fairly sure the expected result here is wrong.
3515 # We want these to be URL links, not pseudo-pages with URLs for titles....
3516 # However the current output is also pretty screwy.
3519 # I'm changing it to match the current output--it arguably makes more
3520 # sense in the light of the test above. Old expected result was:
3521 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3523 # But I think this test is bordering on "garbage in, garbage out" anyway.
3528 Piped link to URL: [[http://www.example.com|an example URL]]
3530 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3535 BUG 2: [[page|http://url/]] should link to page, not http://url/
3537 [[Main Page|http://url/]]
3539 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3544 BUG 337: Escaped self-links should be bold
3548 [[Bug462]] [[Bug462]]
3550 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3555 Self-link to section should not be bold
3559 [[Main Page#section]]
3561 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3572 Self-link to numeric title
3578 <p><strong class="selflink">0</strong>
3583 Link to numeric-equivalent title
3589 <p><a href="/wiki/00" title="00">00</a>
3594 <nowiki> inside a link
3596 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3598 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3603 Non-breaking spaces in title
3605 [[ Main Page ]]
3607 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3612 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3618 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3623 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3629 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3634 Internal link with en linktrail: no apostrophes (bug 27473)
3640 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3645 Internal link with ca linktrail with apostrophes (bug 27473)
3651 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3656 Internal link with kaa linktrail with apostrophes (bug 27473)
3662 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3667 ### Interwiki links (see maintenance/interwiki.sql)
3671 Inline interwiki link
3673 [[MeatBall:SoftSecurity]]
3675 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3680 Inline interwiki link with empty title (bug 2372)
3684 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3689 Interwiki link encoding conversion (bug 1636)
3691 *[[Wikipedia:ro:Olteniţa]]
3692 *[[Wikipedia:ro:Olteniţa]]
3694 <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>
3695 </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>
3701 Interwiki link with fragment (bug 2130)
3703 [[MeatBall:SoftSecurity#foo]]
3705 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3720 Double interlanguage link
3731 Interlanguage link, with prefix links
3743 Double interlanguage link, with prefix links (bug 8897)
3756 Parsoid-specific test: Wikilinks with should RT properly
3762 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3780 Broken br tag sanitization
3789 Incorrecly removing closing slashes from correctly formed XHTML
3791 <br style="clear:both;" />
3793 <p><br style="clear:both;" />
3798 Failing to transform badly formed HTML into correct XHTML
3800 <br style="clear: left;">
3801 <br style="clear: right;">
3802 <br style="clear: both;">
3804 <p><br style="clear: left;" />
3805 <br style="clear: right;" />
3806 <br style="clear: both;" />
3811 Handling html with a div self-closing tag
3820 <p><div title />
3824 <p><div title=bar />
3825 <div title=bar/>
3827 <div title="bar/"></div>
3833 Handling html with a br self-closing tag
3842 <p><br title="title" />
3843 <br title="title" />
3852 Horizontal ruler (should it add that extra space?)
3866 Horizontal ruler -- 4+ dashes render hr
3875 Horizontal ruler -- eats additional dashes on the same line
3884 Horizontal ruler -- does not collaps dashes on consecutive lines
3895 Horizontal ruler -- <4 dashes render as plain text
3904 Horizontal ruler -- Supports content following dashes on same line
3913 ### Block-level elements
3936 <ol><li>Numbered list
3953 ***#Number on level 4
3955 **#Number on level 3
3956 **#Number on level 3
3960 #** Level 3, but ordered
3963 <ol><li> with numbers
3965 <ul><li> and bullets
3967 <ol><li> and numbers
3969 </li><li>bullets again
3970 <ul><li>bullet level 2
3971 <ul><li>bullet level 3
3972 <ol><li>Number on level 4
3975 </li><li>bullet level 2
3976 <ol><li>Number on level 3
3977 </li><li>Number on level 3
3980 <ol><li>number level 2
3983 <ul><li><ul><li> Level 3
3987 <ol><li><ul><li><ul><li> Level 3, but ordered
4021 Nested lists 3 (first element empty)
4034 Nested lists 4 (first element empty)
4047 Nested lists 5 (both elements empty)
4060 Nested lists 6 (both elements empty)
4073 Nested lists 7 (skip initial nesting levels)
4077 <ul><li><ul><li><ul><li> foo
4085 Nested lists 8 (multiple nesting transitions)
4093 <ul><li><ul><li> bar
4103 1. Lists with start-of-line-transparent tokens before bullets: Comments
4117 2. Lists with start-of-line-transparent tokens before bullets: Template close
4129 Unbalanced closing block tags break a list
4130 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4140 </li></ul></div><div>
4146 Unbalanced closing non-block tags don't break a list
4147 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4157 <ul><li>a<span></span>
4163 List items are not parsed correctly following a <pre> block (bug 785)
4169 <ul><li> <pre>foo</pre>
4170 </li><li> <pre>bar</pre>
4177 List items from template
4188 * notSOL{{inner list}}
4207 List interrupted by empty line or heading
4217 <ul><li><ul><li> bar
4220 <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>
4221 <ul><li> Another list item
4227 Multiple list tags generated by templates
4246 Magic Word: {{CURRENTDAY}}
4255 Magic Word: {{CURRENTDAY2}}
4264 Magic Word: {{CURRENTDAYNAME}}
4273 Magic Word: {{CURRENTDOW}}
4282 Magic Word: {{CURRENTMONTH}}
4291 Magic Word: {{CURRENTMONTHABBREV}}
4293 {{CURRENTMONTHABBREV}}
4300 Magic Word: {{CURRENTMONTHNAME}}
4302 {{CURRENTMONTHNAME}}
4309 Magic Word: {{CURRENTMONTHNAMEGEN}}
4311 {{CURRENTMONTHNAMEGEN}}
4318 Magic Word: {{CURRENTTIME}}
4327 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4336 Magic Word: {{CURRENTYEAR}}
4345 Magic Word: {{FULLPAGENAME}}
4347 title=[[User:Ævar Arnfjörð Bjarmason]]
4351 <p>User:Ævar Arnfjörð Bjarmason
4356 Magic Word: {{FULLPAGENAMEE}}
4358 title=[[User:Ævar Arnfjörð Bjarmason]]
4362 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4367 Magic Word: {{NAMESPACE}}
4369 title=[[User:Ævar Arnfjörð Bjarmason]]
4378 Magic Word: {{NAMESPACEE}}
4380 title=[[User:Ævar Arnfjörð Bjarmason]]
4389 Magic Word: {{NAMESPACENUMBER}}
4391 title=[[User:Ævar Arnfjörð Bjarmason]]
4400 Magic Word: {{NUMBEROFFILES}}
4409 Magic Word: {{PAGENAME}}
4411 title=[[User:Ævar Arnfjörð Bjarmason]]
4415 <p>Ævar Arnfjörð Bjarmason
4420 Magic Word: {{PAGENAME}} with metacharacters
4422 title=[['foo & bar = baz']]
4426 <p><i>'foo & bar = baz'</i>
4431 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4433 title=[[*RFC 1234 http://example.com/]]
4437 <p>*RFC 1234 http://example.com/
4442 Magic Word: {{PAGENAMEE}}
4444 title=[[User:Ævar Arnfjörð Bjarmason]]
4448 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4453 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4455 title=[[*RFC 1234 http://example.com/]]
4459 <p>*RFC_1234_http://example.com/
4464 Magic Word: {{REVISIONID}}
4473 Magic Word: {{SCRIPTPATH}}
4482 Magic Word: {{SERVER}}
4486 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4491 Magic Word: {{SERVERNAME}}
4500 Magic Word: {{SITENAME}}
4509 Namespace 1 {{ns:1}}
4518 Namespace 1 {{ns:01}}
4527 Namespace 0 {{ns:0}} (bug 4783)
4535 Namespace 0 {{ns:00}} (bug 4783)
4543 Namespace -1 {{ns:-1}}
4552 Namespace User {{ns:User}}
4561 Namespace User talk {{ns:User_talk}}
4570 Namespace User talk {{ns:uSeR tAlK}}
4579 Namespace File {{ns:File}}
4588 Namespace File {{ns:Image}}
4597 Namespace (lang=de) Benutzer {{ns:User}}
4608 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4614 <p>Benutzer Diskussion
4622 {{urlencode:hi world?!}}
4623 {{urlencode:hi world?!|WIKI}}
4624 {{urlencode:hi world?!|PATH}}
4625 {{urlencode:hi world?!|QUERY}}
4638 Magic links: internal link to RFC (bug 479)
4642 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4647 Magic links: RFC (bug 479)
4651 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4656 Magic links: ISBN (bug 1937)
4660 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4665 Magic links: PMID incorrectly converts space to underscore
4669 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4678 Nonexistent template
4680 {{thistemplatedoesnotexist}}
4682 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4687 Template with invalid target containing tags
4689 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4691 <p>{{a<b>b</b>|foo|a=b|a = b}}
4696 Template with invalid target containing unclosed tag
4698 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4700 <p>{{a<b>|foo|a=b|a = b}}</b>
4707 This is a test template
4715 <p>This is a test template
4720 Template with explicit namespace
4724 <p>This is a test template
4732 This is a test template with parameter {{{param}}}
4738 {{paramtest|param=foo}}
4740 <p>This is a test template with parameter foo
4745 Template:paramtestnum
4751 Template unnamed parameter
4753 {{paramtestnum|Main Page|the main page}}
4755 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4760 Template:templatesimple
4766 Template:templateredirect
4768 #redirect [[Template:templatesimple]]
4772 Template:templateasargtestnum
4778 Template:templateasargtest
4780 {{template{{{templ}}}}}
4784 Template:templateasargtest2
4790 Template with template name as unnamed argument
4792 {{templateasargtestnum|templatesimple}}
4799 Template with template name as argument
4801 {{templateasargtest|templ=simple}}
4808 Template with template name as argument (2)
4810 {{templateasargtest2|templ=templatesimple}}
4817 Template:templateasargtestdefault
4819 {{{{{templ|templatesimple}}}}}
4829 Template with default value
4831 {{templateasargtestdefault}}
4838 Template with default value (value set)
4840 {{templateasargtestdefault|templ=templa}}
4849 {{templateredirect}}
4856 Template with argument in separate line
4858 {{ templateasargtest |
4866 Template with complex template as argument
4869 param ={{ templateasargtest |
4872 <p>This is a test template with parameter (test)
4877 Template with thumb image (with link in description)
4880 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4882 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>
4887 Template:complextemplate
4889 {{{1}}} {{paramtest|
4890 param ={{{param}}}}}
4894 Template with complex arguments
4897 param ={{ templateasargtest |
4898 templ = simple }}|[[Template:complextemplate|link]]}}
4900 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4905 BUG 553: link with two variables in a piped link
4908 |[[{{{1}}}|{{{2}}}]]
4913 <td>[[{{{1}}}|{{{2}}}]]
4919 Magic variable as template parameter
4921 {{paramtest|param={{SITENAME}}}}
4923 <p>This is a test template with parameter MediaWiki
4930 [[{{{param}}}|link]]
4934 Template parameter as link source
4936 {{linktest|param=Main Page}}
4938 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4943 Template-generated attribute string (k='v')
4945 <span {{attr_str|id|v1}}>bar</span>
4947 <p><span id="v1">bar</span>
4954 including another template, {{paramtest|param={{{arg}}}}}
4958 Template passing argument to another template
4960 {{paramtest2|arg='hmm'}}
4962 <p>including another template, This is a test template with parameter 'hmm'
4973 Template as link source
4977 [[{{linktest2}}|Main Page]]
4979 [[{{linktest2}}]]Page
4981 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4982 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4983 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5001 Template infinite loop
5005 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5010 Template from main namespace
5029 BUG 529: Template with table, not included at beginning of line
5048 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5068 BUG 41: Template parameters shown as broken links
5077 Template with targets containing wikilinks
5081 {{[[{{echo|foo}}]]}}
5083 {{{{echo|[[foo}}]]}}
5085 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5086 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5094 ''None'' of '''this''' should be
5096 but rather passed unmodified
5100 # hmm, fix this or just deprecate msgnw and document its behavior?
5106 {{msgnw:MSGNW test}}
5108 <p>''None'' of '''this''' should be
5110 but rather passed unmodified
5118 {{int:youhavenewmessages|lots of money|not!}}
5120 <p>You have lots of money (not!).
5127 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5131 <includeonly> and <noinclude> being included
5142 <onlyinclude>Foo</onlyinclude>bar
5146 <onlyinclude> being included
5158 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5162 <onlyinclude> and <includeonly> being included
5171 <includeonly> and <noinclude> on a page
5173 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5180 Un-closed <noinclude>
5187 <onlyinclude> on a page
5189 <onlyinclude>Foo</onlyinclude>bar
5196 Un-closed <onlyinclude>
5203 Self-closed noinclude, includeonly, onlyinclude tags
5214 Unbalanced includeonly and noinclude tags
5218 |b</noinclude></noinclude>
5219 |c</noinclude></includeonly>
5220 |d</includeonly></includeonly>
5229 <td>c</includeonly>
5231 <td>d</includeonly></includeonly>
5237 Template:Includeonly section
5240 ==Includeonly section==
5246 Bug 6563: Edit link generation for section shown by <includeonly>
5248 {{includeonly section}}
5250 <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>
5251 <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>
5255 # Uses same input as the contents of [[Template:Includeonly section]]
5257 Bug 6563: Section extraction for section shown by <includeonly>
5262 ==Includeonly section==
5270 Bug 6563: Edit link generation for section suppressed by <includeonly>
5273 ==Includeonly section==
5277 <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>
5282 Bug 6563: Section extraction for section suppressed by <includeonly>
5287 ==Includeonly section==
5295 Un-closed <includeonly>
5302 ### <includeonly> and <noinclude> in attributes
5305 0. includeonly around the entire attribute
5307 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5309 <p><span id="v2">bar</span>
5314 1. includeonly in html attr key
5316 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5318 <p><span id="foo">bar</span>
5323 2. includeonly in html attr value
5325 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5326 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5328 <p><span id="v1">bar</span>
5329 <span id="v1">bar</span>
5334 3. includeonly in part of an attr value
5336 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5338 <p><span style="color:red;">bar</span>
5343 ### Testing parsing of templates where a template arg
5344 ### has the same name as the template itself.
5354 Templates: Template Name/Arg clash: 1. Use of positional param
5363 Templates: Template Name/Arg clash: 2. Use of named param
5372 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5381 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5385 Templates: 1. Simple use
5394 Templates: 2. Inside a block tag
5396 <div>{{echo|Foo}}</div>
5403 Templates: P-wrapping: 1a. Templates on consecutive lines
5414 Templates: P-wrapping: 1b. Templates on consecutive lines
5428 Templates: P-wrapping: 1c. Templates on consecutive lines
5431 {{echo|bar}} <div>baz</div>
5440 Templates: Inline Text: 1. Multiple tmeplate uses
5442 {{echo|Foo}}bar{{echo|baz}}
5449 Templates: Inline Text: 2. Back-to-back template uses
5451 {{echo|Foo}}{{echo|bar}}
5458 Templates: Block Tags: 1. Multiple template uses
5460 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5462 <div>Foo</div><div>bar</div><div>baz</div>
5467 Templates: Block Tags: 2. Back-to-back template uses
5469 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5471 <div>Foo</div><div>bar</div>
5476 Templates: Links: 1. Simple example
5478 {{echo|[[Foo|bar]]}}
5480 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5485 Templates: Links: 2. Generation of link href
5487 [[{{echo|Foo}}|bar]]
5489 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5494 Templates: Links: 3. Generation of part of a link href
5496 [[Fo{{echo|o}}|bar]]
5500 [[Foo{{echo|bar}}baz]]
5502 [[Foo{{echo|bar}}|bar]]
5504 [[:Foo{{echo|bar}}]]
5506 [[:Foo{{echo|bar}}|bar]]
5508 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5509 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5510 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5511 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5512 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5513 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5518 Templates: Links: 4. Multiple templates generating link href
5520 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5522 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5527 Templates: Links: 5. Generation of link text
5529 [[Foo|{{echo|bar}}]]
5531 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5536 Templates: Links: 5. Nested templates (only outermost template should be marked)
5538 {{echo|[[{{echo|Foo}}|bar]]}}
5540 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5545 Templates: HTML Tag: 1. Generation of HTML attr. key
5547 <div {{echo|style}}="color:red;">foo</div>
5549 <div style="color:red;">foo</div>
5554 Templates: HTML Tag: 2. Generation of HTML attr. value
5556 <div style={{echo|'color:red;'}}>foo</div>
5558 <div style="color:red;">foo</div>
5563 Templates: HTML Tag: 3. Generation of HTML attr key and value
5565 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5567 <div style="color:red;">foo</div>
5572 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5574 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5576 <div title="This is a long title with just one piece templated">foo</div>
5581 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5583 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5585 <div title="This is a long title with just one piece templated">foo</div>
5590 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5592 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5594 <div title="This is a long title with just one piece templated">foo</div>
5599 Templates: HTML Tables: 1. Generating start of a HTML table
5601 {{echo|<table><tr><td>foo</td>}}</tr></table>
5603 <table><tr><td>foo</td></tr></table>
5608 Templates: HTML Tables: 2a. Generating middle of a HTML table
5610 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5612 <table><tr><td>foo</td></tr></table>
5617 Templates: HTML Tables: 2b. Generating middle of a HTML table
5619 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5621 <table><tr><td>foo</td></tr></table>
5626 Templates: HTML Tables: 3. Generating end of a HTML table
5628 <table><tr>{{echo|<td>foo</td></tr></table>}}
5630 <table><tr><td>foo</td></tr></table>
5635 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5637 {{echo|<table>}}<tr><td>foo</td></tr></table>
5639 <table><tr><td>foo</td></tr></table>
5644 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5646 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5648 <table><tr><td>foo</td></tr></table>
5653 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5655 <table><tr>{{echo|<td>}}foo</td></tr></table>
5657 <table><tr><td>foo</td></tr></table>
5662 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5664 <table><tr><td>foo{{echo|</td>}}</tr></table>
5666 <table><tr><td>foo</td></tr></table>
5671 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5673 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5675 <table><tr><td>foo</td></tr></table>
5680 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5682 <table><tr><td>foo</td></tr>{{echo|</table>}}
5684 <table><tr><td>foo</td></tr></table>
5689 Templates: Wiki Tables: 1. Fostering of entire template content
5697 <tr><td></td></tr></table>
5702 Templates: Wiki Tables: 2. Fostering of partial template content
5712 <tr><td></td></tr></table>
5717 Templates: Wiki Tables: 3. td-content via multiple templates
5720 {{echo|{{pipe}}a}}{{echo|b}}
5731 Templates: Wiki Tables: 4. Templated tags, no content
5737 <tr><td></td></tr></table>
5742 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5756 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5770 Templates: Lists: Multi-line list-items via templates
5772 *{{echo|a {{nonexistent|
5774 *{{echo|b {{nonexistent|
5777 <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>
5778 </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>
5784 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5786 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5788 <p><i>ab</i>c<i>d</i>e
5793 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5794 (PHP parser generates misnested html)
5798 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5800 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5804 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5805 (PHP parser generates misnested html)
5809 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5812 <div><i>b</i>c<i>d</i></div>
5817 Templates: Ugly nesting: 4. Divs opened/closed across templates
5819 a<div>b{{echo|c</div>d}}e
5826 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5832 |{{echo|foo</table>}}
5836 <table about="#mwt1" typeof="mw:Object/Template ">
5837 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5838 bar</span><span about="#mwt1">
5843 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5853 <td>1. {{echo|foo </table>}}</td>
5855 <td>2. {{echo|baz </table>}}</td>
5868 <table about="#mwt1" typeof="mw:Object/Template">
5873 <td >1. foo </td></tr></tbody></table></td>
5875 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5876 </span><span about="#mwt1">
5878 abc</span><span about="#mwt1">
5879 </span><span about="#mwt1">
5880 </span><span about="#mwt1">
5881 </span><span about="#mwt1">
5882 </span><span about="#mwt1">
5884 xyz</span><span about="#mwt1">
5885 </span><span about="#mwt1">
5890 Templates: Ugly templates: 3. newline-only template parameter
5899 # This looks like a bug: a single newline triggers p/br for some reason.
5901 Templates: Ugly templates: 4. newline-only template parameter inconsistency
5912 Parser Functions: 1. Simple example
5921 Parser Functions: 2. Nested use (only outermost should be marked up)
5930 ### Pre-save transform tests
5933 pre-save transform: subst:
5939 This is a test template
5943 pre-save transform: normal template
5953 pre-save transform: nonexistent template
5957 {{thistemplatedoesnotexist}}
5959 {{thistemplatedoesnotexist}}
5964 pre-save transform: subst magic variables
5973 # This is bug 89, which I fixed. -- wtm
5975 pre-save transform: subst: templates with parameters
5979 {{subst:paramtest|param="something else"}}
5981 This is a test template with parameter "something else"
5987 <nowiki>'''not wiki'''</nowiki>
5991 pre-save transform: nowiki in subst (bug 1188)
5995 {{subst:nowikitest}}
5997 <nowiki>'''not wiki'''</nowiki>
6002 Template:commenttest
6004 This template has <!-- a comment --> in it.
6008 pre-save transform: comment in subst (bug 1936)
6012 {{subst:commenttest}}
6014 This template has <!-- a comment --> in it.
6018 pre-save transform: unclosed tag
6022 <nowiki>'''not wiki'''
6024 <nowiki>'''not wiki'''
6028 pre-save transform: mixed tag case
6032 <NOwiki>'''not wiki'''</noWIKI>
6034 <NOwiki>'''not wiki'''</noWIKI>
6038 pre-save transform: unclosed comment in <nowiki>
6042 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6044 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6050 <span onmouseover="alert('crap')">Oh no</span>
6054 (confirming safety of fix for subst bug 1936)
6056 {{Template:dangerous}}
6058 <p><span>Oh no</span>
6063 pre-save transform: comment containing gallery (bug 5024)
6067 <!-- <gallery>data</gallery> -->
6069 <!-- <gallery>data</gallery> -->
6073 pre-save transform: comment containing extension
6077 <!-- <tag>data</tag> -->
6079 <!-- <tag>data</tag> -->
6083 pre-save transform: comment containing nowiki
6087 <!-- <nowiki>data</nowiki> -->
6089 <!-- <nowiki>data</nowiki> -->
6093 pre-save transform: <noinclude> in subst (bug 3298)
6103 pre-save transform: <onlyinclude> in subst (bug 3298)
6115 {{<includeonly>subst:</includeonly>Includes}}
6119 Template:SafeSubstTest
6121 {{<includeonly>safesubst:</includeonly>Includes}}
6125 bug 22297: safesubst: works during PST
6129 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6135 bug 22297: safesubst: works during normal parse
6144 subst: does not work during normal parse
6148 <p>{{subst:Includes}}
6153 pre-save transform: context links ("pipe trick")
6157 [[Article (context)|]]
6160 [[Bar:Article (context)|]]
6161 [[:Bar:Article (context)|]]
6163 [[|Article (context)]]
6167 [[Article (context)|Article]]
6168 [[Bar:Article|Article]]
6169 [[:Bar:Article|Article]]
6170 [[Bar:Article (context)|Article]]
6171 [[:Bar:Article (context)|Article]]
6173 [[Article (context)]]
6174 [[Bar:X (Y) Z|X (Y) Z]]
6175 [[:Bar:X (Y) Z|X (Y) Z]]
6179 pre-save transform: context links ("pipe trick") with interwiki prefix
6183 [[interwiki:Article|]]
6184 [[:interwiki:Article|]]
6185 [[interwiki:Bar:Article|]]
6186 [[:interwiki:Bar:Article|]]
6188 [[interwiki:Article|Article]]
6189 [[:interwiki:Article|Article]]
6190 [[interwiki:Bar:Article|Bar:Article]]
6191 [[:interwiki:Bar:Article|Bar:Article]]
6195 pre-save transform: context links ("pipe trick") with parens in title
6197 pst title=[[Somearticle (context)]]
6201 [[Article (context)|Article]]
6205 pre-save transform: context links ("pipe trick") with comma in title
6207 pst title=[[Someplace, Somewhere]]
6210 [[Otherplace, Elsewhere|]]
6211 [[Otherplace, Elsewhere, Anywhere|]]
6213 [[Otherplace, Somewhere|Otherplace]]
6214 [[Otherplace, Elsewhere|Otherplace]]
6215 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6219 pre-save transform: context links ("pipe trick") with parens and comma
6221 pst title=[[Someplace (IGNORED), Somewhere]]
6224 [[Otherplace (place), Elsewhere|]]
6226 [[Otherplace, Somewhere|Otherplace]]
6227 [[Otherplace (place), Elsewhere|Otherplace]]
6231 pre-save transform: context links ("pipe trick") with comma and parens
6233 pst title=[[Who, me? (context)]]
6236 [[Me, Myself, and I (1937 song)|]]
6238 [[Yes, you. (context)|Yes, you.]]
6239 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6243 pre-save transform: context links ("pipe trick") with namespace
6245 pst title=[[Ns:Somearticle]]
6249 [[Ns:Article|Article]]
6253 pre-save transform: context links ("pipe trick") with namespace and parens
6255 pst title=[[Ns:Somearticle (context)]]
6259 [[Ns:Article (context)|Article]]
6263 pre-save transform: context links ("pipe trick") with namespace and comma
6265 pst title=[[Ns:Somearticle, Context, Whatever]]
6269 [[Ns:Article, Context, Whatever|Article]]
6273 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6275 pst title=[[Ns:Somearticle, Context (context)]]
6279 [[Ns:Article (context)|Article]]
6283 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6285 pst title=[[Ns:Somearticle (IGNORED), Context]]
6289 [[Ns:Article, Context|Article]]
6293 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6297 [[Article(context)|]]
6298 [[Bar:Article(context)|]]
6299 [[:Bar:Article(context)|]]
6300 [[|Article(context)]]
6304 [[Article(context)|Article]]
6305 [[Bar:Article(context)|Article]]
6306 [[:Bar:Article(context)|Article]]
6307 [[Article(context)]]
6309 [[:Bar:X(Y)Z|X(Y)Z]]
6313 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6317 [[Article (context)|]]
6318 [[Bar:Article (context)|]]
6319 [[:Bar:Article (context)|]]
6320 [[|Article (context)]]
6324 [[Article (context)|Article]]
6325 [[Bar:Article (context)|Article]]
6326 [[: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 parens and no space (Korean style, bug 30149)
6337 [[Article(context)|]]
6338 [[Bar:Article(context)|]]
6339 [[:Bar:Article(context)|]]
6340 [[|Article(context)]]
6344 [[Article(context)|Article]]
6345 [[Bar:Article(context)|Article]]
6346 [[:Bar:Article(context)|Article]]
6347 [[Article(context)]]
6349 [[:Bar:X(Y)Z|X(Y)Z]]
6353 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6357 [[Article (context), context|]]
6358 [[Article (context),context|]]
6359 [[Bar:Article (context), context|]]
6360 [[Bar:Article (context),context|]]
6361 [[:Bar:Article (context), context|]]
6362 [[:Bar:Article (context),context|]]
6364 [[Article (context), context|Article]]
6365 [[Article (context),context|Article]]
6366 [[Bar:Article (context), context|Article]]
6367 [[Bar:Article (context),context|Article]]
6368 [[:Bar:Article (context), context|Article]]
6369 [[:Bar:Article (context),context|Article]]
6373 pre-save transform: trim trailing empty lines
6377 Empty lines are trimmed
6383 Empty lines are trimmed
6387 pre-save transform: Signature expansion
6392 * <noinclude>~~~</noinclude>
6393 * <includeonly>~~~</includeonly>
6394 * <onlyinclude>~~~</onlyinclude>
6396 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6397 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6398 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6399 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6404 pre-save transform: Signature expansion in nowiki tags (bug 93)
6410 <nowiki>~~~~</nowiki>
6412 <includeonly><nowiki>~~~~</nowiki></includeonly>
6414 <noinclude><nowiki>~~~~</nowiki></noinclude>
6416 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6418 {{subst:Foo}} shall be converted to FOO
6420 As well as inside noinclude/onlyinclude
6421 <noinclude>{{subst:Foo}}</noinclude>
6422 <onlyinclude>{{subst:Foo}}</onlyinclude>
6424 But not inside includeonly
6425 <includeonly>{{subst:Foo}}</includeonly>
6429 <nowiki>~~~~</nowiki>
6431 <includeonly><nowiki>~~~~</nowiki></includeonly>
6433 <noinclude><nowiki>~~~~</nowiki></noinclude>
6435 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6437 FOO shall be converted to FOO
6439 As well as inside noinclude/onlyinclude
6440 <noinclude>FOO</noinclude>
6441 <onlyinclude>FOO</onlyinclude>
6443 But not inside includeonly
6444 <includeonly>{{subst:Foo}}</includeonly>
6448 ### Message transform tests
6451 message transform: magic variables
6461 message transform: should not transform wiki markup
6471 message transform: <noinclude> in transcluded template (bug 4926)
6481 message transform: <onlyinclude> in transcluded template (bug 4926)
6491 {{#special:}} page name, known
6495 {{#special:Recentchanges}}
6497 Special:RecentChanges
6501 {{#special:}} page name with subpage, known
6505 {{#special:Recentchanges/param}}
6507 Special:RecentChanges/param
6511 {{#special:}} page name, unknown
6515 {{#special:foobarnonexistent}}
6517 No such special page
6521 {{#speciale:}} page name, known
6525 {{#speciale:Recentchanges}}
6527 Special:RecentChanges
6531 {{#speciale:}} page name with subpage, known
6535 {{#speciale:Recentchanges/param}}
6537 Special:RecentChanges/param
6541 {{#speciale:}} page name, unknown
6545 {{#speciale:foobarnonexistent}}
6547 No_such_special_page
6556 [[Image:foobar.jpg]]
6558 <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>
6565 [[Image:foobar.jpg|right]]
6567 <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>
6572 Simple image (using File: namespace, now canonical)
6576 <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>
6583 [[Image:foobar.jpg|right|Caption text]]
6585 <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>
6590 Image with empty attribute
6592 [[Image:foobar.jpg|right||Caption text]]
6594 <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>
6599 Image with link tails
6601 123[[Image:foobar.jpg]]456
6602 123[[Image:foobar.jpg|right]]456
6603 123[[Image:foobar.jpg|thumb]]456
6605 <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
6607 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
6608 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
6613 Image with multiple captions -- only last one is accepted
6615 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6617 <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>
6622 Image with width attribute at different positions
6624 [[Image:foobar.jpg|200px|right|Caption]]
6625 [[Image:foobar.jpg|right|200px|Caption]]
6626 [[Image:foobar.jpg|right|Caption|200px]]
6628 <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>
6629 <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>
6630 <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>
6635 Image with link parameter, wiki target
6637 [[Image:foobar.jpg|link=Target page]]
6639 <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>
6644 Image with link parameter, URL target
6646 [[Image:foobar.jpg|link=http://example.com/]]
6648 <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>
6653 Image with link parameter, wgExternalLinkTarget
6655 [[Image:foobar.jpg|link=http://example.com/]]
6657 wgExternalLinkTarget='foobar'
6659 <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>
6664 Image with link parameter, wgNoFollowLinks set to false
6666 [[Image:foobar.jpg|link=http://example.com/]]
6668 wgNoFollowLinks=false
6670 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6675 Image with link parameter, wgNoFollowDomainExceptions
6677 [[Image:foobar.jpg|link=http://example.com/]]
6679 wgNoFollowDomainExceptions='example.com'
6681 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6686 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6688 [[Image:foobar.jpg|link=http://example.com/|Title]]
6690 wgExternalLinkTarget='foobar'
6692 <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>
6697 Image with empty link parameter
6699 [[Image:foobar.jpg|link=]]
6701 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6706 Image with link parameter (wiki target) and unnamed parameter
6708 [[Image:foobar.jpg|link=Target page|Title]]
6710 <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>
6715 Image with link parameter (URL target) and unnamed parameter
6717 [[Image:foobar.jpg|link=http://example.com/|Title]]
6719 <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>
6724 Thumbnail image with link parameter
6726 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6728 <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>
6733 Image with frame and link
6735 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6737 <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>
6742 Image with frame and link and explicit alt
6744 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6746 <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>
6751 Image with wiki markup in implicit alt
6753 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6755 <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>
6760 Image with wiki markup in explicit alt
6762 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6764 <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>
6769 Link to image page- image page normally doesn't exists, hence edit link
6770 Add test with existing image page
6771 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6775 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6780 bug 18784 Link to non-existent image page with caption should use caption as link text
6782 [[:Image:test|caption]]
6784 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6789 Frameless image caption with a free URL
6791 [[Image:foobar.jpg|http://example.com]]
6793 <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>
6798 Thumbnail image caption with a free URL
6800 [[Image:foobar.jpg|thumb|http://example.com]]
6802 <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>
6807 Thumbnail image caption with a free URL and explicit alt
6809 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6811 <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>
6816 BUG 1887: A ISBN with a thumbnail
6818 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6820 <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>
6825 BUG 1887: A RFC with a thumbnail
6827 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6829 <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" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6834 BUG 1887: A mailto link with a thumbnail
6836 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6838 <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>
6842 # Pending resolution to bug 368
6844 BUG 648: Frameless image caption with a link
6846 [[Image:foobar.jpg|text with a [[link]] in it]]
6848 <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>
6853 BUG 648: Frameless image caption with a link (suffix)
6855 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6857 <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>
6862 BUG 648: Frameless image caption with an interwiki link
6864 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6866 <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>
6871 BUG 648: Frameless image caption with a piped interwiki link
6873 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6875 <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>
6880 Escape HTML special chars in image alt text
6882 [[Image:foobar.jpg|& < > "]]
6884 <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>
6889 BUG 499: Alt text should have Ӓ, not &1234;
6891 [[Image:foobar.jpg|♀]]
6893 <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>
6898 Broken image caption with link
6900 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6902 <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.
6907 Image caption containing another image
6909 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6911 <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>
6916 Image caption containing a newline
6918 [[Image:Foobar.jpg|This
6921 <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>
6927 Bug 3090: External links other than http: in image captions
6929 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6931 <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>
6938 [[Image:foobar.jpg|a|class=b]]
6940 <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>
6947 #REDIRECT [[File:Barfoo.jpg]]
6953 [[Image:Barfoo.jpg]]
6955 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6960 Missing image with uploads disabled
6964 [[Image:Foobaz.jpg]]
6966 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6975 Subpage test/subpage
6983 subpage title=[[Subpage test]]
6987 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6992 Subpage noslash link
6994 subpage title=[[Subpage test]]
6998 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7007 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7012 BUG 561: {{/Subpage}}
7014 subpage title=[[Page]]
7018 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7026 Category:MediaWiki User's Guide
7034 [[:Category:MediaWiki User's Guide]]
7036 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7045 [[Category:MediaWiki User's Guide]]
7047 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7051 PAGESINCATEGORY invalid title fatal (r33546 fix)
7053 {{PAGESINCATEGORY:<bogus>}}
7060 Category with different sort key
7064 [[Category:MediaWiki User's Guide|Foo]]
7066 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7070 Category with identical sort key
7074 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7076 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7080 Category with empty sort key
7085 [[Category:MediaWiki User's Guide|]]
7087 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7091 Category with empty sort key and parentheses
7096 [[Category:Foo (bar)|]]
7098 [[Category:Foo (bar)|Foo]]
7102 Category with link tail
7107 123[[Category:Foo]]456
7109 123[[Category:Foo]]456
7113 Category with template
7118 [[Category:{{echo|Foo}}]]
7120 [[Category:{{echo|Foo}}]]
7124 Category with template in sort key
7129 [[Category:Foo|{{echo|Bar}}]]
7131 [[Category:Foo|{{echo|Bar}}]]
7135 Category with template in sort key and title
7140 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7142 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7146 Category / paragraph interactions
7148 Foo [[Category:Baz]] Bar
7150 Foo [[Category:Baz]]
7158 [[Category:Baz]] Bar
7171 {{echo|[[Category:Baz]]}}
7186 ### Inter-language links
7189 Inter-language links
7195 [[zh:食品]]
7197 es:Alimento fr:Nourriture zh:食品
7201 Duplicate interlanguage links (bug 24502)
7217 Basic section headings
7224 ===Smaller headline===
7227 <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>
7230 <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>
7233 <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>
7239 Section headings with TOC
7242 === Subheadline 1 ===
7243 ===== Skipping a level =====
7244 ====== Skipping a level ======
7248 ===Another headline===
7250 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7252 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7254 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7256 <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>
7258 <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>
7265 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7267 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7272 <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>
7273 <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>
7274 <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>
7275 <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>
7276 <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>
7279 <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>
7283 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7285 Handling of sections up to level 6 and beyond
7288 == Level 2 Heading==
7289 === Level 3 Heading===
7290 ==== Level 4 Heading====
7291 ===== Level 5 Heading=====
7292 ====== Level 6 Heading======
7293 ======= Level 7 Heading=======
7294 ======== Level 8 Heading========
7295 ========= Level 9 Heading=========
7296 ========== Level 10 Heading==========
7298 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7300 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7302 <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>
7304 <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>
7306 <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>
7308 <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>
7310 <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>
7311 <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>
7312 <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>
7313 <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>
7314 <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>
7327 <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>
7328 <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>
7329 <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>
7330 <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>
7331 <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>
7332 <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>
7333 <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>
7334 <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>
7335 <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>
7336 <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>
7341 TOC regression (bug 9764)
7345 ==== title 1.1.1 ====
7350 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7352 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7354 <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>
7356 <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>
7359 <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>
7362 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7364 <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>
7369 <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>
7370 <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>
7371 <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>
7372 <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>
7373 <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>
7374 <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>
7379 TOC with wgMaxTocLevel=3 (bug 6204)
7385 ==== title 1.1.1 ====
7390 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7392 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7394 <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>
7395 <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>
7398 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7400 <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>
7405 <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>
7406 <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>
7407 <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>
7408 <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>
7409 <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>
7410 <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>
7415 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7421 ====Section 1.1.1====
7422 ====Section 1.1.1.1====
7425 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7427 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7429 <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>
7432 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7435 <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>
7436 <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>
7437 <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>
7438 <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>
7439 <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>
7445 Resolving duplicate section names
7450 <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>
7451 <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>
7456 Resolving duplicate section names with differing case (bug 10721)
7461 <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>
7462 <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>
7474 Template with sections, __NOTOC__
7481 <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>
7482 <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>
7483 <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>
7484 <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>
7489 __NOEDITSECTION__ keyword
7495 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7496 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7501 Link inside a section heading
7503 ==Section with a [[Main Page|link]] in it==
7505 <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>
7510 TOC regression (bug 12077)
7517 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7519 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7521 <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>
7524 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7527 <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>
7528 <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>
7529 <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>
7534 BUG 1219 URL next to image (good)
7536 http://example.com [[Image:foobar.jpg]]
7538 <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>
7543 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7546 The line above must have a trailing space!
7549 But just in case it doesn't...
7551 <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>
7552 <p>The line above must have a trailing space!
7554 <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>
7555 <p>But just in case it doesn't...
7560 Header with special characters (bug 25462)
7562 The tooltips shall not show entities to the user (ie. be double escaped)
7579 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7581 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7583 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7584 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7585 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7586 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7587 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7590 <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>
7593 <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>
7596 <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>
7599 <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>
7602 <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>
7608 Headers with excess '=' characters
7609 (Are similar tests necessary beyond the 1st level?)
7613 =''italic'' heading==
7614 ==''italic'' heading=
7616 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7618 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7619 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7620 <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>
7621 <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>
7624 <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>
7625 <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>
7626 <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>
7627 <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>
7632 BUG 1219 URL next to image (broken)
7634 http://example.com[[Image:foobar.jpg]]
7636 <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>
7641 Bug 1186 news: in the middle of text
7643 http://en.wikinews.org/wiki/Wikinews:Workplace
7645 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7651 Namespaced link must have a title
7660 Namespaced link must have a title (bad fragment version)
7662 [[Project:#fragment]]
7664 <p>[[Project:#fragment]]
7670 ### HTML tags and HTML attributes
7674 div with no attributes
7676 <div>HTML rocks</div>
7678 <div>HTML rocks</div>
7683 div with double-quoted attribute
7685 <div id="rock">HTML rocks</div>
7687 <div id="rock">HTML rocks</div>
7692 div with single-quoted attribute
7694 <div id='rock'>HTML rocks</div>
7696 <div id="rock">HTML rocks</div>
7701 div with unquoted attribute
7703 <div id=rock>HTML rocks</div>
7705 <div id="rock">HTML rocks</div>
7710 div with illegal double attributes
7712 <div id="a" id="b">HTML rocks</div>
7714 <div id="b">HTML rocks</div>
7718 # FIXME: produce empty string instead of "class" in the PHP parser, following
7721 div with empty attribute value, space before equals
7725 <div class =>HTML rocks</div>
7727 <div class="">HTML rocks</div>
7731 # The PHP parser escapes the opening brace to { for some reason, so
7732 # disabled this test for it.
7734 div with braces in attribute value
7738 <div title="{}">Foo</div>
7740 <div title="{}">Foo</div>
7743 # This it very inconsistent in the PHP parser: it returns
7744 # class="class" if there is a space between the name and the equal sign (see
7745 # 'div with empty attribute value, space before equals'), but strips the
7746 # attribute completely if the space is missing. We hope that not much content
7747 # depends on this, so are implementing the behavior below in Parsoid for
7748 # consistencies' sake. Disabled for the PHP parser.
7749 # FIXME: fix this behavior in the PHP parser?
7751 div with empty attribute value, no space before equals
7755 <div class=>HTML rocks</div>
7757 <div class="">HTML rocks</div>
7762 HTML multiple attributes correction
7764 <p class="error" class="awesome">Awesome!</p>
7766 <p class="awesome">Awesome!</p>
7771 Table multiple attributes correction
7774 !+ class="error" class="awesome"| status
7779 <th class="awesome"> status
7787 <DIV ID="x">HTML ROCKS</DIV>
7789 <div id="x">HTML ROCKS</div>
7794 Non-ASCII pseudo-tags are rendered as text
7803 Pseudo-tag with URL 'name' renders as url link
7805 <http://example.com/>
7807 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7812 text with amp in the middle of nowhere
7816 <p>Remember AT&T?
7821 text with character entity: eacute
7823 I always thought é was a cute letter.
7825 <p>I always thought é was a cute letter.
7830 text with entity-escaped character entity-like string: eacute
7832 I always thought &eacute; was a cute letter.
7834 <p>I always thought &eacute; was a cute letter.
7839 text with undefined character entity: xacute
7841 I always thought &xacute; was a cute letter.
7843 <p>I always thought &xacute; was a cute letter.
7855 [[Media:Foobar.jpg]]
7857 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7862 Media link with text
7864 [[Media:Foobar.jpg|A neat file to look at]]
7866 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7870 # FIXME: this is still bad HTML tag nesting
7872 Media link with nasty text
7873 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7875 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7877 <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>
7882 Media link to nonexistent file (bug 1702)
7884 [[Media:No such.jpg]]
7886 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7891 Image link to nonexistent file (bug 1850 - good)
7893 [[Image:No such.jpg]]
7895 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7900 :Image link to nonexistent file (bug 1850 - bad)
7902 [[:Image:No such.jpg]]
7904 <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>
7911 Character reference normalization in link text (bug 1938)
7913 [[Main Page|this&that]]
7915 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7922 Test for unicode normalization
7924 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7928 (bug 19451) Links should refer to the normalized form.
7936 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7937 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7938 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7939 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7940 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7945 Empty attribute crash test (bug 2067)
7947 <font color="">foo</font>
7949 <p><font color="">foo</font>
7954 Empty attribute crash test single-quotes (bug 2067)
7956 <font color=''>foo</font>
7958 <p><font color="">foo</font>
7963 Attribute test: equals, then nothing
7965 <font color=>foo</font>
7972 Attribute test: unquoted value
7974 <font color=x>foo</font>
7976 <p><font color="x">foo</font>
7981 Attribute test: unquoted but illegal value (hash)
7983 <font color=#x>foo</font>
7985 <p><font color="#x">foo</font>
7990 Attribute test: no value
7992 <font color>foo</font>
7994 <p><font color="color">foo</font>
7999 Bug 2095: link with three closing brackets
8003 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8008 Bug 2095: link with pipe and three closing brackets
8012 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8017 Bug 2095: link with pipe and three closing brackets, version 2
8019 [[Main Page|[http://example.com/]]]
8021 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8031 Template:Dangerous attribute
8033 " onmouseover="alert(document.cookie)
8037 Template:Dangerous style attribute
8039 border-size: expression(alert(document.cookie))
8045 <div style="float: right; {{{1}}}">Magic div</div>
8049 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8051 <div title="{{test}}"></div>
8053 <div title="This is a test template"></div>
8058 Bug 2304: HTML attribute safety (dangerous template; 2309)
8060 <div title="{{dangerous attribute}}"></div>
8062 <div title=""></div>
8067 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8069 <div style="{{dangerous style attribute}}"></div>
8071 <div style="/* insecure input */"></div>
8076 Bug 2304: HTML attribute safety (safe parameter; 2309)
8078 {{div style|width: 200px}}
8080 <div style="float: right; width: 200px">Magic div</div>
8085 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8087 {{div style|width: expression(alert(document.cookie))}}
8089 <div style="/* insecure input */">Magic div</div>
8094 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8096 {{div style|"><script>alert(document.cookie)</script>}}
8098 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8103 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8105 {{div style|" ><script>alert(document.cookie)</script>}}
8107 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8112 Bug 2304: HTML attribute safety (link)
8114 <div title="[[Main Page]]"></div>
8116 <div title="[[Main Page]]"></div>
8121 Bug 2304: HTML attribute safety (italics)
8123 <div title="''foobar''"></div>
8125 <div title="''foobar''"></div>
8130 Bug 2304: HTML attribute safety (bold)
8132 <div title="'''foobar'''"></div>
8134 <div title="'''foobar'''"></div>
8140 Bug 2304: HTML attribute safety (ISBN)
8142 <div title="ISBN 1234567890"></div>
8144 <div title="ISBN 1234567890"></div>
8149 Bug 2304: HTML attribute safety (RFC)
8151 <div title="RFC 1234"></div>
8153 <div title="RFC 1234"></div>
8158 Bug 2304: HTML attribute safety (PMID)
8160 <div title="PMID 1234567890"></div>
8162 <div title="PMID 1234567890"></div>
8167 Bug 2304: HTML attribute safety (web link)
8169 <div title="http://example.com/"></div>
8171 <div title="http://example.com/"></div>
8176 Bug 2304: HTML attribute safety (named web link)
8178 <div title="[http://example.com/ link]"></div>
8180 <div title="[http://example.com/ link]"></div>
8185 Bug 3244: HTML attribute safety (extension; safe)
8187 <div style="<nowiki>background:blue</nowiki>"></div>
8189 <div style="background:blue"></div>
8194 Bug 3244: HTML attribute safety (extension; unsafe)
8196 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8198 <div style="/* insecure input */"></div>
8202 # More MSIE fun discovered by Tom Gilder
8205 MSIE CSS safety test: spurious slash
8207 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8209 <div style="/* insecure input */">evil</div>
8214 MSIE CSS safety test: hex code
8216 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8218 <div style="/* insecure input */">evil</div>
8223 MSIE CSS safety test: comment in url
8225 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8227 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8232 MSIE CSS safety test: comment in expression
8234 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8236 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8242 Table attribute legitimate extension
8245 !+ style="<nowiki>color:blue</nowiki>"| status
8250 <th style="color:blue"> status
8256 Table attribute safety
8259 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8264 <th style="/* insecure input */"> status
8270 CSS line continuation 1
8272 <div style="background-image: u\ rl(test.jpg);"></div>
8274 <div style="/* insecure input */"></div>
8279 CSS line continuation 2
8281 <div style="background-image: u\ rl(test.jpg); "></div>
8283 <div style="/* insecure input */"></div>
8294 Expansion of multi-line templates in attribute values (bug 6255)
8296 <div style="background: {{identity|#00FF00}}">-</div>
8298 <div style="background: #00FF00">-</div>
8304 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8306 <div style="background:
8309 <div style="background: #00FF00">-</div>
8314 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8316 <div style="background: #00FF00">-</div>
8318 <div style="background: #00FF00">-</div>
8323 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8326 Parser hook: empty input
8339 Parser hook: empty input using terminated empty elements
8352 Parser hook: empty input using terminated empty elements (space before)
8365 Parser hook: basic input
8379 Parser hook: case insensitive
8393 Parser hook: case insensitive, redux
8406 Parser hook: nested tags
8410 <tag><tag></tag></tag>
8421 Parser hook: basic arguments
8423 <tag width=200 height = "100" depth = '50' square></tag>
8431 'square' => 'square',
8438 Parser hook: argument containing a forward slash (bug 5344)
8440 <tag filename='/tmp/bla'></tag>
8445 'filename' => '/tmp/bla',
8452 Parser hook: empty input using terminated empty elements (bug 2374)
8465 # </tag> should be output literally since there is no matching tag that begins it
8467 Parser hook: basic arguments using terminated empty elements (bug 2374)
8469 <tag width=200 height = "100" depth = '50' square/>
8479 'square' => 'square',
8488 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8492 Parser hook: static parser hook not inside a comment
8494 <statictag>hello, world</statictag>
8495 <statictag action=flush/>
8503 Parser hook: static parser hook inside a comment
8505 <!-- <statictag>hello, world</statictag> -->
8506 <statictag action=flush/>
8512 # Nested template calls; this case was broken by Parser.php rev 1.506,
8516 Template:One-parameter
8518 (My parameter is: {{{1}}})
8522 Template:Map-one-parameter
8528 Nested template calls
8530 {{Map-one-parameter|One-parameter|param}}
8532 <p>(My parameter is: param)
8541 Sanitizer: Closing of open tags
8543 <s></s><table></table>
8545 <s></s><table></table>
8550 Sanitizer: Closing of open but not closed tags
8559 Sanitizer: Closing of closed but not open tags
8568 Sanitizer: Closing of closed but not open table tags
8570 Table not started</td></tr></table>
8572 <p>Table not started</td></tr></table>
8577 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8579 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8581 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8586 Sanitizer: Validating the contents of the id attribute (bug 4515)
8592 Something, but definitely not <br id="9" />...
8596 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8600 <br id="foo" /><br id="foo" />
8602 Something need to be done. foo-2 ?
8606 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8609 <meta itemprop="hello" content="world">
8610 <meta http-equiv="refresh" content="5">
8611 <meta itemprop="hello" http-equiv="refresh" content="5">
8612 <link itemprop="hello" href="{{SERVER}}">
8613 <link rel="stylesheet" href="{{SERVER}}">
8614 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8617 <div itemscope="itemscope">
8618 <p> <meta itemprop="hello" content="world" />
8619 <meta http-equiv="refresh" content="5">
8620 <meta itemprop="hello" content="5" />
8622 <link itemprop="hello" href="http://Britney-Spears" />
8623 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8624 <link itemprop="hello" href="http://Britney-Spears" />
8630 Language converter: output gets cut off unexpectedly (bug 5757)
8634 this bit is safe: }-
8636 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8638 then we get cut off here: }-
8640 all additional text is vanished
8642 <p>this bit is safe: }-
8643 </p><p>but if we add a conversion instance: xxx
8644 </p><p>then we get cut off here: }-
8645 </p><p>all additional text is vanished
8650 Self closed html pairs (bug 5487)
8653 <center><font id="bug" />Centered text</center>
8654 <div><font id="bug2" />In div text</div>
8656 <center><font id="bug" />Centered text</center>
8657 <div><font id="bug2" />In div text</div>
8666 Punctuation: nbsp before exclamation
8670 <p>C'est grave !
8675 Punctuation: CSS !important (bug 11874)
8677 <div style="width:50% !important">important</div>
8679 <div style="width:50% !important">important</div>
8684 Punctuation: CSS ! important (bug 11874; with space after)
8686 <div style="width:50% ! important">important</div>
8688 <div style="width:50% ! important">important</div>
8694 HTML bullet list, closed tags (bug 5497)
8709 HTML bullet list, unclosed tags (bug 5497)
8726 HTML ordered list, closed tags (bug 5497)
8741 HTML ordered list, unclosed tags (bug 5497)
8758 HTML nested bullet list, closed tags (bug 5497)
8783 HTML nested bullet list, open tags (bug 5497)
8808 HTML nested ordered list, closed tags (bug 5497)
8833 HTML nested ordered list, open tags (bug 5497)
8858 HTML ordered list item with parameters oddity
8860 <ol><li id="fragment">One</li></ol>
8862 <ol><li id="fragment">One</li></ol>
8867 bug 5918: autonumbering
8869 [http://first/] [http://second] [ftp://ftp]
8873 [mailto:enclosed@mail.tld With target]
8875 [mailto:enclosed@mail.tld]
8877 mailto:inline@mail.tld
8879 <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>
8880 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8881 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8882 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8883 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8889 # Security and HTML correctness
8890 # From Nick Jenkins' fuzz testing
8894 Fuzz testing: Parser13
8909 Fuzz testing: Parser14
8914 <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>
8915 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8917 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8924 Fuzz testing: Parser14-table
8929 <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>
8930 <table style="__TOC__">
8936 # Known to produce bogus xml (extra </td>)
8938 Fuzz testing: Parser16
8958 Fuzz testing: Parser21
8961 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8966 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8976 Fuzz testing: Parser22
8978 http://===r:::https://b
8982 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8990 # Known to produce bad XML for now
8992 Fuzz testing: Parser24
8999 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9000 <br style="onmouseover='alert(document.cookie);' " />
9002 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9007 <u class="|">}}}} >
9008 <br style="onmouseover='alert(document.cookie);'" />
9010 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9019 # Note: the current result listed for this is not what the original one was,
9020 # but the original bug was JavaScript injection, which is fixed in any case.
9021 # It's not clear that the original result listed was any more correct than the
9022 # current one. Original result:
9025 # <li class="||">
9026 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9028 Fuzz testing: Parser25 (bug 6055)
9034 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9036 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9041 Fuzz testing: URL adjacent extension (with space, clean)
9044 http://example.com <nowiki>junk</nowiki>
9046 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9051 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9054 http://example.com<nowiki>junk</nowiki>
9056 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9061 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9064 http://example.com<pre>junk</pre>
9066 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9071 Fuzz testing: image with bogus manual thumbnail
9073 [[Image:foobar.jpg|thumbnail= ]]
9075 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9080 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9082 <pre dir=" "></pre>
9084 <pre dir=" "></pre>
9089 Parsing optional HTML elements (Bug 6171)
9094 <td> Some tabular data</td>
9095 <td> More tabular data ...
9096 <td> And yet som tabular data</td>
9102 <td> Some tabular data</td>
9103 <td> More tabular data ...
9104 </td><td> And yet som tabular data</td>
9111 Correct handling of <td>, <tr> (Bug 6171)
9116 <td> Some tabular data</td>
9117 <td> More tabular data ...</td>
9118 <td> And yet som tabular data</td>
9124 <td> Some tabular data</td>
9125 <td> More tabular data ...</td>
9126 <td> And yet som tabular data</td>
9134 Parsing crashing regression (fr:JavaScript)
9138 <p></body></x>
9143 Inline wiki vs wiki block nesting
9149 <p><b>Bold paragraph</b>
9150 </p><p>New wiki paragraph
9155 Inline HTML vs wiki block nesting
9163 <p><b>Bold paragraph</b>
9164 </p><p>New wiki paragraph
9168 # Original result was this:
9169 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9171 # While that might be marginally more intuitive, maybe, the six-apostrophe
9172 # construct is clearly pathological and the result stated here (which is what
9173 # the parser actually does) is about as reasonable as anything.
9175 Mixing markup for italics and bold
9178 '''bold''''''bold''bolditalics'''''
9180 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9188 Article for special page transclusion test
9192 Special page transclusion
9195 {{Special:Prefixindex/Xyzzyx}}
9197 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9202 Special page transclusion twice (bug 5021)
9205 {{Special:Prefixindex/Xyzzyx}}
9206 {{Special:Prefixindex/Xyzzyx}}
9208 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9209 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9214 Transclusion of default MediaWiki message
9216 {{MediaWiki:Mainpage}}
9223 Transclusion of nonexistent MediaWiki message
9225 {{MediaWiki:Mainpagexxx}}
9227 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9232 Transclusion of MediaWiki message with underscore
9234 {{MediaWiki:history_short}}
9241 Transclusion of MediaWiki message with space
9243 {{MediaWiki:history short}}
9250 Invalid header with following text
9260 Section extraction test (section 0)
9280 Section extraction test (section 1)
9302 Section extraction test (section 2)
9323 Section extraction test (section 3)
9343 Section extraction test (section 4)
9367 Section extraction test (section 5)
9387 Section extraction test (section 6)
9408 Section extraction test (section 7)
9428 Section extraction test (section 8)
9448 Section extraction test (section 9)
9469 Section extraction test (section 10)
9489 Section extraction test (nonexistent section 11)
9508 Section extraction test with bogus heading (section 1)
9513 ==bogus== not a legal section
9517 ==bogus== not a legal section
9521 Section extraction test with bogus heading (section 2)
9526 ==bogus== not a legal section
9533 Section extraction test with comment after heading (section 1)
9545 Section extraction test with comment after heading (section 2)
9557 Section extraction test with bogus <nowiki> heading (section 1)
9562 ==bogus== <nowiki>not a legal section</nowiki>
9566 ==bogus== <nowiki>not a legal section</nowiki>
9570 Section extraction test with bogus <nowiki> heading (section 2)
9575 ==bogus== <nowiki>not a legal section</nowiki>
9582 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9583 # instead of respecting commented sections
9585 Section extraction prefixed by comment (section 1)
9596 Section extraction prefixed by comment (section 2)
9607 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9608 # instead of respecting HTML-style headings
9610 Section extraction, mixed wiki and html (section 1)
9626 Section extraction, mixed wiki and html (section 2)
9642 # Formerly testing for bug 3342
9644 Section extraction, heading surrounded by <noinclude>
9648 <noinclude>==unmarked==</noinclude>
9654 # Test behaviour of bug 19910
9656 Sectiion with all-equals
9661 The line above must have a trailing space
9664 But just in case it doesn't...
9668 But just in case it doesn't...
9672 Section replacement test (section 0)
9703 Section replacement test (section 1)
9732 Section replacement test (section 2)
9762 Section replacement test (section 3)
9793 Section replacement test (section 4)
9820 Section replacement test (section 5)
9851 Section replacement test (section 6)
9881 Section replacement test (section 7)
9912 Section replacement test (section 8)
9943 Section replacement test (section 9)
9972 Section replacement test (section 10)
10002 Section replacement test with initial whitespace (bug 13728)
10006 Preformatted initial line
10010 Preformatted initial line
10017 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10029 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10042 Section extraction, <pre> around bogus header (bug 10309)
10059 Section replacement, <pre> around bogus header (bug 10309)
10061 noxml replace=2,"xxx"
10082 Handling of 
 in URLs
10086 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10093 5 quotes, code coverage +1 line
10100 Special:Search page linking.
10104 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10116 * {{BASEPAGENAMEE}}
10118 * {{TALKPAGENAMEE}}
10119 * {{SUBJECTPAGENAME}}
10120 * {{SUBJECTPAGENAMEE}}
10126 * {{SUBJECTSPACEE}}
10127 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10129 <ul><li> Parser test
10130 </li><li> Parser test
10131 </li><li> Parser test
10132 </li><li> Parser_test
10133 </li><li> Parser test
10134 </li><li> Parser_test
10135 </li><li> Talk:Parser test
10136 </li><li> Talk:Parser_test
10137 </li><li> Parser test
10138 </li><li> Parser_test
10145 </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>
10149 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10159 image4 |300px| centre
10160 image5.svg| http://///////
10165 <ul class="gallery">
10166 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10167 <div style="height: 150px;">Image1.png</div>
10168 <div class="gallerytext">
10171 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10172 <div style="height: 150px;">Image2.gif</div>
10173 <div class="gallerytext">
10178 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10179 <div style="height: 150px;">Image3</div>
10180 <div class="gallerytext">
10183 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10184 <div style="height: 150px;">Image4</div>
10185 <div class="gallerytext">
10190 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10191 <div style="height: 150px;">Image5.svg</div>
10192 <div class="gallerytext">
10193 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10197 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10198 <div style="height: 150px;">* image6</div>
10199 <div class="gallerytext">
10207 Gallery (with options)
10209 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10210 File:Nonexistant.jpg|caption
10211 File:Nonexistant.jpg
10212 image:foobar.jpg|some '''caption''' [[Main Page]]
10214 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10217 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10218 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10219 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10220 <div style="height: 70px;">Nonexistant.jpg</div>
10221 <div class="gallerytext">
10226 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10227 <div style="height: 70px;">Nonexistant.jpg</div>
10228 <div class="gallerytext">
10231 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10232 <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>
10233 <div class="gallerytext">
10234 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10238 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10239 <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>
10240 <div class="gallerytext">
10243 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10244 <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>
10245 <div class="gallerytext">
10255 Gallery with wikitext inside caption
10258 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10259 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10262 <ul class="gallery">
10263 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10264 <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>
10265 <div class="gallerytext">
10266 <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>
10270 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10271 <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>
10272 <div class="gallerytext">
10273 <p>This is a test template
10282 gallery (with showfilename option)
10284 <gallery showfilename>
10285 File:Nonexistant.jpg|caption
10286 File:Nonexistant.jpg
10287 image:foobar.jpg|some '''caption''' [[Main Page]]
10291 <ul class="gallery">
10292 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10293 <div style="height: 150px;">Nonexistant.jpg</div>
10294 <div class="gallerytext">
10295 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10300 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10301 <div style="height: 150px;">Nonexistant.jpg</div>
10302 <div class="gallerytext">
10303 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10307 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10308 <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>
10309 <div class="gallerytext">
10310 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10311 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10315 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10316 <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>
10317 <div class="gallerytext">
10318 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10327 Gallery (with namespace-less filenames)
10330 File:Nonexistant.jpg
10336 <ul class="gallery">
10337 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10338 <div style="height: 150px;">Nonexistant.jpg</div>
10339 <div class="gallerytext">
10342 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10343 <div style="height: 150px;">Nonexistant.jpg</div>
10344 <div class="gallerytext">
10347 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10348 <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>
10349 <div class="gallerytext">
10352 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10353 <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>
10354 <div class="gallerytext">
10362 HTML Hex character encoding (spells the word "JavaScript")
10364 JavaScript
10366 <p>JavaScript
10371 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10375 <p>&#xsee;&#XSEE;
10380 HTML Hex character encoding mixed case
10389 __FORCETOC__ override
10401 ISBN 978-0-1234-56 789
10403 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10408 ISBN followed by 5 spaces
10419 ISBN ISBN 1234567890
10421 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10426 Bug 22905: <abbr> followed by ISBN followed by </a>
10428 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10430 <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>
10439 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10444 Double RFC with a wiki link
10448 <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>
10457 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10462 Centre-aligned image
10464 [[Image:foobar.jpg|centre]]
10466 <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>
10473 [[Image:foobar.jpg|none]]
10475 <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>
10480 Width + Height sized image (using px) (height is ignored)
10482 [[Image:foobar.jpg|640x480px]]
10484 <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>
10489 Width-sized image (using px, no following whitespace)
10491 [[Image:foobar.jpg|640px]]
10493 <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>
10498 Width-sized image (using px, with following whitespace - test regression from r39467)
10500 [[Image:foobar.jpg|640px ]]
10502 <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>
10507 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10509 [[Image:foobar.jpg| 640px]]
10511 <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>
10516 Another italics / bold test
10524 # Note the results may be incorrect, as parserTest output included this:
10525 # XML error: Mismatched tag at byte 6120:
10526 # ...<dd> </dt></dl> </dd...
10534 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10545 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10547 Images with the "|" character in the comment
10549 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10551 <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>
10556 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10558 <html><script>alert(1);</script></html>
10560 <p><html><script>alert(1);</script></html>
10565 HTML with raw HTML ($wgRawHtml==true)
10569 <html><script>alert(1);</script></html>
10571 <p><script>alert(1);</script>
10576 Parents of subpages, one level up
10578 subpage title=[[Subpage test/L1/L2/L3]]
10582 <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>
10588 Parents of subpages, one level up, not named
10590 subpage title=[[Subpage test/L1/L2/L3]]
10594 <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>
10601 Parents of subpages, two levels up
10603 subpage title=[[Subpage test/L1/L2/L3]]
10609 <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
10610 </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>
10615 Parents of subpages, two levels up, without trailing slash or name.
10617 subpage title=[[Subpage test/L1/L2/L3]]
10626 Parents of subpages, two levels up, with lots of extra trailing slashes.
10628 subpage title=[[Subpage test/L1/L2/L3]]
10632 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10637 Definition list code coverage
10643 <dl><dt> title  </dt><dd> def
10644 </dd><dt> title </dt><dd> def
10645 </dd><dt>title</dt><dd> def
10651 Don't fall for the self-closing div
10653 <div>hello world</div/>
10655 <div>hello world</div>
10664 <p>[[:Template:Msg]]
10673 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10677 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10679 Always escape literal '>' in output, not just after '<'
10693 <p>This is a test template
10694 This is a test template
10706 Inclusion of !userCanEdit() content
10710 <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>
10716 Out-of-order TOC heading levels
10725 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10727 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10729 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10730 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10733 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10735 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10736 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10741 <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>
10742 <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>
10743 <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>
10744 <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>
10745 <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>
10746 <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>
10752 ISBN with a dummy number
10762 ISBN with space-delimited number
10766 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10772 ISBN with multiple spaces, no number
10791 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10792 </p><p>ISBN 12345678901
10798 ISBN with trailing year (bug 8110)
10800 ISBN 1-234-56789-0 - 2006
10802 ISBN 1 234 56789 0 - 2006
10804 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10805 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10813 {{anchorencode:foo bar©#%n}}
10815 <p>foo_bar.C2.A9.23.25n
10820 anchorencode trims spaces
10822 {{anchorencode: __pretty__please__}}
10829 anchorencode deals with links
10831 {{anchorencode: [[hello|world]] [[hi]]}}
10838 anchorencode deals with templates
10840 {{anchorencode: {{Foo}} }}
10847 anchorencode encodes like the TOC generator: (bug 18431)
10849 === _ +:.3A%3A&&]] ===
10850 {{anchorencode: _ +:.3A%3A&&]] }}
10853 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10854 <p>.2B:.3A.253A.26.26.5D.5D
10858 # Expected output in the following test is not necessarily expected (there
10859 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10860 # only testing for well-formedness.
10862 Bug 6200: blockquotes and paragraph formatting
10882 Bug 8293: Use of center tag ruins paragraph formatting
10904 ### Language variants related tests
10907 Self-link in language variants
10909 title=[[Dunav]] language=sr
10911 Both [[Dunav]] and [[Дунав]] are names for this river.
10913 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10919 Link to pages in language variants
10923 Main Page can be written as [[Маин Паге]]
10925 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10931 Multiple links to pages in language variants
10935 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10937 <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>.
10943 Simple template in language variants
10949 <p>This is a test template
10955 Template with explicit namespace in language variants
10961 <p>This is a test template
10967 Basic test for template parameter in language variants
10971 {{парамтест|param=foo}}
10973 <p>This is a test template with parameter foo
10979 Simple category in language variants
10983 [[Category:МедиаWики Усер'с Гуиде]]
10985 <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>
11002 Don't convert blue categorylinks to another variant (bug 33210)
11006 [[A]][[Category:分类]]
11008 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11013 Stripping -{}- tags (language variants)
11017 Latin proverb: -{Ne nuntium necare}-
11019 <p>Latin proverb: Ne nuntium necare
11025 Prevent conversion with -{}- tags (language variants)
11027 language=sr variant=sr-ec
11029 Latinski: -{Ne nuntium necare}-
11031 <p>Латински: Ne nuntium necare
11037 Prevent conversion of text with -{}- tags (language variants)
11039 language=sr variant=sr-ec
11041 Latinski: -{Ne nuntium necare}-
11043 <p>Латински: Ne nuntium necare
11049 Prevent conversion of links with -{}- tags (language variants)
11051 language=sr variant=sr-ec
11055 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11061 -{}- tags within headlines (within html for parserConvert())
11063 language=sr variant=sr-ec
11067 <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>
11073 Explicit definition of language variant alternatives
11075 language=zh variant=zh-tw
11077 -{zh:China;zh-tw:Taiwan}-, not China
11079 <p>Taiwan, not China
11085 Conversion around HTML tags
11087 language=sr variant=sr-ec
11089 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11090 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11093 <span title="ЛаCтин">ски</span>
11099 Explicit session-wise language variant mapping (A flag and - flag)
11101 language=zh variant=zh-tw
11103 Taiwan is not China.
11104 But -{A|zh:China;zh-tw:Taiwan}- is China,
11105 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11106 and -{China}- is China.
11108 <p>Taiwan is not China.
11109 But Taiwan is Taiwan,
11110 (This should be stripped!)
11111 and China is China.
11116 Explicit session-wise language variant mapping (H flag for hide)
11118 language=zh variant=zh-tw
11120 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11123 <p>(This should be stripped!)
11129 Adding explicit conversion rule for title (T flag)
11131 language=zh variant=zh-tw showtitle
11133 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11136 <p>Should be stripped!
11141 Testing that changing the language variant here in the tests actually works
11143 language=zh variant=zh showtitle
11145 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11148 <p>Should be stripped!
11153 Recursive conversion of alt and title attrs shouldn't clear converter state
11155 language=zh variant=zh-cn showtitle
11157 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11158 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11162 Should be stripped<span title="Exclamation">!</span>
11167 Bug 24072: more test on conversion rule for title
11169 language=zh variant=zh-tw showtitle
11171 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11172 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11175 <p>This should be stripped!
11176 This won't take interferes with the title rule.
11181 Raw output of variant escape tags (R flag)
11183 language=zh variant=zh-tw
11185 Raw: -{R|zh:China;zh-tw:Taiwan}-
11187 <p>Raw: zh:China;zh-tw:Taiwan
11192 Nested using of manual convert syntax
11194 language=zh variant=zh-hk
11196 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11198 <p>Nested: Hello Hong Kong!
11203 Proper conversion of text in external links
11205 language=sr variant=sr-ec
11207 http://www.google.com
11208 gopher://www.google.com
11209 [http://www.google.com http://www.google.com]
11210 [gopher://www.google.com gopher://www.google.com]
11211 [https://www.google.com irc://www.google.com]
11212 [ftp://www.google.com www.google.com/ftp://dir]
11213 [//www.google.com www.google.com]
11215 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11216 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11217 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11218 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11219 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11220 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11221 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11226 Do not convert roman numbers to language variants
11228 language=sr variant=sr-ec
11232 <p>Фридрих IV је цар.
11237 Unclosed language converter markup "-{"
11248 Don't convert raw rule "-{R|=>}-" to "=>"
11265 Bug 529: Uncovered bullet
11275 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11276 # Templates in Wikipedia rely on this behavior, as tidy has always been
11277 # enabled there. These tests are normally run *without* tidy, so specify the
11278 # full output here.
11279 # To test realistic parsing behavior, apply a tidy-like transformation to both
11280 # the expected output and your parser's output.
11282 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11284 ******* Foo {{bullet}}
11286 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11299 Bug 529: Uncovered table already at line-start
11322 Bug 529: Uncovered bullet in parser function result
11324 * Foo {{lc:{{bullet}} }}
11333 Bug 5678: Double-parsed template argument
11335 {{lc:{{{1}}}|hello}}
11342 Bug 5678: Double-parsed template invocation
11344 {{lc:{{paramtest {{!}} param = hello }} }}
11346 <p>{{paramtest | param = hello }}
11351 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11354 title=[[Main Page]]
11356 {{PRVNÍVELKÉ:ěščř}}
11357 {{prvnívelké:ěščř}}
11377 Morwen/13: Unclosed link followed by heading
11384 <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>
11389 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11396 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11401 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11408 <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>
11423 Paragraphs inside divs (no extra line breaks)
11435 Paragraphs inside divs (extra line break on open)
11450 Paragraphs inside divs (extra line break on close)
11465 Paragraphs inside divs (extra line break on open and close)
11482 Nesting tags, paragraphs on lines which begin with <div>
11486 <div></div><strong>A
11495 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11497 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11501 <blockquote>Line one
11503 Line two</blockquote>
11505 <blockquote>Line one
11506 Line two</blockquote>
11511 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11518 Line two</blockquote>
11523 Line two</blockquote>
11528 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11532 <blockquote>Line one
11537 <blockquote>Line one
11545 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11564 Paragraphs inside blockquotes/divs (no extra line breaks)
11566 <blockquote><div>Line one
11568 Line two</div></blockquote>
11570 <blockquote><div>Line one
11571 Line two</div></blockquote>
11576 Paragraphs inside blockquotes/divs (extra line break on open)
11581 Line two</div></blockquote>
11586 Line two</div></blockquote>
11591 Paragraphs inside blockquotes/divs (extra line break on close)
11593 <blockquote><div>Line one
11596 </div></blockquote>
11598 <blockquote><div>Line one
11601 </div></blockquote>
11606 Paragraphs inside blockquotes/divs (extra line break on open and close)
11612 </div></blockquote>
11618 </div></blockquote>
11623 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11625 wgLinkHolderBatchSize=0
11631 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11632 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11633 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11638 Free external link invading image caption
11640 [[Image:Foobar.jpg|thumb|http://x|hello]]
11642 <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>
11647 Bug 15196: localised external link numbers
11651 [http://en.wikipedia.org/]
11653 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11658 Multibyte character in padleft
11660 {{padleft:-Hello|7|Æ}}
11667 Multibyte character in padright
11669 {{padright:Hello-|7|Æ}}
11678 wgUseDynamicDates=1
11682 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
11687 formatdate parser function
11689 {{#formatdate:2009-03-24}}
11691 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11696 formatdate parser function, with default format
11698 {{#formatdate:2009-03-24|mdy}}
11700 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11705 Linked date with autoformatting disabled
11707 wgUseDynamicDates=false
11711 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
11716 Spacing of numbers in formatted dates
11718 {{#formatdate:January 15}}
11720 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11725 Spacing of numbers in formatted dates (linked)
11727 wgUseDynamicDates=true
11731 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
11736 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
11738 language=nl title=[[MediaWiki:Common.css]]
11740 {{#formatdate:2009-03-24|dmy}}
11742 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11755 Edit comment with link
11759 I like the [[Main Page]] a lot
11761 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11765 Edit comment with link and link text
11769 I like the [[Main Page|best pages]] a lot
11771 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11775 Edit comment with link and link text with suffix
11779 I like the [[Main Page|best page]]s a lot
11781 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11785 Edit comment with section link (non-local, eg in history list)
11787 comment title=[[Main Page]]
11789 /* External links */ removed bogus entries
11791 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11795 Edit comment with section link and text before it (non-local, eg in history list)
11797 comment title=[[Main Page]]
11799 pre-comment text /* External links */ removed bogus entries
11801 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>
11805 Edit comment with section link (local, eg in diff view)
11807 comment local title=[[Main Page]]
11809 /* External links */ removed bogus entries
11811 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11815 Edit comment with subpage link (bug 14080)
11819 title=[[Subpage test]]
11821 Poked at a [[/subpage]] here...
11823 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11827 Edit comment with subpage link and link text (bug 14080)
11831 title=[[Subpage test]]
11833 Poked at a [[/subpage|neat little page]] here...
11835 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11839 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11842 title=[[Subpage test]]
11844 Poked at a [[/subpage]] here...
11846 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11850 Edit comment with bare anchor link (local, as on diff)
11854 title=[[Main Page]]
11858 <a href="#section">#section</a>
11862 Edit comment with bare anchor link (non-local, as on history)
11865 title=[[Main Page]]
11869 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11873 Anchor starting with underscore
11877 <p><a href="#_ref">One</a>
11882 Id starting with underscore
11884 <div id="_ref"></div>
11886 <div id="_ref"></div>
11891 Space normalisation on autocomment (bug 22784)
11894 title=[[Main Page]]
11896 /* __hello__world__ */
11898 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11902 percent-encoding and + signs in comments (Bug 26410)
11906 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11908 <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>
11912 Bad images - basic functionality
11921 Bad images - bug 16039: text after bad image disappears
11935 Verify that displaytitle works (bug #22501) no displaytitle
11939 wgAllowDisplayTitle=true
11940 wgRestrictDisplayTitle=false
11942 this is not the the title
11945 <p>this is not the the title
11950 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11955 wgAllowDisplayTitle=true
11956 wgRestrictDisplayTitle=false
11958 this is not the the title
11959 {{DISPLAYTITLE:whatever}}
11962 <p>this is not the the title
11967 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11972 wgAllowDisplayTitle=true
11973 wgRestrictDisplayTitle=true
11975 this is not the the title
11976 {{DISPLAYTITLE:whatever}}
11979 <p>this is not the the title
11984 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11989 wgAllowDisplayTitle=true
11990 wgRestrictDisplayTitle=true
11992 this is not the the title
11993 {{DISPLAYTITLE:screen}}
11996 <p>this is not the the title
12001 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12006 wgAllowDisplayTitle=false
12008 this is not the the title
12009 {{DISPLAYTITLE:screen}}
12012 <p>this is not the the title
12013 <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>
12018 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12023 wgAllowDisplayTitle=false
12025 this is not the the title
12028 <p>this is not the the title
12033 preload: check <noinclude> and <includeonly>
12037 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12043 preload: check <onlyinclude>
12047 Goodbye <onlyinclude>Hello world</onlyinclude>
12053 preload: can pass tags through if we want to
12057 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12059 <includeonly>Hello world</includeonly>
12063 preload: check that it doesn't try to do tricks
12067 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12069 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12073 Play a bit with r67090 and bug 3158
12077 <div style="width:50% !important"> </div>
12078 <div style="width:50% !important"> </div>
12079 <div style="width:50% !important"> </div>
12080 <div style="border : solid;"> </div>
12082 <div style="width:50% !important"> </div>
12083 <div style="width:50% !important"> </div>
12084 <div style="width:50% !important"> </div>
12085 <div style="border : solid;"> </div>
12090 HTML5 data attributes
12092 <span data-foo="bar">Baz</span>
12093 <p data-abc-def_hij="">Quuz</p>
12095 <p><span data-foo="bar">Baz</span>
12097 <p data-abc-def_hij="">Quuz</p>
12102 percent-encoding and + signs in internal links (Bug 26410)
12104 [[User:+%]] [[Page+title%]]
12105 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12106 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12107 [[%33%45]] [[%33%45+]]
12109 <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>
12110 <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>
12111 <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>
12112 <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>
12117 Special characters in embedded file links (bug 27679)
12119 [[File:Contains & ampersand.jpg]]
12120 [[File:Does not exist.jpg|Title with & ampersand]]
12122 <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>
12123 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12129 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12131 Text's been normalized?
12133 <p>Text's been normalized?
12138 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12140 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12142 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12147 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12149 [http://www.example.org/ ideograms]
12151 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12156 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12158 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12160 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12184 Bug 31098 Template which includes system messages which includes the template
12188 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12189 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12194 Bug31490 Turkish: ucfirst 'blah'
12205 Bug31490 Turkish: ucfirst 'ix'
12216 Bug31490 Turkish: lcfirst 'BLAH'
12227 Bug31490 Turkish: ucfırst (with a dotless i)
12233 <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>
12238 Bug31490 ucfırst (with a dotless i) with English language
12244 <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>
12249 Bug 26375: TOC with italics
12251 title=[[Main Page]]
12254 == ''Lost'' episodes ==
12256 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12258 <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>
12261 <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>
12266 Bug 26375: TOC with bold
12268 title=[[Main Page]]
12271 == '''should be bold''' then normal text ==
12273 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12275 <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>
12278 <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>
12283 Bug 33845: Headings become cursive in TOC when they contain an image
12285 title=[[Main Page]]
12288 == Image [[Image:foobar.jpg]] ==
12290 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12292 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12295 <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>
12300 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12302 title=[[Main Page]]
12305 == <blockquote>Quote</blockquote> ==
12307 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12309 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12312 <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>
12317 Unclosed tags in TOC
12319 title=[[Main Page]]
12323 <small>Hanc marginis exiguitas non caperet.</small>
12326 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12328 <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>
12331 <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>
12332 <p><small>Hanc marginis exiguitas non caperet.</small>
12338 Multiple tags in TOC
12341 == <i>Foo</i> <b>Bar</b> ==
12343 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12345 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12347 <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>
12348 <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>
12351 <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>
12352 <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>
12357 Tags with parameters in TOC
12360 == <sup class="in-h2">Hello</sup> ==
12362 == <sup class="a > b">Evilbye</sup> ==
12364 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12366 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12367 <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>
12370 <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>
12371 <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>
12376 span tags with directionality in TOC
12379 == <span dir="ltr">C++</span> ==
12381 == <span dir="rtl">זבנג!</span> ==
12383 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12385 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12387 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12389 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12391 <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>
12392 <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>
12393 <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>
12394 <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>
12395 <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>
12398 <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>
12399 <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>
12400 <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>
12401 <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>
12402 <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>
12409 == {{int:headline_sample}} ==
12413 Bug 32057: Title needed when expanding <h> nodes.
12415 title=[[Main Page]]
12419 <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>
12424 Strip marker in urlencode
12426 {{urlencode:x<nowiki/>y}}
12427 {{urlencode:x<nowiki/>y|wiki}}
12428 {{urlencode:x<nowiki/>y|path}}
12455 Strip marker in formatNum
12457 {{formatnum:1<nowiki/>2}}
12458 {{formatnum:1<nowiki/>2|R}}
12466 Strip marker in grammar
12470 {{grammar:elative|foo<nowiki/>bar}}
12477 Strip marker in padleft
12479 {{padleft:|2|x<nowiki/>y}}
12486 Strip marker in padright
12488 {{padright:|2|x<nowiki/>y}}
12495 Strip marker in anchorencode
12497 {{anchorencode:x<nowiki/>y}}
12504 nowiki inside link inside heading (bug 18295)
12506 ==[[foo|x<nowiki>y</nowiki>z]]==
12508 <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>
12513 new support for bdi element (bug 31817)
12515 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12517 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12522 Ignore pipe between table row attributes
12526 |- id=foo | style='color: red'
12534 <tr id="foo" style="color: red">
12541 Gallery override link with WikiLink (bug 34852)
12544 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12547 <ul class="gallery">
12548 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12549 <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>
12550 <div class="gallerytext">
12560 Gallery override link with absolute external link (bug 34852)
12563 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12566 <ul class="gallery">
12567 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12568 <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>
12569 <div class="gallerytext">
12579 Gallery override link with malicious javascript (bug 34852)
12582 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12585 <ul class="gallery">
12586 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12587 <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>
12588 <div class="gallerytext">
12598 Language parser function
12607 Padleft and padright as substr
12609 {{padleft:|3|abcde}}
12610 {{padright:|3|abcde}}
12618 Bug 34939 - Case insensitive link parsing ([HttP://])
12620 [HttP://MediaWiki.Org/]
12622 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12627 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12629 [HttP://MediaWiki.Org/ MediaWiki]
12631 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12636 Bug 34939 - Case insensitive link parsing (HttP://)
12638 HttP://MediaWiki.Org/
12640 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12645 ### Parsoids-specific tests
12646 ### Parsoid-PHP parser incompatibilities
12649 1. SOL-sensitive wikitext tokens as template-args
12663 #### The following section of tests are primarily to test
12664 #### wikitext escaping capabilities of Parsoid.
12665 #### A lot of the tests are disabled for the PHP parser either
12666 #### because of minor newline diffs or other reasons.
12667 #### As Parsoid serializer can handle newlines and other HTML
12668 #### more robustly, some of these tests might get reenabled
12669 #### for the PHP parser.
12671 #### --------------- Headings ---------------
12673 #### 1. Nested inside html <h1>=foo=</h1>
12674 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12675 #### 3. Nested inside html with wikitext split by html tags
12676 #### 4. No escape needed
12677 #### 5. Empty headings <h1></h1>
12678 #### 6. Heading chars in SOL context
12679 #### ----------------------------------------
12681 Headings: 0. Unnested
12683 <nowiki>=foo=</nowiki>
12685 <nowiki>=foo</nowiki>''a''=
12688 </p><p>=foo<i>a</i>=
12693 Headings: 1. Nested inside html
12697 =<nowiki>=foo=</nowiki>=
12698 ==<nowiki>=foo=</nowiki>==
12699 ===<nowiki>=foo=</nowiki>===
12700 ====<nowiki>=foo=</nowiki>====
12701 =====<nowiki>=foo=</nowiki>=====
12702 ======<nowiki>=foo=</nowiki>======
12713 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12718 <nowiki>*bar</nowiki>
12722 <nowiki>=bar=</nowiki>
12730 Headings: 3. Nested inside html with wikitext split by html tags
12734 =<nowiki>=</nowiki>'''bold'''foo==
12736 <h1>=<b>bold</b>foo=</h1>
12740 Headings: 4. No escaping needed (testing just h1 and h2)
12755 <h1><i>=</i>foo=</h1>
12760 Headings: 5. Empty headings
12764 =<nowiki></nowiki>=
12765 ==<nowiki></nowiki>==
12766 ===<nowiki></nowiki>===
12767 ====<nowiki></nowiki>====
12768 =====<nowiki></nowiki>=====
12769 ======<nowiki></nowiki>======
12780 Headings: 6. Heading chars in SOL context
12784 <!--cmt--><nowiki>=h1=</nowiki>
12790 #### --------------- Lists ---------------
12791 #### 0. Outside nests (*foo, etc.)
12792 #### 1. Nested inside html <ul><li>*foo</li></ul>
12793 #### 2. Inside definition lists
12794 #### 3. Only bullets at start should be escaped
12795 #### 4. No escapes needed
12796 #### 5. No unnecessary escapes
12797 #### 6. Escape bullets in SOL position
12798 #### 7. Escape bullets in a multi-line context
12799 #### ----------------------------------------
12802 Lists: 0. Outside nests
12804 <nowiki>*foo</nowiki>
12806 <nowiki>#foo</nowiki>
12814 Lists: 1. Nested inside html
12816 *<nowiki>*foo</nowiki>
12818 *<nowiki>#foo</nowiki>
12820 *<nowiki>:foo</nowiki>
12822 *<nowiki>;foo</nowiki>
12824 #<nowiki>*foo</nowiki>
12826 #<nowiki>#foo</nowiki>
12828 #<nowiki>:foo</nowiki>
12830 #<nowiki>;foo</nowiki>
12852 Lists: 2. Inside definition lists
12854 ;<nowiki>;foo</nowiki>
12856 ;<nowiki>:foo</nowiki>
12858 ;<nowiki>:foo</nowiki>
12861 :<nowiki>:foo</nowiki>
12876 Lists: 3. Only bullets at start of text should be escaped
12878 *<nowiki>*foo*bar</nowiki>
12880 *<nowiki>*foo</nowiki>''it''*bar
12884 <ul><li>*foo<i>it</i>*bar
12890 Lists: 4. No escapes needed
12902 <ul><li><i>foo</i>*bar
12904 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12909 Lists: 5. No unnecessary escapes
12911 * bar <span><nowiki>[[foo]]</nowiki></span>
12913 *=bar <span><nowiki>[[foo]]</nowiki></span>
12915 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12917 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12919 *=bar <span>foo]]</span>=
12921 <ul><li> bar <span>[[foo]]</span>
12923 <ul><li>=bar <span>[[foo]]</span>
12925 <ul><li>[[bar <span>[[foo]]</span>
12927 <ul><li>]]bar <span>[[foo]]</span>
12929 <ul><li>=bar <span>foo]]</span>=
12935 Lists: 6. Escape bullets in SOL position
12939 <!--cmt--><nowiki>*foo</nowiki>
12946 Lists: 7. Escape bullets in a multi-line context
12956 #### --------------- HRs ---------------
12957 #### 1. Single line
12958 #### -----------------------------------
12961 HRs: 1. Single line
12966 <nowiki>----</nowiki>
12968 <nowiki>=foo=</nowiki>
12970 <nowiki>*foo</nowiki>
12977 #### --------------- Tables ---------------
12978 #### 1a. Simple example
12979 #### 1b. No escaping needed (!foo)
12980 #### 1c. No escaping needed (|foo)
12981 #### 1d. No escaping needed (|}foo)
12983 #### 2a. Nested in td (<td>foo|bar</td>)
12984 #### 2b. Nested in td (<td>foo||bar</td>)
12985 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12987 #### 3a. Nested in th (<th>foo!bar</th>)
12988 #### 3b. Nested in th (<th>foo!!bar</th>)
12989 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12993 #### 4c. No escaping needed
12994 #### --------------------------------------
12997 Tables: 1a. Simple example
13008 Tables: 1b. No escaping needed
13017 Tables: 1c. No escaping needed
13026 Tables: 1d. No escaping needed
13035 Tables: 2a. Nested in td
13040 |<nowiki>foo|bar</nowiki>
13050 Tables: 2b. Nested in td
13055 |<nowiki>foo||bar</nowiki>
13056 |''it''<nowiki>foo||bar</nowiki>
13061 </td><td><i>it</i>foo||bar
13067 Tables: 2c. Nested in td -- no escaping needed
13082 Tables: 3a. Nested in th
13097 Tables: 3b. Nested in th
13102 !<nowiki>foo!!bar</nowiki>
13112 Tables: 3c. Nested in th -- no escaping needed
13127 Tables: 4a. Escape -
13135 |<nowiki>-bar</nowiki>
13139 <tr><th>-bar</th></tr>
13140 <tr><td>-bar</td></tr>
13145 Tables: 4b. Escape +
13153 |<nowiki>+bar</nowiki>
13157 <tr><th>+bar</th></tr>
13158 <tr><td>+bar</td></tr>
13163 Tables: 4c. No escaping needed
13177 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13178 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13182 #### --------------- Links ---------------
13183 #### 1. Quote marks in link text
13184 #### 2. Wikilinks: Escapes needed
13185 #### 3. Wikilinks: No escapes needed
13186 #### 4. Extlinks: Escapes needed
13187 #### 5. Extlinks: No escapes needed
13188 #### --------------------------------------
13190 Links 1. Quote marks in link text
13194 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13196 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13200 Links 2. WikiLinks: Escapes needed
13204 [[Foo|<nowiki>[Foobar]</nowiki>]]
13205 [[Foo|<nowiki>Foobar]</nowiki>]]
13206 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13207 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13208 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13209 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13210 [[Foo|<nowiki>|Bar</nowiki>]]
13212 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13213 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13214 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13215 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13216 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13217 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13218 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13222 Links 3. WikiLinks: No escapes needed
13229 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13230 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13234 Links 4. ExtLinks: Escapes needed
13238 [http://google.com <nowiki>[google]</nowiki>]
13239 [http://google.com <nowiki>google]</nowiki>]
13241 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13242 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13246 Links 5. ExtLinks: No escapes needed
13250 [http://google.com [google]
13252 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13255 #### --------------- Quotes ---------------
13256 #### 1. Quotes inside <b> and <i>
13257 #### 2. Link fragments separated by <i> and <b> tags
13258 #### 3. Link fragments inside <i> and <b>
13259 #### --------------------------------------
13261 1. Quotes inside <b> and <i>
13263 ''<nowiki>'foo'</nowiki>''
13264 ''<nowiki>''foo''</nowiki>''
13265 ''<nowiki>'''foo'''</nowiki>''
13266 '''<nowiki>'foo'</nowiki>'''
13267 '''<nowiki>''foo''</nowiki>'''
13268 '''<nowiki>'''foo'''</nowiki>'''
13269 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13277 <b>foo'<i>bar'</i>baz</b>
13282 2. Link fragments separated by <i> and <b> tags
13284 [[''foo''<nowiki>hello]]</nowiki>
13286 [['''foo'''<nowiki>hello]]</nowiki>
13288 <p>[[<i>foo</i>hello]]
13289 </p><p>[[<b>foo</b>hello]]
13294 2. Link fragments inside <i> and <b>
13295 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13296 this is one of the shortcomings of this format)
13298 ''[[foo''<nowiki>]]</nowiki>
13300 '''[[foo'''<nowiki>]]</nowiki>
13303 </p><p><b>[[foo</b>]]
13307 #### --------------- Paragraphs ---------------
13308 #### 1. No unnecessary escapes
13309 #### --------------------------------------
13312 1. No unnecessary escapes
13314 bar <span><nowiki>[[foo]]</nowiki></span>
13316 =bar <span><nowiki>[[foo]]</nowiki></span>
13318 [[bar <span><nowiki>[[foo]]</nowiki></span>
13320 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13322 <nowiki>=bar </nowiki><span>foo]]</span>=
13324 <p>bar <span>[[foo]]</span>
13325 </p><p>=bar <span>[[foo]]</span>
13326 </p><p>[[bar <span>[[foo]]</span>
13327 </p><p>]]bar <span>[[foo]]</span>
13328 </p><p>=bar <span>foo]]</span>=
13332 #### --------------- PRE ------------------
13333 #### 1. Leading space in SOL context should be escaped
13334 #### --------------------------------------
13336 1. Leading space in SOL context should be escaped
13340 <nowiki> foo</nowiki>
13341 <!--cmt--><nowiki> foo</nowiki>
13348 #### --------------- HTML tags ---------------
13351 #### 3. multi-line html tag
13352 #### --------------------------------------
13358 <a href="http://google.com">google</a>
13360 <a href="http://google.com">google</a>
13366 <nowiki><div>foo</div>
13367 <div style="color:red">foo</div></nowiki>
13369 <p><div>foo</div>
13370 <div style="color:red">foo</div>
13375 3. multi-line html tag
13387 #### --------------- Others ---------------
13391 <nowiki>foo</nowiki>
13393 <p><nowiki>foo</nowiki>
13398 Tag-like HTML structures are passed through as text
13420 </p><p>1<d e>f
13425 # This fails in the PHP parser (see bug 40670,
13426 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13428 Tag names followed by punctuation should not be recognized as tags
13434 <p><s.ome> text
13439 HTML tag with necessary entities in attributes
13441 <span title="&amp;">foo</span>
13443 <p><span title="&amp;">foo</span>
13448 HTML tag with 'unnecessary' entity encoding in attributes
13450 <span title="&">foo</span>
13452 <p><span title="&">foo</span>
13457 HTML tag with broken attribute value quoting
13459 <span title="Hello world>Foo</span>
13461 <p><span>Foo</span>
13466 Table with broken attribute value quoting
13469 | title="Hello world|Foo
13484 Try for 100% code coverage