1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
93 Template:echo_with_span
99 Template:echo_with_div
111 Template:table_attribs
114 |</noinclude>style="color: red"| Foo
136 This is a simple paragraph.
138 <p>This is a simple paragraph.
143 Paragraphs with extra newline spacing
181 * plain''italic''plain
182 * plain''italic''plain''italic''plain
183 * plain'''bold'''plain
184 * plain'''bold'''plain'''bold'''plain
185 * plain''italic''plain'''bold'''plain
186 * plain'''bold'''plain''italic''plain
187 * plain''italic'''bold-italic'''italic''plain
188 * plain'''bold''bold-italic''bold'''plain
189 * plain'''''bold-italic'''italic''plain
190 * plain'''''bold-italic''bold'''plain
191 * plain''italic'''bold-italic'''''plain
192 * plain'''bold''bold-italic'''''plain
193 * plain l'''italic''plain
194 * plain l''''bold''' plain
197 </li><li> plain<i>italic</i>plain
198 </li><li> plain<i>italic</i>plain<i>italic</i>plain
199 </li><li> plain<b>bold</b>plain
200 </li><li> plain<b>bold</b>plain<b>bold</b>plain
201 </li><li> plain<i>italic</i>plain<b>bold</b>plain
202 </li><li> plain<b>bold</b>plain<i>italic</i>plain
203 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
204 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
205 </li><li> plain<i><b>bold-italic</b>italic</i>plain
206 </li><li> plain<b><i>bold-italic</i>bold</b>plain
207 </li><li> plain<i>italic<b>bold-italic</b></i>plain
208 </li><li> plain<b>bold<i>bold-italic</i></b>plain
209 </li><li> plain l'<i>italic</i>plain
210 </li><li> plain l'<b>bold</b> plain
216 ### 2-quote opening sequence tests
219 Italics and bold: 2-quote opening sequence: (2,2)
229 Italics and bold: 2-quote opening sequence: (2,3)
239 Italics and bold: 2-quote opening sequence: (2,4)
249 Italics and bold: 2-quote opening sequence: (2,5)
259 ### 3-quote opening sequence tests
263 Italics and bold: 3-quote opening sequence: (3,2)
273 Italics and bold: 3-quote opening sequence: (3,3)
283 Italics and bold: 3-quote opening sequence: (3,4)
293 Italics and bold: 3-quote opening sequence: (3,5)
303 ### 4-quote opening sequence tests
307 Italics and bold: 4-quote opening sequence: (4,2)
317 Italics and bold: 4-quote opening sequence: (4,3)
327 Italics and bold: 4-quote opening sequence: (4,4)
337 Italics and bold: 4-quote opening sequence: (4,5)
347 ### 5-quote opening sequence tests
351 Italics and bold: 5-quote opening sequence: (5,2)
361 Italics and bold: 5-quote opening sequence: (5,3)
371 Italics and bold: 5-quote opening sequence: (5,4)
375 <p><i><b>foo'</b></i>
381 Italics and bold: 5-quote opening sequence: (5,5)
390 ### multiple quote sequences in a line
393 Italics and bold: multiple quote sequences: (2,4,2)
397 <p><i>foo'<b>bar</b></i>
403 Italics and bold: multiple quote sequences: (2,4,3)
407 <p><i>foo'<b>bar</b></i>
413 Italics and bold: multiple quote sequences: (2,4,4)
417 <p><i>foo'<b>bar'</b></i>
423 Italics and bold: multiple quote sequences: (3,4,2)
433 Italics and bold: multiple quote sequences: (3,4,3)
442 ### other quote tests
445 Italics and bold: other quote tests: (2,3,5)
447 ''this is about '''foo's family'''''
449 <p><i>this is about <b>foo's family</b></i>
455 Italics and bold: other quote tests: (2,(3,3),2)
457 ''this is about '''foo's''' family''
459 <p><i>this is about <b>foo's</b> family</i>
465 Italics and bold: other quote tests: (3,2,3,2)
467 '''this is about ''foo'''s family''
469 <p><b>this is about <i>foo</i></b><i>s family</i>
475 Italics and bold: other quote tests: (3,2,3,3)
477 '''this is about ''foo'''s family'''
479 <p>'<i>this is about </i>foo<b>s family</b>
486 Italics and bold: other quote tests: (3,(2,2),3)
488 '''this is about ''foo's'' family'''
490 <p><b>this is about <i>foo's</i> family</b>
495 ### <nowiki> test cases
499 <nowiki> unordered list
501 <nowiki>* This is not an unordered list item.</nowiki>
503 <p>* This is not an unordered list item.
510 <nowiki>Lorem ipsum dolor
531 :There is not nowiki.
532 :There is <nowiki>nowiki</nowiki>.
534 #There is not nowiki.
535 #There is <nowiki>nowiki</nowiki>.
537 *There is not nowiki.
538 *There is <nowiki>nowiki</nowiki>.
540 <dl><dd>There is not nowiki.
541 </dd><dd>There is nowiki.
543 <ol><li>There is not nowiki.
544 </li><li>There is nowiki.
546 <ul><li>There is not nowiki.
547 </li><li>There is nowiki.
557 Comments and Indent-Pre
559 <!-- comment 1 --> asdf
561 <!-- comment 1 --> asdf
564 <!-- comment 1 --> asdf
565 <!-- comment 2 -->xyz
567 <!-- comment 1 --> asdf
568 <!-- comment 2 --> xyz
624 asdf<!-- comment 1 -->jkl
634 <!-- foo --> b <!-- bar -->
648 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
654 Comment semantics and delimiters
656 <!-- --><!----><!-----><!------>
662 Comment semantics and delimiters, redux
664 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
665 -- foo -- funky huh? ... -->
671 Comment semantics and delimiters: directors cut
673 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
674 everything starting with < followed by !-- until the first -- and > we see,
675 that wouldn't be valid XML however, since in XML -- has to terminate a comment
683 Comment semantics: nesting
685 <!--<!-- no, we're not going to do anything fancy here -->-->
692 Comment semantics: unclosed comment at end
694 <!--This comment will run out to the end of the document
700 Comment in template title
709 Comment on its own line post-expand
721 Comment on its own line post-expand with non-significant whitespace
733 ### paragraph wraping tests
747 Block tag on one line
759 Block tag on both lines
771 Multiple lines without block tags
789 ### Preformatted text
798 And a [[Main Page|link]]
804 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
809 Ident preformatting with inline content
820 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
837 Regression with preformatted in <center>
850 # Expected output in the following test is not really expected (there should be
851 # <pre> in the output) -- it's only testing for well-formedness.
853 Bug 6200: Preformatted in <blockquote>
866 <pre> with attributes (bug 3202)
868 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
870 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
875 <pre> with width attribute (bug 3202)
877 <pre width="8">Narrow screen goodies</pre>
879 <pre width="8">Narrow screen goodies</pre>
884 <pre> with forbidden attribute (bug 3202)
886 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
888 <pre width="8">Narrow screen goodies</pre>
893 <pre> with forbidden attribute values (bug 3202)
895 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
897 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
902 <nowiki> inside <pre> (bug 13238)
910 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
918 <pre><nowiki>Foo</nowiki></pre>
923 <nowiki> and <pre> preference (first one wins)
956 <nowiki></pre></nowiki>
963 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
971 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
981 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
993 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1014 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1018 {{echo| foo}}{{echo| bar}}
1023 {{echo|<!--cmt--> foo}}
1025 <!--cmt-->{{echo| foo}}
1027 {{echo|{{echo| }}bar}}
1045 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1082 Templates: Single-line variant of parameter whitespace stripping test
1088 {{echo|{{echo| a}}}}
1090 {{echo|1={{echo| a}}}}
1103 Templates: Strip whitespace from named parameters, but not positional ones
1131 ### Parsoid-centric tests for testing RT edge cases for pre
1135 1a. Indent-Pre and Comments
1148 1b. Indent-Pre and Comments
1161 1c. Indent-Pre and Comments
1174 2a. Indent-Pre and tables
1195 2b. Indent-Pre and tables
1211 3a. Indent-Pre and block tags (single-line html)
1219 <pre><span> foo </span>
1224 3b. Indent-Pre and block tags (pre-content on separate line)
1276 4. Multiple spaces at start-of-line
1295 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1299 HTML-pre: 1. embedded newlines
1335 HTML-pre: 2: indented text
1348 HTML-pre: 3: other wikitext
1369 ### Definition lists
1376 <dl><dt> name </dt><dd> Definition
1382 Definition list for indentation only
1386 <dl><dd> Indented text
1392 Definition list with no space
1396 <dl><dt>name</dt><dd>Definition
1402 Definition list with URL link
1404 ; http://example.com/ : definition
1406 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1412 Definition list with bracketed URL link
1414 ;[http://www.example.com/ Example]:Something about it
1416 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1422 Definition list with wikilink containing colon
1424 ; [[Help:FAQ]]: The least-read page on Wikipedia
1426 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1431 # At Brion's and JeLuF's insistence... :)
1433 Definition list with news link containing colon
1435 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1437 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1443 Malformed definition list with colon
1445 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1447 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1453 Definition lists: colon in external link text
1455 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1457 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1463 Definition lists: colon in HTML attribute
1465 ;<b style="display: inline">bold</b>
1467 <dl><dt><b style="display: inline">bold</b>
1473 Definition lists: self-closed tag
1475 ;one<br/>two : two-line fun
1477 <dl><dt>one<br />two </dt><dd> two-line fun
1483 Bug 11748: Literal closing tags
1487 <dd>test test test test test</dd>
1489 <dd>test test test test test</dd>
1494 <dd>test test test test test</dd>
1496 <dd>test test test test test</dd>
1502 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1505 ; term : description
1511 <dl><dt> term </dt><dd> description
1522 Definition list with empty definition and following paragraph
1527 <dl><dt> term</dt><dd>
1534 Nested definition lists using html syntax
1551 Definition Lists: No nesting: Multiple dd's
1565 Definition Lists: Indentation: Regular
1581 Definition Lists: Indentation: Missing 1st level
1595 Definition Lists: Indentation: Multi-level indent
1599 <dl><dd><dl><dd><dl><dd>i3
1607 Definition Lists: Hacky use to indent tables
1614 should be left alone
1616 <dl><dd><dl><dd><table>
1621 </td></tr></table></dd></dl></dd></dl>
1623 should be left alone
1626 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1627 ## as an empty dt item. It also ignores all but the last ";" when followed
1628 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1629 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1632 ## Ex: ";;t2 ::d2" is transformed into:
1644 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1645 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1656 ## All Parsoid only definition list tests have this difference.
1658 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1659 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1662 Table / list interaction: indented table with lists in table contents
1684 </td></tr></table></dd></dl>
1689 Table / list interaction: lists nested in tables nested in indented lists
1714 </td></tr></table></dd></dl>
1722 Definition Lists: Nesting: Multi-level (Parsoid only)
1752 Definition Lists: Nesting: Test 2 (Parsoid only)
1772 Definition Lists: Nesting: Test 3 (Parsoid only)
1800 Definition Lists: Nesting: Test 4
1805 <dl><dd><dl><dd><dl><dt>t3
1815 Definition Lists: Mixed Lists: Test 1
1821 <dl><dd><dl><dt><ul><li> foo
1833 Definition Lists: Mixed Lists: Test 2
1847 Definition Lists: Mixed Lists: Test 3
1852 <ul><li><dl><dd><dl><dd><dl><dd> d1
1863 Definition Lists: Mixed Lists: Test 4
1868 <ul><li><dl><dt>d1 </dt><dd>d2
1869 </dd><dt>d3 </dt><dd>d4
1877 Definition Lists: Mixed Lists: Test 5
1892 Definition Lists: Mixed Lists: Test 6
1897 <ol><li><ul><li><dl><dd>d1
1909 Definition Lists: Mixed Lists: Test 7
1923 Definition Lists: Mixed Lists: Test 8
1939 Definition Lists: Mixed Lists: Test 9
1943 <ul><li><dl><dt>foo </dt><dd>bar
1951 Definition Lists: Mixed Lists: Test 10
1955 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1964 Definition Lists: Mixed Lists: Test 11
1969 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1974 <dl><dt>boo </dt><dd>baz
1985 Definition Lists: Weird Ones: Test 1
1987 *#;*::;; foo : bar (who uses this?)
1989 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2005 External links: non-bracketed
2007 Non-bracketed: http://example.com
2009 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2014 External links: numbered
2016 Numbered: [http://example.com]
2017 Numbered: [http://example.net]
2018 Numbered: [http://example.com]
2020 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2021 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2022 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2027 External links: specified text
2029 Specified text: [http://example.com link]
2031 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2036 External links: trail
2038 Linktrails should not work for external links: [http://example.com link]s
2040 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2045 External links: dollar sign in URL
2047 http://example.com/1$2345
2049 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2054 External links: dollar sign in URL (named)
2056 [http://example.com/1$2345]
2058 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2063 External links: open square bracket forbidden in URL (bug 4377)
2065 http://example.com/1[2345
2067 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2072 External links: open square bracket forbidden in URL (named) (bug 4377)
2074 [http://example.com/1[2345]
2076 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2081 External links: nowiki in URL link text (bug 6230)
2083 [http://example.com/ <nowiki>''example site''</nowiki>]
2085 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2090 External links: newline forbidden in text (bug 6230 regression check)
2092 [http://example.com/ first
2095 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2101 External links: Pipe char between url and text
2103 [http://example.com | link]
2105 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2110 External links: protocol-relative URL in brackets
2112 [//example.com/ Test]
2114 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2119 External links: protocol-relative URL in brackets without text
2123 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2128 External links: protocol-relative URL in free text is left alone
2132 <p>//example.com/Foo
2137 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2139 foo//example.com/Foo
2141 <p>foo//example.com/Foo
2148 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2150 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2155 External image from https
2157 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2159 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2164 Link to non-http image, no img tag
2166 Link to non-http image, no img tag: ftp://example.com/test.jpg
2168 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2173 External links: terminating separator
2175 Terminating separator: http://example.com/thing,
2177 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2182 External links: intervening separator
2184 Intervening separator: http://example.com/1,2,3
2186 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2191 External links: old bug with URL in query
2193 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2195 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2200 External links: old URL-in-URL bug, mixed protocols
2202 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2204 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2209 External links: URL in text
2211 URL in text: [http://example.com http://example.com]
2213 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2218 External links: Clickable images
2220 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2222 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2227 External links: raw ampersand
2229 Old & use: http://x&y
2231 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2236 External links: encoded ampersand
2238 Old & use: http://x&y
2240 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2245 External links: encoded equals (bug 6102)
2247 http://example.com/?foo=bar
2249 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2254 External links: [raw ampersand]
2256 Old & use: [http://x&y]
2258 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2263 External links: [encoded ampersand]
2265 Old & use: [http://x&y]
2267 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2272 External links: [encoded equals] (bug 6102)
2274 [http://example.com/?foo=bar]
2276 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2281 External links: [IDN ignored character reference in hostname; strip it right off]
2283 [http://e‌xample.com/]
2285 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2289 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2290 # Where an external link could easily circumvent the sanitization of the text of
2291 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2292 # test demands a higher standard. That's a bit strange.
2296 # http://example.com -> [http://example.com|http://example.com]
2297 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2299 # The first example is sanitized, but the second is not. Any security benefits
2300 # from this production are trivial to circumvent. Either remove this test and
2301 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2302 # the test accordingly.
2307 External links: IDN ignored character reference in hostname; strip it right off
2309 http://e‌xample.com/
2311 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2316 External links: www.jpeg.org (bug 554)
2320 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2325 External links: URL within URL (original bug 2)
2327 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2329 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2334 BUG 361: URL inside bracketed URL
2336 [http://www.example.com/foo http://www.example.com/bar]
2338 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2343 BUG 361: URL within URL, not bracketed
2345 http://www.example.com/foo?=http://www.example.com/bar
2347 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2352 BUG 289: ">"-token in URL-tail
2354 http://www.example.com/<hello>
2356 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2361 BUG 289: literal ">"-token in URL-tail
2363 http://www.example.com/<b>html</b>
2365 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2370 BUG 289: ">"-token in bracketed URL
2372 [http://www.example.com/<hello> stuff]
2374 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2379 BUG 289: literal ">"-token in bracketed URL
2381 [http://www.example.com/<b>html</b> stuff]
2383 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2388 BUG 289: literal double quote at end of URL
2390 http://www.example.com/"hello"
2392 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2397 BUG 289: literal double quote in bracketed URL
2399 [http://www.example.com/"hello" stuff]
2401 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2406 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2408 [http://www.example.com test]
2410 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2415 External links: wiki links within external link (Bug 3695)
2417 [http://example.com [[wikilink]] embedded in ext link]
2419 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2424 BUG 787: Links with one slash after the url protocol are invalid
2428 [http:/example.com title]
2430 <p>http:/example.com
2431 </p><p>[http:/example.com title]
2436 Bracketed external links with template-generated invalid target
2438 [{{echo|http:/example.com}} title]
2440 <p>[http:/example.com title]
2445 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2447 ''[http://example.com text'']
2448 [http://example.com '''text]'''
2449 ''Something [http://example.com in italic'']
2450 ''Something [http://example.com mixed''''', even bold]'''
2451 '''''Now [http://example.com both''''']
2453 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2454 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2455 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2456 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2457 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2463 Bug 4781: %26 in URL
2465 http://www.example.com/?title=AT%26T
2467 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2471 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2472 # % is actually legal in HTML5. Any change in output would need testing though.
2474 Bug 4781, 5267: %25 in URL
2476 http://www.example.com/?title=100%25_Bran
2478 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2483 Bug 4781, 5267: %28, %29 in URL
2485 http://www.example.com/?title=Ben-Hur_%281959_film%29
2487 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2493 Bug 4781: %26 in autonumber URL
2495 [http://www.example.com/?title=AT%26T]
2497 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2502 Bug 4781, 5267: %26 in autonumber URL
2504 [http://www.example.com/?title=100%25_Bran]
2506 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2511 Bug 4781, 5267: %28, %29 in autonumber URL
2513 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2515 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2521 Bug 4781: %26 in bracketed URL
2523 [http://www.example.com/?title=AT%26T link]
2525 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2530 Bug 4781, 5267: %26 in bracketed URL
2532 [http://www.example.com/?title=100%25_Bran link]
2534 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2539 Bug 4781, 5267: %28, %29 in bracketed URL
2541 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2543 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2548 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2550 Some [http://example.com/ pretty ''italics'' and stuff]!
2552 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2557 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2559 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2561 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2566 External link containing double-single-quotes with no space separating the url from text in italics
2568 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2570 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2575 URL-encoding in URL functions (single parameter)
2577 {{localurl:Some page|amp=&}}
2579 <p>/index.php?title=Some_page&amp=&
2584 URL-encoding in URL functions (multiple parameters)
2586 {{localurl:Some page|q=?&=&}}
2588 <p>/index.php?title=Some_page&q=?&amp=&
2595 http://example.com/index.php?foozoid%5B%5D=bar
2597 http://example.com/index.php?foozoid[]=bar
2599 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2600 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2605 IPv6 urls (bug 21261)
2609 http://[2404:130:0:1000::187:2]/index.php
2611 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
2616 Non-extlinks in brackets
2625 [{{echo|foo}} ''bar'']
2626 [{{echo|foo}}l's] errand
2627 [{{echo|foo}}l's errand]
2649 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2651 Normal text. '''''Bold italic text.''''' Normal text.
2653 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2654 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2660 Unclosed and unmatched quotes
2662 '''''Bold italic text '''with bold deactivated''' in between.'''''
2664 '''''Bold italic text ''with italic deactivated'' in between.'''''
2668 ..spanning two paragraphs (should not work).'''
2670 '''Bold tag left open
2672 ''Italic tag left open
2676 <!-- Unmatching number of opening, closing tags: -->
2677 '''This year''''s election ''should'' beat '''last year''''s.
2679 ''Tom'''s car is bigger than ''Susan'''s.
2681 Plain ''italic'''s plain
2683 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2684 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2685 </p><p><b>Bold text..</b>
2686 </p><p>..spanning two paragraphs (should not work).
2687 </p><p><b>Bold tag left open</b>
2688 </p><p><i>Italic tag left open</i>
2690 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2691 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2692 </p><p>Plain <i>italic'</i>s plain
2699 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2702 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2703 # is the bare minimun required by the spec, see:
2704 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2706 A table with no data.
2712 # A table with nothing but a caption is invalid XHTML, we might want to render
2713 # this as <p>caption</p>
2715 A table with nothing but a caption
2723 </caption><tr><td></td></tr></table>
2728 Table td-cell syntax variations
2732 | foo bar foo || baz
2733 | style='color:red;' | baz
2734 | style='color:red;' || baz
2741 <td> foo bar foo </td>
2744 <td style="color:red;"> baz
2746 <td> style='color:red;' </td>
2774 Simple table but with multiple dashes for row wikitext
2792 Multiplication table
2794 {| border="1" cellpadding="2"
2795 |+Multiplication table
2797 ! × !! 1 !! 2 !! 3
2815 <table border="1" cellpadding="2">
2816 <caption>Multiplication table
2863 Accept "||" in table headings
2878 Accept "||" in indented table headings
2888 </th></tr></table></dd></dl>
2893 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2910 Accept "| !" at start of line in tables (ignore !-attribute)
2914 | !style="color:red" | bar
2926 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 +/-
2930 |style='color:red;'|+1
2931 |style='color:blue;'|-1
2943 <td style="color:red;">+1
2945 <td style="color:blue;">-1
2969 |rowspan=2| Cell 2, row 1 (and 2)
2980 <td rowspan="2"> Cell 2, row 1 (and 2)
2998 {| bgcolor=#ABCDEF border=2
3003 |the original table again
3011 <table bgcolor="#ABCDEF" border="2">
3019 <td>the original table again
3025 Invalid attributes in table cell (bug 1830)
3040 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3043 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3047 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3048 <td>]" onmouseover="alert(document.cookie)">test
3057 Indented table markup mixed with indented pre content (proposed in bug 6200)
3062 Text that should be rendered preformatted
3070 <pre>Text that should be rendered preformatted
3079 Template-generated table cell attributes and cell content
3087 <td style="color: red"> Foo
3093 Table with row followed by newlines and table heading
3110 # FIXME: Preserve the attribute properly (with an empty string as value) in
3111 # the PHP parser. Parsoid implements the behavior below.
3113 Table attributes with empty value
3129 Wikitext table with a lot of comments
3155 Plain link, capitalized
3159 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3164 Plain link, uncapitalized
3168 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3175 [[Main Page|The Main Page]]
3177 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3186 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3191 Broken link with fragment
3193 [[Zigzagzogzagzig#zug]]
3195 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3200 Special page link with fragment
3202 [[Special:Version#anchor]]
3204 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3209 Nonexistent special page link with fragment
3211 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3213 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3220 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3222 <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>
3229 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3231 <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>!!!
3236 Link with HTML entity in suffix / tail
3238 [[Main Page]]", [[Main Page]]a
3240 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3245 Link with 3 brackets
3254 Piped link with 3 brackets
3256 [[[main page|the main page]]]
3258 <p>[[[main page|the main page]]]
3263 Link with multiple pipes
3265 [[Main Page|The|Main|Page]]
3267 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3274 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3276 <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>
3281 Piped link to namespace
3283 [[Meta:Disclaimers|The disclaimers]]
3285 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3292 [[Usually caused by a typo (oops}]]
3294 <p>[[Usually caused by a typo (oops}]]
3299 Link containing % (not as a hex sequence)
3303 <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>
3308 Link containing % as a single hex sequence interpreted to char
3312 <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>
3317 Link containing % as a double hex sequence interpreted to hex sequence
3321 <p>[[7%2525 Solution]]
3326 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3327 Example for such a section: == < ==
3329 [[%23%3c]][[%23%3e]]
3331 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3336 Link containing "<#" and ">#" as a hex sequences
3338 [[%3c%23]][[%3e%23]]
3340 <p>[[%3c%23]][[%3e%23]]
3345 Link containing double-single-quotes '' (bug 4598)
3347 [[Lista d''e paise d''o munno]]
3349 <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>
3354 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3356 Some [[Link|pretty ''italics'' and stuff]]!
3358 <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>!
3363 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3365 ''Some [[Link|pretty ''italics'' and stuff]]!
3367 <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>
3372 Link with double quotes in title part (literal) and alternate part (interpreted)
3374 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3378 [[''Pentecoste''|Pentecoste]]
3380 [[''Pentecoste''|''Pentecoste'']]
3382 <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>
3383 </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>
3384 </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>
3385 </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>
3390 Broken image links with HTML captions (bug 39700)
3392 [[File:Nonexistent|<script></script>]]
3393 [[File:Nonexistent|100px|<script></script>]]
3394 [[File:Nonexistent|<]]
3395 [[File:Nonexistent|a<i>b</i>c]]
3397 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3398 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3399 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3400 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3407 [[http://www.example.com]]
3409 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3414 Plain link to URL with link text
3416 [[http://www.example.com Link text]]
3418 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3423 Plain link to protocol-relative URL
3425 [[//www.example.com]]
3427 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3432 Plain link to protocol-relative URL with link text
3434 [[//www.example.com Link text]]
3436 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3441 Plain link to page with question mark in title
3447 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3448 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3453 # I'm fairly sure the expected result here is wrong.
3454 # We want these to be URL links, not pseudo-pages with URLs for titles....
3455 # However the current output is also pretty screwy.
3458 # I'm changing it to match the current output--it arguably makes more
3459 # sense in the light of the test above. Old expected result was:
3460 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3462 # But I think this test is bordering on "garbage in, garbage out" anyway.
3467 Piped link to URL: [[http://www.example.com|an example URL]]
3469 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3474 BUG 2: [[page|http://url/]] should link to page, not http://url/
3476 [[Main Page|http://url/]]
3478 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3483 BUG 337: Escaped self-links should be bold
3487 [[Bug462]] [[Bug462]]
3489 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3494 Self-link to section should not be bold
3498 [[Main Page#section]]
3500 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3511 Self-link to numeric title
3517 <p><strong class="selflink">0</strong>
3522 Link to numeric-equivalent title
3528 <p><a href="/wiki/00" title="00">00</a>
3533 <nowiki> inside a link
3535 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3537 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3542 Non-breaking spaces in title
3544 [[ Main Page ]]
3546 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3551 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3557 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3562 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3568 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3573 Internal link with en linktrail: no apostrophes (bug 27473)
3579 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3584 Internal link with ca linktrail with apostrophes (bug 27473)
3590 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3595 Internal link with kaa linktrail with apostrophes (bug 27473)
3601 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3606 ### Interwiki links (see maintenance/interwiki.sql)
3610 Inline interwiki link
3612 [[MeatBall:SoftSecurity]]
3614 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3619 Inline interwiki link with empty title (bug 2372)
3623 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3628 Interwiki link encoding conversion (bug 1636)
3630 *[[Wikipedia:ro:Olteniţa]]
3631 *[[Wikipedia:ro:Olteniţa]]
3633 <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>
3634 </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>
3640 Interwiki link with fragment (bug 2130)
3642 [[MeatBall:SoftSecurity#foo]]
3644 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3659 Double interlanguage link
3670 Interlanguage link, with prefix links
3682 Double interlanguage link, with prefix links (bug 8897)
3695 Parsoid-specific test: Wikilinks with should RT properly
3701 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3719 Broken br tag sanitization
3728 Incorrecly removing closing slashes from correctly formed XHTML
3730 <br style="clear:both;" />
3732 <p><br style="clear:both;" />
3737 Failing to transform badly formed HTML into correct XHTML
3739 <br style="clear: left;">
3740 <br style="clear: right;">
3741 <br style="clear: both;">
3743 <p><br style="clear: left;" />
3744 <br style="clear: right;" />
3745 <br style="clear: both;" />
3750 Handling html with a div self-closing tag
3759 <p><div title />
3763 <p><div title=bar />
3764 <div title=bar/>
3766 <div title="bar/"></div>
3772 Handling html with a br self-closing tag
3781 <p><br title="title" />
3782 <br title="title" />
3791 Horizontal ruler (should it add that extra space?)
3805 Horizontal ruler -- 4+ dashes render hr
3814 Horizontal ruler -- eats additional dashes on the same line
3823 Horizontal ruler -- does not collaps dashes on consecutive lines
3834 Horizontal ruler -- <4 dashes render as plain text
3843 Horizontal ruler -- Supports content following dashes on same line
3852 ### Block-level elements
3875 <ol><li>Numbered list
3892 ***#Number on level 4
3894 **#Number on level 3
3895 **#Number on level 3
3899 #** Level 3, but ordered
3902 <ol><li> with numbers
3904 <ul><li> and bullets
3906 <ol><li> and numbers
3908 </li><li>bullets again
3909 <ul><li>bullet level 2
3910 <ul><li>bullet level 3
3911 <ol><li>Number on level 4
3914 </li><li>bullet level 2
3915 <ol><li>Number on level 3
3916 </li><li>Number on level 3
3919 <ol><li>number level 2
3922 <ul><li><ul><li> Level 3
3926 <ol><li><ul><li><ul><li> Level 3, but ordered
3960 Nested lists 3 (first element empty)
3973 Nested lists 4 (first element empty)
3986 Nested lists 5 (both elements empty)
3999 Nested lists 6 (both elements empty)
4012 Nested lists 7 (skip initial nesting levels)
4016 <ul><li><ul><li><ul><li> foo
4024 Nested lists 8 (multiple nesting transitions)
4032 <ul><li><ul><li> bar
4042 1. Lists with start-of-line-transparent tokens before bullets: Comments
4056 2. Lists with start-of-line-transparent tokens before bullets: Template close
4068 List items are not parsed correctly following a <pre> block (bug 785)
4074 <ul><li> <pre>foo</pre>
4075 </li><li> <pre>bar</pre>
4082 List items from template
4093 * notSOL{{inner list}}
4112 List interrupted by empty line or heading
4122 <ul><li><ul><li> bar
4125 <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>
4126 <ul><li> Another list item
4132 Multiple list tags generated by templates
4151 Magic Word: {{CURRENTDAY}}
4160 Magic Word: {{CURRENTDAY2}}
4169 Magic Word: {{CURRENTDAYNAME}}
4178 Magic Word: {{CURRENTDOW}}
4187 Magic Word: {{CURRENTMONTH}}
4196 Magic Word: {{CURRENTMONTHABBREV}}
4198 {{CURRENTMONTHABBREV}}
4205 Magic Word: {{CURRENTMONTHNAME}}
4207 {{CURRENTMONTHNAME}}
4214 Magic Word: {{CURRENTMONTHNAMEGEN}}
4216 {{CURRENTMONTHNAMEGEN}}
4223 Magic Word: {{CURRENTTIME}}
4232 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4241 Magic Word: {{CURRENTYEAR}}
4250 Magic Word: {{FULLPAGENAME}}
4252 title=[[User:Ævar Arnfjörð Bjarmason]]
4256 <p>User:Ævar Arnfjörð Bjarmason
4261 Magic Word: {{FULLPAGENAMEE}}
4263 title=[[User:Ævar Arnfjörð Bjarmason]]
4267 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4272 Magic Word: {{NAMESPACE}}
4274 title=[[User:Ævar Arnfjörð Bjarmason]]
4283 Magic Word: {{NAMESPACEE}}
4285 title=[[User:Ævar Arnfjörð Bjarmason]]
4294 Magic Word: {{NAMESPACENUMBER}}
4296 title=[[User:Ævar Arnfjörð Bjarmason]]
4305 Magic Word: {{NUMBEROFFILES}}
4314 Magic Word: {{PAGENAME}}
4316 title=[[User:Ævar Arnfjörð Bjarmason]]
4320 <p>Ævar Arnfjörð Bjarmason
4325 Magic Word: {{PAGENAME}} with metacharacters
4327 title=[['foo & bar = baz']]
4331 <p><i>'foo & bar = baz'</i>
4336 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4338 title=[[*RFC 1234 http://example.com/]]
4342 <p>*RFC 1234 http://example.com/
4347 Magic Word: {{PAGENAMEE}}
4349 title=[[User:Ævar Arnfjörð Bjarmason]]
4353 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4358 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4360 title=[[*RFC 1234 http://example.com/]]
4364 <p>*RFC_1234_http://example.com/
4369 Magic Word: {{REVISIONID}}
4378 Magic Word: {{SCRIPTPATH}}
4387 Magic Word: {{SERVER}}
4391 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4396 Magic Word: {{SERVERNAME}}
4405 Magic Word: {{SITENAME}}
4414 Namespace 1 {{ns:1}}
4423 Namespace 1 {{ns:01}}
4432 Namespace 0 {{ns:0}} (bug 4783)
4440 Namespace 0 {{ns:00}} (bug 4783)
4448 Namespace -1 {{ns:-1}}
4457 Namespace User {{ns:User}}
4466 Namespace User talk {{ns:User_talk}}
4475 Namespace User talk {{ns:uSeR tAlK}}
4484 Namespace File {{ns:File}}
4493 Namespace File {{ns:Image}}
4502 Namespace (lang=de) Benutzer {{ns:User}}
4513 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4519 <p>Benutzer Diskussion
4527 {{urlencode:hi world?!}}
4528 {{urlencode:hi world?!|WIKI}}
4529 {{urlencode:hi world?!|PATH}}
4530 {{urlencode:hi world?!|QUERY}}
4543 Magic links: internal link to RFC (bug 479)
4547 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4552 Magic links: RFC (bug 479)
4556 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4561 Magic links: ISBN (bug 1937)
4565 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4570 Magic links: PMID incorrectly converts space to underscore
4574 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4583 Nonexistent template
4585 {{thistemplatedoesnotexist}}
4587 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4592 Template with invalid target containing tags
4594 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4596 <p>{{a<b>b</b>|foo|a=b|a = b}}
4601 Template with invalid target containing unclosed tag
4603 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4605 <p>{{a<b>|foo|a=b|a = b}}</b>
4612 This is a test template
4620 <p>This is a test template
4625 Template with explicit namespace
4629 <p>This is a test template
4637 This is a test template with parameter {{{param}}}
4643 {{paramtest|param=foo}}
4645 <p>This is a test template with parameter foo
4650 Template:paramtestnum
4656 Template unnamed parameter
4658 {{paramtestnum|Main Page|the main page}}
4660 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4665 Template:templatesimple
4671 Template:templateredirect
4673 #redirect [[Template:templatesimple]]
4677 Template:templateasargtestnum
4683 Template:templateasargtest
4685 {{template{{{templ}}}}}
4689 Template:templateasargtest2
4695 Template with template name as unnamed argument
4697 {{templateasargtestnum|templatesimple}}
4704 Template with template name as argument
4706 {{templateasargtest|templ=simple}}
4713 Template with template name as argument (2)
4715 {{templateasargtest2|templ=templatesimple}}
4722 Template:templateasargtestdefault
4724 {{{{{templ|templatesimple}}}}}
4734 Template with default value
4736 {{templateasargtestdefault}}
4743 Template with default value (value set)
4745 {{templateasargtestdefault|templ=templa}}
4754 {{templateredirect}}
4761 Template with argument in separate line
4763 {{ templateasargtest |
4771 Template with complex template as argument
4774 param ={{ templateasargtest |
4777 <p>This is a test template with parameter (test)
4782 Template with thumb image (with link in description)
4785 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4787 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>
4792 Template:complextemplate
4794 {{{1}}} {{paramtest|
4795 param ={{{param}}}}}
4799 Template with complex arguments
4802 param ={{ templateasargtest |
4803 templ = simple }}|[[Template:complextemplate|link]]}}
4805 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4810 BUG 553: link with two variables in a piped link
4813 |[[{{{1}}}|{{{2}}}]]
4818 <td>[[{{{1}}}|{{{2}}}]]
4824 Magic variable as template parameter
4826 {{paramtest|param={{SITENAME}}}}
4828 <p>This is a test template with parameter MediaWiki
4835 [[{{{param}}}|link]]
4839 Template parameter as link source
4841 {{linktest|param=Main Page}}
4843 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4848 Template-generated attribute string (k='v')
4850 <span {{attr_str|id|v1}}>bar</span>
4852 <p><span id="v1">bar</span>
4859 including another template, {{paramtest|param={{{arg}}}}}
4863 Template passing argument to another template
4865 {{paramtest2|arg='hmm'}}
4867 <p>including another template, This is a test template with parameter 'hmm'
4878 Template as link source
4882 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4900 Template infinite loop
4904 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4909 Template from main namespace
4928 BUG 529: Template with table, not included at beginning of line
4947 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4967 BUG 41: Template parameters shown as broken links
4976 Template with targets containing wikilinks
4980 {{[[{{echo|foo}}]]}}
4982 {{{{echo|[[foo}}]]}}
4984 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4985 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4993 ''None'' of '''this''' should be
4995 but rather passed unmodified
4999 # hmm, fix this or just deprecate msgnw and document its behavior?
5005 {{msgnw:MSGNW test}}
5007 <p>''None'' of '''this''' should be
5009 but rather passed unmodified
5017 {{int:youhavenewmessages|lots of money|not!}}
5019 <p>You have lots of money (not!).
5026 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5030 <includeonly> and <noinclude> being included
5041 <onlyinclude>Foo</onlyinclude>bar
5045 <onlyinclude> being included
5057 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5061 <onlyinclude> and <includeonly> being included
5070 <includeonly> and <noinclude> on a page
5072 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5079 Un-closed <noinclude>
5086 <onlyinclude> on a page
5088 <onlyinclude>Foo</onlyinclude>bar
5095 Un-closed <onlyinclude>
5102 Self-closed noinclude, includeonly, onlyinclude tags
5113 Unbalanced includeonly and noinclude tags
5117 |b</noinclude></noinclude>
5118 |c</noinclude></includeonly>
5119 |d</includeonly></includeonly>
5128 <td>c</includeonly>
5130 <td>d</includeonly></includeonly>
5136 Template:Includeonly section
5139 ==Includeonly section==
5145 Bug 6563: Edit link generation for section shown by <includeonly>
5147 {{includeonly section}}
5149 <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>
5150 <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>
5154 # Uses same input as the contents of [[Template:Includeonly section]]
5156 Bug 6563: Section extraction for section shown by <includeonly>
5161 ==Includeonly section==
5169 Bug 6563: Edit link generation for section suppressed by <includeonly>
5172 ==Includeonly section==
5176 <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>
5181 Bug 6563: Section extraction for section suppressed by <includeonly>
5186 ==Includeonly section==
5194 Un-closed <includeonly>
5201 ### <includeonly> and <noinclude> in attributes
5204 0. includeonly around the entire attribute
5206 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5208 <p><span id="v2">bar</span>
5213 1. includeonly in html attr key
5215 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5217 <p><span id="foo">bar</span>
5222 2. includeonly in html attr value
5224 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5225 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5227 <p><span id="v1">bar</span>
5228 <span id="v1">bar</span>
5233 3. includeonly in part of an attr value
5235 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5237 <p><span style="color:red;">bar</span>
5242 ### Testing parsing of templates where a template arg
5243 ### has the same name as the template itself.
5253 Templates: Template Name/Arg clash: 1. Use of positional param
5262 Templates: Template Name/Arg clash: 2. Use of named param
5271 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5280 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5284 Templates: 1. Simple use
5293 Templates: 2. Inside a block tag
5295 <div>{{echo|Foo}}</div>
5302 Templates: P-wrapping: 1a. Templates on consecutive lines
5313 Templates: P-wrapping: 1b. Templates on consecutive lines
5327 Templates: P-wrapping: 1c. Templates on consecutive lines
5330 {{echo|bar}} <div>baz</div>
5339 Templates: Inline Text: 1. Multiple tmeplate uses
5341 {{echo|Foo}}bar{{echo|baz}}
5348 Templates: Inline Text: 2. Back-to-back template uses
5350 {{echo|Foo}}{{echo|bar}}
5357 Templates: Block Tags: 1. Multiple template uses
5359 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5361 <div>Foo</div><div>bar</div><div>baz</div>
5366 Templates: Block Tags: 2. Back-to-back template uses
5368 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5370 <div>Foo</div><div>bar</div>
5375 Templates: Links: 1. Simple example
5377 {{echo|[[Foo|bar]]}}
5379 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5384 Templates: Links: 2. Generation of link href
5386 [[{{echo|Foo}}|bar]]
5388 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5393 Templates: Links: 3. Generation of part of a link href
5395 [[Fo{{echo|o}}|bar]]
5397 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5402 Templates: Links: 4. Multiple templates generating link href
5404 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5406 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5411 Templates: Links: 5. Generation of link text
5413 [[Foo|{{echo|bar}}]]
5415 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5420 Templates: Links: 5. Nested templates (only outermost template should be marked)
5422 {{echo|[[{{echo|Foo}}|bar]]}}
5424 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5429 Templates: HTML Tag: 1. Generation of HTML attr. key
5431 <div {{echo|style}}="color:red;">foo</div>
5433 <div style="color:red;">foo</div>
5438 Templates: HTML Tag: 2. Generation of HTML attr. value
5440 <div style={{echo|'color:red;'}}>foo</div>
5442 <div style="color:red;">foo</div>
5447 Templates: HTML Tag: 3. Generation of HTML attr key and value
5449 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5451 <div style="color:red;">foo</div>
5456 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5458 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5460 <div title="This is a long title with just one piece templated">foo</div>
5465 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5467 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5469 <div title="This is a long title with just one piece templated">foo</div>
5474 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5476 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5478 <div title="This is a long title with just one piece templated">foo</div>
5483 Templates: HTML Tables: 1. Generating start of a HTML table
5485 {{echo|<table><tr><td>foo</td>}}</tr></table>
5487 <table><tr><td>foo</td></tr></table>
5492 Templates: HTML Tables: 2a. Generating middle of a HTML table
5494 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5496 <table><tr><td>foo</td></tr></table>
5501 Templates: HTML Tables: 2b. Generating middle of a HTML table
5503 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5505 <table><tr><td>foo</td></tr></table>
5510 Templates: HTML Tables: 3. Generating end of a HTML table
5512 <table><tr>{{echo|<td>foo</td></tr></table>}}
5514 <table><tr><td>foo</td></tr></table>
5519 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5521 {{echo|<table>}}<tr><td>foo</td></tr></table>
5523 <table><tr><td>foo</td></tr></table>
5528 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5530 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5532 <table><tr><td>foo</td></tr></table>
5537 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5539 <table><tr>{{echo|<td>}}foo</td></tr></table>
5541 <table><tr><td>foo</td></tr></table>
5546 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5548 <table><tr><td>foo{{echo|</td>}}</tr></table>
5550 <table><tr><td>foo</td></tr></table>
5555 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5557 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5559 <table><tr><td>foo</td></tr></table>
5564 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5566 <table><tr><td>foo</td></tr>{{echo|</table>}}
5568 <table><tr><td>foo</td></tr></table>
5573 Templates: Wiki Tables: 1. Fostering of entire template content
5581 <tr><td></td></tr></table>
5586 Templates: Wiki Tables: 2. Fostering of partial template content
5596 <tr><td></td></tr></table>
5601 Templates: Wiki Tables: 3. td-content via multiple templates
5604 {{echo|{{pipe}}a}}{{echo|b}}
5615 Templates: Wiki Tables: 4. Templated tags, no content
5621 <tr><td></td></tr></table>
5626 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5640 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5654 Templates: Lists: Multi-line list-items via templates
5656 *{{echo|a {{nonexistent|
5658 *{{echo|b {{nonexistent|
5661 <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>
5662 </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>
5668 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5670 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5672 <p><i>ab</i>c<i>d</i>e
5677 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5678 (PHP parser generates misnested html)
5682 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5684 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5688 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5689 (PHP parser generates misnested html)
5693 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5696 <div><i>b</i>c<i>d</i></div>
5701 Templates: Ugly nesting: 4. Divs opened/closed across templates
5703 a<div>b{{echo|c</div>d}}e
5710 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5716 |{{echo|foo</table>}}
5720 <table about="#mwt1" typeof="mw:Object/Template ">
5721 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5722 bar</span><span about="#mwt1">
5727 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5737 <td>1. {{echo|foo </table>}}</td>
5739 <td>2. {{echo|baz </table>}}</td>
5752 <table about="#mwt1" typeof="mw:Object/Template">
5757 <td >1. foo </td></tr></tbody></table></td>
5759 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
5760 </span><span about="#mwt1">
5762 abc</span><span about="#mwt1">
5763 </span><span about="#mwt1">
5764 </span><span about="#mwt1">
5765 </span><span about="#mwt1">
5766 </span><span about="#mwt1">
5768 xyz</span><span about="#mwt1">
5769 </span><span about="#mwt1">
5774 Templates: Ugly templates: 3. newline-only template parameter
5783 # This looks like a bug: a single newline triggers p/br for some reason.
5785 Templates: Ugly templates: 4. newline-only template parameter inconsistency
5796 Parser Functions: 1. Simple example
5805 Parser Functions: 2. Nested use (only outermost should be marked up)
5814 ### Pre-save transform tests
5817 pre-save transform: subst:
5823 This is a test template
5827 pre-save transform: normal template
5837 pre-save transform: nonexistent template
5841 {{thistemplatedoesnotexist}}
5843 {{thistemplatedoesnotexist}}
5848 pre-save transform: subst magic variables
5857 # This is bug 89, which I fixed. -- wtm
5859 pre-save transform: subst: templates with parameters
5863 {{subst:paramtest|param="something else"}}
5865 This is a test template with parameter "something else"
5871 <nowiki>'''not wiki'''</nowiki>
5875 pre-save transform: nowiki in subst (bug 1188)
5879 {{subst:nowikitest}}
5881 <nowiki>'''not wiki'''</nowiki>
5886 Template:commenttest
5888 This template has <!-- a comment --> in it.
5892 pre-save transform: comment in subst (bug 1936)
5896 {{subst:commenttest}}
5898 This template has <!-- a comment --> in it.
5902 pre-save transform: unclosed tag
5906 <nowiki>'''not wiki'''
5908 <nowiki>'''not wiki'''
5912 pre-save transform: mixed tag case
5916 <NOwiki>'''not wiki'''</noWIKI>
5918 <NOwiki>'''not wiki'''</noWIKI>
5922 pre-save transform: unclosed comment in <nowiki>
5926 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5928 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5934 <span onmouseover="alert('crap')">Oh no</span>
5938 (confirming safety of fix for subst bug 1936)
5940 {{Template:dangerous}}
5942 <p><span>Oh no</span>
5947 pre-save transform: comment containing gallery (bug 5024)
5951 <!-- <gallery>data</gallery> -->
5953 <!-- <gallery>data</gallery> -->
5957 pre-save transform: comment containing extension
5961 <!-- <tag>data</tag> -->
5963 <!-- <tag>data</tag> -->
5967 pre-save transform: comment containing nowiki
5971 <!-- <nowiki>data</nowiki> -->
5973 <!-- <nowiki>data</nowiki> -->
5977 pre-save transform: <noinclude> in subst (bug 3298)
5987 pre-save transform: <onlyinclude> in subst (bug 3298)
5999 {{<includeonly>subst:</includeonly>Includes}}
6003 Template:SafeSubstTest
6005 {{<includeonly>safesubst:</includeonly>Includes}}
6009 bug 22297: safesubst: works during PST
6013 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6019 bug 22297: safesubst: works during normal parse
6028 subst: does not work during normal parse
6032 <p>{{subst:Includes}}
6037 pre-save transform: context links ("pipe trick")
6041 [[Article (context)|]]
6044 [[Bar:Article (context)|]]
6045 [[:Bar:Article (context)|]]
6047 [[|Article (context)]]
6051 [[Article (context)|Article]]
6052 [[Bar:Article|Article]]
6053 [[:Bar:Article|Article]]
6054 [[Bar:Article (context)|Article]]
6055 [[:Bar:Article (context)|Article]]
6057 [[Article (context)]]
6058 [[Bar:X (Y) Z|X (Y) Z]]
6059 [[:Bar:X (Y) Z|X (Y) Z]]
6063 pre-save transform: context links ("pipe trick") with interwiki prefix
6067 [[interwiki:Article|]]
6068 [[:interwiki:Article|]]
6069 [[interwiki:Bar:Article|]]
6070 [[:interwiki:Bar:Article|]]
6072 [[interwiki:Article|Article]]
6073 [[:interwiki:Article|Article]]
6074 [[interwiki:Bar:Article|Bar:Article]]
6075 [[:interwiki:Bar:Article|Bar:Article]]
6079 pre-save transform: context links ("pipe trick") with parens in title
6081 pst title=[[Somearticle (context)]]
6085 [[Article (context)|Article]]
6089 pre-save transform: context links ("pipe trick") with comma in title
6091 pst title=[[Someplace, Somewhere]]
6094 [[Otherplace, Elsewhere|]]
6095 [[Otherplace, Elsewhere, Anywhere|]]
6097 [[Otherplace, Somewhere|Otherplace]]
6098 [[Otherplace, Elsewhere|Otherplace]]
6099 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6103 pre-save transform: context links ("pipe trick") with parens and comma
6105 pst title=[[Someplace (IGNORED), Somewhere]]
6108 [[Otherplace (place), Elsewhere|]]
6110 [[Otherplace, Somewhere|Otherplace]]
6111 [[Otherplace (place), Elsewhere|Otherplace]]
6115 pre-save transform: context links ("pipe trick") with comma and parens
6117 pst title=[[Who, me? (context)]]
6120 [[Me, Myself, and I (1937 song)|]]
6122 [[Yes, you. (context)|Yes, you.]]
6123 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6127 pre-save transform: context links ("pipe trick") with namespace
6129 pst title=[[Ns:Somearticle]]
6133 [[Ns:Article|Article]]
6137 pre-save transform: context links ("pipe trick") with namespace and parens
6139 pst title=[[Ns:Somearticle (context)]]
6143 [[Ns:Article (context)|Article]]
6147 pre-save transform: context links ("pipe trick") with namespace and comma
6149 pst title=[[Ns:Somearticle, Context, Whatever]]
6153 [[Ns:Article, Context, Whatever|Article]]
6157 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6159 pst title=[[Ns:Somearticle, Context (context)]]
6163 [[Ns:Article (context)|Article]]
6167 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6169 pst title=[[Ns:Somearticle (IGNORED), Context]]
6173 [[Ns:Article, Context|Article]]
6177 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6181 [[Article(context)|]]
6182 [[Bar:Article(context)|]]
6183 [[:Bar:Article(context)|]]
6184 [[|Article(context)]]
6188 [[Article(context)|Article]]
6189 [[Bar:Article(context)|Article]]
6190 [[:Bar:Article(context)|Article]]
6191 [[Article(context)]]
6193 [[:Bar:X(Y)Z|X(Y)Z]]
6197 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6201 [[Article (context)|]]
6202 [[Bar:Article (context)|]]
6203 [[:Bar:Article (context)|]]
6204 [[|Article (context)]]
6208 [[Article (context)|Article]]
6209 [[Bar:Article (context)|Article]]
6210 [[:Bar:Article (context)|Article]]
6211 [[Article (context)]]
6212 [[Bar:X (Y) Z|X (Y) Z]]
6213 [[:Bar:X (Y) Z|X (Y) Z]]
6217 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6221 [[Article(context)|]]
6222 [[Bar:Article(context)|]]
6223 [[:Bar:Article(context)|]]
6224 [[|Article(context)]]
6228 [[Article(context)|Article]]
6229 [[Bar:Article(context)|Article]]
6230 [[:Bar:Article(context)|Article]]
6231 [[Article(context)]]
6233 [[:Bar:X(Y)Z|X(Y)Z]]
6237 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6241 [[Article (context), context|]]
6242 [[Article (context),context|]]
6243 [[Bar:Article (context), context|]]
6244 [[Bar:Article (context),context|]]
6245 [[:Bar:Article (context), context|]]
6246 [[:Bar:Article (context),context|]]
6248 [[Article (context), context|Article]]
6249 [[Article (context),context|Article]]
6250 [[Bar:Article (context), context|Article]]
6251 [[Bar:Article (context),context|Article]]
6252 [[:Bar:Article (context), context|Article]]
6253 [[:Bar:Article (context),context|Article]]
6257 pre-save transform: trim trailing empty lines
6261 Empty lines are trimmed
6267 Empty lines are trimmed
6271 pre-save transform: Signature expansion
6276 * <noinclude>~~~</noinclude>
6277 * <includeonly>~~~</includeonly>
6278 * <onlyinclude>~~~</onlyinclude>
6280 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6281 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6282 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6283 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6288 pre-save transform: Signature expansion in nowiki tags (bug 93)
6294 <nowiki>~~~~</nowiki>
6296 <includeonly><nowiki>~~~~</nowiki></includeonly>
6298 <noinclude><nowiki>~~~~</nowiki></noinclude>
6300 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6302 {{subst:Foo}} shall be converted to FOO
6304 As well as inside noinclude/onlyinclude
6305 <noinclude>{{subst:Foo}}</noinclude>
6306 <onlyinclude>{{subst:Foo}}</onlyinclude>
6308 But not inside includeonly
6309 <includeonly>{{subst:Foo}}</includeonly>
6313 <nowiki>~~~~</nowiki>
6315 <includeonly><nowiki>~~~~</nowiki></includeonly>
6317 <noinclude><nowiki>~~~~</nowiki></noinclude>
6319 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6321 FOO shall be converted to FOO
6323 As well as inside noinclude/onlyinclude
6324 <noinclude>FOO</noinclude>
6325 <onlyinclude>FOO</onlyinclude>
6327 But not inside includeonly
6328 <includeonly>{{subst:Foo}}</includeonly>
6332 ### Message transform tests
6335 message transform: magic variables
6345 message transform: should not transform wiki markup
6355 message transform: <noinclude> in transcluded template (bug 4926)
6365 message transform: <onlyinclude> in transcluded template (bug 4926)
6375 {{#special:}} page name, known
6379 {{#special:Recentchanges}}
6381 Special:RecentChanges
6385 {{#special:}} page name with subpage, known
6389 {{#special:Recentchanges/param}}
6391 Special:RecentChanges/param
6395 {{#special:}} page name, unknown
6399 {{#special:foobarnonexistent}}
6401 No such special page
6405 {{#speciale:}} page name, known
6409 {{#speciale:Recentchanges}}
6411 Special:RecentChanges
6415 {{#speciale:}} page name with subpage, known
6419 {{#speciale:Recentchanges/param}}
6421 Special:RecentChanges/param
6425 {{#speciale:}} page name, unknown
6429 {{#speciale:foobarnonexistent}}
6431 No_such_special_page
6440 [[Image:foobar.jpg]]
6442 <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>
6449 [[Image:foobar.jpg|right]]
6451 <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>
6456 Simple image (using File: namespace, now canonical)
6460 <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>
6467 [[Image:foobar.jpg|right|Caption text]]
6469 <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>
6474 Image with empty attribute
6476 [[Image:foobar.jpg|right||Caption text]]
6478 <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>
6483 Image with link tails
6485 123[[Image:foobar.jpg]]456
6486 123[[Image:foobar.jpg|right]]456
6487 123[[Image:foobar.jpg|thumb]]456
6489 <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
6491 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
6492 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
6497 Image with multiple captions -- only last one is accepted
6499 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6501 <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>
6506 Image with width attribute at different positions
6508 [[Image:foobar.jpg|200px|right|Caption]]
6509 [[Image:foobar.jpg|right|200px|Caption]]
6510 [[Image:foobar.jpg|right|Caption|200px]]
6512 <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>
6513 <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>
6514 <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>
6519 Image with link parameter, wiki target
6521 [[Image:foobar.jpg|link=Target page]]
6523 <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>
6528 Image with link parameter, URL target
6530 [[Image:foobar.jpg|link=http://example.com/]]
6532 <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>
6537 Image with link parameter, wgExternalLinkTarget
6539 [[Image:foobar.jpg|link=http://example.com/]]
6541 wgExternalLinkTarget='foobar'
6543 <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>
6548 Image with link parameter, wgNoFollowLinks set to false
6550 [[Image:foobar.jpg|link=http://example.com/]]
6552 wgNoFollowLinks=false
6554 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6559 Image with link parameter, wgNoFollowDomainExceptions
6561 [[Image:foobar.jpg|link=http://example.com/]]
6563 wgNoFollowDomainExceptions='example.com'
6565 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6570 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6572 [[Image:foobar.jpg|link=http://example.com/|Title]]
6574 wgExternalLinkTarget='foobar'
6576 <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>
6581 Image with empty link parameter
6583 [[Image:foobar.jpg|link=]]
6585 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6590 Image with link parameter (wiki target) and unnamed parameter
6592 [[Image:foobar.jpg|link=Target page|Title]]
6594 <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>
6599 Image with link parameter (URL target) and unnamed parameter
6601 [[Image:foobar.jpg|link=http://example.com/|Title]]
6603 <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>
6608 Thumbnail image with link parameter
6610 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6612 <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>
6617 Image with frame and link
6619 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6621 <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>
6626 Image with frame and link and explicit alt
6628 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6630 <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>
6635 Image with wiki markup in implicit alt
6637 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6639 <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>
6644 Image with wiki markup in explicit alt
6646 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6648 <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>
6653 Link to image page- image page normally doesn't exists, hence edit link
6654 Add test with existing image page
6655 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6659 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6664 bug 18784 Link to non-existent image page with caption should use caption as link text
6666 [[:Image:test|caption]]
6668 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6673 Frameless image caption with a free URL
6675 [[Image:foobar.jpg|http://example.com]]
6677 <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>
6682 Thumbnail image caption with a free URL
6684 [[Image:foobar.jpg|thumb|http://example.com]]
6686 <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>
6691 Thumbnail image caption with a free URL and explicit alt
6693 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6695 <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>
6700 BUG 1887: A ISBN with a thumbnail
6702 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6704 <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>
6709 BUG 1887: A RFC with a thumbnail
6711 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6713 <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>
6718 BUG 1887: A mailto link with a thumbnail
6720 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6722 <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>
6726 # Pending resolution to bug 368
6728 BUG 648: Frameless image caption with a link
6730 [[Image:foobar.jpg|text with a [[link]] in it]]
6732 <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>
6737 BUG 648: Frameless image caption with a link (suffix)
6739 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6741 <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>
6746 BUG 648: Frameless image caption with an interwiki link
6748 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6750 <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>
6755 BUG 648: Frameless image caption with a piped interwiki link
6757 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6759 <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>
6764 Escape HTML special chars in image alt text
6766 [[Image:foobar.jpg|& < > "]]
6768 <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>
6773 BUG 499: Alt text should have Ӓ, not &1234;
6775 [[Image:foobar.jpg|♀]]
6777 <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>
6782 Broken image caption with link
6784 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6786 <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.
6791 Image caption containing another image
6793 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6795 <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>
6800 Image caption containing a newline
6802 [[Image:Foobar.jpg|This
6805 <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>
6811 Bug 3090: External links other than http: in image captions
6813 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6815 <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>
6822 [[Image:foobar.jpg|a|class=b]]
6824 <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>
6831 #REDIRECT [[File:Barfoo.jpg]]
6837 [[Image:Barfoo.jpg]]
6839 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6844 Missing image with uploads disabled
6848 [[Image:Foobaz.jpg]]
6850 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6859 Subpage test/subpage
6867 subpage title=[[Subpage test]]
6871 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6876 Subpage noslash link
6878 subpage title=[[Subpage test]]
6882 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6891 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6896 BUG 561: {{/Subpage}}
6898 subpage title=[[Page]]
6902 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6910 Category:MediaWiki User's Guide
6918 [[:Category:MediaWiki User's Guide]]
6920 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6929 [[Category:MediaWiki User's Guide]]
6931 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6935 PAGESINCATEGORY invalid title fatal (r33546 fix)
6937 {{PAGESINCATEGORY:<bogus>}}
6944 Category with different sort key
6948 [[Category:MediaWiki User's Guide|Foo]]
6950 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6954 Category with identical sort key
6958 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6960 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6964 Category with empty sort key
6969 [[Category:MediaWiki User's Guide|]]
6971 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6975 Category with empty sort key and parentheses
6980 [[Category:Foo (bar)|]]
6982 [[Category:Foo (bar)|Foo]]
6986 Category with link tail
6991 123[[Category:Foo]]456
6993 123[[Category:Foo]]456
6997 Category with template
7002 [[Category:{{echo|Foo}}]]
7004 [[Category:{{echo|Foo}}]]
7008 Category with template in sort key
7013 [[Category:Foo|{{echo|Bar}}]]
7015 [[Category:Foo|{{echo|Bar}}]]
7019 Category with template in sort key and title
7024 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7026 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7030 Category / paragraph interactions
7032 Foo [[Category:Baz]] Bar
7034 Foo [[Category:Baz]]
7042 [[Category:Baz]] Bar
7055 {{echo|[[Category:Baz]]}}
7070 ### Inter-language links
7073 Inter-language links
7079 [[zh:食品]]
7081 es:Alimento fr:Nourriture zh:食品
7085 Duplicate interlanguage links (bug 24502)
7101 Basic section headings
7108 ===Smaller headline===
7111 <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>
7114 <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>
7117 <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>
7123 Section headings with TOC
7126 === Subheadline 1 ===
7127 ===== Skipping a level =====
7128 ====== Skipping a level ======
7132 ===Another headline===
7134 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7136 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7138 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7140 <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>
7142 <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>
7149 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7151 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7156 <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>
7157 <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>
7158 <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>
7159 <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>
7160 <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>
7163 <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>
7167 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7169 Handling of sections up to level 6 and beyond
7172 == Level 2 Heading==
7173 === Level 3 Heading===
7174 ==== Level 4 Heading====
7175 ===== Level 5 Heading=====
7176 ====== Level 6 Heading======
7177 ======= Level 7 Heading=======
7178 ======== Level 8 Heading========
7179 ========= Level 9 Heading=========
7180 ========== Level 10 Heading==========
7182 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7184 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7186 <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>
7188 <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>
7190 <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>
7192 <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>
7194 <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>
7195 <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>
7196 <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>
7197 <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>
7198 <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>
7211 <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>
7212 <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>
7213 <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>
7214 <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>
7215 <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>
7216 <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>
7217 <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>
7218 <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>
7219 <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>
7220 <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>
7225 TOC regression (bug 9764)
7229 ==== title 1.1.1 ====
7234 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7236 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7238 <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>
7240 <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>
7243 <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>
7246 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7248 <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>
7253 <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>
7254 <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>
7255 <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>
7256 <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>
7257 <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>
7258 <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>
7263 TOC with wgMaxTocLevel=3 (bug 6204)
7269 ==== title 1.1.1 ====
7274 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7276 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7278 <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>
7279 <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>
7282 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7284 <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>
7289 <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>
7290 <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>
7291 <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>
7292 <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>
7293 <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>
7294 <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>
7299 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7305 ====Section 1.1.1====
7306 ====Section 1.1.1.1====
7309 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7311 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7313 <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>
7316 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7319 <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>
7320 <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>
7321 <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>
7322 <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>
7323 <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>
7329 Resolving duplicate section names
7334 <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>
7335 <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>
7340 Resolving duplicate section names with differing case (bug 10721)
7345 <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>
7346 <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>
7358 Template with sections, __NOTOC__
7365 <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>
7366 <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>
7367 <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>
7368 <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>
7373 __NOEDITSECTION__ keyword
7379 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7380 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7385 Link inside a section heading
7387 ==Section with a [[Main Page|link]] in it==
7389 <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>
7394 TOC regression (bug 12077)
7401 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7403 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7405 <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>
7408 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7411 <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>
7412 <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>
7413 <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>
7418 BUG 1219 URL next to image (good)
7420 http://example.com [[Image:foobar.jpg]]
7422 <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>
7427 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7430 The line above must have a trailing space!
7433 But just in case it doesn't...
7435 <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>
7436 <p>The line above must have a trailing space!
7438 <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>
7439 <p>But just in case it doesn't...
7444 Header with special characters (bug 25462)
7446 The tooltips shall not show entities to the user (ie. be double escaped)
7463 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7465 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7467 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7468 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7469 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7470 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7471 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7474 <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>
7477 <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>
7480 <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>
7483 <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>
7486 <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>
7492 Headers with excess '=' characters
7493 (Are similar tests necessary beyond the 1st level?)
7497 =''italic'' heading==
7498 ==''italic'' heading=
7500 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7502 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7503 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7504 <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>
7505 <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>
7508 <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>
7509 <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>
7510 <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>
7511 <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>
7516 BUG 1219 URL next to image (broken)
7518 http://example.com[[Image:foobar.jpg]]
7520 <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>
7525 Bug 1186 news: in the middle of text
7527 http://en.wikinews.org/wiki/Wikinews:Workplace
7529 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7535 Namespaced link must have a title
7544 Namespaced link must have a title (bad fragment version)
7546 [[Project:#fragment]]
7548 <p>[[Project:#fragment]]
7554 ### HTML tags and HTML attributes
7558 div with no attributes
7560 <div>HTML rocks</div>
7562 <div>HTML rocks</div>
7567 div with double-quoted attribute
7569 <div id="rock">HTML rocks</div>
7571 <div id="rock">HTML rocks</div>
7576 div with single-quoted attribute
7578 <div id='rock'>HTML rocks</div>
7580 <div id="rock">HTML rocks</div>
7585 div with unquoted attribute
7587 <div id=rock>HTML rocks</div>
7589 <div id="rock">HTML rocks</div>
7594 div with illegal double attributes
7596 <div id="a" id="b">HTML rocks</div>
7598 <div id="b">HTML rocks</div>
7602 # FIXME: produce empty string instead of "class" in the PHP parser, following
7605 div with empty attribute value, space before equals
7609 <div class =>HTML rocks</div>
7611 <div class="">HTML rocks</div>
7615 # The PHP parser escapes the opening brace to { for some reason, so
7616 # disabled this test for it.
7618 div with braces in attribute value
7622 <div title="{}">Foo</div>
7624 <div title="{}">Foo</div>
7627 # This it very inconsistent in the PHP parser: it returns
7628 # class="class" if there is a space between the name and the equal sign (see
7629 # 'div with empty attribute value, space before equals'), but strips the
7630 # attribute completely if the space is missing. We hope that not much content
7631 # depends on this, so are implementing the behavior below in Parsoid for
7632 # consistencies' sake. Disabled for the PHP parser.
7633 # FIXME: fix this behavior in the PHP parser?
7635 div with empty attribute value, no space before equals
7639 <div class=>HTML rocks</div>
7641 <div class="">HTML rocks</div>
7646 HTML multiple attributes correction
7648 <p class="error" class="awesome">Awesome!</p>
7650 <p class="awesome">Awesome!</p>
7655 Table multiple attributes correction
7658 !+ class="error" class="awesome"| status
7663 <th class="awesome"> status
7671 <DIV ID="x">HTML ROCKS</DIV>
7673 <div id="x">HTML ROCKS</div>
7678 Non-ASCII pseudo-tags are rendered as text
7687 Pseudo-tag with URL 'name' renders as url link
7689 <http://example.com/>
7691 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7696 text with amp in the middle of nowhere
7700 <p>Remember AT&T?
7705 text with character entity: eacute
7707 I always thought é was a cute letter.
7709 <p>I always thought é was a cute letter.
7714 text with undefined character entity: xacute
7716 I always thought &xacute; was a cute letter.
7718 <p>I always thought &xacute; was a cute letter.
7730 [[Media:Foobar.jpg]]
7732 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7737 Media link with text
7739 [[Media:Foobar.jpg|A neat file to look at]]
7741 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7745 # FIXME: this is still bad HTML tag nesting
7747 Media link with nasty text
7748 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7750 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7752 <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>
7757 Media link to nonexistent file (bug 1702)
7759 [[Media:No such.jpg]]
7761 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7766 Image link to nonexistent file (bug 1850 - good)
7768 [[Image:No such.jpg]]
7770 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7775 :Image link to nonexistent file (bug 1850 - bad)
7777 [[:Image:No such.jpg]]
7779 <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>
7786 Character reference normalization in link text (bug 1938)
7788 [[Main Page|this&that]]
7790 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7797 Test for unicode normalization
7799 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7803 (bug 19451) Links should refer to the normalized form.
7811 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7812 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7813 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7814 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7815 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7820 Empty attribute crash test (bug 2067)
7822 <font color="">foo</font>
7824 <p><font color="">foo</font>
7829 Empty attribute crash test single-quotes (bug 2067)
7831 <font color=''>foo</font>
7833 <p><font color="">foo</font>
7838 Attribute test: equals, then nothing
7840 <font color=>foo</font>
7847 Attribute test: unquoted value
7849 <font color=x>foo</font>
7851 <p><font color="x">foo</font>
7856 Attribute test: unquoted but illegal value (hash)
7858 <font color=#x>foo</font>
7860 <p><font color="#x">foo</font>
7865 Attribute test: no value
7867 <font color>foo</font>
7869 <p><font color="color">foo</font>
7874 Bug 2095: link with three closing brackets
7878 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7883 Bug 2095: link with pipe and three closing brackets
7887 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7892 Bug 2095: link with pipe and three closing brackets, version 2
7894 [[Main Page|[http://example.com/]]]
7896 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7906 Template:Dangerous attribute
7908 " onmouseover="alert(document.cookie)
7912 Template:Dangerous style attribute
7914 border-size: expression(alert(document.cookie))
7920 <div style="float: right; {{{1}}}">Magic div</div>
7924 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7926 <div title="{{test}}"></div>
7928 <div title="This is a test template"></div>
7933 Bug 2304: HTML attribute safety (dangerous template; 2309)
7935 <div title="{{dangerous attribute}}"></div>
7937 <div title=""></div>
7942 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7944 <div style="{{dangerous style attribute}}"></div>
7946 <div style="/* insecure input */"></div>
7951 Bug 2304: HTML attribute safety (safe parameter; 2309)
7953 {{div style|width: 200px}}
7955 <div style="float: right; width: 200px">Magic div</div>
7960 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7962 {{div style|width: expression(alert(document.cookie))}}
7964 <div style="/* insecure input */">Magic div</div>
7969 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7971 {{div style|"><script>alert(document.cookie)</script>}}
7973 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7978 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7980 {{div style|" ><script>alert(document.cookie)</script>}}
7982 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7987 Bug 2304: HTML attribute safety (link)
7989 <div title="[[Main Page]]"></div>
7991 <div title="[[Main Page]]"></div>
7996 Bug 2304: HTML attribute safety (italics)
7998 <div title="''foobar''"></div>
8000 <div title="''foobar''"></div>
8005 Bug 2304: HTML attribute safety (bold)
8007 <div title="'''foobar'''"></div>
8009 <div title="'''foobar'''"></div>
8015 Bug 2304: HTML attribute safety (ISBN)
8017 <div title="ISBN 1234567890"></div>
8019 <div title="ISBN 1234567890"></div>
8024 Bug 2304: HTML attribute safety (RFC)
8026 <div title="RFC 1234"></div>
8028 <div title="RFC 1234"></div>
8033 Bug 2304: HTML attribute safety (PMID)
8035 <div title="PMID 1234567890"></div>
8037 <div title="PMID 1234567890"></div>
8042 Bug 2304: HTML attribute safety (web link)
8044 <div title="http://example.com/"></div>
8046 <div title="http://example.com/"></div>
8051 Bug 2304: HTML attribute safety (named web link)
8053 <div title="[http://example.com/ link]"></div>
8055 <div title="[http://example.com/ link]"></div>
8060 Bug 3244: HTML attribute safety (extension; safe)
8062 <div style="<nowiki>background:blue</nowiki>"></div>
8064 <div style="background:blue"></div>
8069 Bug 3244: HTML attribute safety (extension; unsafe)
8071 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8073 <div style="/* insecure input */"></div>
8077 # More MSIE fun discovered by Tom Gilder
8080 MSIE CSS safety test: spurious slash
8082 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8084 <div style="/* insecure input */">evil</div>
8089 MSIE CSS safety test: hex code
8091 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8093 <div style="/* insecure input */">evil</div>
8098 MSIE CSS safety test: comment in url
8100 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8102 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8107 MSIE CSS safety test: comment in expression
8109 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8111 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8117 Table attribute legitimate extension
8120 !+ style="<nowiki>color:blue</nowiki>"| status
8125 <th style="color:blue"> status
8131 Table attribute safety
8134 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8139 <th style="/* insecure input */"> status
8145 CSS line continuation 1
8147 <div style="background-image: u\ rl(test.jpg);"></div>
8149 <div style="/* insecure input */"></div>
8154 CSS line continuation 2
8156 <div style="background-image: u\ rl(test.jpg); "></div>
8158 <div style="/* insecure input */"></div>
8169 Expansion of multi-line templates in attribute values (bug 6255)
8171 <div style="background: {{identity|#00FF00}}">-</div>
8173 <div style="background: #00FF00">-</div>
8179 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8181 <div style="background:
8184 <div style="background: #00FF00">-</div>
8189 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8191 <div style="background: #00FF00">-</div>
8193 <div style="background: #00FF00">-</div>
8198 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8201 Parser hook: empty input
8214 Parser hook: empty input using terminated empty elements
8227 Parser hook: empty input using terminated empty elements (space before)
8240 Parser hook: basic input
8254 Parser hook: case insensitive
8268 Parser hook: case insensitive, redux
8281 Parser hook: nested tags
8285 <tag><tag></tag></tag>
8296 Parser hook: basic arguments
8298 <tag width=200 height = "100" depth = '50' square></tag>
8306 'square' => 'square',
8313 Parser hook: argument containing a forward slash (bug 5344)
8315 <tag filename='/tmp/bla'></tag>
8320 'filename' => '/tmp/bla',
8327 Parser hook: empty input using terminated empty elements (bug 2374)
8340 # </tag> should be output literally since there is no matching tag that begins it
8342 Parser hook: basic arguments using terminated empty elements (bug 2374)
8344 <tag width=200 height = "100" depth = '50' square/>
8354 'square' => 'square',
8363 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8367 Parser hook: static parser hook not inside a comment
8369 <statictag>hello, world</statictag>
8370 <statictag action=flush/>
8378 Parser hook: static parser hook inside a comment
8380 <!-- <statictag>hello, world</statictag> -->
8381 <statictag action=flush/>
8387 # Nested template calls; this case was broken by Parser.php rev 1.506,
8391 Template:One-parameter
8393 (My parameter is: {{{1}}})
8397 Template:Map-one-parameter
8403 Nested template calls
8405 {{Map-one-parameter|One-parameter|param}}
8407 <p>(My parameter is: param)
8416 Sanitizer: Closing of open tags
8418 <s></s><table></table>
8420 <s></s><table></table>
8425 Sanitizer: Closing of open but not closed tags
8434 Sanitizer: Closing of closed but not open tags
8443 Sanitizer: Closing of closed but not open table tags
8445 Table not started</td></tr></table>
8447 <p>Table not started</td></tr></table>
8452 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8454 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8456 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8461 Sanitizer: Validating the contents of the id attribute (bug 4515)
8467 Something, but definitely not <br id="9" />...
8471 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8475 <br id="foo" /><br id="foo" />
8477 Something need to be done. foo-2 ?
8481 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8484 <meta itemprop="hello" content="world">
8485 <meta http-equiv="refresh" content="5">
8486 <meta itemprop="hello" http-equiv="refresh" content="5">
8487 <link itemprop="hello" href="{{SERVER}}">
8488 <link rel="stylesheet" href="{{SERVER}}">
8489 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8492 <div itemscope="itemscope">
8493 <p> <meta itemprop="hello" content="world" />
8494 <meta http-equiv="refresh" content="5">
8495 <meta itemprop="hello" content="5" />
8497 <link itemprop="hello" href="http://Britney-Spears" />
8498 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8499 <link itemprop="hello" href="http://Britney-Spears" />
8505 Language converter: output gets cut off unexpectedly (bug 5757)
8509 this bit is safe: }-
8511 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8513 then we get cut off here: }-
8515 all additional text is vanished
8517 <p>this bit is safe: }-
8518 </p><p>but if we add a conversion instance: xxx
8519 </p><p>then we get cut off here: }-
8520 </p><p>all additional text is vanished
8525 Self closed html pairs (bug 5487)
8528 <center><font id="bug" />Centered text</center>
8529 <div><font id="bug2" />In div text</div>
8531 <center><font id="bug" />Centered text</center>
8532 <div><font id="bug2" />In div text</div>
8541 Punctuation: nbsp before exclamation
8545 <p>C'est grave !
8550 Punctuation: CSS !important (bug 11874)
8552 <div style="width:50% !important">important</div>
8554 <div style="width:50% !important">important</div>
8559 Punctuation: CSS ! important (bug 11874; with space after)
8561 <div style="width:50% ! important">important</div>
8563 <div style="width:50% ! important">important</div>
8569 HTML bullet list, closed tags (bug 5497)
8584 HTML bullet list, unclosed tags (bug 5497)
8601 HTML ordered list, closed tags (bug 5497)
8616 HTML ordered list, unclosed tags (bug 5497)
8633 HTML nested bullet list, closed tags (bug 5497)
8658 HTML nested bullet list, open tags (bug 5497)
8683 HTML nested ordered list, closed tags (bug 5497)
8708 HTML nested ordered list, open tags (bug 5497)
8733 HTML ordered list item with parameters oddity
8735 <ol><li id="fragment">One</li></ol>
8737 <ol><li id="fragment">One</li></ol>
8742 bug 5918: autonumbering
8744 [http://first/] [http://second] [ftp://ftp]
8748 [mailto:enclosed@mail.tld With target]
8750 [mailto:enclosed@mail.tld]
8752 mailto:inline@mail.tld
8754 <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>
8755 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8756 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8757 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8758 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8764 # Security and HTML correctness
8765 # From Nick Jenkins' fuzz testing
8769 Fuzz testing: Parser13
8784 Fuzz testing: Parser14
8789 <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>
8790 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8792 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8799 Fuzz testing: Parser14-table
8804 <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>
8805 <table style="__TOC__">
8811 # Known to produce bogus xml (extra </td>)
8813 Fuzz testing: Parser16
8833 Fuzz testing: Parser21
8836 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8841 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8851 Fuzz testing: Parser22
8853 http://===r:::https://b
8857 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8865 # Known to produce bad XML for now
8867 Fuzz testing: Parser24
8874 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8875 <br style="onmouseover='alert(document.cookie);' " />
8877 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8882 <u class="|">}}}} >
8883 <br style="onmouseover='alert(document.cookie);'" />
8885 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8894 # Note: the current result listed for this is not what the original one was,
8895 # but the original bug was JavaScript injection, which is fixed in any case.
8896 # It's not clear that the original result listed was any more correct than the
8897 # current one. Original result:
8900 # <li class="||">
8901 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8903 Fuzz testing: Parser25 (bug 6055)
8909 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8911 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8916 Fuzz testing: URL adjacent extension (with space, clean)
8919 http://example.com <nowiki>junk</nowiki>
8921 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8926 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8929 http://example.com<nowiki>junk</nowiki>
8931 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8936 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8939 http://example.com<pre>junk</pre>
8941 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8946 Fuzz testing: image with bogus manual thumbnail
8948 [[Image:foobar.jpg|thumbnail= ]]
8950 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8955 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8957 <pre dir=" "></pre>
8959 <pre dir=" "></pre>
8964 Parsing optional HTML elements (Bug 6171)
8969 <td> Some tabular data</td>
8970 <td> More tabular data ...
8971 <td> And yet som tabular data</td>
8977 <td> Some tabular data</td>
8978 <td> More tabular data ...
8979 </td><td> And yet som tabular data</td>
8986 Correct handling of <td>, <tr> (Bug 6171)
8991 <td> Some tabular data</td>
8992 <td> More tabular data ...</td>
8993 <td> And yet som tabular data</td>
8999 <td> Some tabular data</td>
9000 <td> More tabular data ...</td>
9001 <td> And yet som tabular data</td>
9009 Parsing crashing regression (fr:JavaScript)
9013 <p></body></x>
9018 Inline wiki vs wiki block nesting
9024 <p><b>Bold paragraph</b>
9025 </p><p>New wiki paragraph
9030 Inline HTML vs wiki block nesting
9038 <p><b>Bold paragraph</b>
9039 </p><p>New wiki paragraph
9043 # Original result was this:
9044 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9046 # While that might be marginally more intuitive, maybe, the six-apostrophe
9047 # construct is clearly pathological and the result stated here (which is what
9048 # the parser actually does) is about as reasonable as anything.
9050 Mixing markup for italics and bold
9053 '''bold''''''bold''bolditalics'''''
9055 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9063 Article for special page transclusion test
9067 Special page transclusion
9070 {{Special:Prefixindex/Xyzzyx}}
9072 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9077 Special page transclusion twice (bug 5021)
9080 {{Special:Prefixindex/Xyzzyx}}
9081 {{Special:Prefixindex/Xyzzyx}}
9083 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9084 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9089 Transclusion of default MediaWiki message
9091 {{MediaWiki:Mainpage}}
9098 Transclusion of nonexistent MediaWiki message
9100 {{MediaWiki:Mainpagexxx}}
9102 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9107 Transclusion of MediaWiki message with underscore
9109 {{MediaWiki:history_short}}
9116 Transclusion of MediaWiki message with space
9118 {{MediaWiki:history short}}
9125 Invalid header with following text
9135 Section extraction test (section 0)
9155 Section extraction test (section 1)
9177 Section extraction test (section 2)
9198 Section extraction test (section 3)
9218 Section extraction test (section 4)
9242 Section extraction test (section 5)
9262 Section extraction test (section 6)
9283 Section extraction test (section 7)
9303 Section extraction test (section 8)
9323 Section extraction test (section 9)
9344 Section extraction test (section 10)
9364 Section extraction test (nonexistent section 11)
9383 Section extraction test with bogus heading (section 1)
9388 ==bogus== not a legal section
9392 ==bogus== not a legal section
9396 Section extraction test with bogus heading (section 2)
9401 ==bogus== not a legal section
9408 Section extraction test with comment after heading (section 1)
9420 Section extraction test with comment after heading (section 2)
9432 Section extraction test with bogus <nowiki> heading (section 1)
9437 ==bogus== <nowiki>not a legal section</nowiki>
9441 ==bogus== <nowiki>not a legal section</nowiki>
9445 Section extraction test with bogus <nowiki> heading (section 2)
9450 ==bogus== <nowiki>not a legal section</nowiki>
9457 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9458 # instead of respecting commented sections
9460 Section extraction prefixed by comment (section 1)
9471 Section extraction prefixed by comment (section 2)
9482 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9483 # instead of respecting HTML-style headings
9485 Section extraction, mixed wiki and html (section 1)
9501 Section extraction, mixed wiki and html (section 2)
9517 # Formerly testing for bug 3342
9519 Section extraction, heading surrounded by <noinclude>
9523 <noinclude>==unmarked==</noinclude>
9529 # Test behaviour of bug 19910
9531 Sectiion with all-equals
9536 The line above must have a trailing space
9539 But just in case it doesn't...
9543 But just in case it doesn't...
9547 Section replacement test (section 0)
9578 Section replacement test (section 1)
9607 Section replacement test (section 2)
9637 Section replacement test (section 3)
9668 Section replacement test (section 4)
9695 Section replacement test (section 5)
9726 Section replacement test (section 6)
9756 Section replacement test (section 7)
9787 Section replacement test (section 8)
9818 Section replacement test (section 9)
9847 Section replacement test (section 10)
9877 Section replacement test with initial whitespace (bug 13728)
9881 Preformatted initial line
9885 Preformatted initial line
9892 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9904 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9917 Section extraction, <pre> around bogus header (bug 10309)
9934 Section replacement, <pre> around bogus header (bug 10309)
9936 noxml replace=2,"xxx"
9957 Handling of 
 in URLs
9961 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9968 5 quotes, code coverage +1 line
9975 Special:Search page linking.
9979 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9994 * {{SUBJECTPAGENAME}}
9995 * {{SUBJECTPAGENAMEE}}
10001 * {{SUBJECTSPACEE}}
10002 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10004 <ul><li> Parser test
10005 </li><li> Parser test
10006 </li><li> Parser test
10007 </li><li> Parser_test
10008 </li><li> Parser test
10009 </li><li> Parser_test
10010 </li><li> Talk:Parser test
10011 </li><li> Talk:Parser_test
10012 </li><li> Parser test
10013 </li><li> Parser_test
10020 </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>
10024 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10034 image4 |300px| centre
10035 image5.svg| http://///////
10040 <ul class="gallery">
10041 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10042 <div style="height: 150px;">Image1.png</div>
10043 <div class="gallerytext">
10046 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10047 <div style="height: 150px;">Image2.gif</div>
10048 <div class="gallerytext">
10053 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10054 <div style="height: 150px;">Image3</div>
10055 <div class="gallerytext">
10058 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10059 <div style="height: 150px;">Image4</div>
10060 <div class="gallerytext">
10065 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10066 <div style="height: 150px;">Image5.svg</div>
10067 <div class="gallerytext">
10068 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10072 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10073 <div style="height: 150px;">* image6</div>
10074 <div class="gallerytext">
10082 Gallery (with options)
10084 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10085 File:Nonexistant.jpg|caption
10086 File:Nonexistant.jpg
10087 image:foobar.jpg|some '''caption''' [[Main Page]]
10089 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10092 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10093 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10094 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10095 <div style="height: 70px;">Nonexistant.jpg</div>
10096 <div class="gallerytext">
10101 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10102 <div style="height: 70px;">Nonexistant.jpg</div>
10103 <div class="gallerytext">
10106 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10107 <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>
10108 <div class="gallerytext">
10109 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10113 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10114 <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>
10115 <div class="gallerytext">
10118 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10119 <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>
10120 <div class="gallerytext">
10130 Gallery with wikitext inside caption
10133 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10134 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10137 <ul class="gallery">
10138 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10139 <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>
10140 <div class="gallerytext">
10141 <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>
10145 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10146 <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>
10147 <div class="gallerytext">
10148 <p>This is a test template
10157 gallery (with showfilename option)
10159 <gallery showfilename>
10160 File:Nonexistant.jpg|caption
10161 File:Nonexistant.jpg
10162 image:foobar.jpg|some '''caption''' [[Main Page]]
10166 <ul class="gallery">
10167 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10168 <div style="height: 150px;">Nonexistant.jpg</div>
10169 <div class="gallerytext">
10170 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10175 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10176 <div style="height: 150px;">Nonexistant.jpg</div>
10177 <div class="gallerytext">
10178 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10182 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10183 <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>
10184 <div class="gallerytext">
10185 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10186 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10190 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10191 <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>
10192 <div class="gallerytext">
10193 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10202 Gallery (with namespace-less filenames)
10205 File:Nonexistant.jpg
10211 <ul class="gallery">
10212 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10213 <div style="height: 150px;">Nonexistant.jpg</div>
10214 <div class="gallerytext">
10217 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10218 <div style="height: 150px;">Nonexistant.jpg</div>
10219 <div class="gallerytext">
10222 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10223 <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>
10224 <div class="gallerytext">
10227 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10228 <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>
10229 <div class="gallerytext">
10237 HTML Hex character encoding (spells the word "JavaScript")
10239 JavaScript
10241 <p>JavaScript
10246 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10250 <p>&#xsee;&#XSEE;
10255 HTML Hex character encoding mixed case
10264 __FORCETOC__ override
10276 ISBN 978-0-1234-56 789
10278 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10283 ISBN followed by 5 spaces
10294 ISBN ISBN 1234567890
10296 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10301 Bug 22905: <abbr> followed by ISBN followed by </a>
10303 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10305 <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>
10314 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10319 Double RFC with a wiki link
10323 <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>
10332 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10337 Centre-aligned image
10339 [[Image:foobar.jpg|centre]]
10341 <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>
10348 [[Image:foobar.jpg|none]]
10350 <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>
10355 Width + Height sized image (using px) (height is ignored)
10357 [[Image:foobar.jpg|640x480px]]
10359 <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>
10364 Width-sized image (using px, no following whitespace)
10366 [[Image:foobar.jpg|640px]]
10368 <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>
10373 Width-sized image (using px, with following whitespace - test regression from r39467)
10375 [[Image:foobar.jpg|640px ]]
10377 <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>
10382 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10384 [[Image:foobar.jpg| 640px]]
10386 <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>
10391 Another italics / bold test
10399 # Note the results may be incorrect, as parserTest output included this:
10400 # XML error: Mismatched tag at byte 6120:
10401 # ...<dd> </dt></dl> </dd...
10409 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10420 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10422 Images with the "|" character in the comment
10424 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10426 <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>
10431 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10433 <html><script>alert(1);</script></html>
10435 <p><html><script>alert(1);</script></html>
10440 HTML with raw HTML ($wgRawHtml==true)
10444 <html><script>alert(1);</script></html>
10446 <p><script>alert(1);</script>
10451 Parents of subpages, one level up
10453 subpage title=[[Subpage test/L1/L2/L3]]
10457 <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>
10463 Parents of subpages, one level up, not named
10465 subpage title=[[Subpage test/L1/L2/L3]]
10469 <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>
10476 Parents of subpages, two levels up
10478 subpage title=[[Subpage test/L1/L2/L3]]
10484 <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
10485 </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>
10490 Parents of subpages, two levels up, without trailing slash or name.
10492 subpage title=[[Subpage test/L1/L2/L3]]
10501 Parents of subpages, two levels up, with lots of extra trailing slashes.
10503 subpage title=[[Subpage test/L1/L2/L3]]
10507 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10512 Definition list code coverage
10518 <dl><dt> title  </dt><dd> def
10519 </dd><dt> title </dt><dd> def
10520 </dd><dt>title</dt><dd> def
10526 Don't fall for the self-closing div
10528 <div>hello world</div/>
10530 <div>hello world</div>
10539 <p>[[:Template:Msg]]
10548 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10552 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10554 Always escape literal '>' in output, not just after '<'
10568 <p>This is a test template
10569 This is a test template
10581 Inclusion of !userCanEdit() content
10585 <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>
10591 Out-of-order TOC heading levels
10600 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10602 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10604 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10605 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10608 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10610 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10611 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10616 <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>
10617 <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>
10618 <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>
10619 <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>
10620 <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>
10621 <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>
10627 ISBN with a dummy number
10637 ISBN with space-delimited number
10641 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10647 ISBN with multiple spaces, no number
10666 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10667 </p><p>ISBN 12345678901
10673 ISBN with trailing year (bug 8110)
10675 ISBN 1-234-56789-0 - 2006
10677 ISBN 1 234 56789 0 - 2006
10679 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10680 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10688 {{anchorencode:foo bar©#%n}}
10690 <p>foo_bar.C2.A9.23.25n
10695 anchorencode trims spaces
10697 {{anchorencode: __pretty__please__}}
10704 anchorencode deals with links
10706 {{anchorencode: [[hello|world]] [[hi]]}}
10713 anchorencode deals with templates
10715 {{anchorencode: {{Foo}} }}
10722 anchorencode encodes like the TOC generator: (bug 18431)
10724 === _ +:.3A%3A&&]] ===
10725 {{anchorencode: _ +:.3A%3A&&]] }}
10728 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10729 <p>.2B:.3A.253A.26.26.5D.5D
10733 # Expected output in the following test is not necessarily expected (there
10734 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10735 # only testing for well-formedness.
10737 Bug 6200: blockquotes and paragraph formatting
10757 Bug 8293: Use of center tag ruins paragraph formatting
10779 ### Language variants related tests
10782 Self-link in language variants
10784 title=[[Dunav]] language=sr
10786 Both [[Dunav]] and [[Дунав]] are names for this river.
10788 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10794 Link to pages in language variants
10798 Main Page can be written as [[Маин Паге]]
10800 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10806 Multiple links to pages in language variants
10810 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10812 <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>.
10818 Simple template in language variants
10824 <p>This is a test template
10830 Template with explicit namespace in language variants
10836 <p>This is a test template
10842 Basic test for template parameter in language variants
10846 {{парамтест|param=foo}}
10848 <p>This is a test template with parameter foo
10854 Simple category in language variants
10858 [[Category:МедиаWики Усер'с Гуиде]]
10860 <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>
10865 Stripping -{}- tags (language variants)
10869 Latin proverb: -{Ne nuntium necare}-
10871 <p>Latin proverb: Ne nuntium necare
10877 Prevent conversion with -{}- tags (language variants)
10879 language=sr variant=sr-ec
10881 Latinski: -{Ne nuntium necare}-
10883 <p>Латински: Ne nuntium necare
10889 Prevent conversion of text with -{}- tags (language variants)
10891 language=sr variant=sr-ec
10893 Latinski: -{Ne nuntium necare}-
10895 <p>Латински: Ne nuntium necare
10901 Prevent conversion of links with -{}- tags (language variants)
10903 language=sr variant=sr-ec
10907 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10913 -{}- tags within headlines (within html for parserConvert())
10915 language=sr variant=sr-ec
10919 <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>
10925 Explicit definition of language variant alternatives
10927 language=zh variant=zh-tw
10929 -{zh:China;zh-tw:Taiwan}-, not China
10931 <p>Taiwan, not China
10937 Explicit session-wise language variant mapping (A flag and - flag)
10939 language=zh variant=zh-tw
10941 Taiwan is not China.
10942 But -{A|zh:China;zh-tw:Taiwan}- is China,
10943 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10944 and -{China}- is China.
10946 <p>Taiwan is not China.
10947 But Taiwan is Taiwan,
10948 (This should be stripped!)
10949 and China is China.
10954 Explicit session-wise language variant mapping (H flag for hide)
10956 language=zh variant=zh-tw
10958 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10961 <p>(This should be stripped!)
10967 Adding explicit conversion rule for title (T flag)
10969 language=zh variant=zh-tw showtitle
10971 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10974 <p>Should be stripped!
10979 Testing that changing the language variant here in the tests actually works
10981 language=zh variant=zh showtitle
10983 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10986 <p>Should be stripped!
10991 Recursive conversion of alt and title attrs shouldn't clear converter state
10993 language=zh variant=zh-cn showtitle
10995 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
10996 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11000 Should be stripped<span title="Exclamation">!</span>
11005 Bug 24072: more test on conversion rule for title
11007 language=zh variant=zh-tw showtitle
11009 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11010 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11013 <p>This should be stripped!
11014 This won't take interferes with the title rule.
11019 Raw output of variant escape tags (R flag)
11021 language=zh variant=zh-tw
11023 Raw: -{R|zh:China;zh-tw:Taiwan}-
11025 <p>Raw: zh:China;zh-tw:Taiwan
11030 Nested using of manual convert syntax
11032 language=zh variant=zh-hk
11034 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11036 <p>Nested: Hello Hong Kong!
11041 Proper conversion of text in external links
11043 language=sr variant=sr-ec
11045 http://www.google.com
11046 gopher://www.google.com
11047 [http://www.google.com http://www.google.com]
11048 [gopher://www.google.com gopher://www.google.com]
11049 [https://www.google.com irc://www.google.com]
11050 [ftp://www.google.com www.google.com/ftp://dir]
11051 [//www.google.com www.google.com]
11053 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11054 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11055 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11056 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11057 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11058 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11059 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11064 Do not convert roman numbers to language variants
11066 language=sr variant=sr-ec
11070 <p>Фридрих IV је цар.
11075 Unclosed language converter markup "-{"
11086 Don't convert raw rule "-{R|=>}-" to "=>"
11103 Bug 529: Uncovered bullet
11113 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11114 # Templates in Wikipedia rely on this behavior, as tidy has always been
11115 # enabled there. These tests are normally run *without* tidy, so specify the
11116 # full output here.
11117 # To test realistic parsing behavior, apply a tidy-like transformation to both
11118 # the expected output and your parser's output.
11120 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11122 ******* Foo {{bullet}}
11124 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11137 Bug 529: Uncovered table already at line-start
11160 Bug 529: Uncovered bullet in parser function result
11162 * Foo {{lc:{{bullet}} }}
11171 Bug 5678: Double-parsed template argument
11173 {{lc:{{{1}}}|hello}}
11180 Bug 5678: Double-parsed template invocation
11182 {{lc:{{paramtest {{!}} param = hello }} }}
11184 <p>{{paramtest | param = hello }}
11189 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11192 title=[[Main Page]]
11194 {{PRVNÍVELKÉ:ěščř}}
11195 {{prvnívelké:ěščř}}
11215 Morwen/13: Unclosed link followed by heading
11222 <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>
11227 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11234 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11239 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11246 <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>
11261 Paragraphs inside divs (no extra line breaks)
11273 Paragraphs inside divs (extra line break on open)
11288 Paragraphs inside divs (extra line break on close)
11303 Paragraphs inside divs (extra line break on open and close)
11320 Nesting tags, paragraphs on lines which begin with <div>
11324 <div></div><strong>A
11333 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11335 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11339 <blockquote>Line one
11341 Line two</blockquote>
11343 <blockquote>Line one
11344 Line two</blockquote>
11349 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11356 Line two</blockquote>
11361 Line two</blockquote>
11366 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11370 <blockquote>Line one
11375 <blockquote>Line one
11383 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11402 Paragraphs inside blockquotes/divs (no extra line breaks)
11404 <blockquote><div>Line one
11406 Line two</div></blockquote>
11408 <blockquote><div>Line one
11409 Line two</div></blockquote>
11414 Paragraphs inside blockquotes/divs (extra line break on open)
11419 Line two</div></blockquote>
11424 Line two</div></blockquote>
11429 Paragraphs inside blockquotes/divs (extra line break on close)
11431 <blockquote><div>Line one
11434 </div></blockquote>
11436 <blockquote><div>Line one
11439 </div></blockquote>
11444 Paragraphs inside blockquotes/divs (extra line break on open and close)
11450 </div></blockquote>
11456 </div></blockquote>
11461 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11463 wgLinkHolderBatchSize=0
11469 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11470 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11471 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11476 Free external link invading image caption
11478 [[Image:Foobar.jpg|thumb|http://x|hello]]
11480 <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>
11485 Bug 15196: localised external link numbers
11489 [http://en.wikipedia.org/]
11491 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11496 Multibyte character in padleft
11498 {{padleft:-Hello|7|Æ}}
11505 Multibyte character in padright
11507 {{padright:Hello-|7|Æ}}
11516 wgUseDynamicDates=1
11520 <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>
11525 formatdate parser function
11527 {{#formatdate:2009-03-24}}
11529 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11534 formatdate parser function, with default format
11536 {{#formatdate:2009-03-24|mdy}}
11538 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11543 Linked date with autoformatting disabled
11545 wgUseDynamicDates=false
11549 <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>
11554 Spacing of numbers in formatted dates
11556 {{#formatdate:January 15}}
11558 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11563 Spacing of numbers in formatted dates (linked)
11565 wgUseDynamicDates=true
11569 <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>
11574 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
11576 language=nl title=[[MediaWiki:Common.css]]
11578 {{#formatdate:2009-03-24|dmy}}
11580 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11593 Edit comment with link
11597 I like the [[Main Page]] a lot
11599 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11603 Edit comment with link and link text
11607 I like the [[Main Page|best pages]] a lot
11609 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11613 Edit comment with link and link text with suffix
11617 I like the [[Main Page|best page]]s a lot
11619 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11623 Edit comment with section link (non-local, eg in history list)
11625 comment title=[[Main Page]]
11627 /* External links */ removed bogus entries
11629 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11633 Edit comment with section link and text before it (non-local, eg in history list)
11635 comment title=[[Main Page]]
11637 pre-comment text /* External links */ removed bogus entries
11639 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>
11643 Edit comment with section link (local, eg in diff view)
11645 comment local title=[[Main Page]]
11647 /* External links */ removed bogus entries
11649 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11653 Edit comment with subpage link (bug 14080)
11657 title=[[Subpage test]]
11659 Poked at a [[/subpage]] here...
11661 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11665 Edit comment with subpage link and link text (bug 14080)
11669 title=[[Subpage test]]
11671 Poked at a [[/subpage|neat little page]] here...
11673 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11677 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11680 title=[[Subpage test]]
11682 Poked at a [[/subpage]] here...
11684 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11688 Edit comment with bare anchor link (local, as on diff)
11692 title=[[Main Page]]
11696 <a href="#section">#section</a>
11700 Edit comment with bare anchor link (non-local, as on history)
11703 title=[[Main Page]]
11707 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11711 Anchor starting with underscore
11715 <p><a href="#_ref">One</a>
11720 Id starting with underscore
11722 <div id="_ref"></div>
11724 <div id="_ref"></div>
11729 Space normalisation on autocomment (bug 22784)
11732 title=[[Main Page]]
11734 /* __hello__world__ */
11736 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11740 percent-encoding and + signs in comments (Bug 26410)
11744 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11746 <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>
11750 Bad images - basic functionality
11759 Bad images - bug 16039: text after bad image disappears
11773 Verify that displaytitle works (bug #22501) no displaytitle
11777 wgAllowDisplayTitle=true
11778 wgRestrictDisplayTitle=false
11780 this is not the the title
11783 <p>this is not the the title
11788 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11793 wgAllowDisplayTitle=true
11794 wgRestrictDisplayTitle=false
11796 this is not the the title
11797 {{DISPLAYTITLE:whatever}}
11800 <p>this is not the the title
11805 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11810 wgAllowDisplayTitle=true
11811 wgRestrictDisplayTitle=true
11813 this is not the the title
11814 {{DISPLAYTITLE:whatever}}
11817 <p>this is not the the title
11822 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11827 wgAllowDisplayTitle=true
11828 wgRestrictDisplayTitle=true
11830 this is not the the title
11831 {{DISPLAYTITLE:screen}}
11834 <p>this is not the the title
11839 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11844 wgAllowDisplayTitle=false
11846 this is not the the title
11847 {{DISPLAYTITLE:screen}}
11850 <p>this is not the the title
11851 <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>
11856 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11861 wgAllowDisplayTitle=false
11863 this is not the the title
11866 <p>this is not the the title
11871 preload: check <noinclude> and <includeonly>
11875 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11881 preload: check <onlyinclude>
11885 Goodbye <onlyinclude>Hello world</onlyinclude>
11891 preload: can pass tags through if we want to
11895 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11897 <includeonly>Hello world</includeonly>
11901 preload: check that it doesn't try to do tricks
11905 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11907 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11911 Play a bit with r67090 and bug 3158
11915 <div style="width:50% !important"> </div>
11916 <div style="width:50% !important"> </div>
11917 <div style="width:50% !important"> </div>
11918 <div style="border : solid;"> </div>
11920 <div style="width:50% !important"> </div>
11921 <div style="width:50% !important"> </div>
11922 <div style="width:50% !important"> </div>
11923 <div style="border : solid;"> </div>
11928 HTML5 data attributes
11930 <span data-foo="bar">Baz</span>
11931 <p data-abc-def_hij="">Quuz</p>
11933 <p><span data-foo="bar">Baz</span>
11935 <p data-abc-def_hij="">Quuz</p>
11940 percent-encoding and + signs in internal links (Bug 26410)
11942 [[User:+%]] [[Page+title%]]
11943 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11944 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11945 [[%33%45]] [[%33%45+]]
11947 <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>
11948 <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>
11949 <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>
11950 <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>
11955 Special characters in embedded file links (bug 27679)
11957 [[File:Contains & ampersand.jpg]]
11958 [[File:Does not exist.jpg|Title with & ampersand]]
11960 <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>
11961 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11967 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11969 Text's been normalized?
11971 <p>Text's been normalized?
11976 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11978 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11980 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11985 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11987 [http://www.example.org/ ideograms]
11989 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11994 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11996 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11998 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12022 Bug 31098 Template which includes system messages which includes the template
12026 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12027 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12032 Bug31490 Turkish: ucfirst 'blah'
12043 Bug31490 Turkish: ucfirst 'ix'
12054 Bug31490 Turkish: lcfirst 'BLAH'
12065 Bug31490 Turkish: ucfırst (with a dotless i)
12071 <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>
12076 Bug31490 ucfırst (with a dotless i) with English language
12082 <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>
12087 Bug 26375: TOC with italics
12089 title=[[Main Page]]
12092 == ''Lost'' episodes ==
12094 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12096 <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>
12099 <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>
12104 Bug 26375: TOC with bold
12106 title=[[Main Page]]
12109 == '''should be bold''' then normal text ==
12111 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12113 <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>
12116 <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>
12121 Bug 33845: Headings become cursive in TOC when they contain an image
12123 title=[[Main Page]]
12126 == Image [[Image:foobar.jpg]] ==
12128 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12130 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12133 <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>
12138 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12140 title=[[Main Page]]
12143 == <blockquote>Quote</blockquote> ==
12145 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12147 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12150 <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>
12155 Unclosed tags in TOC
12157 title=[[Main Page]]
12161 <small>Hanc marginis exiguitas non caperet.</small>
12164 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12166 <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>
12169 <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>
12170 <p><small>Hanc marginis exiguitas non caperet.</small>
12176 Multiple tags in TOC
12179 == <i>Foo</i> <b>Bar</b> ==
12181 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12183 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12185 <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>
12186 <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>
12189 <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>
12190 <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>
12195 Tags with parameters in TOC
12198 == <sup class="in-h2">Hello</sup> ==
12200 == <sup class="a > b">Evilbye</sup> ==
12202 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12204 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12205 <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>
12208 <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>
12209 <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>
12214 span tags with directionality in TOC
12217 == <span dir="ltr">C++</span> ==
12219 == <span dir="rtl">זבנג!</span> ==
12221 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12223 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12225 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12227 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12229 <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>
12230 <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>
12231 <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>
12232 <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>
12233 <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>
12236 <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>
12237 <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>
12238 <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>
12239 <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>
12240 <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>
12247 == {{int:headline_sample}} ==
12251 Bug 32057: Title needed when expanding <h> nodes.
12253 title=[[Main Page]]
12257 <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>
12262 Strip marker in urlencode
12264 {{urlencode:x<nowiki/>y}}
12265 {{urlencode:x<nowiki/>y|wiki}}
12266 {{urlencode:x<nowiki/>y|path}}
12293 Strip marker in formatNum
12295 {{formatnum:1<nowiki/>2}}
12296 {{formatnum:1<nowiki/>2|R}}
12304 Strip marker in grammar
12308 {{grammar:elative|foo<nowiki/>bar}}
12315 Strip marker in padleft
12317 {{padleft:|2|x<nowiki/>y}}
12324 Strip marker in padright
12326 {{padright:|2|x<nowiki/>y}}
12333 Strip marker in anchorencode
12335 {{anchorencode:x<nowiki/>y}}
12342 nowiki inside link inside heading (bug 18295)
12344 ==[[foo|x<nowiki>y</nowiki>z]]==
12346 <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>
12351 new support for bdi element (bug 31817)
12353 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12355 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12360 Ignore pipe between table row attributes
12364 |- id=foo | style='color: red'
12372 <tr id="foo" style="color: red">
12379 Gallery override link with WikiLink (bug 34852)
12382 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12385 <ul class="gallery">
12386 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12387 <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>
12388 <div class="gallerytext">
12398 Gallery override link with absolute external link (bug 34852)
12401 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12404 <ul class="gallery">
12405 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12406 <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>
12407 <div class="gallerytext">
12417 Gallery override link with malicious javascript (bug 34852)
12420 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12423 <ul class="gallery">
12424 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12425 <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>
12426 <div class="gallerytext">
12436 Language parser function
12445 Padleft and padright as substr
12447 {{padleft:|3|abcde}}
12448 {{padright:|3|abcde}}
12456 Bug 34939 - Case insensitive link parsing ([HttP://])
12458 [HttP://MediaWiki.Org/]
12460 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12465 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12467 [HttP://MediaWiki.Org/ MediaWiki]
12469 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12474 Bug 34939 - Case insensitive link parsing (HttP://)
12476 HttP://MediaWiki.Org/
12478 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12483 ### Parsoids-specific tests
12484 ### Parsoid-PHP parser incompatibilities
12487 1. SOL-sensitive wikitext tokens as template-args
12501 #### The following section of tests are primarily to test
12502 #### wikitext escaping capabilities of Parsoid.
12503 #### A lot of the tests are disabled for the PHP parser either
12504 #### because of minor newline diffs or other reasons.
12505 #### As Parsoid serializer can handle newlines and other HTML
12506 #### more robustly, some of these tests might get reenabled
12507 #### for the PHP parser.
12509 #### --------------- Headings ---------------
12511 #### 1. Nested inside html <h1>=foo=</h1>
12512 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12513 #### 3. Nested inside html with wikitext split by html tags
12514 #### 4. No escape needed
12515 #### 5. Empty headings <h1></h1>
12516 #### 6. Heading chars in SOL context
12517 #### ----------------------------------------
12519 Headings: 0. Unnested
12521 <nowiki>=foo=</nowiki>
12523 <nowiki>=foo</nowiki>''a''=
12526 </p><p>=foo<i>a</i>=
12531 Headings: 1. Nested inside html
12535 =<nowiki>=foo=</nowiki>=
12536 ==<nowiki>=foo=</nowiki>==
12537 ===<nowiki>=foo=</nowiki>===
12538 ====<nowiki>=foo=</nowiki>====
12539 =====<nowiki>=foo=</nowiki>=====
12540 ======<nowiki>=foo=</nowiki>======
12551 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12556 <nowiki>*bar</nowiki>
12560 <nowiki>=bar=</nowiki>
12568 Headings: 3. Nested inside html with wikitext split by html tags
12572 =<nowiki>=</nowiki>'''bold'''foo==
12574 <h1>=<b>bold</b>foo=</h1>
12578 Headings: 4. No escaping needed (testing just h1 and h2)
12593 <h1><i>=</i>foo=</h1>
12598 Headings: 5. Empty headings
12602 =<nowiki></nowiki>=
12603 ==<nowiki></nowiki>==
12604 ===<nowiki></nowiki>===
12605 ====<nowiki></nowiki>====
12606 =====<nowiki></nowiki>=====
12607 ======<nowiki></nowiki>======
12618 Headings: 6. Heading chars in SOL context
12622 <!--cmt--><nowiki>=h1=</nowiki>
12628 #### --------------- Lists ---------------
12629 #### 0. Outside nests (*foo, etc.)
12630 #### 1. Nested inside html <ul><li>*foo</li></ul>
12631 #### 2. Inside definition lists
12632 #### 3. Only bullets at start should be escaped
12633 #### 4. No escapes needed
12634 #### 5. No unnecessary escapes
12635 #### 6. Escape bullets in SOL position
12636 #### 7. Escape bullets in a multi-line context
12637 #### ----------------------------------------
12640 Lists: 0. Outside nests
12642 <nowiki>*foo</nowiki>
12644 <nowiki>#foo</nowiki>
12652 Lists: 1. Nested inside html
12654 *<nowiki>*foo</nowiki>
12656 *<nowiki>#foo</nowiki>
12658 *<nowiki>:foo</nowiki>
12660 *<nowiki>;foo</nowiki>
12662 #<nowiki>*foo</nowiki>
12664 #<nowiki>#foo</nowiki>
12666 #<nowiki>:foo</nowiki>
12668 #<nowiki>;foo</nowiki>
12690 Lists: 2. Inside definition lists
12692 ;<nowiki>;foo</nowiki>
12694 ;<nowiki>:foo</nowiki>
12696 ;<nowiki>:foo</nowiki>
12699 :<nowiki>:foo</nowiki>
12714 Lists: 3. Only bullets at start of text should be escaped
12716 *<nowiki>*foo*bar</nowiki>
12718 *<nowiki>*foo</nowiki>''it''*bar
12722 <ul><li>*foo<i>it</i>*bar
12728 Lists: 4. No escapes needed
12740 <ul><li><i>foo</i>*bar
12742 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12747 Lists: 5. No unnecessary escapes
12749 * bar <span><nowiki>[[foo]]</nowiki></span>
12751 *=bar <span><nowiki>[[foo]]</nowiki></span>
12753 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12755 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12757 *=bar <span>foo]]</span>=
12759 <ul><li> bar <span>[[foo]]</span>
12761 <ul><li>=bar <span>[[foo]]</span>
12763 <ul><li>[[bar <span>[[foo]]</span>
12765 <ul><li>]]bar <span>[[foo]]</span>
12767 <ul><li>=bar <span>foo]]</span>=
12773 Lists: 6. Escape bullets in SOL position
12777 <!--cmt--><nowiki>*foo</nowiki>
12784 Lists: 7. Escape bullets in a multi-line context
12794 #### --------------- HRs ---------------
12795 #### 1. Single line
12796 #### -----------------------------------
12799 HRs: 1. Single line
12804 <nowiki>----</nowiki>
12806 <nowiki>=foo=</nowiki>
12808 <nowiki>*foo</nowiki>
12815 #### --------------- Tables ---------------
12816 #### 1a. Simple example
12817 #### 1b. No escaping needed (!foo)
12818 #### 1c. No escaping needed (|foo)
12819 #### 1d. No escaping needed (|}foo)
12821 #### 2a. Nested in td (<td>foo|bar</td>)
12822 #### 2b. Nested in td (<td>foo||bar</td>)
12823 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12825 #### 3a. Nested in th (<th>foo!bar</th>)
12826 #### 3b. Nested in th (<th>foo!!bar</th>)
12827 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12831 #### 4c. No escaping needed
12832 #### --------------------------------------
12835 Tables: 1a. Simple example
12846 Tables: 1b. No escaping needed
12855 Tables: 1c. No escaping needed
12864 Tables: 1d. No escaping needed
12873 Tables: 2a. Nested in td
12878 |<nowiki>foo|bar</nowiki>
12888 Tables: 2b. Nested in td
12893 |<nowiki>foo||bar</nowiki>
12894 |''it''<nowiki>foo||bar</nowiki>
12899 </td><td><i>it</i>foo||bar
12905 Tables: 2c. Nested in td -- no escaping needed
12920 Tables: 3a. Nested in th
12935 Tables: 3b. Nested in th
12940 !<nowiki>foo!!bar</nowiki>
12950 Tables: 3c. Nested in th -- no escaping needed
12965 Tables: 4a. Escape -
12973 |<nowiki>-bar</nowiki>
12977 <tr><th>-bar</th></tr>
12978 <tr><td>-bar</td></tr>
12983 Tables: 4b. Escape +
12991 |<nowiki>+bar</nowiki>
12995 <tr><th>+bar</th></tr>
12996 <tr><td>+bar</td></tr>
13001 Tables: 4c. No escaping needed
13015 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13016 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13020 #### --------------- Links ---------------
13021 #### 1. Quote marks in link text
13022 #### 2. Wikilinks: Escapes needed
13023 #### 3. Wikilinks: No escapes needed
13024 #### 4. Extlinks: Escapes needed
13025 #### 5. Extlinks: No escapes needed
13026 #### --------------------------------------
13028 Links 1. Quote marks in link text
13032 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13034 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13038 Links 2. WikiLinks: Escapes needed
13042 [[Foo|<nowiki>[Foobar]</nowiki>]]
13043 [[Foo|<nowiki>Foobar]</nowiki>]]
13044 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13045 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13046 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13047 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13048 [[Foo|<nowiki>|Bar</nowiki>]]
13050 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13051 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13052 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13053 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13054 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13055 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13056 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13060 Links 3. WikiLinks: No escapes needed
13067 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13068 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13072 Links 4. ExtLinks: Escapes needed
13076 [http://google.com <nowiki>[google]</nowiki>]
13077 [http://google.com <nowiki>google]</nowiki>]
13079 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13080 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13084 Links 5. ExtLinks: No escapes needed
13088 [http://google.com [google]
13090 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13093 #### --------------- Quotes ---------------
13094 #### 1. Quotes inside <b> and <i>
13095 #### 2. Link fragments separated by <i> and <b> tags
13096 #### 3. Link fragments inside <i> and <b>
13097 #### --------------------------------------
13099 1. Quotes inside <b> and <i>
13101 ''<nowiki>'foo'</nowiki>''
13102 ''<nowiki>''foo''</nowiki>''
13103 ''<nowiki>'''foo'''</nowiki>''
13104 '''<nowiki>'foo'</nowiki>'''
13105 '''<nowiki>''foo''</nowiki>'''
13106 '''<nowiki>'''foo'''</nowiki>'''
13107 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13115 <b>foo'<i>bar'</i>baz</b>
13120 2. Link fragments separated by <i> and <b> tags
13122 [[''foo''<nowiki>hello]]</nowiki>
13124 [['''foo'''<nowiki>hello]]</nowiki>
13126 <p>[[<i>foo</i>hello]]
13127 </p><p>[[<b>foo</b>hello]]
13132 2. Link fragments inside <i> and <b>
13133 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13134 this is one of the shortcomings of this format)
13136 ''[[foo''<nowiki>]]</nowiki>
13138 '''[[foo'''<nowiki>]]</nowiki>
13141 </p><p><b>[[foo</b>]]
13145 #### --------------- Paragraphs ---------------
13146 #### 1. No unnecessary escapes
13147 #### --------------------------------------
13150 1. No unnecessary escapes
13152 bar <span><nowiki>[[foo]]</nowiki></span>
13154 =bar <span><nowiki>[[foo]]</nowiki></span>
13156 [[bar <span><nowiki>[[foo]]</nowiki></span>
13158 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13160 <nowiki>=bar </nowiki><span>foo]]</span>=
13162 <p>bar <span>[[foo]]</span>
13163 </p><p>=bar <span>[[foo]]</span>
13164 </p><p>[[bar <span>[[foo]]</span>
13165 </p><p>]]bar <span>[[foo]]</span>
13166 </p><p>=bar <span>foo]]</span>=
13170 #### --------------- PRE ------------------
13171 #### 1. Leading space in SOL context should be escaped
13172 #### --------------------------------------
13174 1. Leading space in SOL context should be escaped
13178 <nowiki> foo</nowiki>
13179 <!--cmt--><nowiki> foo</nowiki>
13186 #### --------------- HTML tags ---------------
13189 #### 3. multi-line html tag
13190 #### --------------------------------------
13196 <a href="http://google.com">google</a>
13198 <a href="http://google.com">google</a>
13204 <nowiki><div>foo</div>
13205 <div style="color:red">foo</div></nowiki>
13207 <p><div>foo</div>
13208 <div style="color:red">foo</div>
13213 3. multi-line html tag
13225 #### --------------- Others ---------------
13229 <nowiki>foo</nowiki>
13231 <p><nowiki>foo</nowiki>
13236 Tag-like HTML structures are passed through as text
13258 </p><p>1<d e>f
13263 # This fails in the PHP parser (see bug 40670,
13264 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13266 Tag names followed by punctuation should not be recognized as tags
13272 <p><s.ome> text
13282 Try for 100% code coverage