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 2c. Indent-Pre and tables (bug 42252)
1228 3a. Indent-Pre and block tags (single-line html)
1236 <pre><span> foo </span>
1241 3b. Indent-Pre and block tags (pre-content on separate line)
1293 4. Multiple spaces at start-of-line
1312 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1316 HTML-pre: 1. embedded newlines
1352 HTML-pre: 2: indented text
1365 HTML-pre: 3: other wikitext
1386 ### Definition lists
1393 <dl><dt> name </dt><dd> Definition
1399 Definition list for indentation only
1403 <dl><dd> Indented text
1409 Definition list with no space
1413 <dl><dt>name</dt><dd>Definition
1419 Definition list with URL link
1421 ; http://example.com/ : definition
1423 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1429 Definition list with bracketed URL link
1431 ;[http://www.example.com/ Example]:Something about it
1433 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1439 Definition list with wikilink containing colon
1441 ; [[Help:FAQ]]: The least-read page on Wikipedia
1443 <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
1448 # At Brion's and JeLuF's insistence... :)
1450 Definition list with news link containing colon
1452 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1454 <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!
1460 Malformed definition list with colon
1462 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1464 <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
1470 Definition lists: colon in external link text
1472 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1474 <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
1480 Definition lists: colon in HTML attribute
1482 ;<b style="display: inline">bold</b>
1484 <dl><dt><b style="display: inline">bold</b>
1490 Definition lists: self-closed tag
1492 ;one<br/>two : two-line fun
1494 <dl><dt>one<br />two </dt><dd> two-line fun
1500 Bug 11748: Literal closing tags
1504 <dd>test test test test test</dd>
1506 <dd>test test test test test</dd>
1511 <dd>test test test test test</dd>
1513 <dd>test test test test test</dd>
1519 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1522 ; term : description
1528 <dl><dt> term </dt><dd> description
1539 Definition list with empty definition and following paragraph
1544 <dl><dt> term</dt><dd>
1551 Nested definition lists using html syntax
1568 Definition Lists: No nesting: Multiple dd's
1582 Definition Lists: Indentation: Regular
1598 Definition Lists: Indentation: Missing 1st level
1612 Definition Lists: Indentation: Multi-level indent
1616 <dl><dd><dl><dd><dl><dd>i3
1624 Definition Lists: Hacky use to indent tables
1631 should be left alone
1633 <dl><dd><dl><dd><table>
1638 </td></tr></table></dd></dl></dd></dl>
1640 should be left alone
1643 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1644 ## as an empty dt item. It also ignores all but the last ";" when followed
1645 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1646 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1649 ## Ex: ";;t2 ::d2" is transformed into:
1661 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1662 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1673 ## All Parsoid only definition list tests have this difference.
1675 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1676 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1679 Table / list interaction: indented table with lists in table contents
1701 </td></tr></table></dd></dl>
1706 Table / list interaction: lists nested in tables nested in indented lists
1731 </td></tr></table></dd></dl>
1739 Definition Lists: Nesting: Multi-level (Parsoid only)
1769 Definition Lists: Nesting: Test 2 (Parsoid only)
1789 Definition Lists: Nesting: Test 3 (Parsoid only)
1817 Definition Lists: Nesting: Test 4
1822 <dl><dd><dl><dd><dl><dt>t3
1832 Definition Lists: Mixed Lists: Test 1
1838 <dl><dd><dl><dt><ul><li> foo
1850 Definition Lists: Mixed Lists: Test 2
1864 Definition Lists: Mixed Lists: Test 3
1869 <ul><li><dl><dd><dl><dd><dl><dd> d1
1880 Definition Lists: Mixed Lists: Test 4
1885 <ul><li><dl><dt>d1 </dt><dd>d2
1886 </dd><dt>d3 </dt><dd>d4
1894 Definition Lists: Mixed Lists: Test 5
1909 Definition Lists: Mixed Lists: Test 6
1914 <ol><li><ul><li><dl><dd>d1
1926 Definition Lists: Mixed Lists: Test 7
1940 Definition Lists: Mixed Lists: Test 8
1956 Definition Lists: Mixed Lists: Test 9
1960 <ul><li><dl><dt>foo </dt><dd>bar
1968 Definition Lists: Mixed Lists: Test 10
1972 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1981 Definition Lists: Mixed Lists: Test 11
1986 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1991 <dl><dt>boo </dt><dd>baz
2002 Definition Lists: Weird Ones: Test 1
2004 *#;*::;; foo : bar (who uses this?)
2006 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2022 External links: non-bracketed
2024 Non-bracketed: http://example.com
2026 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2031 External links: numbered
2033 Numbered: [http://example.com]
2034 Numbered: [http://example.net]
2035 Numbered: [http://example.com]
2037 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2038 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2039 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2044 External links: specified text
2046 Specified text: [http://example.com link]
2048 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2053 External links: trail
2055 Linktrails should not work for external links: [http://example.com link]s
2057 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2062 External links: dollar sign in URL
2064 http://example.com/1$2345
2066 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2071 External links: dollar sign in URL (named)
2073 [http://example.com/1$2345]
2075 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2080 External links: open square bracket forbidden in URL (bug 4377)
2082 http://example.com/1[2345
2084 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2089 External links: open square bracket forbidden in URL (named) (bug 4377)
2091 [http://example.com/1[2345]
2093 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2098 External links: nowiki in URL link text (bug 6230)
2100 [http://example.com/ <nowiki>''example site''</nowiki>]
2102 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2107 External links: newline forbidden in text (bug 6230 regression check)
2109 [http://example.com/ first
2112 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2118 External links: Pipe char between url and text
2120 [http://example.com | link]
2122 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2127 External links: protocol-relative URL in brackets
2129 [//example.com/ Test]
2131 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2136 External links: protocol-relative URL in brackets without text
2140 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2145 External links: protocol-relative URL in free text is left alone
2149 <p>//example.com/Foo
2154 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2156 foo//example.com/Foo
2158 <p>foo//example.com/Foo
2165 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2167 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2172 External image from https
2174 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2176 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2181 Link to non-http image, no img tag
2183 Link to non-http image, no img tag: ftp://example.com/test.jpg
2185 <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>
2190 External links: terminating separator
2192 Terminating separator: http://example.com/thing,
2194 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2199 External links: intervening separator
2201 Intervening separator: http://example.com/1,2,3
2203 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2208 External links: old bug with URL in query
2210 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2212 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2217 External links: old URL-in-URL bug, mixed protocols
2219 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2221 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2226 External links: URL in text
2228 URL in text: [http://example.com http://example.com]
2230 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2235 External links: Clickable images
2237 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2239 <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>
2244 External links: raw ampersand
2246 Old & use: http://x&y
2248 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2253 External links: encoded ampersand
2255 Old & use: http://x&y
2257 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2262 External links: encoded equals (bug 6102)
2264 http://example.com/?foo=bar
2266 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2271 External links: [raw ampersand]
2273 Old & use: [http://x&y]
2275 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2280 External links: [encoded ampersand]
2282 Old & use: [http://x&y]
2284 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2289 External links: [encoded equals] (bug 6102)
2291 [http://example.com/?foo=bar]
2293 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2298 External links: [IDN ignored character reference in hostname; strip it right off]
2300 [http://e‌xample.com/]
2302 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2306 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2307 # Where an external link could easily circumvent the sanitization of the text of
2308 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2309 # test demands a higher standard. That's a bit strange.
2313 # http://example.com -> [http://example.com|http://example.com]
2314 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2316 # The first example is sanitized, but the second is not. Any security benefits
2317 # from this production are trivial to circumvent. Either remove this test and
2318 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2319 # the test accordingly.
2324 External links: IDN ignored character reference in hostname; strip it right off
2326 http://e‌xample.com/
2328 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2333 External links: www.jpeg.org (bug 554)
2337 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2342 External links: URL within URL (original bug 2)
2344 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2346 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2351 BUG 361: URL inside bracketed URL
2353 [http://www.example.com/foo http://www.example.com/bar]
2355 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2360 BUG 361: URL within URL, not bracketed
2362 http://www.example.com/foo?=http://www.example.com/bar
2364 <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>
2369 BUG 289: ">"-token in URL-tail
2371 http://www.example.com/<hello>
2373 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2378 BUG 289: literal ">"-token in URL-tail
2380 http://www.example.com/<b>html</b>
2382 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2387 BUG 289: ">"-token in bracketed URL
2389 [http://www.example.com/<hello> stuff]
2391 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2396 BUG 289: literal ">"-token in bracketed URL
2398 [http://www.example.com/<b>html</b> stuff]
2400 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2405 BUG 289: literal double quote at end of URL
2407 http://www.example.com/"hello"
2409 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2414 BUG 289: literal double quote in bracketed URL
2416 [http://www.example.com/"hello" stuff]
2418 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2423 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2425 [http://www.example.com test]
2427 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2432 External links: wiki links within external link (Bug 3695)
2434 [http://example.com [[wikilink]] embedded in ext link]
2436 <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>
2441 BUG 787: Links with one slash after the url protocol are invalid
2445 [http:/example.com title]
2447 <p>http:/example.com
2448 </p><p>[http:/example.com title]
2453 Bracketed external links with template-generated invalid target
2455 [{{echo|http:/example.com}} title]
2457 <p>[http:/example.com title]
2462 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2464 ''[http://example.com text'']
2465 [http://example.com '''text]'''
2466 ''Something [http://example.com in italic'']
2467 ''Something [http://example.com mixed''''', even bold]'''
2468 '''''Now [http://example.com both''''']
2470 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2471 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2472 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2473 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2474 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2480 Bug 4781: %26 in URL
2482 http://www.example.com/?title=AT%26T
2484 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2488 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2489 # % is actually legal in HTML5. Any change in output would need testing though.
2491 Bug 4781, 5267: %25 in URL
2493 http://www.example.com/?title=100%25_Bran
2495 <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>
2500 Bug 4781, 5267: %28, %29 in URL
2502 http://www.example.com/?title=Ben-Hur_%281959_film%29
2504 <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>
2510 Bug 4781: %26 in autonumber URL
2512 [http://www.example.com/?title=AT%26T]
2514 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2519 Bug 4781, 5267: %26 in autonumber URL
2521 [http://www.example.com/?title=100%25_Bran]
2523 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2528 Bug 4781, 5267: %28, %29 in autonumber URL
2530 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2532 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2538 Bug 4781: %26 in bracketed URL
2540 [http://www.example.com/?title=AT%26T link]
2542 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2547 Bug 4781, 5267: %26 in bracketed URL
2549 [http://www.example.com/?title=100%25_Bran link]
2551 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2556 Bug 4781, 5267: %28, %29 in bracketed URL
2558 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2560 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2565 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2567 Some [http://example.com/ pretty ''italics'' and stuff]!
2569 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2574 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2576 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2578 <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>
2583 External link containing double-single-quotes with no space separating the url from text in italics
2585 [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]].]
2587 <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>
2592 URL-encoding in URL functions (single parameter)
2594 {{localurl:Some page|amp=&}}
2596 <p>/index.php?title=Some_page&amp=&
2601 URL-encoding in URL functions (multiple parameters)
2603 {{localurl:Some page|q=?&=&}}
2605 <p>/index.php?title=Some_page&q=?&amp=&
2612 http://example.com/index.php?foozoid%5B%5D=bar
2614 http://example.com/index.php?foozoid[]=bar
2616 <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>
2617 </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>
2622 IPv6 urls (bug 21261)
2626 http://[2404:130:0:1000::187:2]/index.php
2628 <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>
2633 Non-extlinks in brackets
2642 [{{echo|foo}} ''bar'']
2643 [{{echo|foo}}l's] errand
2644 [{{echo|foo}}l's errand]
2666 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2668 Normal text. '''''Bold italic text.''''' Normal text.
2670 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2671 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2677 Unclosed and unmatched quotes
2679 '''''Bold italic text '''with bold deactivated''' in between.'''''
2681 '''''Bold italic text ''with italic deactivated'' in between.'''''
2685 ..spanning two paragraphs (should not work).'''
2687 '''Bold tag left open
2689 ''Italic tag left open
2693 <!-- Unmatching number of opening, closing tags: -->
2694 '''This year''''s election ''should'' beat '''last year''''s.
2696 ''Tom'''s car is bigger than ''Susan'''s.
2698 Plain ''italic'''s plain
2700 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2701 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2702 </p><p><b>Bold text..</b>
2703 </p><p>..spanning two paragraphs (should not work).
2704 </p><p><b>Bold tag left open</b>
2705 </p><p><i>Italic tag left open</i>
2707 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2708 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2709 </p><p>Plain <i>italic'</i>s plain
2716 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2719 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2720 # is the bare minimun required by the spec, see:
2721 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2723 A table with no data.
2729 # A table with nothing but a caption is invalid XHTML, we might want to render
2730 # this as <p>caption</p>
2732 A table with nothing but a caption
2740 </caption><tr><td></td></tr></table>
2745 A table with caption with default-spaced attributes and a table row
2748 |+ style="color: red;" | caption1
2754 <caption style="color: red;"> caption1
2763 A table with captions with non-default spaced attributes and a table row
2766 |+style="color: red;"|caption2
2767 |+ style="color: red;"| caption3
2773 <caption style="color: red;">caption2
2775 <caption style="color: red;"> caption3
2784 Table td-cell syntax variations
2788 | foo bar foo || baz
2789 | style='color:red;' | baz
2790 | style='color:red;' || baz
2797 <td> foo bar foo </td>
2800 <td style="color:red;"> baz
2802 <td> style='color:red;' </td>
2830 Simple table but with multiple dashes for row wikitext
2848 Multiplication table
2850 {| border="1" cellpadding="2"
2851 |+Multiplication table
2853 ! × !! 1 !! 2 !! 3
2871 <table border="1" cellpadding="2">
2872 <caption>Multiplication table
2919 Accept "||" in table headings
2934 Accept "||" in indented table headings
2944 </th></tr></table></dd></dl>
2949 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2966 Accept "| !" at start of line in tables (ignore !-attribute)
2970 | !style="color:red" | bar
2982 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 +/-
2986 |style='color:red;'|+1
2987 |style='color:blue;'|-1
2999 <td style="color:red;">+1
3001 <td style="color:blue;">-1
3025 |rowspan=2| Cell 2, row 1 (and 2)
3036 <td rowspan="2"> Cell 2, row 1 (and 2)
3054 {| bgcolor=#ABCDEF border=2
3059 |the original table again
3067 <table bgcolor="#ABCDEF" border="2">
3075 <td>the original table again
3081 Invalid attributes in table cell (bug 1830)
3096 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3099 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3103 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3104 <td>]" onmouseover="alert(document.cookie)">test
3113 Indented table markup mixed with indented pre content (proposed in bug 6200)
3118 Text that should be rendered preformatted
3126 <pre>Text that should be rendered preformatted
3135 Template-generated table cell attributes and cell content
3143 <td style="color: red"> Foo
3149 Table with row followed by newlines and table heading
3166 # FIXME: Preserve the attribute properly (with an empty string as value) in
3167 # the PHP parser. Parsoid implements the behavior below.
3169 Table attributes with empty value
3185 Wikitext table with a lot of comments
3211 Plain link, capitalized
3215 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3220 Plain link, uncapitalized
3224 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3231 [[Main Page|The Main Page]]
3233 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3242 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3247 Broken link with fragment
3249 [[Zigzagzogzagzig#zug]]
3251 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3256 Special page link with fragment
3258 [[Special:Version#anchor]]
3260 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3265 Nonexistent special page link with fragment
3267 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3269 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3276 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3278 <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>
3285 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3287 <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>!!!
3298 Bug 43661: Piped links with identical prefixes
3300 [[prefixed article|prefixed articles with spaces]]
3302 [[prefixed article|prefixed articlesaoeu]]
3304 [[Main Page|Main Page test]]
3306 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3307 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3308 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3314 Link with HTML entity in suffix / tail
3316 [[Main Page]]", [[Main Page]]a
3318 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3323 Link with 3 brackets
3332 Piped link with 3 brackets
3334 [[[main page|the main page]]]
3336 <p>[[[main page|the main page]]]
3341 Link with multiple pipes
3343 [[Main Page|The|Main|Page]]
3345 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3352 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3354 <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>
3359 Piped link to namespace
3361 [[Meta:Disclaimers|The disclaimers]]
3363 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3370 [[Usually caused by a typo (oops}]]
3372 <p>[[Usually caused by a typo (oops}]]
3377 Link containing % (not as a hex sequence)
3381 <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>
3386 Link containing % as a single hex sequence interpreted to char
3390 <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>
3395 Link containing % as a double hex sequence interpreted to hex sequence
3399 <p>[[7%2525 Solution]]
3404 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3405 Example for such a section: == < ==
3407 [[%23%3c]][[%23%3e]]
3409 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3414 Link containing "<#" and ">#" as a hex sequences
3416 [[%3c%23]][[%3e%23]]
3418 <p>[[%3c%23]][[%3e%23]]
3423 Link containing double-single-quotes '' (bug 4598)
3425 [[Lista d''e paise d''o munno]]
3427 <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>
3432 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3434 Some [[Link|pretty ''italics'' and stuff]]!
3436 <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>!
3441 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3443 ''Some [[Link|pretty ''italics'' and stuff]]!
3445 <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>
3450 Link with double quotes in title part (literal) and alternate part (interpreted)
3452 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3456 [[''Pentecoste''|Pentecoste]]
3458 [[''Pentecoste''|''Pentecoste'']]
3460 <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>
3461 </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>
3462 </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>
3463 </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>
3468 Broken image links with HTML captions (bug 39700)
3470 [[File:Nonexistent|<script></script>]]
3471 [[File:Nonexistent|100px|<script></script>]]
3472 [[File:Nonexistent|<]]
3473 [[File:Nonexistent|a<i>b</i>c]]
3475 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3476 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3477 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3478 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3485 [[http://www.example.com]]
3487 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3492 Plain link to URL with link text
3494 [[http://www.example.com Link text]]
3496 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3501 Plain link to protocol-relative URL
3503 [[//www.example.com]]
3505 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3510 Plain link to protocol-relative URL with link text
3512 [[//www.example.com Link text]]
3514 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3519 Plain link to page with question mark in title
3525 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3526 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3531 # I'm fairly sure the expected result here is wrong.
3532 # We want these to be URL links, not pseudo-pages with URLs for titles....
3533 # However the current output is also pretty screwy.
3536 # I'm changing it to match the current output--it arguably makes more
3537 # sense in the light of the test above. Old expected result was:
3538 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3540 # But I think this test is bordering on "garbage in, garbage out" anyway.
3545 Piped link to URL: [[http://www.example.com|an example URL]]
3547 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3552 BUG 2: [[page|http://url/]] should link to page, not http://url/
3554 [[Main Page|http://url/]]
3556 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3561 BUG 337: Escaped self-links should be bold
3565 [[Bug462]] [[Bug462]]
3567 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3572 Self-link to section should not be bold
3576 [[Main Page#section]]
3578 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3589 Self-link to numeric title
3595 <p><strong class="selflink">0</strong>
3600 Link to numeric-equivalent title
3606 <p><a href="/wiki/00" title="00">00</a>
3611 <nowiki> inside a link
3613 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3615 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3620 Non-breaking spaces in title
3622 [[ Main Page ]]
3624 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3629 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3635 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3640 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3646 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3651 Internal link with en linktrail: no apostrophes (bug 27473)
3657 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3662 Internal link with ca linktrail with apostrophes (bug 27473)
3668 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3673 Internal link with kaa linktrail with apostrophes (bug 27473)
3679 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3684 ### Interwiki links (see maintenance/interwiki.sql)
3688 Inline interwiki link
3690 [[MeatBall:SoftSecurity]]
3692 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3697 Inline interwiki link with empty title (bug 2372)
3701 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3706 Interwiki link encoding conversion (bug 1636)
3708 *[[Wikipedia:ro:Olteniţa]]
3709 *[[Wikipedia:ro:Olteniţa]]
3711 <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>
3712 </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>
3718 Interwiki link with fragment (bug 2130)
3720 [[MeatBall:SoftSecurity#foo]]
3722 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3737 Double interlanguage link
3748 Interlanguage link, with prefix links
3760 Double interlanguage link, with prefix links (bug 8897)
3773 Parsoid-specific test: Wikilinks with should RT properly
3779 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3797 Broken br tag sanitization
3806 Incorrecly removing closing slashes from correctly formed XHTML
3808 <br style="clear:both;" />
3810 <p><br style="clear:both;" />
3815 Failing to transform badly formed HTML into correct XHTML
3817 <br style="clear: left;">
3818 <br style="clear: right;">
3819 <br style="clear: both;">
3821 <p><br style="clear: left;" />
3822 <br style="clear: right;" />
3823 <br style="clear: both;" />
3828 Handling html with a div self-closing tag
3837 <p><div title />
3841 <p><div title=bar />
3842 <div title=bar/>
3844 <div title="bar/"></div>
3850 Handling html with a br self-closing tag
3859 <p><br title="title" />
3860 <br title="title" />
3869 Horizontal ruler (should it add that extra space?)
3883 Horizontal ruler -- 4+ dashes render hr
3892 Horizontal ruler -- eats additional dashes on the same line
3901 Horizontal ruler -- does not collaps dashes on consecutive lines
3912 Horizontal ruler -- <4 dashes render as plain text
3921 Horizontal ruler -- Supports content following dashes on same line
3930 ### Block-level elements
3953 <ol><li>Numbered list
3970 ***#Number on level 4
3972 **#Number on level 3
3973 **#Number on level 3
3977 #** Level 3, but ordered
3980 <ol><li> with numbers
3982 <ul><li> and bullets
3984 <ol><li> and numbers
3986 </li><li>bullets again
3987 <ul><li>bullet level 2
3988 <ul><li>bullet level 3
3989 <ol><li>Number on level 4
3992 </li><li>bullet level 2
3993 <ol><li>Number on level 3
3994 </li><li>Number on level 3
3997 <ol><li>number level 2
4000 <ul><li><ul><li> Level 3
4004 <ol><li><ul><li><ul><li> Level 3, but ordered
4038 Nested lists 3 (first element empty)
4051 Nested lists 4 (first element empty)
4064 Nested lists 5 (both elements empty)
4077 Nested lists 6 (both elements empty)
4090 Nested lists 7 (skip initial nesting levels)
4094 <ul><li><ul><li><ul><li> foo
4102 Nested lists 8 (multiple nesting transitions)
4110 <ul><li><ul><li> bar
4120 1. Lists with start-of-line-transparent tokens before bullets: Comments
4134 2. Lists with start-of-line-transparent tokens before bullets: Template close
4146 Unbalanced closing block tags break a list
4147 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4157 </li></ul></div><div>
4163 Unbalanced closing non-block tags don't break a list
4164 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4174 <ul><li>a<span></span>
4180 List items are not parsed correctly following a <pre> block (bug 785)
4186 <ul><li> <pre>foo</pre>
4187 </li><li> <pre>bar</pre>
4194 List items from template
4205 * notSOL{{inner list}}
4224 List interrupted by empty line or heading
4234 <ul><li><ul><li> bar
4237 <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>
4238 <ul><li> Another list item
4244 Multiple list tags generated by templates
4263 Magic Word: {{CURRENTDAY}}
4272 Magic Word: {{CURRENTDAY2}}
4281 Magic Word: {{CURRENTDAYNAME}}
4290 Magic Word: {{CURRENTDOW}}
4299 Magic Word: {{CURRENTMONTH}}
4308 Magic Word: {{CURRENTMONTHABBREV}}
4310 {{CURRENTMONTHABBREV}}
4317 Magic Word: {{CURRENTMONTHNAME}}
4319 {{CURRENTMONTHNAME}}
4326 Magic Word: {{CURRENTMONTHNAMEGEN}}
4328 {{CURRENTMONTHNAMEGEN}}
4335 Magic Word: {{CURRENTTIME}}
4344 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4353 Magic Word: {{CURRENTYEAR}}
4362 Magic Word: {{FULLPAGENAME}}
4364 title=[[User:Ævar Arnfjörð Bjarmason]]
4368 <p>User:Ævar Arnfjörð Bjarmason
4373 Magic Word: {{FULLPAGENAMEE}}
4375 title=[[User:Ævar Arnfjörð Bjarmason]]
4379 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4384 Magic Word: {{NAMESPACE}}
4386 title=[[User:Ævar Arnfjörð Bjarmason]]
4395 Magic Word: {{NAMESPACEE}}
4397 title=[[User:Ævar Arnfjörð Bjarmason]]
4406 Magic Word: {{NAMESPACENUMBER}}
4408 title=[[User:Ævar Arnfjörð Bjarmason]]
4417 Magic Word: {{NUMBEROFFILES}}
4426 Magic Word: {{PAGENAME}}
4428 title=[[User:Ævar Arnfjörð Bjarmason]]
4432 <p>Ævar Arnfjörð Bjarmason
4437 Magic Word: {{PAGENAME}} with metacharacters
4439 title=[['foo & bar = baz']]
4443 <p><i>'foo & bar = baz'</i>
4448 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4450 title=[[*RFC 1234 http://example.com/]]
4454 <p>*RFC 1234 http://example.com/
4459 Magic Word: {{PAGENAMEE}}
4461 title=[[User:Ævar Arnfjörð Bjarmason]]
4465 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4470 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4472 title=[[*RFC 1234 http://example.com/]]
4476 <p>*RFC_1234_http://example.com/
4481 Magic Word: {{REVISIONID}}
4490 Magic Word: {{SCRIPTPATH}}
4499 Magic Word: {{SERVER}}
4503 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4508 Magic Word: {{SERVERNAME}}
4517 Magic Word: {{SITENAME}}
4526 Namespace 1 {{ns:1}}
4535 Namespace 1 {{ns:01}}
4544 Namespace 0 {{ns:0}} (bug 4783)
4552 Namespace 0 {{ns:00}} (bug 4783)
4560 Namespace -1 {{ns:-1}}
4569 Namespace User {{ns:User}}
4578 Namespace User talk {{ns:User_talk}}
4587 Namespace User talk {{ns:uSeR tAlK}}
4596 Namespace File {{ns:File}}
4605 Namespace File {{ns:Image}}
4614 Namespace (lang=de) Benutzer {{ns:User}}
4625 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4631 <p>Benutzer Diskussion
4639 {{urlencode:hi world?!}}
4640 {{urlencode:hi world?!|WIKI}}
4641 {{urlencode:hi world?!|PATH}}
4642 {{urlencode:hi world?!|QUERY}}
4655 Magic links: internal link to RFC (bug 479)
4659 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4664 Magic links: RFC (bug 479)
4668 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4673 Magic links: ISBN (bug 1937)
4677 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4682 Magic links: PMID incorrectly converts space to underscore
4686 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4695 Nonexistent template
4697 {{thistemplatedoesnotexist}}
4699 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4704 Template with invalid target containing tags
4706 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4708 <p>{{a<b>b</b>|foo|a=b|a = b}}
4713 Template with invalid target containing unclosed tag
4715 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4717 <p>{{a<b>|foo|a=b|a = b}}</b>
4724 This is a test template
4732 <p>This is a test template
4737 Template with explicit namespace
4741 <p>This is a test template
4749 This is a test template with parameter {{{param}}}
4755 {{paramtest|param=foo}}
4757 <p>This is a test template with parameter foo
4762 Template:paramtestnum
4768 Template unnamed parameter
4770 {{paramtestnum|Main Page|the main page}}
4772 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4777 Template:templatesimple
4783 Template:templateredirect
4785 #redirect [[Template:templatesimple]]
4789 Template:templateasargtestnum
4795 Template:templateasargtest
4797 {{template{{{templ}}}}}
4801 Template:templateasargtest2
4807 Template with template name as unnamed argument
4809 {{templateasargtestnum|templatesimple}}
4816 Template with template name as argument
4818 {{templateasargtest|templ=simple}}
4825 Template with template name as argument (2)
4827 {{templateasargtest2|templ=templatesimple}}
4834 Template:templateasargtestdefault
4836 {{{{{templ|templatesimple}}}}}
4846 Template with default value
4848 {{templateasargtestdefault}}
4855 Template with default value (value set)
4857 {{templateasargtestdefault|templ=templa}}
4866 {{templateredirect}}
4873 Template with argument in separate line
4875 {{ templateasargtest |
4883 Template with complex template as argument
4886 param ={{ templateasargtest |
4889 <p>This is a test template with parameter (test)
4894 Template with thumb image (with link in description)
4897 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4899 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>
4904 Template:complextemplate
4906 {{{1}}} {{paramtest|
4907 param ={{{param}}}}}
4911 Template with complex arguments
4914 param ={{ templateasargtest |
4915 templ = simple }}|[[Template:complextemplate|link]]}}
4917 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4922 BUG 553: link with two variables in a piped link
4925 |[[{{{1}}}|{{{2}}}]]
4930 <td>[[{{{1}}}|{{{2}}}]]
4936 Magic variable as template parameter
4938 {{paramtest|param={{SITENAME}}}}
4940 <p>This is a test template with parameter MediaWiki
4947 [[{{{param}}}|link]]
4951 Template parameter as link source
4953 {{linktest|param=Main Page}}
4955 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4960 Template-generated attribute string (k='v')
4962 <span {{attr_str|id|v1}}>bar</span>
4964 <p><span id="v1">bar</span>
4971 including another template, {{paramtest|param={{{arg}}}}}
4975 Template passing argument to another template
4977 {{paramtest2|arg='hmm'}}
4979 <p>including another template, This is a test template with parameter 'hmm'
4990 Template as link source
4994 [[{{linktest2}}|Main Page]]
4996 [[{{linktest2}}]]Page
4998 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4999 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5000 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5018 Template infinite loop
5022 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5027 Template from main namespace
5046 BUG 529: Template with table, not included at beginning of line
5065 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5085 BUG 41: Template parameters shown as broken links
5094 Template with targets containing wikilinks
5098 {{[[{{echo|foo}}]]}}
5100 {{{{echo|[[foo}}]]}}
5102 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5103 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5111 ''None'' of '''this''' should be
5113 but rather passed unmodified
5117 # hmm, fix this or just deprecate msgnw and document its behavior?
5123 {{msgnw:MSGNW test}}
5125 <p>''None'' of '''this''' should be
5127 but rather passed unmodified
5135 {{int:youhavenewmessages|lots of money|not!}}
5137 <p>You have lots of money (not!).
5144 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5148 <includeonly> and <noinclude> being included
5159 <onlyinclude>Foo</onlyinclude>bar
5163 <onlyinclude> being included
5175 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5179 <onlyinclude> and <includeonly> being included
5188 <includeonly> and <noinclude> on a page
5190 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5197 Un-closed <noinclude>
5204 <onlyinclude> on a page
5206 <onlyinclude>Foo</onlyinclude>bar
5213 Un-closed <onlyinclude>
5220 Self-closed noinclude, includeonly, onlyinclude tags
5231 Unbalanced includeonly and noinclude tags
5235 |b</noinclude></noinclude>
5236 |c</noinclude></includeonly>
5237 |d</includeonly></includeonly>
5246 <td>c</includeonly>
5248 <td>d</includeonly></includeonly>
5254 Template:Includeonly section
5257 ==Includeonly section==
5263 Bug 6563: Edit link generation for section shown by <includeonly>
5265 {{includeonly section}}
5267 <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>
5268 <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>
5272 # Uses same input as the contents of [[Template:Includeonly section]]
5274 Bug 6563: Section extraction for section shown by <includeonly>
5279 ==Includeonly section==
5287 Bug 6563: Edit link generation for section suppressed by <includeonly>
5290 ==Includeonly section==
5294 <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>
5299 Bug 6563: Section extraction for section suppressed by <includeonly>
5304 ==Includeonly section==
5312 Un-closed <includeonly>
5319 ### <includeonly> and <noinclude> in attributes
5322 0. includeonly around the entire attribute
5324 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5326 <p><span id="v2">bar</span>
5331 1. includeonly in html attr key
5333 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5335 <p><span id="foo">bar</span>
5340 2. includeonly in html attr value
5342 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5343 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5345 <p><span id="v1">bar</span>
5346 <span id="v1">bar</span>
5351 3. includeonly in part of an attr value
5353 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5355 <p><span style="color:red;">bar</span>
5360 ### Testing parsing of templates where a template arg
5361 ### has the same name as the template itself.
5371 Templates: Template Name/Arg clash: 1. Use of positional param
5380 Templates: Template Name/Arg clash: 2. Use of named param
5389 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5398 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5402 Templates: 1. Simple use
5411 Templates: 2. Inside a block tag
5413 <div>{{echo|Foo}}</div>
5420 Templates: P-wrapping: 1a. Templates on consecutive lines
5431 Templates: P-wrapping: 1b. Templates on consecutive lines
5445 Templates: P-wrapping: 1c. Templates on consecutive lines
5448 {{echo|bar}} <div>baz</div>
5457 Templates: Inline Text: 1. Multiple tmeplate uses
5459 {{echo|Foo}}bar{{echo|baz}}
5466 Templates: Inline Text: 2. Back-to-back template uses
5468 {{echo|Foo}}{{echo|bar}}
5475 Templates: Block Tags: 1. Multiple template uses
5477 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5479 <div>Foo</div><div>bar</div><div>baz</div>
5484 Templates: Block Tags: 2. Back-to-back template uses
5486 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5488 <div>Foo</div><div>bar</div>
5493 Templates: Links: 1. Simple example
5495 {{echo|[[Foo|bar]]}}
5497 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5502 Templates: Links: 2. Generation of link href
5504 [[{{echo|Foo}}|bar]]
5506 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5511 Templates: Links: 3. Generation of part of a link href
5513 [[Fo{{echo|o}}|bar]]
5517 [[Foo{{echo|bar}}baz]]
5519 [[Foo{{echo|bar}}|bar]]
5521 [[:Foo{{echo|bar}}]]
5523 [[:Foo{{echo|bar}}|bar]]
5525 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5526 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5527 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5528 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5529 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5530 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5535 Templates: Links: 4. Multiple templates generating link href
5537 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5539 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5544 Templates: Links: 5. Generation of link text
5546 [[Foo|{{echo|bar}}]]
5548 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5553 Templates: Links: 5. Nested templates (only outermost template should be marked)
5555 {{echo|[[{{echo|Foo}}|bar]]}}
5557 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5562 Templates: HTML Tag: 1. Generation of HTML attr. key
5564 <div {{echo|style}}="color:red;">foo</div>
5566 <div style="color:red;">foo</div>
5571 Templates: HTML Tag: 2. Generation of HTML attr. value
5573 <div style={{echo|'color:red;'}}>foo</div>
5575 <div style="color:red;">foo</div>
5580 Templates: HTML Tag: 3. Generation of HTML attr key and value
5582 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5584 <div style="color:red;">foo</div>
5589 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5591 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5593 <div title="This is a long title with just one piece templated">foo</div>
5598 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5600 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5602 <div title="This is a long title with just one piece templated">foo</div>
5607 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5609 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5611 <div title="This is a long title with just one piece templated">foo</div>
5616 Templates: HTML Tables: 1. Generating start of a HTML table
5618 {{echo|<table><tr><td>foo</td>}}</tr></table>
5620 <table><tr><td>foo</td></tr></table>
5625 Templates: HTML Tables: 2a. Generating middle of a HTML table
5627 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5629 <table><tr><td>foo</td></tr></table>
5634 Templates: HTML Tables: 2b. Generating middle of a HTML table
5636 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5638 <table><tr><td>foo</td></tr></table>
5643 Templates: HTML Tables: 3. Generating end of a HTML table
5645 <table><tr>{{echo|<td>foo</td></tr></table>}}
5647 <table><tr><td>foo</td></tr></table>
5652 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5654 {{echo|<table>}}<tr><td>foo</td></tr></table>
5656 <table><tr><td>foo</td></tr></table>
5661 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5663 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5665 <table><tr><td>foo</td></tr></table>
5670 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5672 <table><tr>{{echo|<td>}}foo</td></tr></table>
5674 <table><tr><td>foo</td></tr></table>
5679 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5681 <table><tr><td>foo{{echo|</td>}}</tr></table>
5683 <table><tr><td>foo</td></tr></table>
5688 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5690 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5692 <table><tr><td>foo</td></tr></table>
5697 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5699 <table><tr><td>foo</td></tr>{{echo|</table>}}
5701 <table><tr><td>foo</td></tr></table>
5706 Templates: Wiki Tables: 1. Fostering of entire template content
5714 <tr><td></td></tr></table>
5719 Templates: Wiki Tables: 2. Fostering of partial template content
5729 <tr><td></td></tr></table>
5734 Templates: Wiki Tables: 3. td-content via multiple templates
5737 {{echo|{{pipe}}a}}{{echo|b}}
5748 Templates: Wiki Tables: 4. Templated tags, no content
5754 <tr><td></td></tr></table>
5759 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5773 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5787 Templates: Lists: Multi-line list-items via templates
5789 *{{echo|a {{nonexistent|
5791 *{{echo|b {{nonexistent|
5794 <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>
5795 </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>
5801 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5803 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5805 <p><i>ab</i>c<i>d</i>e
5810 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5811 (PHP parser generates misnested html)
5815 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5817 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5821 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5822 (PHP parser generates misnested html)
5826 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5829 <div><i>b</i>c<i>d</i></div>
5834 Templates: Ugly nesting: 4. Divs opened/closed across templates
5836 a<div>b{{echo|c</div>d}}e
5843 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5849 |{{echo|foo</table>}}
5853 <table about="#mwt1" typeof="mw:Object/Template ">
5854 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5855 bar</span><span about="#mwt1">
5860 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5870 <td>1. {{echo|foo </table>}}</td>
5872 <td>2. {{echo|baz </table>}}</td>
5885 <table about="#mwt1" typeof="mw:Object/Template">
5890 <td >1. foo </td></tr></tbody></table></td>
5892 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5893 </span><span about="#mwt1">
5895 abc</span><span about="#mwt1">
5896 </span><span about="#mwt1">
5897 </span><span about="#mwt1">
5898 </span><span about="#mwt1">
5899 </span><span about="#mwt1">
5901 xyz</span><span about="#mwt1">
5902 </span><span about="#mwt1">
5907 Templates: Ugly templates: 3. newline-only template parameter
5916 # This looks like a bug: a single newline triggers p/br for some reason.
5918 Templates: Ugly templates: 4. newline-only template parameter inconsistency
5929 Parser Functions: 1. Simple example
5938 Parser Functions: 2. Nested use (only outermost should be marked up)
5947 ### Pre-save transform tests
5950 pre-save transform: subst:
5956 This is a test template
5960 pre-save transform: normal template
5970 pre-save transform: nonexistent template
5974 {{thistemplatedoesnotexist}}
5976 {{thistemplatedoesnotexist}}
5981 pre-save transform: subst magic variables
5990 # This is bug 89, which I fixed. -- wtm
5992 pre-save transform: subst: templates with parameters
5996 {{subst:paramtest|param="something else"}}
5998 This is a test template with parameter "something else"
6004 <nowiki>'''not wiki'''</nowiki>
6008 pre-save transform: nowiki in subst (bug 1188)
6012 {{subst:nowikitest}}
6014 <nowiki>'''not wiki'''</nowiki>
6019 Template:commenttest
6021 This template has <!-- a comment --> in it.
6025 pre-save transform: comment in subst (bug 1936)
6029 {{subst:commenttest}}
6031 This template has <!-- a comment --> in it.
6035 pre-save transform: unclosed tag
6039 <nowiki>'''not wiki'''
6041 <nowiki>'''not wiki'''
6045 pre-save transform: mixed tag case
6049 <NOwiki>'''not wiki'''</noWIKI>
6051 <NOwiki>'''not wiki'''</noWIKI>
6055 pre-save transform: unclosed comment in <nowiki>
6059 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6061 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6067 <span onmouseover="alert('crap')">Oh no</span>
6071 (confirming safety of fix for subst bug 1936)
6073 {{Template:dangerous}}
6075 <p><span>Oh no</span>
6080 pre-save transform: comment containing gallery (bug 5024)
6084 <!-- <gallery>data</gallery> -->
6086 <!-- <gallery>data</gallery> -->
6090 pre-save transform: comment containing extension
6094 <!-- <tag>data</tag> -->
6096 <!-- <tag>data</tag> -->
6100 pre-save transform: comment containing nowiki
6104 <!-- <nowiki>data</nowiki> -->
6106 <!-- <nowiki>data</nowiki> -->
6110 pre-save transform: <noinclude> in subst (bug 3298)
6120 pre-save transform: <onlyinclude> in subst (bug 3298)
6132 {{<includeonly>subst:</includeonly>Includes}}
6136 Template:SafeSubstTest
6138 {{<includeonly>safesubst:</includeonly>Includes}}
6142 bug 22297: safesubst: works during PST
6146 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6152 bug 22297: safesubst: works during normal parse
6161 subst: does not work during normal parse
6165 <p>{{subst:Includes}}
6170 pre-save transform: context links ("pipe trick")
6174 [[Article (context)|]]
6177 [[Bar:Article (context)|]]
6178 [[:Bar:Article (context)|]]
6180 [[|Article (context)]]
6184 [[Article (context)|Article]]
6185 [[Bar:Article|Article]]
6186 [[:Bar:Article|Article]]
6187 [[Bar:Article (context)|Article]]
6188 [[:Bar:Article (context)|Article]]
6190 [[Article (context)]]
6191 [[Bar:X (Y) Z|X (Y) Z]]
6192 [[:Bar:X (Y) Z|X (Y) Z]]
6196 pre-save transform: context links ("pipe trick") with interwiki prefix
6200 [[interwiki:Article|]]
6201 [[:interwiki:Article|]]
6202 [[interwiki:Bar:Article|]]
6203 [[:interwiki:Bar:Article|]]
6205 [[interwiki:Article|Article]]
6206 [[:interwiki:Article|Article]]
6207 [[interwiki:Bar:Article|Bar:Article]]
6208 [[:interwiki:Bar:Article|Bar:Article]]
6212 pre-save transform: context links ("pipe trick") with parens in title
6214 pst title=[[Somearticle (context)]]
6218 [[Article (context)|Article]]
6222 pre-save transform: context links ("pipe trick") with comma in title
6224 pst title=[[Someplace, Somewhere]]
6227 [[Otherplace, Elsewhere|]]
6228 [[Otherplace, Elsewhere, Anywhere|]]
6230 [[Otherplace, Somewhere|Otherplace]]
6231 [[Otherplace, Elsewhere|Otherplace]]
6232 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6236 pre-save transform: context links ("pipe trick") with parens and comma
6238 pst title=[[Someplace (IGNORED), Somewhere]]
6241 [[Otherplace (place), Elsewhere|]]
6243 [[Otherplace, Somewhere|Otherplace]]
6244 [[Otherplace (place), Elsewhere|Otherplace]]
6248 pre-save transform: context links ("pipe trick") with comma and parens
6250 pst title=[[Who, me? (context)]]
6253 [[Me, Myself, and I (1937 song)|]]
6255 [[Yes, you. (context)|Yes, you.]]
6256 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6260 pre-save transform: context links ("pipe trick") with namespace
6262 pst title=[[Ns:Somearticle]]
6266 [[Ns:Article|Article]]
6270 pre-save transform: context links ("pipe trick") with namespace and parens
6272 pst title=[[Ns:Somearticle (context)]]
6276 [[Ns:Article (context)|Article]]
6280 pre-save transform: context links ("pipe trick") with namespace and comma
6282 pst title=[[Ns:Somearticle, Context, Whatever]]
6286 [[Ns:Article, Context, Whatever|Article]]
6290 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6292 pst title=[[Ns:Somearticle, Context (context)]]
6296 [[Ns:Article (context)|Article]]
6300 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6302 pst title=[[Ns:Somearticle (IGNORED), Context]]
6306 [[Ns:Article, Context|Article]]
6310 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6314 [[Article(context)|]]
6315 [[Bar:Article(context)|]]
6316 [[:Bar:Article(context)|]]
6317 [[|Article(context)]]
6321 [[Article(context)|Article]]
6322 [[Bar:Article(context)|Article]]
6323 [[:Bar:Article(context)|Article]]
6324 [[Article(context)]]
6326 [[:Bar:X(Y)Z|X(Y)Z]]
6330 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6334 [[Article (context)|]]
6335 [[Bar:Article (context)|]]
6336 [[:Bar:Article (context)|]]
6337 [[|Article (context)]]
6341 [[Article (context)|Article]]
6342 [[Bar:Article (context)|Article]]
6343 [[:Bar:Article (context)|Article]]
6344 [[Article (context)]]
6345 [[Bar:X (Y) Z|X (Y) Z]]
6346 [[:Bar:X (Y) Z|X (Y) Z]]
6350 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6354 [[Article(context)|]]
6355 [[Bar:Article(context)|]]
6356 [[:Bar:Article(context)|]]
6357 [[|Article(context)]]
6361 [[Article(context)|Article]]
6362 [[Bar:Article(context)|Article]]
6363 [[:Bar:Article(context)|Article]]
6364 [[Article(context)]]
6366 [[:Bar:X(Y)Z|X(Y)Z]]
6370 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6374 [[Article (context), context|]]
6375 [[Article (context),context|]]
6376 [[Bar:Article (context), context|]]
6377 [[Bar:Article (context),context|]]
6378 [[:Bar:Article (context), context|]]
6379 [[:Bar:Article (context),context|]]
6381 [[Article (context), context|Article]]
6382 [[Article (context),context|Article]]
6383 [[Bar:Article (context), context|Article]]
6384 [[Bar:Article (context),context|Article]]
6385 [[:Bar:Article (context), context|Article]]
6386 [[:Bar:Article (context),context|Article]]
6390 pre-save transform: trim trailing empty lines
6394 Empty lines are trimmed
6400 Empty lines are trimmed
6404 pre-save transform: Signature expansion
6409 * <noinclude>~~~</noinclude>
6410 * <includeonly>~~~</includeonly>
6411 * <onlyinclude>~~~</onlyinclude>
6413 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6414 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6415 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6416 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6421 pre-save transform: Signature expansion in nowiki tags (bug 93)
6427 <nowiki>~~~~</nowiki>
6429 <includeonly><nowiki>~~~~</nowiki></includeonly>
6431 <noinclude><nowiki>~~~~</nowiki></noinclude>
6433 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6435 {{subst:Foo}} shall be converted to FOO
6437 As well as inside noinclude/onlyinclude
6438 <noinclude>{{subst:Foo}}</noinclude>
6439 <onlyinclude>{{subst:Foo}}</onlyinclude>
6441 But not inside includeonly
6442 <includeonly>{{subst:Foo}}</includeonly>
6446 <nowiki>~~~~</nowiki>
6448 <includeonly><nowiki>~~~~</nowiki></includeonly>
6450 <noinclude><nowiki>~~~~</nowiki></noinclude>
6452 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6454 FOO shall be converted to FOO
6456 As well as inside noinclude/onlyinclude
6457 <noinclude>FOO</noinclude>
6458 <onlyinclude>FOO</onlyinclude>
6460 But not inside includeonly
6461 <includeonly>{{subst:Foo}}</includeonly>
6465 ### Message transform tests
6468 message transform: magic variables
6478 message transform: should not transform wiki markup
6488 message transform: <noinclude> in transcluded template (bug 4926)
6498 message transform: <onlyinclude> in transcluded template (bug 4926)
6508 {{#special:}} page name, known
6512 {{#special:Recentchanges}}
6514 Special:RecentChanges
6518 {{#special:}} page name with subpage, known
6522 {{#special:Recentchanges/param}}
6524 Special:RecentChanges/param
6528 {{#special:}} page name, unknown
6532 {{#special:foobarnonexistent}}
6534 No such special page
6538 {{#speciale:}} page name, known
6542 {{#speciale:Recentchanges}}
6544 Special:RecentChanges
6548 {{#speciale:}} page name with subpage, known
6552 {{#speciale:Recentchanges/param}}
6554 Special:RecentChanges/param
6558 {{#speciale:}} page name, unknown
6562 {{#speciale:foobarnonexistent}}
6564 No_such_special_page
6573 [[Image:foobar.jpg]]
6575 <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>
6582 [[Image:foobar.jpg|right]]
6584 <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>
6589 Simple image (using File: namespace, now canonical)
6593 <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>
6600 [[Image:foobar.jpg|right|Caption text]]
6602 <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>
6607 Image with empty attribute
6609 [[Image:foobar.jpg|right||Caption text]]
6611 <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>
6616 Image with link tails
6618 123[[Image:foobar.jpg]]456
6619 123[[Image:foobar.jpg|right]]456
6620 123[[Image:foobar.jpg|thumb]]456
6622 <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
6624 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
6625 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
6630 Image with multiple captions -- only last one is accepted
6632 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6634 <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>
6639 Image with width attribute at different positions
6641 [[Image:foobar.jpg|200px|right|Caption]]
6642 [[Image:foobar.jpg|right|200px|Caption]]
6643 [[Image:foobar.jpg|right|Caption|200px]]
6645 <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>
6646 <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>
6647 <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>
6652 Image with link parameter, wiki target
6654 [[Image:foobar.jpg|link=Target page]]
6656 <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>
6661 Image with link parameter, URL target
6663 [[Image:foobar.jpg|link=http://example.com/]]
6665 <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>
6670 Image with link parameter, wgExternalLinkTarget
6672 [[Image:foobar.jpg|link=http://example.com/]]
6674 wgExternalLinkTarget='foobar'
6676 <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>
6681 Image with link parameter, wgNoFollowLinks set to false
6683 [[Image:foobar.jpg|link=http://example.com/]]
6685 wgNoFollowLinks=false
6687 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6692 Image with link parameter, wgNoFollowDomainExceptions
6694 [[Image:foobar.jpg|link=http://example.com/]]
6696 wgNoFollowDomainExceptions='example.com'
6698 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6703 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6705 [[Image:foobar.jpg|link=http://example.com/|Title]]
6707 wgExternalLinkTarget='foobar'
6709 <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>
6714 Image with empty link parameter
6716 [[Image:foobar.jpg|link=]]
6718 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6723 Image with link parameter (wiki target) and unnamed parameter
6725 [[Image:foobar.jpg|link=Target page|Title]]
6727 <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>
6732 Image with link parameter (URL target) and unnamed parameter
6734 [[Image:foobar.jpg|link=http://example.com/|Title]]
6736 <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>
6741 Thumbnail image with link parameter
6743 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6745 <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>
6750 Image with frame and link
6752 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6754 <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>
6759 Image with frame and link and explicit alt
6761 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6763 <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>
6768 Image with wiki markup in implicit alt
6770 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6772 <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>
6777 Image with wiki markup in explicit alt
6779 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6781 <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>
6786 Link to image page- image page normally doesn't exists, hence edit link
6787 Add test with existing image page
6788 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6792 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6797 bug 18784 Link to non-existent image page with caption should use caption as link text
6799 [[:Image:test|caption]]
6801 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6806 Frameless image caption with a free URL
6808 [[Image:foobar.jpg|http://example.com]]
6810 <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>
6815 Thumbnail image caption with a free URL
6817 [[Image:foobar.jpg|thumb|http://example.com]]
6819 <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>
6824 Thumbnail image caption with a free URL and explicit alt
6826 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6828 <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>
6833 BUG 1887: A ISBN with a thumbnail
6835 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6837 <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>
6842 BUG 1887: A RFC with a thumbnail
6844 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6846 <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>
6851 BUG 1887: A mailto link with a thumbnail
6853 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6855 <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>
6859 # Pending resolution to bug 368
6861 BUG 648: Frameless image caption with a link
6863 [[Image:foobar.jpg|text with a [[link]] in it]]
6865 <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>
6870 BUG 648: Frameless image caption with a link (suffix)
6872 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6874 <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>
6879 BUG 648: Frameless image caption with an interwiki link
6881 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6883 <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>
6888 BUG 648: Frameless image caption with a piped interwiki link
6890 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6892 <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>
6897 Escape HTML special chars in image alt text
6899 [[Image:foobar.jpg|& < > "]]
6901 <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>
6906 BUG 499: Alt text should have Ӓ, not &1234;
6908 [[Image:foobar.jpg|♀]]
6910 <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>
6915 Broken image caption with link
6917 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6919 <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.
6924 Image caption containing another image
6926 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6928 <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>
6933 Image caption containing a newline
6935 [[Image:Foobar.jpg|This
6938 <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>
6944 Bug 3090: External links other than http: in image captions
6946 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6948 <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>
6955 [[Image:foobar.jpg|a|class=b]]
6957 <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>
6964 #REDIRECT [[File:Barfoo.jpg]]
6970 [[Image:Barfoo.jpg]]
6972 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6977 Missing image with uploads disabled
6981 [[Image:Foobaz.jpg]]
6983 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6992 Subpage test/subpage
7000 subpage title=[[Subpage test]]
7004 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7009 Subpage noslash link
7011 subpage title=[[Subpage test]]
7015 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7024 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7029 BUG 561: {{/Subpage}}
7031 subpage title=[[Page]]
7035 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7043 Category:MediaWiki User's Guide
7051 [[:Category:MediaWiki User's Guide]]
7053 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7062 [[Category:MediaWiki User's Guide]]
7064 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7068 PAGESINCATEGORY invalid title fatal (r33546 fix)
7070 {{PAGESINCATEGORY:<bogus>}}
7077 Category with different sort key
7081 [[Category:MediaWiki User's Guide|Foo]]
7083 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7087 Category with identical sort key
7091 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7093 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7097 Category with empty sort key
7102 [[Category:MediaWiki User's Guide|]]
7104 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7108 Category with empty sort key and parentheses
7113 [[Category:Foo (bar)|]]
7115 [[Category:Foo (bar)|Foo]]
7119 Category with link tail
7124 123[[Category:Foo]]456
7126 123[[Category:Foo]]456
7130 Category with template
7135 [[Category:{{echo|Foo}}]]
7137 [[Category:{{echo|Foo}}]]
7141 Category with template in sort key
7146 [[Category:Foo|{{echo|Bar}}]]
7148 [[Category:Foo|{{echo|Bar}}]]
7152 Category with template in sort key and title
7157 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7159 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7163 Category / paragraph interactions
7165 Foo [[Category:Baz]] Bar
7167 Foo [[Category:Baz]]
7175 [[Category:Baz]] Bar
7188 {{echo|[[Category:Baz]]}}
7203 ### Inter-language links
7206 Inter-language links
7212 [[zh:食品]]
7214 es:Alimento fr:Nourriture zh:食品
7218 Duplicate interlanguage links (bug 24502)
7234 Basic section headings
7241 ===Smaller headline===
7244 <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>
7247 <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>
7250 <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>
7256 Section headings with TOC
7259 === Subheadline 1 ===
7260 ===== Skipping a level =====
7261 ====== Skipping a level ======
7265 ===Another headline===
7267 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7269 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7271 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7273 <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>
7275 <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>
7282 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7284 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7289 <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>
7290 <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>
7291 <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>
7292 <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>
7293 <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>
7296 <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>
7300 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7302 Handling of sections up to level 6 and beyond
7305 == Level 2 Heading==
7306 === Level 3 Heading===
7307 ==== Level 4 Heading====
7308 ===== Level 5 Heading=====
7309 ====== Level 6 Heading======
7310 ======= Level 7 Heading=======
7311 ======== Level 8 Heading========
7312 ========= Level 9 Heading=========
7313 ========== Level 10 Heading==========
7315 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7317 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7319 <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>
7321 <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>
7323 <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>
7325 <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>
7327 <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>
7328 <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>
7329 <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>
7330 <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>
7331 <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>
7344 <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>
7345 <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>
7346 <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>
7347 <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>
7348 <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>
7349 <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>
7350 <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>
7351 <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>
7352 <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>
7353 <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>
7358 TOC regression (bug 9764)
7362 ==== title 1.1.1 ====
7367 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7369 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7371 <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>
7373 <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>
7376 <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>
7379 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7381 <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>
7386 <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>
7387 <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>
7388 <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>
7389 <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>
7390 <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>
7391 <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>
7396 TOC with wgMaxTocLevel=3 (bug 6204)
7402 ==== title 1.1.1 ====
7407 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7409 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7411 <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>
7412 <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>
7415 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7417 <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>
7422 <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>
7423 <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>
7424 <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>
7425 <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>
7426 <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>
7427 <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>
7432 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7438 ====Section 1.1.1====
7439 ====Section 1.1.1.1====
7442 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7444 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7446 <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>
7449 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7452 <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>
7453 <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>
7454 <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>
7455 <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>
7456 <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>
7462 Resolving duplicate section names
7467 <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>
7468 <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>
7473 Resolving duplicate section names with differing case (bug 10721)
7478 <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>
7479 <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>
7491 Template with sections, __NOTOC__
7498 <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>
7499 <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>
7500 <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>
7501 <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>
7506 __NOEDITSECTION__ keyword
7512 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7513 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7518 Link inside a section heading
7520 ==Section with a [[Main Page|link]] in it==
7522 <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>
7527 TOC regression (bug 12077)
7534 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7536 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7538 <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>
7541 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7544 <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>
7545 <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>
7546 <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>
7551 BUG 1219 URL next to image (good)
7553 http://example.com [[Image:foobar.jpg]]
7555 <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>
7560 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7563 The line above must have a trailing space!
7566 But just in case it doesn't...
7568 <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>
7569 <p>The line above must have a trailing space!
7571 <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>
7572 <p>But just in case it doesn't...
7577 Header with special characters (bug 25462)
7579 The tooltips shall not show entities to the user (ie. be double escaped)
7596 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7598 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7600 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7601 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7602 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7603 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7604 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7607 <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>
7610 <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>
7613 <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>
7616 <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>
7619 <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>
7625 Headers with excess '=' characters
7626 (Are similar tests necessary beyond the 1st level?)
7630 =''italic'' heading==
7631 ==''italic'' heading=
7633 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7635 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7636 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7637 <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>
7638 <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>
7641 <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>
7642 <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>
7643 <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>
7644 <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>
7649 BUG 1219 URL next to image (broken)
7651 http://example.com[[Image:foobar.jpg]]
7653 <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>
7658 Bug 1186 news: in the middle of text
7660 http://en.wikinews.org/wiki/Wikinews:Workplace
7662 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7668 Namespaced link must have a title
7677 Namespaced link must have a title (bad fragment version)
7679 [[Project:#fragment]]
7681 <p>[[Project:#fragment]]
7687 ### HTML tags and HTML attributes
7691 div with no attributes
7693 <div>HTML rocks</div>
7695 <div>HTML rocks</div>
7700 div with double-quoted attribute
7702 <div id="rock">HTML rocks</div>
7704 <div id="rock">HTML rocks</div>
7709 div with single-quoted attribute
7711 <div id='rock'>HTML rocks</div>
7713 <div id="rock">HTML rocks</div>
7718 div with unquoted attribute
7720 <div id=rock>HTML rocks</div>
7722 <div id="rock">HTML rocks</div>
7727 div with illegal double attributes
7729 <div id="a" id="b">HTML rocks</div>
7731 <div id="b">HTML rocks</div>
7735 # FIXME: produce empty string instead of "class" in the PHP parser, following
7738 div with empty attribute value, space before equals
7742 <div class =>HTML rocks</div>
7744 <div class="">HTML rocks</div>
7748 # The PHP parser escapes the opening brace to { for some reason, so
7749 # disabled this test for it.
7751 div with braces in attribute value
7755 <div title="{}">Foo</div>
7757 <div title="{}">Foo</div>
7760 # This it very inconsistent in the PHP parser: it returns
7761 # class="class" if there is a space between the name and the equal sign (see
7762 # 'div with empty attribute value, space before equals'), but strips the
7763 # attribute completely if the space is missing. We hope that not much content
7764 # depends on this, so are implementing the behavior below in Parsoid for
7765 # consistencies' sake. Disabled for the PHP parser.
7766 # FIXME: fix this behavior in the PHP parser?
7768 div with empty attribute value, no space before equals
7772 <div class=>HTML rocks</div>
7774 <div class="">HTML rocks</div>
7779 HTML multiple attributes correction
7781 <p class="error" class="awesome">Awesome!</p>
7783 <p class="awesome">Awesome!</p>
7788 Table multiple attributes correction
7791 !+ class="error" class="awesome"| status
7796 <th class="awesome"> status
7804 <DIV ID="x">HTML ROCKS</DIV>
7806 <div id="x">HTML ROCKS</div>
7811 Non-ASCII pseudo-tags are rendered as text
7820 Pseudo-tag with URL 'name' renders as url link
7822 <http://example.com/>
7824 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7829 text with amp in the middle of nowhere
7833 <p>Remember AT&T?
7838 text with character entity: eacute
7840 I always thought é was a cute letter.
7842 <p>I always thought é was a cute letter.
7847 text with entity-escaped character entity-like string: eacute
7849 I always thought &eacute; was a cute letter.
7851 <p>I always thought &eacute; was a cute letter.
7856 text with undefined character entity: xacute
7858 I always thought &xacute; was a cute letter.
7860 <p>I always thought &xacute; was a cute letter.
7872 [[Media:Foobar.jpg]]
7874 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7879 Media link with text
7881 [[Media:Foobar.jpg|A neat file to look at]]
7883 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7887 # FIXME: this is still bad HTML tag nesting
7889 Media link with nasty text
7890 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7892 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7894 <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>
7899 Media link to nonexistent file (bug 1702)
7901 [[Media:No such.jpg]]
7903 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7908 Image link to nonexistent file (bug 1850 - good)
7910 [[Image:No such.jpg]]
7912 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7917 :Image link to nonexistent file (bug 1850 - bad)
7919 [[:Image:No such.jpg]]
7921 <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>
7928 Character reference normalization in link text (bug 1938)
7930 [[Main Page|this&that]]
7932 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7939 Test for unicode normalization
7941 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7945 (bug 19451) Links should refer to the normalized form.
7953 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7954 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7955 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7956 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7957 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7962 Empty attribute crash test (bug 2067)
7964 <font color="">foo</font>
7966 <p><font color="">foo</font>
7971 Empty attribute crash test single-quotes (bug 2067)
7973 <font color=''>foo</font>
7975 <p><font color="">foo</font>
7980 Attribute test: equals, then nothing
7982 <font color=>foo</font>
7989 Attribute test: unquoted value
7991 <font color=x>foo</font>
7993 <p><font color="x">foo</font>
7998 Attribute test: unquoted but illegal value (hash)
8000 <font color=#x>foo</font>
8002 <p><font color="#x">foo</font>
8007 Attribute test: no value
8009 <font color>foo</font>
8011 <p><font color="color">foo</font>
8016 Bug 2095: link with three closing brackets
8020 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8025 Bug 2095: link with pipe and three closing brackets
8029 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8034 Bug 2095: link with pipe and three closing brackets, version 2
8036 [[Main Page|[http://example.com/]]]
8038 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8048 Template:Dangerous attribute
8050 " onmouseover="alert(document.cookie)
8054 Template:Dangerous style attribute
8056 border-size: expression(alert(document.cookie))
8062 <div style="float: right; {{{1}}}">Magic div</div>
8066 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8068 <div title="{{test}}"></div>
8070 <div title="This is a test template"></div>
8075 Bug 2304: HTML attribute safety (dangerous template; 2309)
8077 <div title="{{dangerous attribute}}"></div>
8079 <div title=""></div>
8084 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8086 <div style="{{dangerous style attribute}}"></div>
8088 <div style="/* insecure input */"></div>
8093 Bug 2304: HTML attribute safety (safe parameter; 2309)
8095 {{div style|width: 200px}}
8097 <div style="float: right; width: 200px">Magic div</div>
8102 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8104 {{div style|width: expression(alert(document.cookie))}}
8106 <div style="/* insecure input */">Magic div</div>
8111 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8113 {{div style|"><script>alert(document.cookie)</script>}}
8115 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8120 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8122 {{div style|" ><script>alert(document.cookie)</script>}}
8124 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8129 Bug 2304: HTML attribute safety (link)
8131 <div title="[[Main Page]]"></div>
8133 <div title="[[Main Page]]"></div>
8138 Bug 2304: HTML attribute safety (italics)
8140 <div title="''foobar''"></div>
8142 <div title="''foobar''"></div>
8147 Bug 2304: HTML attribute safety (bold)
8149 <div title="'''foobar'''"></div>
8151 <div title="'''foobar'''"></div>
8157 Bug 2304: HTML attribute safety (ISBN)
8159 <div title="ISBN 1234567890"></div>
8161 <div title="ISBN 1234567890"></div>
8166 Bug 2304: HTML attribute safety (RFC)
8168 <div title="RFC 1234"></div>
8170 <div title="RFC 1234"></div>
8175 Bug 2304: HTML attribute safety (PMID)
8177 <div title="PMID 1234567890"></div>
8179 <div title="PMID 1234567890"></div>
8184 Bug 2304: HTML attribute safety (web link)
8186 <div title="http://example.com/"></div>
8188 <div title="http://example.com/"></div>
8193 Bug 2304: HTML attribute safety (named web link)
8195 <div title="[http://example.com/ link]"></div>
8197 <div title="[http://example.com/ link]"></div>
8202 Bug 3244: HTML attribute safety (extension; safe)
8204 <div style="<nowiki>background:blue</nowiki>"></div>
8206 <div style="background:blue"></div>
8211 Bug 3244: HTML attribute safety (extension; unsafe)
8213 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8215 <div style="/* insecure input */"></div>
8219 # More MSIE fun discovered by Tom Gilder
8222 MSIE CSS safety test: spurious slash
8224 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8226 <div style="/* insecure input */">evil</div>
8231 MSIE CSS safety test: hex code
8233 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8235 <div style="/* insecure input */">evil</div>
8240 MSIE CSS safety test: comment in url
8242 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8244 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8249 MSIE CSS safety test: comment in expression
8251 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8253 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8259 Table attribute legitimate extension
8262 !+ style="<nowiki>color:blue</nowiki>"| status
8267 <th style="color:blue"> status
8273 Table attribute safety
8276 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8281 <th style="/* insecure input */"> status
8287 CSS line continuation 1
8289 <div style="background-image: u\ rl(test.jpg);"></div>
8291 <div style="/* insecure input */"></div>
8296 CSS line continuation 2
8298 <div style="background-image: u\ rl(test.jpg); "></div>
8300 <div style="/* insecure input */"></div>
8311 Expansion of multi-line templates in attribute values (bug 6255)
8313 <div style="background: {{identity|#00FF00}}">-</div>
8315 <div style="background: #00FF00">-</div>
8321 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8323 <div style="background:
8326 <div style="background: #00FF00">-</div>
8331 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8333 <div style="background: #00FF00">-</div>
8335 <div style="background: #00FF00">-</div>
8340 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8343 Parser hook: empty input
8356 Parser hook: empty input using terminated empty elements
8369 Parser hook: empty input using terminated empty elements (space before)
8382 Parser hook: basic input
8396 Parser hook: case insensitive
8410 Parser hook: case insensitive, redux
8423 Parser hook: nested tags
8427 <tag><tag></tag></tag>
8438 Parser hook: basic arguments
8440 <tag width=200 height = "100" depth = '50' square></tag>
8448 'square' => 'square',
8455 Parser hook: argument containing a forward slash (bug 5344)
8457 <tag filename='/tmp/bla'></tag>
8462 'filename' => '/tmp/bla',
8469 Parser hook: empty input using terminated empty elements (bug 2374)
8482 # </tag> should be output literally since there is no matching tag that begins it
8484 Parser hook: basic arguments using terminated empty elements (bug 2374)
8486 <tag width=200 height = "100" depth = '50' square/>
8496 'square' => 'square',
8505 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8509 Parser hook: static parser hook not inside a comment
8511 <statictag>hello, world</statictag>
8512 <statictag action=flush/>
8520 Parser hook: static parser hook inside a comment
8522 <!-- <statictag>hello, world</statictag> -->
8523 <statictag action=flush/>
8529 # Nested template calls; this case was broken by Parser.php rev 1.506,
8533 Template:One-parameter
8535 (My parameter is: {{{1}}})
8539 Template:Map-one-parameter
8545 Nested template calls
8547 {{Map-one-parameter|One-parameter|param}}
8549 <p>(My parameter is: param)
8558 Sanitizer: Closing of open tags
8560 <s></s><table></table>
8562 <s></s><table></table>
8567 Sanitizer: Closing of open but not closed tags
8576 Sanitizer: Closing of closed but not open tags
8585 Sanitizer: Closing of closed but not open table tags
8587 Table not started</td></tr></table>
8589 <p>Table not started</td></tr></table>
8594 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8596 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8598 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8603 Sanitizer: Validating the contents of the id attribute (bug 4515)
8609 Something, but definitely not <br id="9" />...
8613 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8617 <br id="foo" /><br id="foo" />
8619 Something need to be done. foo-2 ?
8623 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8626 <meta itemprop="hello" content="world">
8627 <meta http-equiv="refresh" content="5">
8628 <meta itemprop="hello" http-equiv="refresh" content="5">
8629 <link itemprop="hello" href="{{SERVER}}">
8630 <link rel="stylesheet" href="{{SERVER}}">
8631 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8634 <div itemscope="itemscope">
8635 <p> <meta itemprop="hello" content="world" />
8636 <meta http-equiv="refresh" content="5">
8637 <meta itemprop="hello" content="5" />
8639 <link itemprop="hello" href="http://Britney-Spears" />
8640 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8641 <link itemprop="hello" href="http://Britney-Spears" />
8647 Language converter: output gets cut off unexpectedly (bug 5757)
8651 this bit is safe: }-
8653 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8655 then we get cut off here: }-
8657 all additional text is vanished
8659 <p>this bit is safe: }-
8660 </p><p>but if we add a conversion instance: xxx
8661 </p><p>then we get cut off here: }-
8662 </p><p>all additional text is vanished
8667 Self closed html pairs (bug 5487)
8670 <center><font id="bug" />Centered text</center>
8671 <div><font id="bug2" />In div text</div>
8673 <center><font id="bug" />Centered text</center>
8674 <div><font id="bug2" />In div text</div>
8683 Punctuation: nbsp before exclamation
8687 <p>C'est grave !
8692 Punctuation: CSS !important (bug 11874)
8694 <div style="width:50% !important">important</div>
8696 <div style="width:50% !important">important</div>
8701 Punctuation: CSS ! important (bug 11874; with space after)
8703 <div style="width:50% ! important">important</div>
8705 <div style="width:50% ! important">important</div>
8711 HTML bullet list, closed tags (bug 5497)
8726 HTML bullet list, unclosed tags (bug 5497)
8743 HTML ordered list, closed tags (bug 5497)
8758 HTML ordered list, unclosed tags (bug 5497)
8775 HTML nested bullet list, closed tags (bug 5497)
8800 HTML nested bullet list, open tags (bug 5497)
8825 HTML nested ordered list, closed tags (bug 5497)
8850 HTML nested ordered list, open tags (bug 5497)
8875 HTML ordered list item with parameters oddity
8877 <ol><li id="fragment">One</li></ol>
8879 <ol><li id="fragment">One</li></ol>
8884 bug 5918: autonumbering
8886 [http://first/] [http://second] [ftp://ftp]
8890 [mailto:enclosed@mail.tld With target]
8892 [mailto:enclosed@mail.tld]
8894 mailto:inline@mail.tld
8896 <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>
8897 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8898 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8899 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8900 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8906 # Security and HTML correctness
8907 # From Nick Jenkins' fuzz testing
8911 Fuzz testing: Parser13
8926 Fuzz testing: Parser14
8931 <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>
8932 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8934 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8941 Fuzz testing: Parser14-table
8946 <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>
8947 <table style="__TOC__">
8953 # Known to produce bogus xml (extra </td>)
8955 Fuzz testing: Parser16
8975 Fuzz testing: Parser21
8978 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8983 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8993 Fuzz testing: Parser22
8995 http://===r:::https://b
8999 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9007 # Known to produce bad XML for now
9009 Fuzz testing: Parser24
9016 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9017 <br style="onmouseover='alert(document.cookie);' " />
9019 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9024 <u class="|">}}}} >
9025 <br style="onmouseover='alert(document.cookie);'" />
9027 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9036 # Note: the current result listed for this is not what the original one was,
9037 # but the original bug was JavaScript injection, which is fixed in any case.
9038 # It's not clear that the original result listed was any more correct than the
9039 # current one. Original result:
9042 # <li class="||">
9043 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9045 Fuzz testing: Parser25 (bug 6055)
9051 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9053 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9058 Fuzz testing: URL adjacent extension (with space, clean)
9061 http://example.com <nowiki>junk</nowiki>
9063 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9068 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9071 http://example.com<nowiki>junk</nowiki>
9073 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9078 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9081 http://example.com<pre>junk</pre>
9083 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9088 Fuzz testing: image with bogus manual thumbnail
9090 [[Image:foobar.jpg|thumbnail= ]]
9092 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9097 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9099 <pre dir=" "></pre>
9101 <pre dir=" "></pre>
9106 Parsing optional HTML elements (Bug 6171)
9111 <td> Some tabular data</td>
9112 <td> More tabular data ...
9113 <td> And yet som tabular data</td>
9119 <td> Some tabular data</td>
9120 <td> More tabular data ...
9121 </td><td> And yet som tabular data</td>
9128 Correct handling of <td>, <tr> (Bug 6171)
9133 <td> Some tabular data</td>
9134 <td> More tabular data ...</td>
9135 <td> And yet som tabular data</td>
9141 <td> Some tabular data</td>
9142 <td> More tabular data ...</td>
9143 <td> And yet som tabular data</td>
9151 Parsing crashing regression (fr:JavaScript)
9155 <p></body></x>
9160 Inline wiki vs wiki block nesting
9166 <p><b>Bold paragraph</b>
9167 </p><p>New wiki paragraph
9172 Inline HTML vs wiki block nesting
9180 <p><b>Bold paragraph</b>
9181 </p><p>New wiki paragraph
9185 # Original result was this:
9186 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9188 # While that might be marginally more intuitive, maybe, the six-apostrophe
9189 # construct is clearly pathological and the result stated here (which is what
9190 # the parser actually does) is about as reasonable as anything.
9192 Mixing markup for italics and bold
9195 '''bold''''''bold''bolditalics'''''
9197 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9205 Article for special page transclusion test
9209 Special page transclusion
9212 {{Special:Prefixindex/Xyzzyx}}
9214 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9219 Special page transclusion twice (bug 5021)
9222 {{Special:Prefixindex/Xyzzyx}}
9223 {{Special:Prefixindex/Xyzzyx}}
9225 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9226 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9231 Transclusion of default MediaWiki message
9233 {{MediaWiki:Mainpage}}
9240 Transclusion of nonexistent MediaWiki message
9242 {{MediaWiki:Mainpagexxx}}
9244 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9249 Transclusion of MediaWiki message with underscore
9251 {{MediaWiki:history_short}}
9258 Transclusion of MediaWiki message with space
9260 {{MediaWiki:history short}}
9267 Invalid header with following text
9277 Section extraction test (section 0)
9297 Section extraction test (section 1)
9319 Section extraction test (section 2)
9340 Section extraction test (section 3)
9360 Section extraction test (section 4)
9384 Section extraction test (section 5)
9404 Section extraction test (section 6)
9425 Section extraction test (section 7)
9445 Section extraction test (section 8)
9465 Section extraction test (section 9)
9486 Section extraction test (section 10)
9506 Section extraction test (nonexistent section 11)
9525 Section extraction test with bogus heading (section 1)
9530 ==bogus== not a legal section
9534 ==bogus== not a legal section
9538 Section extraction test with bogus heading (section 2)
9543 ==bogus== not a legal section
9550 Section extraction test with comment after heading (section 1)
9562 Section extraction test with comment after heading (section 2)
9574 Section extraction test with bogus <nowiki> heading (section 1)
9579 ==bogus== <nowiki>not a legal section</nowiki>
9583 ==bogus== <nowiki>not a legal section</nowiki>
9587 Section extraction test with bogus <nowiki> heading (section 2)
9592 ==bogus== <nowiki>not a legal section</nowiki>
9599 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9600 # instead of respecting commented sections
9602 Section extraction prefixed by comment (section 1)
9613 Section extraction prefixed by comment (section 2)
9624 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9625 # instead of respecting HTML-style headings
9627 Section extraction, mixed wiki and html (section 1)
9643 Section extraction, mixed wiki and html (section 2)
9659 # Formerly testing for bug 3342
9661 Section extraction, heading surrounded by <noinclude>
9665 <noinclude>==unmarked==</noinclude>
9671 # Test behaviour of bug 19910
9673 Sectiion with all-equals
9678 The line above must have a trailing space
9681 But just in case it doesn't...
9685 But just in case it doesn't...
9689 Section replacement test (section 0)
9720 Section replacement test (section 1)
9749 Section replacement test (section 2)
9779 Section replacement test (section 3)
9810 Section replacement test (section 4)
9837 Section replacement test (section 5)
9868 Section replacement test (section 6)
9898 Section replacement test (section 7)
9929 Section replacement test (section 8)
9960 Section replacement test (section 9)
9989 Section replacement test (section 10)
10019 Section replacement test with initial whitespace (bug 13728)
10023 Preformatted initial line
10027 Preformatted initial line
10034 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10046 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10059 Section extraction, <pre> around bogus header (bug 10309)
10076 Section replacement, <pre> around bogus header (bug 10309)
10078 noxml replace=2,"xxx"
10099 Handling of 
 in URLs
10103 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10110 5 quotes, code coverage +1 line
10117 Special:Search page linking.
10121 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10133 * {{BASEPAGENAMEE}}
10135 * {{TALKPAGENAMEE}}
10136 * {{SUBJECTPAGENAME}}
10137 * {{SUBJECTPAGENAMEE}}
10143 * {{SUBJECTSPACEE}}
10144 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10146 <ul><li> Parser test
10147 </li><li> Parser test
10148 </li><li> Parser test
10149 </li><li> Parser_test
10150 </li><li> Parser test
10151 </li><li> Parser_test
10152 </li><li> Talk:Parser test
10153 </li><li> Talk:Parser_test
10154 </li><li> Parser test
10155 </li><li> Parser_test
10162 </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>
10166 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10176 image4 |300px| centre
10177 image5.svg| http://///////
10182 <ul class="gallery">
10183 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10184 <div style="height: 150px;">Image1.png</div>
10185 <div class="gallerytext">
10188 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10189 <div style="height: 150px;">Image2.gif</div>
10190 <div class="gallerytext">
10195 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10196 <div style="height: 150px;">Image3</div>
10197 <div class="gallerytext">
10200 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10201 <div style="height: 150px;">Image4</div>
10202 <div class="gallerytext">
10207 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10208 <div style="height: 150px;">Image5.svg</div>
10209 <div class="gallerytext">
10210 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10214 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10215 <div style="height: 150px;">* image6</div>
10216 <div class="gallerytext">
10224 Gallery (with options)
10226 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10227 File:Nonexistant.jpg|caption
10228 File:Nonexistant.jpg
10229 image:foobar.jpg|some '''caption''' [[Main Page]]
10231 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10234 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10235 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10236 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10237 <div style="height: 70px;">Nonexistant.jpg</div>
10238 <div class="gallerytext">
10243 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10244 <div style="height: 70px;">Nonexistant.jpg</div>
10245 <div class="gallerytext">
10248 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10249 <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>
10250 <div class="gallerytext">
10251 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10255 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10256 <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>
10257 <div class="gallerytext">
10260 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10261 <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>
10262 <div class="gallerytext">
10272 Gallery with wikitext inside caption
10275 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10276 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10279 <ul class="gallery">
10280 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10281 <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>
10282 <div class="gallerytext">
10283 <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>
10287 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10288 <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>
10289 <div class="gallerytext">
10290 <p>This is a test template
10299 gallery (with showfilename option)
10301 <gallery showfilename>
10302 File:Nonexistant.jpg|caption
10303 File:Nonexistant.jpg
10304 image:foobar.jpg|some '''caption''' [[Main Page]]
10308 <ul class="gallery">
10309 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10310 <div style="height: 150px;">Nonexistant.jpg</div>
10311 <div class="gallerytext">
10312 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10317 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10318 <div style="height: 150px;">Nonexistant.jpg</div>
10319 <div class="gallerytext">
10320 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10324 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10325 <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>
10326 <div class="gallerytext">
10327 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10328 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10332 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10333 <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>
10334 <div class="gallerytext">
10335 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10344 Gallery (with namespace-less filenames)
10347 File:Nonexistant.jpg
10353 <ul class="gallery">
10354 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10355 <div style="height: 150px;">Nonexistant.jpg</div>
10356 <div class="gallerytext">
10359 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10360 <div style="height: 150px;">Nonexistant.jpg</div>
10361 <div class="gallerytext">
10364 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10365 <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>
10366 <div class="gallerytext">
10369 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10370 <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>
10371 <div class="gallerytext">
10379 HTML Hex character encoding (spells the word "JavaScript")
10381 JavaScript
10383 <p>JavaScript
10388 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10392 <p>&#xsee;&#XSEE;
10397 HTML Hex character encoding mixed case
10406 __FORCETOC__ override
10418 ISBN 978-0-1234-56 789
10420 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10425 ISBN followed by 5 spaces
10436 ISBN ISBN 1234567890
10438 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10443 Bug 22905: <abbr> followed by ISBN followed by </a>
10445 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10447 <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>
10456 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10461 Double RFC with a wiki link
10465 <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>
10474 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10479 Centre-aligned image
10481 [[Image:foobar.jpg|centre]]
10483 <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>
10490 [[Image:foobar.jpg|none]]
10492 <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>
10497 Width + Height sized image (using px) (height is ignored)
10499 [[Image:foobar.jpg|640x480px]]
10501 <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>
10506 Width-sized image (using px, no following whitespace)
10508 [[Image:foobar.jpg|640px]]
10510 <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>
10515 Width-sized image (using px, with following whitespace - test regression from r39467)
10517 [[Image:foobar.jpg|640px ]]
10519 <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>
10524 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10526 [[Image:foobar.jpg| 640px]]
10528 <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>
10533 Another italics / bold test
10541 # Note the results may be incorrect, as parserTest output included this:
10542 # XML error: Mismatched tag at byte 6120:
10543 # ...<dd> </dt></dl> </dd...
10551 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10562 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10564 Images with the "|" character in the comment
10566 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10568 <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>
10573 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10575 <html><script>alert(1);</script></html>
10577 <p><html><script>alert(1);</script></html>
10582 HTML with raw HTML ($wgRawHtml==true)
10586 <html><script>alert(1);</script></html>
10588 <p><script>alert(1);</script>
10593 Parents of subpages, one level up
10595 subpage title=[[Subpage test/L1/L2/L3]]
10599 <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>
10605 Parents of subpages, one level up, not named
10607 subpage title=[[Subpage test/L1/L2/L3]]
10611 <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>
10618 Parents of subpages, two levels up
10620 subpage title=[[Subpage test/L1/L2/L3]]
10626 <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
10627 </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>
10632 Parents of subpages, two levels up, without trailing slash or name.
10634 subpage title=[[Subpage test/L1/L2/L3]]
10643 Parents of subpages, two levels up, with lots of extra trailing slashes.
10645 subpage title=[[Subpage test/L1/L2/L3]]
10649 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10654 Definition list code coverage
10660 <dl><dt> title  </dt><dd> def
10661 </dd><dt> title </dt><dd> def
10662 </dd><dt>title</dt><dd> def
10668 Don't fall for the self-closing div
10670 <div>hello world</div/>
10672 <div>hello world</div>
10681 <p>[[:Template:Msg]]
10690 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10694 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10696 Always escape literal '>' in output, not just after '<'
10710 <p>This is a test template
10711 This is a test template
10723 Inclusion of !userCanEdit() content
10727 <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>
10733 Out-of-order TOC heading levels
10742 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10744 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10746 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10747 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10750 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10752 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10753 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10758 <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>
10759 <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>
10760 <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>
10761 <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>
10762 <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>
10763 <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>
10769 ISBN with a dummy number
10779 ISBN with space-delimited number
10783 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10789 ISBN with multiple spaces, no number
10808 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10809 </p><p>ISBN 12345678901
10815 ISBN with trailing year (bug 8110)
10817 ISBN 1-234-56789-0 - 2006
10819 ISBN 1 234 56789 0 - 2006
10821 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10822 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10830 {{anchorencode:foo bar©#%n}}
10832 <p>foo_bar.C2.A9.23.25n
10837 anchorencode trims spaces
10839 {{anchorencode: __pretty__please__}}
10846 anchorencode deals with links
10848 {{anchorencode: [[hello|world]] [[hi]]}}
10855 anchorencode deals with templates
10857 {{anchorencode: {{Foo}} }}
10864 anchorencode encodes like the TOC generator: (bug 18431)
10866 === _ +:.3A%3A&&]] ===
10867 {{anchorencode: _ +:.3A%3A&&]] }}
10870 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10871 <p>.2B:.3A.253A.26.26.5D.5D
10875 # Expected output in the following test is not necessarily expected (there
10876 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10877 # only testing for well-formedness.
10879 Bug 6200: blockquotes and paragraph formatting
10899 Bug 8293: Use of center tag ruins paragraph formatting
10921 ### Language variants related tests
10924 Self-link in language variants
10926 title=[[Dunav]] language=sr
10928 Both [[Dunav]] and [[Дунав]] are names for this river.
10930 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10936 Link to pages in language variants
10940 Main Page can be written as [[Маин Паге]]
10942 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10948 Multiple links to pages in language variants
10952 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10954 <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>.
10960 Simple template in language variants
10966 <p>This is a test template
10972 Template with explicit namespace in language variants
10978 <p>This is a test template
10984 Basic test for template parameter in language variants
10988 {{парамтест|param=foo}}
10990 <p>This is a test template with parameter foo
10996 Simple category in language variants
11000 [[Category:МедиаWики Усер'с Гуиде]]
11002 <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>
11019 Don't convert blue categorylinks to another variant (bug 33210)
11023 [[A]][[Category:分类]]
11025 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11030 Stripping -{}- tags (language variants)
11034 Latin proverb: -{Ne nuntium necare}-
11036 <p>Latin proverb: Ne nuntium necare
11042 Prevent conversion with -{}- tags (language variants)
11044 language=sr variant=sr-ec
11046 Latinski: -{Ne nuntium necare}-
11048 <p>Латински: Ne nuntium necare
11054 Prevent conversion of text with -{}- tags (language variants)
11056 language=sr variant=sr-ec
11058 Latinski: -{Ne nuntium necare}-
11060 <p>Латински: Ne nuntium necare
11066 Prevent conversion of links with -{}- tags (language variants)
11068 language=sr variant=sr-ec
11072 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11078 -{}- tags within headlines (within html for parserConvert())
11080 language=sr variant=sr-ec
11084 <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>
11090 Explicit definition of language variant alternatives
11092 language=zh variant=zh-tw
11094 -{zh:China;zh-tw:Taiwan}-, not China
11096 <p>Taiwan, not China
11102 Conversion around HTML tags
11104 language=sr variant=sr-ec
11106 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11107 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11110 <span title="ЛаCтин">ски</span>
11116 Explicit session-wise language variant mapping (A flag and - flag)
11118 language=zh variant=zh-tw
11120 Taiwan is not China.
11121 But -{A|zh:China;zh-tw:Taiwan}- is China,
11122 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11123 and -{China}- is China.
11125 <p>Taiwan is not China.
11126 But Taiwan is Taiwan,
11127 (This should be stripped!)
11128 and China is China.
11133 Explicit session-wise language variant mapping (H flag for hide)
11135 language=zh variant=zh-tw
11137 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11140 <p>(This should be stripped!)
11146 Adding explicit conversion rule for title (T flag)
11148 language=zh variant=zh-tw showtitle
11150 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11153 <p>Should be stripped!
11158 Testing that changing the language variant here in the tests actually works
11160 language=zh variant=zh showtitle
11162 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11165 <p>Should be stripped!
11170 Recursive conversion of alt and title attrs shouldn't clear converter state
11172 language=zh variant=zh-cn showtitle
11174 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11175 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11179 Should be stripped<span title="Exclamation">!</span>
11184 Bug 24072: more test on conversion rule for title
11186 language=zh variant=zh-tw showtitle
11188 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11189 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11192 <p>This should be stripped!
11193 This won't take interferes with the title rule.
11198 Raw output of variant escape tags (R flag)
11200 language=zh variant=zh-tw
11202 Raw: -{R|zh:China;zh-tw:Taiwan}-
11204 <p>Raw: zh:China;zh-tw:Taiwan
11209 Nested using of manual convert syntax
11211 language=zh variant=zh-hk
11213 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11215 <p>Nested: Hello Hong Kong!
11220 Proper conversion of text in external links
11222 language=sr variant=sr-ec
11224 http://www.google.com
11225 gopher://www.google.com
11226 [http://www.google.com http://www.google.com]
11227 [gopher://www.google.com gopher://www.google.com]
11228 [https://www.google.com irc://www.google.com]
11229 [ftp://www.google.com www.google.com/ftp://dir]
11230 [//www.google.com www.google.com]
11232 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11233 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11234 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11235 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11236 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11237 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11238 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11243 Do not convert roman numbers to language variants
11245 language=sr variant=sr-ec
11249 <p>Фридрих IV је цар.
11254 Unclosed language converter markup "-{"
11265 Don't convert raw rule "-{R|=>}-" to "=>"
11282 Bug 529: Uncovered bullet
11292 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11293 # Templates in Wikipedia rely on this behavior, as tidy has always been
11294 # enabled there. These tests are normally run *without* tidy, so specify the
11295 # full output here.
11296 # To test realistic parsing behavior, apply a tidy-like transformation to both
11297 # the expected output and your parser's output.
11299 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11301 ******* Foo {{bullet}}
11303 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11316 Bug 529: Uncovered table already at line-start
11339 Bug 529: Uncovered bullet in parser function result
11341 * Foo {{lc:{{bullet}} }}
11350 Bug 5678: Double-parsed template argument
11352 {{lc:{{{1}}}|hello}}
11359 Bug 5678: Double-parsed template invocation
11361 {{lc:{{paramtest {{!}} param = hello }} }}
11363 <p>{{paramtest | param = hello }}
11368 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11371 title=[[Main Page]]
11373 {{PRVNÍVELKÉ:ěščř}}
11374 {{prvnívelké:ěščř}}
11394 Morwen/13: Unclosed link followed by heading
11401 <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>
11406 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11413 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11418 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11425 <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>
11440 Paragraphs inside divs (no extra line breaks)
11452 Paragraphs inside divs (extra line break on open)
11467 Paragraphs inside divs (extra line break on close)
11482 Paragraphs inside divs (extra line break on open and close)
11499 Nesting tags, paragraphs on lines which begin with <div>
11503 <div></div><strong>A
11512 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11514 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11518 <blockquote>Line one
11520 Line two</blockquote>
11522 <blockquote>Line one
11523 Line two</blockquote>
11528 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11535 Line two</blockquote>
11540 Line two</blockquote>
11545 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11549 <blockquote>Line one
11554 <blockquote>Line one
11562 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11581 Paragraphs inside blockquotes/divs (no extra line breaks)
11583 <blockquote><div>Line one
11585 Line two</div></blockquote>
11587 <blockquote><div>Line one
11588 Line two</div></blockquote>
11593 Paragraphs inside blockquotes/divs (extra line break on open)
11598 Line two</div></blockquote>
11603 Line two</div></blockquote>
11608 Paragraphs inside blockquotes/divs (extra line break on close)
11610 <blockquote><div>Line one
11613 </div></blockquote>
11615 <blockquote><div>Line one
11618 </div></blockquote>
11623 Paragraphs inside blockquotes/divs (extra line break on open and close)
11629 </div></blockquote>
11635 </div></blockquote>
11640 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11642 wgLinkHolderBatchSize=0
11648 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11649 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11650 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11655 Free external link invading image caption
11657 [[Image:Foobar.jpg|thumb|http://x|hello]]
11659 <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>
11664 Bug 15196: localised external link numbers
11668 [http://en.wikipedia.org/]
11670 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11675 Multibyte character in padleft
11677 {{padleft:-Hello|7|Æ}}
11684 Multibyte character in padright
11686 {{padright:Hello-|7|Æ}}
11695 wgUseDynamicDates=1
11699 <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>
11704 formatdate parser function
11706 {{#formatdate:2009-03-24}}
11708 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11713 formatdate parser function, with default format
11715 {{#formatdate:2009-03-24|mdy}}
11717 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11722 Linked date with autoformatting disabled
11724 wgUseDynamicDates=false
11728 <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>
11733 Spacing of numbers in formatted dates
11735 {{#formatdate:January 15}}
11737 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11742 Spacing of numbers in formatted dates (linked)
11744 wgUseDynamicDates=true
11748 <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>
11753 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
11755 language=nl title=[[MediaWiki:Common.css]]
11757 {{#formatdate:2009-03-24|dmy}}
11759 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11772 Edit comment with link
11776 I like the [[Main Page]] a lot
11778 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11782 Edit comment with link and link text
11786 I like the [[Main Page|best pages]] a lot
11788 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11792 Edit comment with link and link text with suffix
11796 I like the [[Main Page|best page]]s a lot
11798 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11802 Edit comment with section link (non-local, eg in history list)
11804 comment title=[[Main Page]]
11806 /* External links */ removed bogus entries
11808 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11812 Edit comment with section link and text before it (non-local, eg in history list)
11814 comment title=[[Main Page]]
11816 pre-comment text /* External links */ removed bogus entries
11818 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>
11822 Edit comment with section link (local, eg in diff view)
11824 comment local title=[[Main Page]]
11826 /* External links */ removed bogus entries
11828 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11832 Edit comment with subpage link (bug 14080)
11836 title=[[Subpage test]]
11838 Poked at a [[/subpage]] here...
11840 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11844 Edit comment with subpage link and link text (bug 14080)
11848 title=[[Subpage test]]
11850 Poked at a [[/subpage|neat little page]] here...
11852 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11856 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11859 title=[[Subpage test]]
11861 Poked at a [[/subpage]] here...
11863 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11867 Edit comment with bare anchor link (local, as on diff)
11871 title=[[Main Page]]
11875 <a href="#section">#section</a>
11879 Edit comment with bare anchor link (non-local, as on history)
11882 title=[[Main Page]]
11886 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11890 Anchor starting with underscore
11894 <p><a href="#_ref">One</a>
11899 Id starting with underscore
11901 <div id="_ref"></div>
11903 <div id="_ref"></div>
11908 Space normalisation on autocomment (bug 22784)
11911 title=[[Main Page]]
11913 /* __hello__world__ */
11915 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11919 percent-encoding and + signs in comments (Bug 26410)
11923 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11925 <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>
11929 Bad images - basic functionality
11938 Bad images - bug 16039: text after bad image disappears
11952 Verify that displaytitle works (bug #22501) no displaytitle
11956 wgAllowDisplayTitle=true
11957 wgRestrictDisplayTitle=false
11959 this is not the the title
11962 <p>this is not the the title
11967 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11972 wgAllowDisplayTitle=true
11973 wgRestrictDisplayTitle=false
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 mismatch
11989 wgAllowDisplayTitle=true
11990 wgRestrictDisplayTitle=true
11992 this is not the the title
11993 {{DISPLAYTITLE:whatever}}
11996 <p>this is not the the title
12001 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12006 wgAllowDisplayTitle=true
12007 wgRestrictDisplayTitle=true
12009 this is not the the title
12010 {{DISPLAYTITLE:screen}}
12013 <p>this is not the the title
12018 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12023 wgAllowDisplayTitle=false
12025 this is not the the title
12026 {{DISPLAYTITLE:screen}}
12029 <p>this is not the the title
12030 <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>
12035 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12040 wgAllowDisplayTitle=false
12042 this is not the the title
12045 <p>this is not the the title
12050 preload: check <noinclude> and <includeonly>
12054 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12060 preload: check <onlyinclude>
12064 Goodbye <onlyinclude>Hello world</onlyinclude>
12070 preload: can pass tags through if we want to
12074 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12076 <includeonly>Hello world</includeonly>
12080 preload: check that it doesn't try to do tricks
12084 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12086 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12090 Play a bit with r67090 and bug 3158
12094 <div style="width:50% !important"> </div>
12095 <div style="width:50% !important"> </div>
12096 <div style="width:50% !important"> </div>
12097 <div style="border : solid;"> </div>
12099 <div style="width:50% !important"> </div>
12100 <div style="width:50% !important"> </div>
12101 <div style="width:50% !important"> </div>
12102 <div style="border : solid;"> </div>
12107 HTML5 data attributes
12109 <span data-foo="bar">Baz</span>
12110 <p data-abc-def_hij="">Quuz</p>
12112 <p><span data-foo="bar">Baz</span>
12114 <p data-abc-def_hij="">Quuz</p>
12119 percent-encoding and + signs in internal links (Bug 26410)
12121 [[User:+%]] [[Page+title%]]
12122 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12123 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12124 [[%33%45]] [[%33%45+]]
12126 <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>
12127 <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>
12128 <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>
12129 <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>
12134 Special characters in embedded file links (bug 27679)
12136 [[File:Contains & ampersand.jpg]]
12137 [[File:Does not exist.jpg|Title with & ampersand]]
12139 <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>
12140 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12146 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12148 Text's been normalized?
12150 <p>Text's been normalized?
12155 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12157 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12159 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12164 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12166 [http://www.example.org/ ideograms]
12168 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12173 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12175 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12177 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12201 Bug 31098 Template which includes system messages which includes the template
12205 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12206 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12211 Bug31490 Turkish: ucfirst 'blah'
12222 Bug31490 Turkish: ucfirst 'ix'
12233 Bug31490 Turkish: lcfirst 'BLAH'
12244 Bug31490 Turkish: ucfırst (with a dotless i)
12250 <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>
12255 Bug31490 ucfırst (with a dotless i) with English language
12261 <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>
12266 Bug 26375: TOC with italics
12268 title=[[Main Page]]
12271 == ''Lost'' episodes ==
12273 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12275 <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>
12278 <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>
12283 Bug 26375: TOC with bold
12285 title=[[Main Page]]
12288 == '''should be bold''' then normal text ==
12290 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12292 <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>
12295 <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>
12300 Bug 33845: Headings become cursive in TOC when they contain an image
12302 title=[[Main Page]]
12305 == Image [[Image:foobar.jpg]] ==
12307 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12309 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12312 <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>
12317 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12319 title=[[Main Page]]
12322 == <blockquote>Quote</blockquote> ==
12324 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12326 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12329 <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>
12334 Unclosed tags in TOC
12336 title=[[Main Page]]
12340 <small>Hanc marginis exiguitas non caperet.</small>
12343 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12345 <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>
12348 <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>
12349 <p><small>Hanc marginis exiguitas non caperet.</small>
12355 Multiple tags in TOC
12358 == <i>Foo</i> <b>Bar</b> ==
12360 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12362 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12364 <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>
12365 <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>
12368 <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>
12369 <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>
12374 Tags with parameters in TOC
12377 == <sup class="in-h2">Hello</sup> ==
12379 == <sup class="a > b">Evilbye</sup> ==
12381 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12383 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12384 <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>
12387 <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>
12388 <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>
12393 span tags with directionality in TOC
12396 == <span dir="ltr">C++</span> ==
12398 == <span dir="rtl">זבנג!</span> ==
12400 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12402 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12404 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12406 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12408 <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>
12409 <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>
12410 <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>
12411 <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>
12412 <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>
12415 <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>
12416 <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>
12417 <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>
12418 <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>
12419 <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>
12426 == {{int:headline_sample}} ==
12430 Bug 32057: Title needed when expanding <h> nodes.
12432 title=[[Main Page]]
12436 <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>
12441 Strip marker in urlencode
12443 {{urlencode:x<nowiki/>y}}
12444 {{urlencode:x<nowiki/>y|wiki}}
12445 {{urlencode:x<nowiki/>y|path}}
12472 Strip marker in formatNum
12474 {{formatnum:1<nowiki/>2}}
12475 {{formatnum:1<nowiki/>2|R}}
12483 Strip marker in grammar
12487 {{grammar:elative|foo<nowiki/>bar}}
12494 Strip marker in padleft
12496 {{padleft:|2|x<nowiki/>y}}
12503 Strip marker in padright
12505 {{padright:|2|x<nowiki/>y}}
12512 Strip marker in anchorencode
12514 {{anchorencode:x<nowiki/>y}}
12521 nowiki inside link inside heading (bug 18295)
12523 ==[[foo|x<nowiki>y</nowiki>z]]==
12525 <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>
12530 new support for bdi element (bug 31817)
12532 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12534 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12539 Ignore pipe between table row attributes
12543 |- id=foo | style='color: red'
12551 <tr id="foo" style="color: red">
12558 Gallery override link with WikiLink (bug 34852)
12561 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12564 <ul class="gallery">
12565 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12566 <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>
12567 <div class="gallerytext">
12577 Gallery override link with absolute external link (bug 34852)
12580 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12583 <ul class="gallery">
12584 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12585 <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>
12586 <div class="gallerytext">
12596 Gallery override link with malicious javascript (bug 34852)
12599 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12602 <ul class="gallery">
12603 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12604 <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>
12605 <div class="gallerytext">
12615 Language parser function
12624 Padleft and padright as substr
12626 {{padleft:|3|abcde}}
12627 {{padright:|3|abcde}}
12635 Bug 34939 - Case insensitive link parsing ([HttP://])
12637 [HttP://MediaWiki.Org/]
12639 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12644 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12646 [HttP://MediaWiki.Org/ MediaWiki]
12648 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12653 Bug 34939 - Case insensitive link parsing (HttP://)
12655 HttP://MediaWiki.Org/
12657 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12662 ### Parsoids-specific tests
12663 ### Parsoid-PHP parser incompatibilities
12666 1. SOL-sensitive wikitext tokens as template-args
12680 #### The following section of tests are primarily to test
12681 #### wikitext escaping capabilities of Parsoid.
12682 #### A lot of the tests are disabled for the PHP parser either
12683 #### because of minor newline diffs or other reasons.
12684 #### As Parsoid serializer can handle newlines and other HTML
12685 #### more robustly, some of these tests might get reenabled
12686 #### for the PHP parser.
12688 #### --------------- Headings ---------------
12690 #### 1. Nested inside html <h1>=foo=</h1>
12691 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12692 #### 3. Nested inside html with wikitext split by html tags
12693 #### 4. No escape needed
12694 #### 5. Empty headings <h1></h1>
12695 #### 6. Heading chars in SOL context
12696 #### ----------------------------------------
12698 Headings: 0. Unnested
12700 <nowiki>=foo=</nowiki>
12702 <nowiki>=foo</nowiki>''a''=
12705 </p><p>=foo<i>a</i>=
12710 Headings: 1. Nested inside html
12714 =<nowiki>=foo=</nowiki>=
12715 ==<nowiki>=foo=</nowiki>==
12716 ===<nowiki>=foo=</nowiki>===
12717 ====<nowiki>=foo=</nowiki>====
12718 =====<nowiki>=foo=</nowiki>=====
12719 ======<nowiki>=foo=</nowiki>======
12730 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12735 <nowiki>*bar</nowiki>
12739 <nowiki>=bar=</nowiki>
12747 Headings: 3. Nested inside html with wikitext split by html tags
12751 =<nowiki>=</nowiki>'''bold'''foo==
12753 <h1>=<b>bold</b>foo=</h1>
12757 Headings: 4. No escaping needed (testing just h1 and h2)
12772 <h1><i>=</i>foo=</h1>
12777 Headings: 5. Empty headings
12781 =<nowiki></nowiki>=
12782 ==<nowiki></nowiki>==
12783 ===<nowiki></nowiki>===
12784 ====<nowiki></nowiki>====
12785 =====<nowiki></nowiki>=====
12786 ======<nowiki></nowiki>======
12797 Headings: 6. Heading chars in SOL context
12801 <!--cmt--><nowiki>=h1=</nowiki>
12807 #### --------------- Lists ---------------
12808 #### 0. Outside nests (*foo, etc.)
12809 #### 1. Nested inside html <ul><li>*foo</li></ul>
12810 #### 2. Inside definition lists
12811 #### 3. Only bullets at start should be escaped
12812 #### 4. No escapes needed
12813 #### 5. No unnecessary escapes
12814 #### 6. Escape bullets in SOL position
12815 #### 7. Escape bullets in a multi-line context
12816 #### ----------------------------------------
12819 Lists: 0. Outside nests
12821 <nowiki>*foo</nowiki>
12823 <nowiki>#foo</nowiki>
12831 Lists: 1. Nested inside html
12833 *<nowiki>*foo</nowiki>
12835 *<nowiki>#foo</nowiki>
12837 *<nowiki>:foo</nowiki>
12839 *<nowiki>;foo</nowiki>
12841 #<nowiki>*foo</nowiki>
12843 #<nowiki>#foo</nowiki>
12845 #<nowiki>:foo</nowiki>
12847 #<nowiki>;foo</nowiki>
12869 Lists: 2. Inside definition lists
12871 ;<nowiki>;foo</nowiki>
12873 ;<nowiki>:foo</nowiki>
12875 ;<nowiki>:foo</nowiki>
12878 :<nowiki>:foo</nowiki>
12893 Lists: 3. Only bullets at start of text should be escaped
12895 *<nowiki>*foo*bar</nowiki>
12897 *<nowiki>*foo</nowiki>''it''*bar
12901 <ul><li>*foo<i>it</i>*bar
12907 Lists: 4. No escapes needed
12919 <ul><li><i>foo</i>*bar
12921 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12926 Lists: 5. No unnecessary escapes
12928 * bar <span><nowiki>[[foo]]</nowiki></span>
12930 *=bar <span><nowiki>[[foo]]</nowiki></span>
12932 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12934 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12936 *=bar <span>foo]]</span>=
12938 <ul><li> bar <span>[[foo]]</span>
12940 <ul><li>=bar <span>[[foo]]</span>
12942 <ul><li>[[bar <span>[[foo]]</span>
12944 <ul><li>]]bar <span>[[foo]]</span>
12946 <ul><li>=bar <span>foo]]</span>=
12952 Lists: 6. Escape bullets in SOL position
12956 <!--cmt--><nowiki>*foo</nowiki>
12963 Lists: 7. Escape bullets in a multi-line context
12973 #### --------------- HRs ---------------
12974 #### 1. Single line
12975 #### -----------------------------------
12978 HRs: 1. Single line
12983 <nowiki>----</nowiki>
12985 <nowiki>=foo=</nowiki>
12987 <nowiki>*foo</nowiki>
12994 #### --------------- Tables ---------------
12995 #### 1a. Simple example
12996 #### 1b. No escaping needed (!foo)
12997 #### 1c. No escaping needed (|foo)
12998 #### 1d. No escaping needed (|}foo)
13000 #### 2a. Nested in td (<td>foo|bar</td>)
13001 #### 2b. Nested in td (<td>foo||bar</td>)
13002 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13004 #### 3a. Nested in th (<th>foo!bar</th>)
13005 #### 3b. Nested in th (<th>foo!!bar</th>)
13006 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13010 #### 4c. No escaping needed
13011 #### --------------------------------------
13014 Tables: 1a. Simple example
13025 Tables: 1b. No escaping needed
13034 Tables: 1c. No escaping needed
13043 Tables: 1d. No escaping needed
13052 Tables: 2a. Nested in td
13057 |<nowiki>foo|bar</nowiki>
13067 Tables: 2b. Nested in td
13072 |<nowiki>foo||bar</nowiki>
13073 |''it''<nowiki>foo||bar</nowiki>
13078 </td><td><i>it</i>foo||bar
13084 Tables: 2c. Nested in td -- no escaping needed
13099 Tables: 3a. Nested in th
13114 Tables: 3b. Nested in th
13119 !<nowiki>foo!!bar</nowiki>
13129 Tables: 3c. Nested in th -- no escaping needed
13144 Tables: 4a. Escape -
13152 |<nowiki>-bar</nowiki>
13156 <tr><th>-bar</th></tr>
13157 <tr><td>-bar</td></tr>
13162 Tables: 4b. Escape +
13170 |<nowiki>+bar</nowiki>
13174 <tr><th>+bar</th></tr>
13175 <tr><td>+bar</td></tr>
13180 Tables: 4c. No escaping needed
13194 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13195 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13199 #### --------------- Links ---------------
13200 #### 1. Quote marks in link text
13201 #### 2. Wikilinks: Escapes needed
13202 #### 3. Wikilinks: No escapes needed
13203 #### 4. Extlinks: Escapes needed
13204 #### 5. Extlinks: No escapes needed
13205 #### --------------------------------------
13207 Links 1. Quote marks in link text
13211 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13213 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13217 Links 2. WikiLinks: Escapes needed
13221 [[Foo|<nowiki>[Foobar]</nowiki>]]
13222 [[Foo|<nowiki>Foobar]</nowiki>]]
13223 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13224 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13225 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13226 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13227 [[Foo|<nowiki>|Bar</nowiki>]]
13229 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13230 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13231 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13232 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13233 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13234 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13235 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13239 Links 3. WikiLinks: No escapes needed
13246 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13247 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13251 Links 4. ExtLinks: Escapes needed
13255 [http://google.com <nowiki>[google]</nowiki>]
13256 [http://google.com <nowiki>google]</nowiki>]
13258 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13259 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13263 Links 5. ExtLinks: No escapes needed
13267 [http://google.com [google]
13269 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13272 #### --------------- Quotes ---------------
13273 #### 1. Quotes inside <b> and <i>
13274 #### 2. Link fragments separated by <i> and <b> tags
13275 #### 3. Link fragments inside <i> and <b>
13276 #### --------------------------------------
13278 1. Quotes inside <b> and <i>
13280 ''<nowiki>'foo'</nowiki>''
13281 ''<nowiki>''foo''</nowiki>''
13282 ''<nowiki>'''foo'''</nowiki>''
13283 '''<nowiki>'foo'</nowiki>'''
13284 '''<nowiki>''foo''</nowiki>'''
13285 '''<nowiki>'''foo'''</nowiki>'''
13286 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13294 <b>foo'<i>bar'</i>baz</b>
13299 2. Link fragments separated by <i> and <b> tags
13301 [[''foo''<nowiki>hello]]</nowiki>
13303 [['''foo'''<nowiki>hello]]</nowiki>
13305 <p>[[<i>foo</i>hello]]
13306 </p><p>[[<b>foo</b>hello]]
13311 2. Link fragments inside <i> and <b>
13312 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13313 this is one of the shortcomings of this format)
13315 ''[[foo''<nowiki>]]</nowiki>
13317 '''[[foo'''<nowiki>]]</nowiki>
13320 </p><p><b>[[foo</b>]]
13324 #### --------------- Paragraphs ---------------
13325 #### 1. No unnecessary escapes
13326 #### --------------------------------------
13329 1. No unnecessary escapes
13331 bar <span><nowiki>[[foo]]</nowiki></span>
13333 =bar <span><nowiki>[[foo]]</nowiki></span>
13335 [[bar <span><nowiki>[[foo]]</nowiki></span>
13337 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13339 <nowiki>=bar </nowiki><span>foo]]</span>=
13341 <p>bar <span>[[foo]]</span>
13342 </p><p>=bar <span>[[foo]]</span>
13343 </p><p>[[bar <span>[[foo]]</span>
13344 </p><p>]]bar <span>[[foo]]</span>
13345 </p><p>=bar <span>foo]]</span>=
13349 #### --------------- PRE ------------------
13350 #### 1. Leading space in SOL context should be escaped
13351 #### --------------------------------------
13353 1. Leading space in SOL context should be escaped
13357 <nowiki> foo</nowiki>
13358 <!--cmt--><nowiki> foo</nowiki>
13365 #### --------------- HTML tags ---------------
13368 #### 3. multi-line html tag
13369 #### --------------------------------------
13375 <a href="http://google.com">google</a>
13377 <a href="http://google.com">google</a>
13383 <nowiki><div>foo</div>
13384 <div style="color:red">foo</div></nowiki>
13386 <p><div>foo</div>
13387 <div style="color:red">foo</div>
13392 3. multi-line html tag
13404 #### --------------- Others ---------------
13408 <nowiki>foo</nowiki>
13410 <p><nowiki>foo</nowiki>
13415 Tag-like HTML structures are passed through as text
13437 </p><p>1<d e>f
13442 # This fails in the PHP parser (see bug 40670,
13443 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13445 Tag names followed by punctuation should not be recognized as tags
13451 <p><s.ome> text
13456 HTML tag with necessary entities in attributes
13458 <span title="&amp;">foo</span>
13460 <p><span title="&amp;">foo</span>
13465 HTML tag with 'unnecessary' entity encoding in attributes
13467 <span title="&">foo</span>
13469 <p><span title="&">foo</span>
13478 Try for 100% code coverage