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
3132 Plain link, capitalized
3136 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3141 Plain link, uncapitalized
3145 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3152 [[Main Page|The Main Page]]
3154 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3163 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3168 Broken link with fragment
3170 [[Zigzagzogzagzig#zug]]
3172 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3177 Special page link with fragment
3179 [[Special:Version#anchor]]
3181 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3186 Nonexistent special page link with fragment
3188 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3190 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3197 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3199 <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>
3206 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3208 <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>!!!
3213 Link with HTML entity in suffix / tail
3215 [[Main Page]]", [[Main Page]]a
3217 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3222 Link with 3 brackets
3231 Piped link with 3 brackets
3233 [[[main page|the main page]]]
3235 <p>[[[main page|the main page]]]
3240 Link with multiple pipes
3242 [[Main Page|The|Main|Page]]
3244 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3251 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3253 <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>
3258 Piped link to namespace
3260 [[Meta:Disclaimers|The disclaimers]]
3262 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3269 [[Usually caused by a typo (oops}]]
3271 <p>[[Usually caused by a typo (oops}]]
3276 Link containing % (not as a hex sequence)
3280 <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>
3285 Link containing % as a single hex sequence interpreted to char
3289 <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>
3294 Link containing % as a double hex sequence interpreted to hex sequence
3298 <p>[[7%2525 Solution]]
3303 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3304 Example for such a section: == < ==
3306 [[%23%3c]][[%23%3e]]
3308 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3313 Link containing "<#" and ">#" as a hex sequences
3315 [[%3c%23]][[%3e%23]]
3317 <p>[[%3c%23]][[%3e%23]]
3322 Link containing double-single-quotes '' (bug 4598)
3324 [[Lista d''e paise d''o munno]]
3326 <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>
3331 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3333 Some [[Link|pretty ''italics'' and stuff]]!
3335 <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>!
3340 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3342 ''Some [[Link|pretty ''italics'' and stuff]]!
3344 <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>
3349 Link with double quotes in title part (literal) and alternate part (interpreted)
3351 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3355 [[''Pentecoste''|Pentecoste]]
3357 [[''Pentecoste''|''Pentecoste'']]
3359 <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>
3360 </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>
3361 </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>
3362 </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>
3367 Broken image links with HTML captions (bug 39700)
3369 [[File:Nonexistent|<script></script>]]
3370 [[File:Nonexistent|100px|<script></script>]]
3371 [[File:Nonexistent|<]]
3372 [[File:Nonexistent|a<i>b</i>c]]
3374 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3375 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3376 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3377 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3384 [[http://www.example.com]]
3386 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3391 Plain link to URL with link text
3393 [[http://www.example.com Link text]]
3395 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3400 Plain link to protocol-relative URL
3402 [[//www.example.com]]
3404 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3409 Plain link to protocol-relative URL with link text
3411 [[//www.example.com Link text]]
3413 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3418 Plain link to page with question mark in title
3424 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3425 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3430 # I'm fairly sure the expected result here is wrong.
3431 # We want these to be URL links, not pseudo-pages with URLs for titles....
3432 # However the current output is also pretty screwy.
3435 # I'm changing it to match the current output--it arguably makes more
3436 # sense in the light of the test above. Old expected result was:
3437 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3439 # But I think this test is bordering on "garbage in, garbage out" anyway.
3444 Piped link to URL: [[http://www.example.com|an example URL]]
3446 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3451 BUG 2: [[page|http://url/]] should link to page, not http://url/
3453 [[Main Page|http://url/]]
3455 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3460 BUG 337: Escaped self-links should be bold
3464 [[Bug462]] [[Bug462]]
3466 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3471 Self-link to section should not be bold
3475 [[Main Page#section]]
3477 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3488 Self-link to numeric title
3494 <p><strong class="selflink">0</strong>
3499 Link to numeric-equivalent title
3505 <p><a href="/wiki/00" title="00">00</a>
3510 <nowiki> inside a link
3512 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3514 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3519 Non-breaking spaces in title
3521 [[ Main Page ]]
3523 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3528 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3534 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3539 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3545 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3550 Internal link with en linktrail: no apostrophes (bug 27473)
3556 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3561 Internal link with ca linktrail with apostrophes (bug 27473)
3567 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3572 Internal link with kaa linktrail with apostrophes (bug 27473)
3578 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3583 ### Interwiki links (see maintenance/interwiki.sql)
3587 Inline interwiki link
3589 [[MeatBall:SoftSecurity]]
3591 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3596 Inline interwiki link with empty title (bug 2372)
3600 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3605 Interwiki link encoding conversion (bug 1636)
3607 *[[Wikipedia:ro:Olteniţa]]
3608 *[[Wikipedia:ro:Olteniţa]]
3610 <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>
3611 </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>
3617 Interwiki link with fragment (bug 2130)
3619 [[MeatBall:SoftSecurity#foo]]
3621 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3636 Double interlanguage link
3647 Interlanguage link, with prefix links
3659 Double interlanguage link, with prefix links (bug 8897)
3672 Parsoid-specific test: Wikilinks with should RT properly
3678 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3696 Broken br tag sanitization
3705 Incorrecly removing closing slashes from correctly formed XHTML
3707 <br style="clear:both;" />
3709 <p><br style="clear:both;" />
3714 Failing to transform badly formed HTML into correct XHTML
3716 <br style="clear: left;">
3717 <br style="clear: right;">
3718 <br style="clear: both;">
3720 <p><br style="clear: left;" />
3721 <br style="clear: right;" />
3722 <br style="clear: both;" />
3727 Handling html with a div self-closing tag
3736 <p><div title />
3740 <p><div title=bar />
3741 <div title=bar/>
3743 <div title="bar/"></div>
3749 Handling html with a br self-closing tag
3758 <p><br title="title" />
3759 <br title="title" />
3768 Horizontal ruler (should it add that extra space?)
3782 Horizontal ruler -- 4+ dashes render hr
3791 Horizontal ruler -- eats additional dashes on the same line
3800 Horizontal ruler -- does not collaps dashes on consecutive lines
3811 Horizontal ruler -- <4 dashes render as plain text
3820 Horizontal ruler -- Supports content following dashes on same line
3829 ### Block-level elements
3852 <ol><li>Numbered list
3869 ***#Number on level 4
3871 **#Number on level 3
3872 **#Number on level 3
3876 #** Level 3, but ordered
3879 <ol><li> with numbers
3881 <ul><li> and bullets
3883 <ol><li> and numbers
3885 </li><li>bullets again
3886 <ul><li>bullet level 2
3887 <ul><li>bullet level 3
3888 <ol><li>Number on level 4
3891 </li><li>bullet level 2
3892 <ol><li>Number on level 3
3893 </li><li>Number on level 3
3896 <ol><li>number level 2
3899 <ul><li><ul><li> Level 3
3903 <ol><li><ul><li><ul><li> Level 3, but ordered
3937 Nested lists 3 (first element empty)
3950 Nested lists 4 (first element empty)
3963 Nested lists 5 (both elements empty)
3976 Nested lists 6 (both elements empty)
3989 Nested lists 7 (skip initial nesting levels)
3993 <ul><li><ul><li><ul><li> foo
4001 Nested lists 8 (multiple nesting transitions)
4009 <ul><li><ul><li> bar
4019 1. Lists with start-of-line-transparent tokens before bullets: Comments
4033 2. Lists with start-of-line-transparent tokens before bullets: Template close
4045 List items are not parsed correctly following a <pre> block (bug 785)
4051 <ul><li> <pre>foo</pre>
4052 </li><li> <pre>bar</pre>
4059 List items from template
4070 * notSOL{{inner list}}
4089 List interrupted by empty line or heading
4099 <ul><li><ul><li> bar
4102 <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>
4103 <ul><li> Another list item
4109 Multiple list tags generated by templates
4128 Magic Word: {{CURRENTDAY}}
4137 Magic Word: {{CURRENTDAY2}}
4146 Magic Word: {{CURRENTDAYNAME}}
4155 Magic Word: {{CURRENTDOW}}
4164 Magic Word: {{CURRENTMONTH}}
4173 Magic Word: {{CURRENTMONTHABBREV}}
4175 {{CURRENTMONTHABBREV}}
4182 Magic Word: {{CURRENTMONTHNAME}}
4184 {{CURRENTMONTHNAME}}
4191 Magic Word: {{CURRENTMONTHNAMEGEN}}
4193 {{CURRENTMONTHNAMEGEN}}
4200 Magic Word: {{CURRENTTIME}}
4209 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4218 Magic Word: {{CURRENTYEAR}}
4227 Magic Word: {{FULLPAGENAME}}
4229 title=[[User:Ævar Arnfjörð Bjarmason]]
4233 <p>User:Ævar Arnfjörð Bjarmason
4238 Magic Word: {{FULLPAGENAMEE}}
4240 title=[[User:Ævar Arnfjörð Bjarmason]]
4244 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4249 Magic Word: {{NAMESPACE}}
4251 title=[[User:Ævar Arnfjörð Bjarmason]]
4260 Magic Word: {{NAMESPACEE}}
4262 title=[[User:Ævar Arnfjörð Bjarmason]]
4271 Magic Word: {{NAMESPACENUMBER}}
4273 title=[[User:Ævar Arnfjörð Bjarmason]]
4282 Magic Word: {{NUMBEROFFILES}}
4291 Magic Word: {{PAGENAME}}
4293 title=[[User:Ævar Arnfjörð Bjarmason]]
4297 <p>Ævar Arnfjörð Bjarmason
4302 Magic Word: {{PAGENAME}} with metacharacters
4304 title=[['foo & bar = baz']]
4308 <p><i>'foo & bar = baz'</i>
4313 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4315 title=[[*RFC 1234 http://example.com/]]
4319 <p>*RFC 1234 http://example.com/
4324 Magic Word: {{PAGENAMEE}}
4326 title=[[User:Ævar Arnfjörð Bjarmason]]
4330 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4335 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4337 title=[[*RFC 1234 http://example.com/]]
4341 <p>*RFC_1234_http://example.com/
4346 Magic Word: {{REVISIONID}}
4355 Magic Word: {{SCRIPTPATH}}
4364 Magic Word: {{SERVER}}
4368 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4373 Magic Word: {{SERVERNAME}}
4382 Magic Word: {{SITENAME}}
4391 Namespace 1 {{ns:1}}
4400 Namespace 1 {{ns:01}}
4409 Namespace 0 {{ns:0}} (bug 4783)
4417 Namespace 0 {{ns:00}} (bug 4783)
4425 Namespace -1 {{ns:-1}}
4434 Namespace User {{ns:User}}
4443 Namespace User talk {{ns:User_talk}}
4452 Namespace User talk {{ns:uSeR tAlK}}
4461 Namespace File {{ns:File}}
4470 Namespace File {{ns:Image}}
4479 Namespace (lang=de) Benutzer {{ns:User}}
4490 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4496 <p>Benutzer Diskussion
4504 {{urlencode:hi world?!}}
4505 {{urlencode:hi world?!|WIKI}}
4506 {{urlencode:hi world?!|PATH}}
4507 {{urlencode:hi world?!|QUERY}}
4520 Magic links: internal link to RFC (bug 479)
4524 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4529 Magic links: RFC (bug 479)
4533 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4538 Magic links: ISBN (bug 1937)
4542 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4547 Magic links: PMID incorrectly converts space to underscore
4551 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4560 Nonexistent template
4562 {{thistemplatedoesnotexist}}
4564 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4569 Template with invalid target containing tags
4571 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4573 <p>{{a<b>b</b>|foo|a=b|a = b}}
4578 Template with invalid target containing unclosed tag
4580 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4582 <p>{{a<b>|foo|a=b|a = b}}</b>
4589 This is a test template
4597 <p>This is a test template
4602 Template with explicit namespace
4606 <p>This is a test template
4614 This is a test template with parameter {{{param}}}
4620 {{paramtest|param=foo}}
4622 <p>This is a test template with parameter foo
4627 Template:paramtestnum
4633 Template unnamed parameter
4635 {{paramtestnum|Main Page|the main page}}
4637 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4642 Template:templatesimple
4648 Template:templateredirect
4650 #redirect [[Template:templatesimple]]
4654 Template:templateasargtestnum
4660 Template:templateasargtest
4662 {{template{{{templ}}}}}
4666 Template:templateasargtest2
4672 Template with template name as unnamed argument
4674 {{templateasargtestnum|templatesimple}}
4681 Template with template name as argument
4683 {{templateasargtest|templ=simple}}
4690 Template with template name as argument (2)
4692 {{templateasargtest2|templ=templatesimple}}
4699 Template:templateasargtestdefault
4701 {{{{{templ|templatesimple}}}}}
4711 Template with default value
4713 {{templateasargtestdefault}}
4720 Template with default value (value set)
4722 {{templateasargtestdefault|templ=templa}}
4731 {{templateredirect}}
4738 Template with argument in separate line
4740 {{ templateasargtest |
4748 Template with complex template as argument
4751 param ={{ templateasargtest |
4754 <p>This is a test template with parameter (test)
4759 Template with thumb image (with link in description)
4762 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4764 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>
4769 Template:complextemplate
4771 {{{1}}} {{paramtest|
4772 param ={{{param}}}}}
4776 Template with complex arguments
4779 param ={{ templateasargtest |
4780 templ = simple }}|[[Template:complextemplate|link]]}}
4782 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4787 BUG 553: link with two variables in a piped link
4790 |[[{{{1}}}|{{{2}}}]]
4795 <td>[[{{{1}}}|{{{2}}}]]
4801 Magic variable as template parameter
4803 {{paramtest|param={{SITENAME}}}}
4805 <p>This is a test template with parameter MediaWiki
4812 [[{{{param}}}|link]]
4816 Template parameter as link source
4818 {{linktest|param=Main Page}}
4820 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4825 Template-generated attribute string (k='v')
4827 <span {{attr_str|id|v1}}>bar</span>
4829 <p><span id="v1">bar</span>
4836 including another template, {{paramtest|param={{{arg}}}}}
4840 Template passing argument to another template
4842 {{paramtest2|arg='hmm'}}
4844 <p>including another template, This is a test template with parameter 'hmm'
4855 Template as link source
4859 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4877 Template infinite loop
4881 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4886 Template from main namespace
4905 BUG 529: Template with table, not included at beginning of line
4924 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4944 BUG 41: Template parameters shown as broken links
4953 Template with targets containing wikilinks
4957 {{[[{{echo|foo}}]]}}
4959 {{{{echo|[[foo}}]]}}
4961 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4962 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4970 ''None'' of '''this''' should be
4972 but rather passed unmodified
4976 # hmm, fix this or just deprecate msgnw and document its behavior?
4982 {{msgnw:MSGNW test}}
4984 <p>''None'' of '''this''' should be
4986 but rather passed unmodified
4994 {{int:youhavenewmessages|lots of money|not!}}
4996 <p>You have lots of money (not!).
5003 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5007 <includeonly> and <noinclude> being included
5018 <onlyinclude>Foo</onlyinclude>bar
5022 <onlyinclude> being included
5034 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5038 <onlyinclude> and <includeonly> being included
5047 <includeonly> and <noinclude> on a page
5049 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5056 Un-closed <noinclude>
5063 <onlyinclude> on a page
5065 <onlyinclude>Foo</onlyinclude>bar
5072 Un-closed <onlyinclude>
5079 Self-closed noinclude, includeonly, onlyinclude tags
5090 Unbalanced includeonly and noinclude tags
5094 |b</noinclude></noinclude>
5095 |c</noinclude></includeonly>
5096 |d</includeonly></includeonly>
5105 <td>c</includeonly>
5107 <td>d</includeonly></includeonly>
5113 Template:Includeonly section
5116 ==Includeonly section==
5122 Bug 6563: Edit link generation for section shown by <includeonly>
5124 {{includeonly section}}
5126 <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>
5127 <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>
5131 # Uses same input as the contents of [[Template:Includeonly section]]
5133 Bug 6563: Section extraction for section shown by <includeonly>
5138 ==Includeonly section==
5146 Bug 6563: Edit link generation for section suppressed by <includeonly>
5149 ==Includeonly section==
5153 <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>
5158 Bug 6563: Section extraction for section suppressed by <includeonly>
5163 ==Includeonly section==
5171 Un-closed <includeonly>
5178 ### <includeonly> and <noinclude> in attributes
5181 0. includeonly around the entire attribute
5183 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5185 <p><span id="v2">bar</span>
5190 1. includeonly in html attr key
5192 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5194 <p><span id="foo">bar</span>
5199 2. includeonly in html attr value
5201 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5202 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5204 <p><span id="v1">bar</span>
5205 <span id="v1">bar</span>
5210 3. includeonly in part of an attr value
5212 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5214 <p><span style="color:red;">bar</span>
5219 ### Testing parsing of templates where a template arg
5220 ### has the same name as the template itself.
5230 Templates: Template Name/Arg clash: 1. Use of positional param
5239 Templates: Template Name/Arg clash: 2. Use of named param
5248 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5257 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5261 Templates: 1. Simple use
5270 Templates: 2. Inside a block tag
5272 <div>{{echo|Foo}}</div>
5279 Templates: P-wrapping: 1a. Templates on consecutive lines
5290 Templates: P-wrapping: 1b. Templates on consecutive lines
5304 Templates: P-wrapping: 1c. Templates on consecutive lines
5307 {{echo|bar}} <div>baz</div>
5316 Templates: Inline Text: 1. Multiple tmeplate uses
5318 {{echo|Foo}}bar{{echo|baz}}
5325 Templates: Inline Text: 2. Back-to-back template uses
5327 {{echo|Foo}}{{echo|bar}}
5334 Templates: Block Tags: 1. Multiple template uses
5336 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5338 <div>Foo</div><div>bar</div><div>baz</div>
5343 Templates: Block Tags: 2. Back-to-back template uses
5345 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5347 <div>Foo</div><div>bar</div>
5352 Templates: Links: 1. Simple example
5354 {{echo|[[Foo|bar]]}}
5356 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5361 Templates: Links: 2. Generation of link href
5363 [[{{echo|Foo}}|bar]]
5365 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5370 Templates: Links: 3. Generation of part of a link href
5372 [[Fo{{echo|o}}|bar]]
5374 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5379 Templates: Links: 4. Multiple templates generating link href
5381 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5383 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5388 Templates: Links: 5. Generation of link text
5390 [[Foo|{{echo|bar}}]]
5392 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5397 Templates: Links: 5. Nested templates (only outermost template should be marked)
5399 {{echo|[[{{echo|Foo}}|bar]]}}
5401 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5406 Templates: HTML Tag: 1. Generation of HTML attr. key
5408 <div {{echo|style}}="color:red;">foo</div>
5410 <div style="color:red;">foo</div>
5415 Templates: HTML Tag: 2. Generation of HTML attr. value
5417 <div style={{echo|'color:red;'}}>foo</div>
5419 <div style="color:red;">foo</div>
5424 Templates: HTML Tag: 3. Generation of HTML attr key and value
5426 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5428 <div style="color:red;">foo</div>
5433 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5435 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5437 <div title="This is a long title with just one piece templated">foo</div>
5442 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5444 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5446 <div title="This is a long title with just one piece templated">foo</div>
5451 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5453 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5455 <div title="This is a long title with just one piece templated">foo</div>
5460 Templates: HTML Tables: 1. Generating start of a HTML table
5462 {{echo|<table><tr><td>foo</td>}}</tr></table>
5464 <table><tr><td>foo</td></tr></table>
5469 Templates: HTML Tables: 2a. Generating middle of a HTML table
5471 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5473 <table><tr><td>foo</td></tr></table>
5478 Templates: HTML Tables: 2b. Generating middle of a HTML table
5480 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5482 <table><tr><td>foo</td></tr></table>
5487 Templates: HTML Tables: 3. Generating end of a HTML table
5489 <table><tr>{{echo|<td>foo</td></tr></table>}}
5491 <table><tr><td>foo</td></tr></table>
5496 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5498 {{echo|<table>}}<tr><td>foo</td></tr></table>
5500 <table><tr><td>foo</td></tr></table>
5505 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5507 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5509 <table><tr><td>foo</td></tr></table>
5514 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5516 <table><tr>{{echo|<td>}}foo</td></tr></table>
5518 <table><tr><td>foo</td></tr></table>
5523 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5525 <table><tr><td>foo{{echo|</td>}}</tr></table>
5527 <table><tr><td>foo</td></tr></table>
5532 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5534 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5536 <table><tr><td>foo</td></tr></table>
5541 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5543 <table><tr><td>foo</td></tr>{{echo|</table>}}
5545 <table><tr><td>foo</td></tr></table>
5550 Templates: Wiki Tables: 1. Fostering of entire template content
5558 <tr><td></td></tr></table>
5563 Templates: Wiki Tables: 2. Fostering of partial template content
5573 <tr><td></td></tr></table>
5578 Templates: Wiki Tables: 3. td-content via multiple templates
5581 {{echo|{{pipe}}a}}{{echo|b}}
5592 Templates: Wiki Tables: 4. Templated tags, no content
5598 <tr><td></td></tr></table>
5603 Templates: Wiki Tables: 4. Templated tags, regular td-tags
5617 Templates: Wiki Tables: 4. Templated tags, templated td-tags
5631 Templates: Lists: Multi-line list-items via templates
5633 *{{echo|a {{nonexistent|
5635 *{{echo|b {{nonexistent|
5638 <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>
5639 </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>
5645 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5647 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5649 <p><i>ab</i>c<i>d</i>e
5654 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5655 (PHP parser generates misnested html)
5659 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5661 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5665 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5666 (PHP parser generates misnested html)
5670 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5673 <div><i>b</i>c<i>d</i></div>
5678 Templates: Ugly nesting: 4. Divs opened/closed across templates
5680 a<div>b{{echo|c</div>d}}e
5687 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5693 |{{echo|foo</table>}}
5697 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5698 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5699 bar</span><span about="#mwt1">
5704 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5714 <td>1. {{echo|foo </table>}}</td>
5716 <td>2. {{echo|baz </table>}}</td>
5729 <table data-parsoid="{"src":"<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. {{echo|foo </table>}}</td>\n <td> bar </td>\n <td>2. {{echo|baz </table>}}</td>\n </tr>\n <tr>\n <td>abc</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>xyz</td>\n </tr>\n</table>"}" about="#mwt1" typeof="mw:Object/Template">
5730 <tbody><tr data-parsoid="{"stx":"html"}">
5731 <td data-parsoid="{"stx":"html"}">
5732 <table data-parsoid="{"stx":"html"}">
5733 <tbody><tr data-parsoid="{"stx":"html"}">
5734 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5735 <td data-parsoid="{"stx":"html"}"> bar </td>
5736 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5737 </span><span about="#mwt1">
5739 abc</span><span about="#mwt1">
5740 </span><span about="#mwt1">
5741 </span><span about="#mwt1">
5742 </span><span about="#mwt1">
5743 </span><span about="#mwt1">
5745 xyz</span><span about="#mwt1">
5746 </span><span about="#mwt1">
5751 Parser Functions: 1. Simple example
5760 Parser Functions: 2. Nested use (only outermost should be marked up)
5769 ### Pre-save transform tests
5772 pre-save transform: subst:
5778 This is a test template
5782 pre-save transform: normal template
5792 pre-save transform: nonexistent template
5796 {{thistemplatedoesnotexist}}
5798 {{thistemplatedoesnotexist}}
5803 pre-save transform: subst magic variables
5812 # This is bug 89, which I fixed. -- wtm
5814 pre-save transform: subst: templates with parameters
5818 {{subst:paramtest|param="something else"}}
5820 This is a test template with parameter "something else"
5826 <nowiki>'''not wiki'''</nowiki>
5830 pre-save transform: nowiki in subst (bug 1188)
5834 {{subst:nowikitest}}
5836 <nowiki>'''not wiki'''</nowiki>
5841 Template:commenttest
5843 This template has <!-- a comment --> in it.
5847 pre-save transform: comment in subst (bug 1936)
5851 {{subst:commenttest}}
5853 This template has <!-- a comment --> in it.
5857 pre-save transform: unclosed tag
5861 <nowiki>'''not wiki'''
5863 <nowiki>'''not wiki'''
5867 pre-save transform: mixed tag case
5871 <NOwiki>'''not wiki'''</noWIKI>
5873 <NOwiki>'''not wiki'''</noWIKI>
5877 pre-save transform: unclosed comment in <nowiki>
5881 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5883 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5889 <span onmouseover="alert('crap')">Oh no</span>
5893 (confirming safety of fix for subst bug 1936)
5895 {{Template:dangerous}}
5897 <p><span>Oh no</span>
5902 pre-save transform: comment containing gallery (bug 5024)
5906 <!-- <gallery>data</gallery> -->
5908 <!-- <gallery>data</gallery> -->
5912 pre-save transform: comment containing extension
5916 <!-- <tag>data</tag> -->
5918 <!-- <tag>data</tag> -->
5922 pre-save transform: comment containing nowiki
5926 <!-- <nowiki>data</nowiki> -->
5928 <!-- <nowiki>data</nowiki> -->
5932 pre-save transform: <noinclude> in subst (bug 3298)
5942 pre-save transform: <onlyinclude> in subst (bug 3298)
5954 {{<includeonly>subst:</includeonly>Includes}}
5958 Template:SafeSubstTest
5960 {{<includeonly>safesubst:</includeonly>Includes}}
5964 bug 22297: safesubst: works during PST
5968 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5974 bug 22297: safesubst: works during normal parse
5983 subst: does not work during normal parse
5987 <p>{{subst:Includes}}
5992 pre-save transform: context links ("pipe trick")
5996 [[Article (context)|]]
5999 [[Bar:Article (context)|]]
6000 [[:Bar:Article (context)|]]
6002 [[|Article (context)]]
6006 [[Article (context)|Article]]
6007 [[Bar:Article|Article]]
6008 [[:Bar:Article|Article]]
6009 [[Bar:Article (context)|Article]]
6010 [[:Bar:Article (context)|Article]]
6012 [[Article (context)]]
6013 [[Bar:X (Y) Z|X (Y) Z]]
6014 [[:Bar:X (Y) Z|X (Y) Z]]
6018 pre-save transform: context links ("pipe trick") with interwiki prefix
6022 [[interwiki:Article|]]
6023 [[:interwiki:Article|]]
6024 [[interwiki:Bar:Article|]]
6025 [[:interwiki:Bar:Article|]]
6027 [[interwiki:Article|Article]]
6028 [[:interwiki:Article|Article]]
6029 [[interwiki:Bar:Article|Bar:Article]]
6030 [[:interwiki:Bar:Article|Bar:Article]]
6034 pre-save transform: context links ("pipe trick") with parens in title
6036 pst title=[[Somearticle (context)]]
6040 [[Article (context)|Article]]
6044 pre-save transform: context links ("pipe trick") with comma in title
6046 pst title=[[Someplace, Somewhere]]
6049 [[Otherplace, Elsewhere|]]
6050 [[Otherplace, Elsewhere, Anywhere|]]
6052 [[Otherplace, Somewhere|Otherplace]]
6053 [[Otherplace, Elsewhere|Otherplace]]
6054 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6058 pre-save transform: context links ("pipe trick") with parens and comma
6060 pst title=[[Someplace (IGNORED), Somewhere]]
6063 [[Otherplace (place), Elsewhere|]]
6065 [[Otherplace, Somewhere|Otherplace]]
6066 [[Otherplace (place), Elsewhere|Otherplace]]
6070 pre-save transform: context links ("pipe trick") with comma and parens
6072 pst title=[[Who, me? (context)]]
6075 [[Me, Myself, and I (1937 song)|]]
6077 [[Yes, you. (context)|Yes, you.]]
6078 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6082 pre-save transform: context links ("pipe trick") with namespace
6084 pst title=[[Ns:Somearticle]]
6088 [[Ns:Article|Article]]
6092 pre-save transform: context links ("pipe trick") with namespace and parens
6094 pst title=[[Ns:Somearticle (context)]]
6098 [[Ns:Article (context)|Article]]
6102 pre-save transform: context links ("pipe trick") with namespace and comma
6104 pst title=[[Ns:Somearticle, Context, Whatever]]
6108 [[Ns:Article, Context, Whatever|Article]]
6112 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6114 pst title=[[Ns:Somearticle, Context (context)]]
6118 [[Ns:Article (context)|Article]]
6122 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6124 pst title=[[Ns:Somearticle (IGNORED), Context]]
6128 [[Ns:Article, Context|Article]]
6132 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6136 [[Article(context)|]]
6137 [[Bar:Article(context)|]]
6138 [[:Bar:Article(context)|]]
6139 [[|Article(context)]]
6143 [[Article(context)|Article]]
6144 [[Bar:Article(context)|Article]]
6145 [[:Bar:Article(context)|Article]]
6146 [[Article(context)]]
6148 [[:Bar:X(Y)Z|X(Y)Z]]
6152 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6156 [[Article (context)|]]
6157 [[Bar:Article (context)|]]
6158 [[:Bar:Article (context)|]]
6159 [[|Article (context)]]
6163 [[Article (context)|Article]]
6164 [[Bar:Article (context)|Article]]
6165 [[:Bar:Article (context)|Article]]
6166 [[Article (context)]]
6167 [[Bar:X (Y) Z|X (Y) Z]]
6168 [[:Bar:X (Y) Z|X (Y) Z]]
6172 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6176 [[Article(context)|]]
6177 [[Bar:Article(context)|]]
6178 [[:Bar:Article(context)|]]
6179 [[|Article(context)]]
6183 [[Article(context)|Article]]
6184 [[Bar:Article(context)|Article]]
6185 [[:Bar:Article(context)|Article]]
6186 [[Article(context)]]
6188 [[:Bar:X(Y)Z|X(Y)Z]]
6192 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6196 [[Article (context), context|]]
6197 [[Article (context),context|]]
6198 [[Bar:Article (context), context|]]
6199 [[Bar:Article (context),context|]]
6200 [[:Bar:Article (context), context|]]
6201 [[:Bar:Article (context),context|]]
6203 [[Article (context), context|Article]]
6204 [[Article (context),context|Article]]
6205 [[Bar:Article (context), context|Article]]
6206 [[Bar:Article (context),context|Article]]
6207 [[:Bar:Article (context), context|Article]]
6208 [[:Bar:Article (context),context|Article]]
6212 pre-save transform: trim trailing empty lines
6216 Empty lines are trimmed
6222 Empty lines are trimmed
6226 pre-save transform: Signature expansion
6231 * <noinclude>~~~</noinclude>
6232 * <includeonly>~~~</includeonly>
6233 * <onlyinclude>~~~</onlyinclude>
6235 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6236 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6237 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6238 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6243 pre-save transform: Signature expansion in nowiki tags (bug 93)
6249 <nowiki>~~~~</nowiki>
6251 <includeonly><nowiki>~~~~</nowiki></includeonly>
6253 <noinclude><nowiki>~~~~</nowiki></noinclude>
6255 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6257 {{subst:Foo}} shall be converted to FOO
6259 As well as inside noinclude/onlyinclude
6260 <noinclude>{{subst:Foo}}</noinclude>
6261 <onlyinclude>{{subst:Foo}}</onlyinclude>
6263 But not inside includeonly
6264 <includeonly>{{subst:Foo}}</includeonly>
6268 <nowiki>~~~~</nowiki>
6270 <includeonly><nowiki>~~~~</nowiki></includeonly>
6272 <noinclude><nowiki>~~~~</nowiki></noinclude>
6274 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6276 FOO shall be converted to FOO
6278 As well as inside noinclude/onlyinclude
6279 <noinclude>FOO</noinclude>
6280 <onlyinclude>FOO</onlyinclude>
6282 But not inside includeonly
6283 <includeonly>{{subst:Foo}}</includeonly>
6287 ### Message transform tests
6290 message transform: magic variables
6300 message transform: should not transform wiki markup
6310 message transform: <noinclude> in transcluded template (bug 4926)
6320 message transform: <onlyinclude> in transcluded template (bug 4926)
6330 {{#special:}} page name, known
6334 {{#special:Recentchanges}}
6336 Special:RecentChanges
6340 {{#special:}} page name with subpage, known
6344 {{#special:Recentchanges/param}}
6346 Special:RecentChanges/param
6350 {{#special:}} page name, unknown
6354 {{#special:foobarnonexistent}}
6356 No such special page
6360 {{#speciale:}} page name, known
6364 {{#speciale:Recentchanges}}
6366 Special:RecentChanges
6370 {{#speciale:}} page name with subpage, known
6374 {{#speciale:Recentchanges/param}}
6376 Special:RecentChanges/param
6380 {{#speciale:}} page name, unknown
6384 {{#speciale:foobarnonexistent}}
6386 No_such_special_page
6395 [[Image:foobar.jpg]]
6397 <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>
6404 [[Image:foobar.jpg|right]]
6406 <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>
6411 Simple image (using File: namespace, now canonical)
6415 <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>
6422 [[Image:foobar.jpg|right|Caption text]]
6424 <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>
6429 Image with empty attribute
6431 [[Image:foobar.jpg|right||Caption text]]
6433 <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>
6438 Image with link tails
6440 123[[Image:foobar.jpg]]456
6441 123[[Image:foobar.jpg|right]]456
6442 123[[Image:foobar.jpg|thumb]]456
6444 <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
6446 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
6447 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
6452 Image with multiple captions -- only last one is accepted
6454 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6456 <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>
6461 Image with width attribute at different positions
6463 [[Image:foobar.jpg|200px|right|Caption]]
6464 [[Image:foobar.jpg|right|200px|Caption]]
6465 [[Image:foobar.jpg|right|Caption|200px]]
6467 <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>
6468 <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>
6469 <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>
6474 Image with link parameter, wiki target
6476 [[Image:foobar.jpg|link=Target page]]
6478 <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>
6483 Image with link parameter, URL target
6485 [[Image:foobar.jpg|link=http://example.com/]]
6487 <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>
6492 Image with link parameter, wgExternalLinkTarget
6494 [[Image:foobar.jpg|link=http://example.com/]]
6496 wgExternalLinkTarget='foobar'
6498 <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>
6503 Image with link parameter, wgNoFollowLinks set to false
6505 [[Image:foobar.jpg|link=http://example.com/]]
6507 wgNoFollowLinks=false
6509 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6514 Image with link parameter, wgNoFollowDomainExceptions
6516 [[Image:foobar.jpg|link=http://example.com/]]
6518 wgNoFollowDomainExceptions='example.com'
6520 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6525 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6527 [[Image:foobar.jpg|link=http://example.com/|Title]]
6529 wgExternalLinkTarget='foobar'
6531 <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>
6536 Image with empty link parameter
6538 [[Image:foobar.jpg|link=]]
6540 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6545 Image with link parameter (wiki target) and unnamed parameter
6547 [[Image:foobar.jpg|link=Target page|Title]]
6549 <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>
6554 Image with link parameter (URL target) and unnamed parameter
6556 [[Image:foobar.jpg|link=http://example.com/|Title]]
6558 <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>
6563 Thumbnail image with link parameter
6565 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6567 <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>
6572 Image with frame and link
6574 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6576 <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>
6581 Image with frame and link and explicit alt
6583 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6585 <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>
6590 Image with wiki markup in implicit alt
6592 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6594 <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>
6599 Image with wiki markup in explicit alt
6601 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6603 <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>
6608 Link to image page- image page normally doesn't exists, hence edit link
6609 Add test with existing image page
6610 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6614 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6619 bug 18784 Link to non-existent image page with caption should use caption as link text
6621 [[:Image:test|caption]]
6623 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6628 Frameless image caption with a free URL
6630 [[Image:foobar.jpg|http://example.com]]
6632 <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>
6637 Thumbnail image caption with a free URL
6639 [[Image:foobar.jpg|thumb|http://example.com]]
6641 <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>
6646 Thumbnail image caption with a free URL and explicit alt
6648 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6650 <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>
6655 BUG 1887: A ISBN with a thumbnail
6657 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6659 <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>
6664 BUG 1887: A RFC with a thumbnail
6666 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6668 <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>
6673 BUG 1887: A mailto link with a thumbnail
6675 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6677 <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>
6681 # Pending resolution to bug 368
6683 BUG 648: Frameless image caption with a link
6685 [[Image:foobar.jpg|text with a [[link]] in it]]
6687 <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>
6692 BUG 648: Frameless image caption with a link (suffix)
6694 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6696 <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>
6701 BUG 648: Frameless image caption with an interwiki link
6703 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6705 <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>
6710 BUG 648: Frameless image caption with a piped interwiki link
6712 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6714 <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>
6719 Escape HTML special chars in image alt text
6721 [[Image:foobar.jpg|& < > "]]
6723 <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>
6728 BUG 499: Alt text should have Ӓ, not &1234;
6730 [[Image:foobar.jpg|♀]]
6732 <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>
6737 Broken image caption with link
6739 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6741 <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.
6746 Image caption containing another image
6748 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6750 <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>
6755 Image caption containing a newline
6757 [[Image:Foobar.jpg|This
6760 <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>
6766 Bug 3090: External links other than http: in image captions
6768 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6770 <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>
6777 [[Image:foobar.jpg|a|class=b]]
6779 <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>
6786 #REDIRECT [[File:Barfoo.jpg]]
6792 [[Image:Barfoo.jpg]]
6794 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6799 Missing image with uploads disabled
6803 [[Image:Foobaz.jpg]]
6805 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6814 Subpage test/subpage
6822 subpage title=[[Subpage test]]
6826 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6831 Subpage noslash link
6833 subpage title=[[Subpage test]]
6837 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6846 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6851 BUG 561: {{/Subpage}}
6853 subpage title=[[Page]]
6857 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6865 Category:MediaWiki User's Guide
6873 [[:Category:MediaWiki User's Guide]]
6875 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6884 [[Category:MediaWiki User's Guide]]
6886 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6890 PAGESINCATEGORY invalid title fatal (r33546 fix)
6892 {{PAGESINCATEGORY:<bogus>}}
6899 Category with different sort key
6903 [[Category:MediaWiki User's Guide|Foo]]
6905 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6909 Category with identical sort key
6913 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6915 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6919 Category with empty sort key
6924 [[Category:MediaWiki User's Guide|]]
6926 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6930 Category with empty sort key and parentheses
6935 [[Category:Foo (bar)|]]
6937 [[Category:Foo (bar)|Foo]]
6941 Category with link tail
6946 123[[Category:Foo]]456
6948 123[[Category:Foo]]456
6952 Category with template
6957 [[Category:{{echo|Foo}}]]
6959 [[Category:{{echo|Foo}}]]
6963 Category with template in sort key
6968 [[Category:Foo|{{echo|Bar}}]]
6970 [[Category:Foo|{{echo|Bar}}]]
6974 Category with template in sort key and title
6979 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6981 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6985 Category / paragraph interactions
6987 Foo [[Category:Baz]] Bar
6989 Foo [[Category:Baz]]
6997 [[Category:Baz]] Bar
7010 {{echo|[[Category:Baz]]}}
7025 ### Inter-language links
7028 Inter-language links
7034 [[zh:食品]]
7036 es:Alimento fr:Nourriture zh:食品
7040 Duplicate interlanguage links (bug 24502)
7056 Basic section headings
7063 ===Smaller headline===
7066 <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>
7069 <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>
7072 <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>
7078 Section headings with TOC
7081 === Subheadline 1 ===
7082 ===== Skipping a level =====
7083 ====== Skipping a level ======
7087 ===Another headline===
7089 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7091 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7093 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7095 <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>
7097 <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>
7104 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7106 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
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>
7112 <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>
7113 <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>
7114 <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>
7115 <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>
7118 <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>
7122 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7124 Handling of sections up to level 6 and beyond
7127 == Level 2 Heading==
7128 === Level 3 Heading===
7129 ==== Level 4 Heading====
7130 ===== Level 5 Heading=====
7131 ====== Level 6 Heading======
7132 ======= Level 7 Heading=======
7133 ======== Level 8 Heading========
7134 ========= Level 9 Heading=========
7135 ========== Level 10 Heading==========
7137 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7139 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7141 <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>
7143 <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>
7145 <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>
7147 <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>
7149 <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>
7150 <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>
7151 <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>
7152 <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>
7153 <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>
7166 <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>
7167 <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>
7168 <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>
7169 <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>
7170 <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>
7171 <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>
7172 <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>
7173 <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>
7174 <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>
7175 <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>
7180 TOC regression (bug 9764)
7184 ==== title 1.1.1 ====
7189 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7191 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7193 <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>
7195 <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>
7198 <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>
7201 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7203 <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>
7208 <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>
7209 <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>
7210 <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>
7211 <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>
7212 <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>
7213 <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>
7218 TOC with wgMaxTocLevel=3 (bug 6204)
7224 ==== title 1.1.1 ====
7229 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7231 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7233 <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>
7234 <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>
7237 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7239 <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>
7244 <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>
7245 <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>
7246 <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>
7247 <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>
7248 <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>
7249 <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>
7254 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7260 ====Section 1.1.1====
7261 ====Section 1.1.1.1====
7264 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7266 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7268 <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>
7271 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7274 <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>
7275 <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>
7276 <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>
7277 <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>
7278 <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>
7284 Resolving duplicate section names
7289 <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>
7290 <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>
7295 Resolving duplicate section names with differing case (bug 10721)
7300 <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>
7301 <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>
7313 Template with sections, __NOTOC__
7320 <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>
7321 <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>
7322 <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>
7323 <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>
7328 __NOEDITSECTION__ keyword
7334 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7335 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7340 Link inside a section heading
7342 ==Section with a [[Main Page|link]] in it==
7344 <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>
7349 TOC regression (bug 12077)
7356 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7358 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7360 <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>
7363 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7366 <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>
7367 <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>
7368 <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>
7373 BUG 1219 URL next to image (good)
7375 http://example.com [[Image:foobar.jpg]]
7377 <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>
7382 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7385 The line above must have a trailing space!
7388 But just in case it doesn't...
7390 <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>
7391 <p>The line above must have a trailing space!
7393 <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>
7394 <p>But just in case it doesn't...
7399 Header with special characters (bug 25462)
7401 The tooltips shall not show entities to the user (ie. be double escaped)
7418 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7420 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7422 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7423 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7424 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7425 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7426 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7429 <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>
7432 <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>
7435 <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>
7438 <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>
7441 <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>
7447 Headers with excess '=' characters
7448 (Are similar tests necessary beyond the 1st level?)
7452 =''italic'' heading==
7453 ==''italic'' heading=
7455 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7457 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7458 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7459 <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>
7460 <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>
7463 <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>
7464 <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>
7465 <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>
7466 <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>
7471 BUG 1219 URL next to image (broken)
7473 http://example.com[[Image:foobar.jpg]]
7475 <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>
7480 Bug 1186 news: in the middle of text
7482 http://en.wikinews.org/wiki/Wikinews:Workplace
7484 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7490 Namespaced link must have a title
7499 Namespaced link must have a title (bad fragment version)
7501 [[Project:#fragment]]
7503 <p>[[Project:#fragment]]
7509 div with no attributes
7511 <div>HTML rocks</div>
7513 <div>HTML rocks</div>
7518 div with double-quoted attribute
7520 <div id="rock">HTML rocks</div>
7522 <div id="rock">HTML rocks</div>
7527 div with single-quoted attribute
7529 <div id='rock'>HTML rocks</div>
7531 <div id="rock">HTML rocks</div>
7536 div with unquoted attribute
7538 <div id=rock>HTML rocks</div>
7540 <div id="rock">HTML rocks</div>
7545 div with illegal double attributes
7547 <div id="a" id="b">HTML rocks</div>
7549 <div id="b">HTML rocks</div>
7553 # FIXME: produce empty string instead of "class" in the PHP parser, following
7556 div with empty attribute value, space before equals
7560 <div class =>HTML rocks</div>
7562 <div class="">HTML rocks</div>
7566 # This it very inconsistent in the PHP parser: it returns
7567 # class="class" if there is a space between the name and the equal sign (see
7568 # 'div with empty attribute value, space before equals'), but strips the
7569 # attribute completely if the space is missing. We hope that not much content
7570 # depends on this, so are implementing the behavior below in Parsoid for
7571 # consistencies' sake. Disabled for the PHP parser.
7572 # FIXME: fix this behavior in the PHP parser?
7574 div with empty attribute value, no space before equals
7578 <div class=>HTML rocks</div>
7580 <div class="">HTML rocks</div>
7585 HTML multiple attributes correction
7587 <p class="error" class="awesome">Awesome!</p>
7589 <p class="awesome">Awesome!</p>
7594 Table multiple attributes correction
7597 !+ class="error" class="awesome"| status
7602 <th class="awesome"> status
7610 <DIV ID="x">HTML ROCKS</DIV>
7612 <div id="x">HTML ROCKS</div>
7617 Non-ASCII pseudo-tags are rendered as text
7626 Pseudo-tag with URL 'name' renders as url link
7628 <http://example.com/>
7630 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7635 text with amp in the middle of nowhere
7639 <p>Remember AT&T?
7644 text with character entity: eacute
7646 I always thought é was a cute letter.
7648 <p>I always thought é was a cute letter.
7653 text with undefined character entity: xacute
7655 I always thought &xacute; was a cute letter.
7657 <p>I always thought &xacute; was a cute letter.
7669 [[Media:Foobar.jpg]]
7671 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7676 Media link with text
7678 [[Media:Foobar.jpg|A neat file to look at]]
7680 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7684 # FIXME: this is still bad HTML tag nesting
7686 Media link with nasty text
7687 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7689 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7691 <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>
7696 Media link to nonexistent file (bug 1702)
7698 [[Media:No such.jpg]]
7700 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7705 Image link to nonexistent file (bug 1850 - good)
7707 [[Image:No such.jpg]]
7709 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7714 :Image link to nonexistent file (bug 1850 - bad)
7716 [[:Image:No such.jpg]]
7718 <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>
7725 Character reference normalization in link text (bug 1938)
7727 [[Main Page|this&that]]
7729 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7736 Test for unicode normalization
7738 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7742 (bug 19451) Links should refer to the normalized form.
7750 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7751 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7752 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7753 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7754 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7759 Empty attribute crash test (bug 2067)
7761 <font color="">foo</font>
7763 <p><font color="">foo</font>
7768 Empty attribute crash test single-quotes (bug 2067)
7770 <font color=''>foo</font>
7772 <p><font color="">foo</font>
7777 Attribute test: equals, then nothing
7779 <font color=>foo</font>
7786 Attribute test: unquoted value
7788 <font color=x>foo</font>
7790 <p><font color="x">foo</font>
7795 Attribute test: unquoted but illegal value (hash)
7797 <font color=#x>foo</font>
7799 <p><font color="#x">foo</font>
7804 Attribute test: no value
7806 <font color>foo</font>
7808 <p><font color="color">foo</font>
7813 Bug 2095: link with three closing brackets
7817 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7822 Bug 2095: link with pipe and three closing brackets
7826 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7831 Bug 2095: link with pipe and three closing brackets, version 2
7833 [[Main Page|[http://example.com/]]]
7835 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7845 Template:Dangerous attribute
7847 " onmouseover="alert(document.cookie)
7851 Template:Dangerous style attribute
7853 border-size: expression(alert(document.cookie))
7859 <div style="float: right; {{{1}}}">Magic div</div>
7863 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7865 <div title="{{test}}"></div>
7867 <div title="This is a test template"></div>
7872 Bug 2304: HTML attribute safety (dangerous template; 2309)
7874 <div title="{{dangerous attribute}}"></div>
7876 <div title=""></div>
7881 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7883 <div style="{{dangerous style attribute}}"></div>
7885 <div style="/* insecure input */"></div>
7890 Bug 2304: HTML attribute safety (safe parameter; 2309)
7892 {{div style|width: 200px}}
7894 <div style="float: right; width: 200px">Magic div</div>
7899 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7901 {{div style|width: expression(alert(document.cookie))}}
7903 <div style="/* insecure input */">Magic div</div>
7908 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7910 {{div style|"><script>alert(document.cookie)</script>}}
7912 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7917 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7919 {{div style|" ><script>alert(document.cookie)</script>}}
7921 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7926 Bug 2304: HTML attribute safety (link)
7928 <div title="[[Main Page]]"></div>
7930 <div title="[[Main Page]]"></div>
7935 Bug 2304: HTML attribute safety (italics)
7937 <div title="''foobar''"></div>
7939 <div title="''foobar''"></div>
7944 Bug 2304: HTML attribute safety (bold)
7946 <div title="'''foobar'''"></div>
7948 <div title="'''foobar'''"></div>
7954 Bug 2304: HTML attribute safety (ISBN)
7956 <div title="ISBN 1234567890"></div>
7958 <div title="ISBN 1234567890"></div>
7963 Bug 2304: HTML attribute safety (RFC)
7965 <div title="RFC 1234"></div>
7967 <div title="RFC 1234"></div>
7972 Bug 2304: HTML attribute safety (PMID)
7974 <div title="PMID 1234567890"></div>
7976 <div title="PMID 1234567890"></div>
7981 Bug 2304: HTML attribute safety (web link)
7983 <div title="http://example.com/"></div>
7985 <div title="http://example.com/"></div>
7990 Bug 2304: HTML attribute safety (named web link)
7992 <div title="[http://example.com/ link]"></div>
7994 <div title="[http://example.com/ link]"></div>
7999 Bug 3244: HTML attribute safety (extension; safe)
8001 <div style="<nowiki>background:blue</nowiki>"></div>
8003 <div style="background:blue"></div>
8008 Bug 3244: HTML attribute safety (extension; unsafe)
8010 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8012 <div style="/* insecure input */"></div>
8016 # More MSIE fun discovered by Tom Gilder
8019 MSIE CSS safety test: spurious slash
8021 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8023 <div style="/* insecure input */">evil</div>
8028 MSIE CSS safety test: hex code
8030 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8032 <div style="/* insecure input */">evil</div>
8037 MSIE CSS safety test: comment in url
8039 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8041 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8046 MSIE CSS safety test: comment in expression
8048 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8050 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8056 Table attribute legitimate extension
8059 !+ style="<nowiki>color:blue</nowiki>"| status
8064 <th style="color:blue"> status
8070 Table attribute safety
8073 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8078 <th style="/* insecure input */"> status
8084 CSS line continuation 1
8086 <div style="background-image: u\ rl(test.jpg);"></div>
8088 <div style="/* insecure input */"></div>
8093 CSS line continuation 2
8095 <div style="background-image: u\ rl(test.jpg); "></div>
8097 <div style="/* insecure input */"></div>
8108 Expansion of multi-line templates in attribute values (bug 6255)
8110 <div style="background: {{identity|#00FF00}}">-</div>
8112 <div style="background: #00FF00">-</div>
8118 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8120 <div style="background:
8123 <div style="background: #00FF00">-</div>
8128 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8130 <div style="background: #00FF00">-</div>
8132 <div style="background: #00FF00">-</div>
8137 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8140 Parser hook: empty input
8153 Parser hook: empty input using terminated empty elements
8166 Parser hook: empty input using terminated empty elements (space before)
8179 Parser hook: basic input
8193 Parser hook: case insensitive
8207 Parser hook: case insensitive, redux
8220 Parser hook: nested tags
8224 <tag><tag></tag></tag>
8235 Parser hook: basic arguments
8237 <tag width=200 height = "100" depth = '50' square></tag>
8245 'square' => 'square',
8252 Parser hook: argument containing a forward slash (bug 5344)
8254 <tag filename='/tmp/bla'></tag>
8259 'filename' => '/tmp/bla',
8266 Parser hook: empty input using terminated empty elements (bug 2374)
8279 # </tag> should be output literally since there is no matching tag that begins it
8281 Parser hook: basic arguments using terminated empty elements (bug 2374)
8283 <tag width=200 height = "100" depth = '50' square/>
8293 'square' => 'square',
8302 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8306 Parser hook: static parser hook not inside a comment
8308 <statictag>hello, world</statictag>
8309 <statictag action=flush/>
8317 Parser hook: static parser hook inside a comment
8319 <!-- <statictag>hello, world</statictag> -->
8320 <statictag action=flush/>
8326 # Nested template calls; this case was broken by Parser.php rev 1.506,
8330 Template:One-parameter
8332 (My parameter is: {{{1}}})
8336 Template:Map-one-parameter
8342 Nested template calls
8344 {{Map-one-parameter|One-parameter|param}}
8346 <p>(My parameter is: param)
8355 Sanitizer: Closing of open tags
8357 <s></s><table></table>
8359 <s></s><table></table>
8364 Sanitizer: Closing of open but not closed tags
8373 Sanitizer: Closing of closed but not open tags
8382 Sanitizer: Closing of closed but not open table tags
8384 Table not started</td></tr></table>
8386 <p>Table not started</td></tr></table>
8391 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8393 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8395 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8400 Sanitizer: Validating the contents of the id attribute (bug 4515)
8406 Something, but definitely not <br id="9" />...
8410 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8414 <br id="foo" /><br id="foo" />
8416 Something need to be done. foo-2 ?
8420 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8423 <meta itemprop="hello" content="world">
8424 <meta http-equiv="refresh" content="5">
8425 <meta itemprop="hello" http-equiv="refresh" content="5">
8426 <link itemprop="hello" href="{{SERVER}}">
8427 <link rel="stylesheet" href="{{SERVER}}">
8428 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8431 <div itemscope="itemscope">
8432 <p> <meta itemprop="hello" content="world" />
8433 <meta http-equiv="refresh" content="5">
8434 <meta itemprop="hello" content="5" />
8436 <link itemprop="hello" href="http://Britney-Spears" />
8437 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8438 <link itemprop="hello" href="http://Britney-Spears" />
8444 Language converter: output gets cut off unexpectedly (bug 5757)
8448 this bit is safe: }-
8450 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8452 then we get cut off here: }-
8454 all additional text is vanished
8456 <p>this bit is safe: }-
8457 </p><p>but if we add a conversion instance: xxx
8458 </p><p>then we get cut off here: }-
8459 </p><p>all additional text is vanished
8464 Self closed html pairs (bug 5487)
8467 <center><font id="bug" />Centered text</center>
8468 <div><font id="bug2" />In div text</div>
8470 <center><font id="bug" />Centered text</center>
8471 <div><font id="bug2" />In div text</div>
8480 Punctuation: nbsp before exclamation
8484 <p>C'est grave !
8489 Punctuation: CSS !important (bug 11874)
8491 <div style="width:50% !important">important</div>
8493 <div style="width:50% !important">important</div>
8498 Punctuation: CSS ! important (bug 11874; with space after)
8500 <div style="width:50% ! important">important</div>
8502 <div style="width:50% ! important">important</div>
8508 HTML bullet list, closed tags (bug 5497)
8523 HTML bullet list, unclosed tags (bug 5497)
8540 HTML ordered list, closed tags (bug 5497)
8555 HTML ordered list, unclosed tags (bug 5497)
8572 HTML nested bullet list, closed tags (bug 5497)
8597 HTML nested bullet list, open tags (bug 5497)
8622 HTML nested ordered list, closed tags (bug 5497)
8647 HTML nested ordered list, open tags (bug 5497)
8672 HTML ordered list item with parameters oddity
8674 <ol><li id="fragment">One</li></ol>
8676 <ol><li id="fragment">One</li></ol>
8681 bug 5918: autonumbering
8683 [http://first/] [http://second] [ftp://ftp]
8687 [mailto:enclosed@mail.tld With target]
8689 [mailto:enclosed@mail.tld]
8691 mailto:inline@mail.tld
8693 <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>
8694 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8695 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8696 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8697 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8703 # Security and HTML correctness
8704 # From Nick Jenkins' fuzz testing
8708 Fuzz testing: Parser13
8723 Fuzz testing: Parser14
8728 <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>
8729 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8731 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8738 Fuzz testing: Parser14-table
8743 <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>
8744 <table style="__TOC__">
8750 # Known to produce bogus xml (extra </td>)
8752 Fuzz testing: Parser16
8772 Fuzz testing: Parser21
8775 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8780 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8790 Fuzz testing: Parser22
8792 http://===r:::https://b
8796 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8804 # Known to produce bad XML for now
8806 Fuzz testing: Parser24
8813 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8814 <br style="onmouseover='alert(document.cookie);' " />
8816 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8821 <u class="|">}}}} >
8822 <br style="onmouseover='alert(document.cookie);'" />
8824 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8833 # Note: the current result listed for this is not what the original one was,
8834 # but the original bug was JavaScript injection, which is fixed in any case.
8835 # It's not clear that the original result listed was any more correct than the
8836 # current one. Original result:
8839 # <li class="||">
8840 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8842 Fuzz testing: Parser25 (bug 6055)
8848 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8850 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8855 Fuzz testing: URL adjacent extension (with space, clean)
8858 http://example.com <nowiki>junk</nowiki>
8860 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8865 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8868 http://example.com<nowiki>junk</nowiki>
8870 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8875 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8878 http://example.com<pre>junk</pre>
8880 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8885 Fuzz testing: image with bogus manual thumbnail
8887 [[Image:foobar.jpg|thumbnail= ]]
8889 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8894 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8896 <pre dir=" "></pre>
8898 <pre dir=" "></pre>
8903 Parsing optional HTML elements (Bug 6171)
8908 <td> Some tabular data</td>
8909 <td> More tabular data ...
8910 <td> And yet som tabular data</td>
8916 <td> Some tabular data</td>
8917 <td> More tabular data ...
8918 </td><td> And yet som tabular data</td>
8925 Correct handling of <td>, <tr> (Bug 6171)
8930 <td> Some tabular data</td>
8931 <td> More tabular data ...</td>
8932 <td> And yet som tabular data</td>
8938 <td> Some tabular data</td>
8939 <td> More tabular data ...</td>
8940 <td> And yet som tabular data</td>
8948 Parsing crashing regression (fr:JavaScript)
8952 <p></body></x>
8957 Inline wiki vs wiki block nesting
8963 <p><b>Bold paragraph</b>
8964 </p><p>New wiki paragraph
8969 Inline HTML vs wiki block nesting
8977 <p><b>Bold paragraph</b>
8978 </p><p>New wiki paragraph
8982 # Original result was this:
8983 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8985 # While that might be marginally more intuitive, maybe, the six-apostrophe
8986 # construct is clearly pathological and the result stated here (which is what
8987 # the parser actually does) is about as reasonable as anything.
8989 Mixing markup for italics and bold
8992 '''bold''''''bold''bolditalics'''''
8994 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9002 Article for special page transclusion test
9006 Special page transclusion
9009 {{Special:Prefixindex/Xyzzyx}}
9011 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9016 Special page transclusion twice (bug 5021)
9019 {{Special:Prefixindex/Xyzzyx}}
9020 {{Special:Prefixindex/Xyzzyx}}
9022 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9023 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9028 Transclusion of default MediaWiki message
9030 {{MediaWiki:Mainpage}}
9037 Transclusion of nonexistent MediaWiki message
9039 {{MediaWiki:Mainpagexxx}}
9041 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9046 Transclusion of MediaWiki message with underscore
9048 {{MediaWiki:history_short}}
9055 Transclusion of MediaWiki message with space
9057 {{MediaWiki:history short}}
9064 Invalid header with following text
9074 Section extraction test (section 0)
9094 Section extraction test (section 1)
9116 Section extraction test (section 2)
9137 Section extraction test (section 3)
9157 Section extraction test (section 4)
9181 Section extraction test (section 5)
9201 Section extraction test (section 6)
9222 Section extraction test (section 7)
9242 Section extraction test (section 8)
9262 Section extraction test (section 9)
9283 Section extraction test (section 10)
9303 Section extraction test (nonexistent section 11)
9322 Section extraction test with bogus heading (section 1)
9327 ==bogus== not a legal section
9331 ==bogus== not a legal section
9335 Section extraction test with bogus heading (section 2)
9340 ==bogus== not a legal section
9347 Section extraction test with comment after heading (section 1)
9359 Section extraction test with comment after heading (section 2)
9371 Section extraction test with bogus <nowiki> heading (section 1)
9376 ==bogus== <nowiki>not a legal section</nowiki>
9380 ==bogus== <nowiki>not a legal section</nowiki>
9384 Section extraction test with bogus <nowiki> heading (section 2)
9389 ==bogus== <nowiki>not a legal section</nowiki>
9396 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9397 # instead of respecting commented sections
9399 Section extraction prefixed by comment (section 1)
9410 Section extraction prefixed by comment (section 2)
9421 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9422 # instead of respecting HTML-style headings
9424 Section extraction, mixed wiki and html (section 1)
9440 Section extraction, mixed wiki and html (section 2)
9456 # Formerly testing for bug 3342
9458 Section extraction, heading surrounded by <noinclude>
9462 <noinclude>==unmarked==</noinclude>
9468 # Test behaviour of bug 19910
9470 Sectiion with all-equals
9475 The line above must have a trailing space
9478 But just in case it doesn't...
9482 But just in case it doesn't...
9486 Section replacement test (section 0)
9517 Section replacement test (section 1)
9546 Section replacement test (section 2)
9576 Section replacement test (section 3)
9607 Section replacement test (section 4)
9634 Section replacement test (section 5)
9665 Section replacement test (section 6)
9695 Section replacement test (section 7)
9726 Section replacement test (section 8)
9757 Section replacement test (section 9)
9786 Section replacement test (section 10)
9816 Section replacement test with initial whitespace (bug 13728)
9820 Preformatted initial line
9824 Preformatted initial line
9831 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9843 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9856 Section extraction, <pre> around bogus header (bug 10309)
9873 Section replacement, <pre> around bogus header (bug 10309)
9875 noxml replace=2,"xxx"
9896 Handling of 
 in URLs
9900 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9907 5 quotes, code coverage +1 line
9914 Special:Search page linking.
9918 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9933 * {{SUBJECTPAGENAME}}
9934 * {{SUBJECTPAGENAMEE}}
9941 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9943 <ul><li> Parser test
9944 </li><li> Parser test
9945 </li><li> Parser test
9946 </li><li> Parser_test
9947 </li><li> Parser test
9948 </li><li> Parser_test
9949 </li><li> Talk:Parser test
9950 </li><li> Talk:Parser_test
9951 </li><li> Parser test
9952 </li><li> Parser_test
9959 </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>
9963 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9973 image4 |300px| centre
9974 image5.svg| http://///////
9979 <ul class="gallery">
9980 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9981 <div style="height: 150px;">Image1.png</div>
9982 <div class="gallerytext">
9985 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9986 <div style="height: 150px;">Image2.gif</div>
9987 <div class="gallerytext">
9992 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9993 <div style="height: 150px;">Image3</div>
9994 <div class="gallerytext">
9997 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9998 <div style="height: 150px;">Image4</div>
9999 <div class="gallerytext">
10004 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10005 <div style="height: 150px;">Image5.svg</div>
10006 <div class="gallerytext">
10007 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10011 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10012 <div style="height: 150px;">* image6</div>
10013 <div class="gallerytext">
10021 Gallery (with options)
10023 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10024 File:Nonexistant.jpg|caption
10025 File:Nonexistant.jpg
10026 image:foobar.jpg|some '''caption''' [[Main Page]]
10028 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10031 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10032 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10033 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10034 <div style="height: 70px;">Nonexistant.jpg</div>
10035 <div class="gallerytext">
10040 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10041 <div style="height: 70px;">Nonexistant.jpg</div>
10042 <div class="gallerytext">
10045 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10046 <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>
10047 <div class="gallerytext">
10048 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10052 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10053 <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>
10054 <div class="gallerytext">
10057 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10058 <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>
10059 <div class="gallerytext">
10069 Gallery with wikitext inside caption
10072 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10073 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10076 <ul class="gallery">
10077 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10078 <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>
10079 <div class="gallerytext">
10080 <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>
10084 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10085 <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>
10086 <div class="gallerytext">
10087 <p>This is a test template
10096 gallery (with showfilename option)
10098 <gallery showfilename>
10099 File:Nonexistant.jpg|caption
10100 File:Nonexistant.jpg
10101 image:foobar.jpg|some '''caption''' [[Main Page]]
10105 <ul class="gallery">
10106 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10107 <div style="height: 150px;">Nonexistant.jpg</div>
10108 <div class="gallerytext">
10109 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10114 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10115 <div style="height: 150px;">Nonexistant.jpg</div>
10116 <div class="gallerytext">
10117 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10121 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10122 <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>
10123 <div class="gallerytext">
10124 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10125 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10129 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10130 <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>
10131 <div class="gallerytext">
10132 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10141 Gallery (with namespace-less filenames)
10144 File:Nonexistant.jpg
10150 <ul class="gallery">
10151 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10152 <div style="height: 150px;">Nonexistant.jpg</div>
10153 <div class="gallerytext">
10156 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10157 <div style="height: 150px;">Nonexistant.jpg</div>
10158 <div class="gallerytext">
10161 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10162 <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>
10163 <div class="gallerytext">
10166 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10167 <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>
10168 <div class="gallerytext">
10176 HTML Hex character encoding (spells the word "JavaScript")
10178 JavaScript
10180 <p>JavaScript
10185 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10189 <p>&#xsee;&#XSEE;
10194 HTML Hex character encoding mixed case
10203 __FORCETOC__ override
10215 ISBN 978-0-1234-56 789
10217 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10222 ISBN followed by 5 spaces
10233 ISBN ISBN 1234567890
10235 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10240 Bug 22905: <abbr> followed by ISBN followed by </a>
10242 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10244 <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>
10253 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10258 Double RFC with a wiki link
10262 <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>
10271 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10276 Centre-aligned image
10278 [[Image:foobar.jpg|centre]]
10280 <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>
10287 [[Image:foobar.jpg|none]]
10289 <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>
10294 Width + Height sized image (using px) (height is ignored)
10296 [[Image:foobar.jpg|640x480px]]
10298 <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>
10303 Width-sized image (using px, no following whitespace)
10305 [[Image:foobar.jpg|640px]]
10307 <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>
10312 Width-sized image (using px, with following whitespace - test regression from r39467)
10314 [[Image:foobar.jpg|640px ]]
10316 <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>
10321 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10323 [[Image:foobar.jpg| 640px]]
10325 <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>
10330 Another italics / bold test
10338 # Note the results may be incorrect, as parserTest output included this:
10339 # XML error: Mismatched tag at byte 6120:
10340 # ...<dd> </dt></dl> </dd...
10348 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10359 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10361 Images with the "|" character in the comment
10363 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10365 <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>
10370 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10372 <html><script>alert(1);</script></html>
10374 <p><html><script>alert(1);</script></html>
10379 HTML with raw HTML ($wgRawHtml==true)
10383 <html><script>alert(1);</script></html>
10385 <p><script>alert(1);</script>
10390 Parents of subpages, one level up
10392 subpage title=[[Subpage test/L1/L2/L3]]
10396 <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>
10402 Parents of subpages, one level up, not named
10404 subpage title=[[Subpage test/L1/L2/L3]]
10408 <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>
10415 Parents of subpages, two levels up
10417 subpage title=[[Subpage test/L1/L2/L3]]
10423 <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
10424 </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>
10429 Parents of subpages, two levels up, without trailing slash or name.
10431 subpage title=[[Subpage test/L1/L2/L3]]
10440 Parents of subpages, two levels up, with lots of extra trailing slashes.
10442 subpage title=[[Subpage test/L1/L2/L3]]
10446 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10451 Definition list code coverage
10457 <dl><dt> title  </dt><dd> def
10458 </dd><dt> title </dt><dd> def
10459 </dd><dt>title</dt><dd> def
10465 Don't fall for the self-closing div
10467 <div>hello world</div/>
10469 <div>hello world</div>
10478 <p>[[:Template:Msg]]
10487 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10491 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10493 Always escape literal '>' in output, not just after '<'
10507 <p>This is a test template
10508 This is a test template
10520 Inclusion of !userCanEdit() content
10524 <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>
10530 Out-of-order TOC heading levels
10539 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10541 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10543 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10544 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10547 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10549 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10550 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10555 <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>
10556 <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>
10557 <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>
10558 <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>
10559 <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>
10560 <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>
10566 ISBN with a dummy number
10576 ISBN with space-delimited number
10580 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10586 ISBN with multiple spaces, no number
10605 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10606 </p><p>ISBN 12345678901
10612 ISBN with trailing year (bug 8110)
10614 ISBN 1-234-56789-0 - 2006
10616 ISBN 1 234 56789 0 - 2006
10618 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10619 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10627 {{anchorencode:foo bar©#%n}}
10629 <p>foo_bar.C2.A9.23.25n
10634 anchorencode trims spaces
10636 {{anchorencode: __pretty__please__}}
10643 anchorencode deals with links
10645 {{anchorencode: [[hello|world]] [[hi]]}}
10652 anchorencode deals with templates
10654 {{anchorencode: {{Foo}} }}
10661 anchorencode encodes like the TOC generator: (bug 18431)
10663 === _ +:.3A%3A&&]] ===
10664 {{anchorencode: _ +:.3A%3A&&]] }}
10667 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10668 <p>.2B:.3A.253A.26.26.5D.5D
10672 # Expected output in the following test is not necessarily expected (there
10673 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10674 # only testing for well-formedness.
10676 Bug 6200: blockquotes and paragraph formatting
10696 Bug 8293: Use of center tag ruins paragraph formatting
10718 ### Language variants related tests
10721 Self-link in language variants
10723 title=[[Dunav]] language=sr
10725 Both [[Dunav]] and [[Дунав]] are names for this river.
10727 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10733 Link to pages in language variants
10737 Main Page can be written as [[Маин Паге]]
10739 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10745 Multiple links to pages in language variants
10749 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10751 <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>.
10757 Simple template in language variants
10763 <p>This is a test template
10769 Template with explicit namespace in language variants
10775 <p>This is a test template
10781 Basic test for template parameter in language variants
10785 {{парамтест|param=foo}}
10787 <p>This is a test template with parameter foo
10793 Simple category in language variants
10797 [[Category:МедиаWики Усер'с Гуиде]]
10799 <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>
10804 Stripping -{}- tags (language variants)
10808 Latin proverb: -{Ne nuntium necare}-
10810 <p>Latin proverb: Ne nuntium necare
10816 Prevent conversion with -{}- tags (language variants)
10818 language=sr variant=sr-ec
10820 Latinski: -{Ne nuntium necare}-
10822 <p>Латински: Ne nuntium necare
10828 Prevent conversion of text with -{}- tags (language variants)
10830 language=sr variant=sr-ec
10832 Latinski: -{Ne nuntium necare}-
10834 <p>Латински: Ne nuntium necare
10840 Prevent conversion of links with -{}- tags (language variants)
10842 language=sr variant=sr-ec
10846 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10852 -{}- tags within headlines (within html for parserConvert())
10854 language=sr variant=sr-ec
10858 <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>
10864 Explicit definition of language variant alternatives
10866 language=zh variant=zh-tw
10868 -{zh:China;zh-tw:Taiwan}-, not China
10870 <p>Taiwan, not China
10876 Explicit session-wise language variant mapping (A flag and - flag)
10878 language=zh variant=zh-tw
10880 Taiwan is not China.
10881 But -{A|zh:China;zh-tw:Taiwan}- is China,
10882 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10883 and -{China}- is China.
10885 <p>Taiwan is not China.
10886 But Taiwan is Taiwan,
10887 (This should be stripped!)
10888 and China is China.
10893 Explicit session-wise language variant mapping (H flag for hide)
10895 language=zh variant=zh-tw
10897 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10900 <p>(This should be stripped!)
10906 Adding explicit conversion rule for title (T flag)
10908 language=zh variant=zh-tw showtitle
10910 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10913 <p>Should be stripped!
10918 Testing that changing the language variant here in the tests actually works
10920 language=zh variant=zh showtitle
10922 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10925 <p>Should be stripped!
10930 Bug 24072: more test on conversion rule for title
10932 language=zh variant=zh-tw showtitle
10934 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10935 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10938 <p>This should be stripped!
10939 This won't take interferes with the title rule.
10944 Raw output of variant escape tags (R flag)
10946 language=zh variant=zh-tw
10948 Raw: -{R|zh:China;zh-tw:Taiwan}-
10950 <p>Raw: zh:China;zh-tw:Taiwan
10955 Nested using of manual convert syntax
10957 language=zh variant=zh-hk
10959 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10961 <p>Nested: Hello Hong Kong!
10966 Proper conversion of text in external links
10968 language=sr variant=sr-ec
10970 http://www.google.com
10971 gopher://www.google.com
10972 [http://www.google.com http://www.google.com]
10973 [gopher://www.google.com gopher://www.google.com]
10974 [https://www.google.com irc://www.google.com]
10975 [ftp://www.google.com www.google.com/ftp://dir]
10976 [//www.google.com www.google.com]
10978 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10979 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10980 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10981 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10982 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10983 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10984 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10989 Do not convert roman numbers to language variants
10991 language=sr variant=sr-ec
10995 <p>Фридрих IV је цар.
11000 Unclosed language converter markup "-{"
11011 Don't convert raw rule "-{R|=>}-" to "=>"
11028 Bug 529: Uncovered bullet
11038 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11039 # Templates in Wikipedia rely on this behavior, as tidy has always been
11040 # enabled there. These tests are normally run *without* tidy, so specify the
11041 # full output here.
11042 # To test realistic parsing behavior, apply a tidy-like transformation to both
11043 # the expected output and your parser's output.
11045 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11047 ******* Foo {{bullet}}
11049 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11062 Bug 529: Uncovered table already at line-start
11085 Bug 529: Uncovered bullet in parser function result
11087 * Foo {{lc:{{bullet}} }}
11096 Bug 5678: Double-parsed template argument
11098 {{lc:{{{1}}}|hello}}
11105 Bug 5678: Double-parsed template invocation
11107 {{lc:{{paramtest {{!}} param = hello }} }}
11109 <p>{{paramtest | param = hello }}
11114 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11117 title=[[Main Page]]
11119 {{PRVNÍVELKÉ:ěščř}}
11120 {{prvnívelké:ěščř}}
11140 Morwen/13: Unclosed link followed by heading
11147 <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>
11152 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11159 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11164 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11171 <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>
11186 Paragraphs inside divs (no extra line breaks)
11198 Paragraphs inside divs (extra line break on open)
11213 Paragraphs inside divs (extra line break on close)
11228 Paragraphs inside divs (extra line break on open and close)
11245 Nesting tags, paragraphs on lines which begin with <div>
11249 <div></div><strong>A
11258 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11260 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11264 <blockquote>Line one
11266 Line two</blockquote>
11268 <blockquote>Line one
11269 Line two</blockquote>
11274 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11281 Line two</blockquote>
11286 Line two</blockquote>
11291 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11295 <blockquote>Line one
11300 <blockquote>Line one
11308 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11327 Paragraphs inside blockquotes/divs (no extra line breaks)
11329 <blockquote><div>Line one
11331 Line two</div></blockquote>
11333 <blockquote><div>Line one
11334 Line two</div></blockquote>
11339 Paragraphs inside blockquotes/divs (extra line break on open)
11344 Line two</div></blockquote>
11349 Line two</div></blockquote>
11354 Paragraphs inside blockquotes/divs (extra line break on close)
11356 <blockquote><div>Line one
11359 </div></blockquote>
11361 <blockquote><div>Line one
11364 </div></blockquote>
11369 Paragraphs inside blockquotes/divs (extra line break on open and close)
11375 </div></blockquote>
11381 </div></blockquote>
11386 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11388 wgLinkHolderBatchSize=0
11394 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11395 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11396 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11401 Free external link invading image caption
11403 [[Image:Foobar.jpg|thumb|http://x|hello]]
11405 <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>
11410 Bug 15196: localised external link numbers
11414 [http://en.wikipedia.org/]
11416 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11421 Multibyte character in padleft
11423 {{padleft:-Hello|7|Æ}}
11430 Multibyte character in padright
11432 {{padright:Hello-|7|Æ}}
11441 wgUseDynamicDates=1
11445 <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>
11450 formatdate parser function
11452 {{#formatdate:2009-03-24}}
11454 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11459 formatdate parser function, with default format
11461 {{#formatdate:2009-03-24|mdy}}
11463 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11468 Linked date with autoformatting disabled
11470 wgUseDynamicDates=false
11474 <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>
11479 Spacing of numbers in formatted dates
11481 {{#formatdate:January 15}}
11483 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11488 Spacing of numbers in formatted dates (linked)
11490 wgUseDynamicDates=true
11494 <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>
11499 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
11501 language=nl title=[[MediaWiki:Common.css]]
11503 {{#formatdate:2009-03-24|dmy}}
11505 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11518 Edit comment with link
11522 I like the [[Main Page]] a lot
11524 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11528 Edit comment with link and link text
11532 I like the [[Main Page|best pages]] a lot
11534 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11538 Edit comment with link and link text with suffix
11542 I like the [[Main Page|best page]]s a lot
11544 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11548 Edit comment with section link (non-local, eg in history list)
11550 comment title=[[Main Page]]
11552 /* External links */ removed bogus entries
11554 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11558 Edit comment with section link and text before it (non-local, eg in history list)
11560 comment title=[[Main Page]]
11562 pre-comment text /* External links */ removed bogus entries
11564 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>
11568 Edit comment with section link (local, eg in diff view)
11570 comment local title=[[Main Page]]
11572 /* External links */ removed bogus entries
11574 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11578 Edit comment with subpage link (bug 14080)
11582 title=[[Subpage test]]
11584 Poked at a [[/subpage]] here...
11586 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11590 Edit comment with subpage link and link text (bug 14080)
11594 title=[[Subpage test]]
11596 Poked at a [[/subpage|neat little page]] here...
11598 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11602 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11605 title=[[Subpage test]]
11607 Poked at a [[/subpage]] here...
11609 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11613 Edit comment with bare anchor link (local, as on diff)
11617 title=[[Main Page]]
11621 <a href="#section">#section</a>
11625 Edit comment with bare anchor link (non-local, as on history)
11628 title=[[Main Page]]
11632 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11636 Anchor starting with underscore
11640 <p><a href="#_ref">One</a>
11645 Id starting with underscore
11647 <div id="_ref"></div>
11649 <div id="_ref"></div>
11654 Space normalisation on autocomment (bug 22784)
11657 title=[[Main Page]]
11659 /* __hello__world__ */
11661 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11665 percent-encoding and + signs in comments (Bug 26410)
11669 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11671 <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>
11675 Bad images - basic functionality
11684 Bad images - bug 16039: text after bad image disappears
11698 Verify that displaytitle works (bug #22501) no displaytitle
11702 wgAllowDisplayTitle=true
11703 wgRestrictDisplayTitle=false
11705 this is not the the title
11708 <p>this is not the the title
11713 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11718 wgAllowDisplayTitle=true
11719 wgRestrictDisplayTitle=false
11721 this is not the the title
11722 {{DISPLAYTITLE:whatever}}
11725 <p>this is not the the title
11730 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11735 wgAllowDisplayTitle=true
11736 wgRestrictDisplayTitle=true
11738 this is not the the title
11739 {{DISPLAYTITLE:whatever}}
11742 <p>this is not the the title
11747 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11752 wgAllowDisplayTitle=true
11753 wgRestrictDisplayTitle=true
11755 this is not the the title
11756 {{DISPLAYTITLE:screen}}
11759 <p>this is not the the title
11764 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11769 wgAllowDisplayTitle=false
11771 this is not the the title
11772 {{DISPLAYTITLE:screen}}
11775 <p>this is not the the title
11776 <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>
11781 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11786 wgAllowDisplayTitle=false
11788 this is not the the title
11791 <p>this is not the the title
11796 preload: check <noinclude> and <includeonly>
11800 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11806 preload: check <onlyinclude>
11810 Goodbye <onlyinclude>Hello world</onlyinclude>
11816 preload: can pass tags through if we want to
11820 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11822 <includeonly>Hello world</includeonly>
11826 preload: check that it doesn't try to do tricks
11830 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11832 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11836 Play a bit with r67090 and bug 3158
11840 <div style="width:50% !important"> </div>
11841 <div style="width:50% !important"> </div>
11842 <div style="width:50% !important"> </div>
11843 <div style="border : solid;"> </div>
11845 <div style="width:50% !important"> </div>
11846 <div style="width:50% !important"> </div>
11847 <div style="width:50% !important"> </div>
11848 <div style="border : solid;"> </div>
11853 HTML5 data attributes
11855 <span data-foo="bar">Baz</span>
11856 <p data-abc-def_hij="">Quuz</p>
11858 <p><span data-foo="bar">Baz</span>
11860 <p data-abc-def_hij="">Quuz</p>
11865 percent-encoding and + signs in internal links (Bug 26410)
11867 [[User:+%]] [[Page+title%]]
11868 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11869 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11870 [[%33%45]] [[%33%45+]]
11872 <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>
11873 <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>
11874 <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>
11875 <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>
11880 Special characters in embedded file links (bug 27679)
11882 [[File:Contains & ampersand.jpg]]
11883 [[File:Does not exist.jpg|Title with & ampersand]]
11885 <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>
11886 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11892 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11894 Text's been normalized?
11896 <p>Text's been normalized?
11901 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11903 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11905 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11910 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11912 [http://www.example.org/ ideograms]
11914 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11919 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11921 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11923 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11947 Bug 31098 Template which includes system messages which includes the template
11951 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11952 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11957 Bug31490 Turkish: ucfirst 'blah'
11968 Bug31490 Turkish: ucfirst 'ix'
11979 Bug31490 Turkish: lcfirst 'BLAH'
11990 Bug31490 Turkish: ucfırst (with a dotless i)
11996 <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>
12001 Bug31490 ucfırst (with a dotless i) with English language
12007 <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>
12012 Bug 26375: TOC with italics
12014 title=[[Main Page]]
12017 == ''Lost'' episodes ==
12019 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12021 <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>
12024 <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>
12029 Bug 26375: TOC with bold
12031 title=[[Main Page]]
12034 == '''should be bold''' then normal text ==
12036 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12038 <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>
12041 <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>
12046 Bug 33845: Headings become cursive in TOC when they contain an image
12048 title=[[Main Page]]
12051 == Image [[Image:foobar.jpg]] ==
12053 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12055 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12058 <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>
12063 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12065 title=[[Main Page]]
12068 == <blockquote>Quote</blockquote> ==
12070 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12072 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12075 <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>
12080 Unclosed tags in TOC
12082 title=[[Main Page]]
12086 <small>Hanc marginis exiguitas non caperet.</small>
12089 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12091 <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>
12094 <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>
12095 <p><small>Hanc marginis exiguitas non caperet.</small>
12101 Multiple tags in TOC
12104 == <i>Foo</i> <b>Bar</b> ==
12106 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12108 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12110 <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>
12111 <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>
12114 <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>
12115 <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>
12120 Tags with parameters in TOC
12123 == <sup class="in-h2">Hello</sup> ==
12125 == <sup class="a > b">Evilbye</sup> ==
12127 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12129 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12130 <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>
12133 <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>
12134 <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>
12139 span tags with directionality in TOC
12142 == <span dir="ltr">C++</span> ==
12144 == <span dir="rtl">זבנג!</span> ==
12146 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12148 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12150 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12152 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12154 <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>
12155 <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>
12156 <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>
12157 <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>
12158 <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>
12161 <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>
12162 <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>
12163 <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>
12164 <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>
12165 <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>
12172 == {{int:headline_sample}} ==
12176 Bug 32057: Title needed when expanding <h> nodes.
12178 title=[[Main Page]]
12182 <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>
12187 Strip marker in urlencode
12189 {{urlencode:x<nowiki/>y}}
12190 {{urlencode:x<nowiki/>y|wiki}}
12191 {{urlencode:x<nowiki/>y|path}}
12218 Strip marker in formatNum
12220 {{formatnum:1<nowiki/>2}}
12221 {{formatnum:1<nowiki/>2|R}}
12229 Strip marker in grammar
12233 {{grammar:elative|foo<nowiki/>bar}}
12240 Strip marker in padleft
12242 {{padleft:|2|x<nowiki/>y}}
12249 Strip marker in padright
12251 {{padright:|2|x<nowiki/>y}}
12258 Strip marker in anchorencode
12260 {{anchorencode:x<nowiki/>y}}
12267 nowiki inside link inside heading (bug 18295)
12269 ==[[foo|x<nowiki>y</nowiki>z]]==
12271 <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>
12276 new support for bdi element (bug 31817)
12278 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12280 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12285 Ignore pipe between table row attributes
12289 |- id=foo | style='color: red'
12297 <tr id="foo" style="color: red">
12304 Gallery override link with WikiLink (bug 34852)
12307 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12310 <ul class="gallery">
12311 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12312 <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>
12313 <div class="gallerytext">
12323 Gallery override link with absolute external link (bug 34852)
12326 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12329 <ul class="gallery">
12330 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12331 <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>
12332 <div class="gallerytext">
12342 Gallery override link with malicious javascript (bug 34852)
12345 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12348 <ul class="gallery">
12349 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12350 <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>
12351 <div class="gallerytext">
12361 Language parser function
12370 Padleft and padright as substr
12372 {{padleft:|3|abcde}}
12373 {{padright:|3|abcde}}
12381 Bug 34939 - Case insensitive link parsing ([HttP://])
12383 [HttP://MediaWiki.Org/]
12385 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12390 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12392 [HttP://MediaWiki.Org/ MediaWiki]
12394 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12399 Bug 34939 - Case insensitive link parsing (HttP://)
12401 HttP://MediaWiki.Org/
12403 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12408 ### Parsoids-specific tests
12409 ### Parsoid-PHP parser incompatibilities
12412 1. SOL-sensitive wikitext tokens as template-args
12426 #### The following section of tests are primarily to test
12427 #### wikitext escaping capabilities of Parsoid.
12428 #### A lot of the tests are disabled for the PHP parser either
12429 #### because of minor newline diffs or other reasons.
12430 #### As Parsoid serializer can handle newlines and other HTML
12431 #### more robustly, some of these tests might get reenabled
12432 #### for the PHP parser.
12434 #### --------------- Headings ---------------
12436 #### 1. Nested inside html <h1>=foo=</h1>
12437 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12438 #### 3. Nested inside html with wikitext split by html tags
12439 #### 4. No escape needed
12440 #### 5. Empty headings <h1></h1>
12441 #### 6. Heading chars in SOL context
12442 #### ----------------------------------------
12444 Headings: 0. Unnested
12446 <nowiki>=foo=</nowiki>
12448 <nowiki>=foo</nowiki>''a''=
12451 </p><p>=foo<i>a</i>=
12456 Headings: 1. Nested inside html
12460 =<nowiki>=foo=</nowiki>=
12461 ==<nowiki>=foo=</nowiki>==
12462 ===<nowiki>=foo=</nowiki>===
12463 ====<nowiki>=foo=</nowiki>====
12464 =====<nowiki>=foo=</nowiki>=====
12465 ======<nowiki>=foo=</nowiki>======
12476 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12481 <nowiki>*bar</nowiki>
12485 <nowiki>=bar=</nowiki>
12493 Headings: 3. Nested inside html with wikitext split by html tags
12497 =<nowiki>=</nowiki>'''bold'''foo==
12499 <h1>=<b>bold</b>foo=</h1>
12503 Headings: 4. No escaping needed (testing just h1 and h2)
12518 <h1><i>=</i>foo=</h1>
12523 Headings: 5. Empty headings
12527 =<nowiki></nowiki>=
12528 ==<nowiki></nowiki>==
12529 ===<nowiki></nowiki>===
12530 ====<nowiki></nowiki>====
12531 =====<nowiki></nowiki>=====
12532 ======<nowiki></nowiki>======
12543 Headings: 6. Heading chars in SOL context
12547 <!--cmt--><nowiki>=h1=</nowiki>
12553 #### --------------- Lists ---------------
12554 #### 0. Outside nests (*foo, etc.)
12555 #### 1. Nested inside html <ul><li>*foo</li></ul>
12556 #### 2. Inside definition lists
12557 #### 3. Only bullets at start should be escaped
12558 #### 4. No escapes needed
12559 #### 5. No unnecessary escapes
12560 #### 6. Escape bullets in SOL position
12561 #### 7. Escape bullets in a multi-line context
12562 #### ----------------------------------------
12565 Lists: 0. Outside nests
12567 <nowiki>*foo</nowiki>
12569 <nowiki>#foo</nowiki>
12577 Lists: 1. Nested inside html
12579 *<nowiki>*foo</nowiki>
12581 *<nowiki>#foo</nowiki>
12583 *<nowiki>:foo</nowiki>
12585 *<nowiki>;foo</nowiki>
12587 #<nowiki>*foo</nowiki>
12589 #<nowiki>#foo</nowiki>
12591 #<nowiki>:foo</nowiki>
12593 #<nowiki>;foo</nowiki>
12615 Lists: 2. Inside definition lists
12617 ;<nowiki>;foo</nowiki>
12619 ;<nowiki>:foo</nowiki>
12621 ;<nowiki>:foo</nowiki>
12624 :<nowiki>:foo</nowiki>
12639 Lists: 3. Only bullets at start of text should be escaped
12641 *<nowiki>*foo*bar</nowiki>
12643 *<nowiki>*foo</nowiki>''it''*bar
12647 <ul><li>*foo<i>it</i>*bar
12653 Lists: 4. No escapes needed
12665 <ul><li><i>foo</i>*bar
12667 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12672 Lists: 5. No unnecessary escapes
12674 * bar <span><nowiki>[[foo]]</nowiki></span>
12676 *=bar <span><nowiki>[[foo]]</nowiki></span>
12678 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12680 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12682 *=bar <span>foo]]</span>=
12684 <ul><li> bar <span>[[foo]]</span>
12686 <ul><li>=bar <span>[[foo]]</span>
12688 <ul><li>[[bar <span>[[foo]]</span>
12690 <ul><li>]]bar <span>[[foo]]</span>
12692 <ul><li>=bar <span>foo]]</span>=
12698 Lists: 6. Escape bullets in SOL position
12702 <!--cmt--><nowiki>*foo</nowiki>
12709 Lists: 7. Escape bullets in a multi-line context
12719 #### --------------- HRs ---------------
12720 #### 1. Single line
12721 #### -----------------------------------
12724 HRs: 1. Single line
12729 <nowiki>----</nowiki>
12731 <nowiki>=foo=</nowiki>
12733 <nowiki>*foo</nowiki>
12740 #### --------------- Tables ---------------
12741 #### 1a. Simple example
12742 #### 1b. No escaping needed (!foo)
12743 #### 1c. No escaping needed (|foo)
12744 #### 1d. No escaping needed (|}foo)
12746 #### 2a. Nested in td (<td>foo|bar</td>)
12747 #### 2b. Nested in td (<td>foo||bar</td>)
12748 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12750 #### 3a. Nested in th (<th>foo!bar</th>)
12751 #### 3b. Nested in th (<th>foo!!bar</th>)
12752 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12756 #### 4c. No escaping needed
12757 #### --------------------------------------
12760 Tables: 1a. Simple example
12771 Tables: 1b. No escaping needed
12780 Tables: 1c. No escaping needed
12789 Tables: 1d. No escaping needed
12798 Tables: 2a. Nested in td
12803 |<nowiki>foo|bar</nowiki>
12813 Tables: 2b. Nested in td
12818 |<nowiki>foo||bar</nowiki>
12819 |''it''<nowiki>foo||bar</nowiki>
12824 </td><td><i>it</i>foo||bar
12830 Tables: 2c. Nested in td -- no escaping needed
12845 Tables: 3a. Nested in th
12860 Tables: 3b. Nested in th
12865 !<nowiki>foo!!bar</nowiki>
12875 Tables: 3c. Nested in th -- no escaping needed
12890 Tables: 4a. Escape -
12898 |<nowiki>-bar</nowiki>
12902 <tr><th>-bar</th></tr>
12903 <tr><td>-bar</td></tr>
12908 Tables: 4b. Escape +
12916 |<nowiki>+bar</nowiki>
12920 <tr><th>+bar</th></tr>
12921 <tr><td>+bar</td></tr>
12926 Tables: 4c. No escaping needed
12940 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12941 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12945 #### --------------- Links ---------------
12946 #### 1. Quote marks in link text
12947 #### 2. Wikilinks: Escapes needed
12948 #### 3. Wikilinks: No escapes needed
12949 #### 4. Extlinks: Escapes needed
12950 #### 5. Extlinks: No escapes needed
12951 #### --------------------------------------
12953 Links 1. Quote marks in link text
12957 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12959 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12963 Links 2. WikiLinks: Escapes needed
12967 [[Foo|<nowiki>[Foobar]</nowiki>]]
12968 [[Foo|<nowiki>Foobar]</nowiki>]]
12969 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12970 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12971 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12972 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12973 [[Foo|<nowiki>|Bar</nowiki>]]
12975 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12976 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12977 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12978 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12979 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12980 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12981 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12985 Links 3. WikiLinks: No escapes needed
12992 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12993 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12997 Links 4. ExtLinks: Escapes needed
13001 [http://google.com <nowiki>[google]</nowiki>]
13002 [http://google.com <nowiki>google]</nowiki>]
13004 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13005 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13009 Links 5. ExtLinks: No escapes needed
13013 [http://google.com [google]
13015 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13018 #### --------------- Quotes ---------------
13019 #### 1. Quotes inside <b> and <i>
13020 #### 2. Link fragments separated by <i> and <b> tags
13021 #### 3. Link fragments inside <i> and <b>
13022 #### --------------------------------------
13024 1. Quotes inside <b> and <i>
13026 ''<nowiki>'foo'</nowiki>''
13027 ''<nowiki>''foo''</nowiki>''
13028 ''<nowiki>'''foo'''</nowiki>''
13029 '''<nowiki>'foo'</nowiki>'''
13030 '''<nowiki>''foo''</nowiki>'''
13031 '''<nowiki>'''foo'''</nowiki>'''
13032 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13040 <b>foo'<i>bar'</i>baz</b>
13045 2. Link fragments separated by <i> and <b> tags
13047 [[''foo''<nowiki>hello]]</nowiki>
13049 [['''foo'''<nowiki>hello]]</nowiki>
13051 <p>[[<i>foo</i>hello]]
13052 </p><p>[[<b>foo</b>hello]]
13057 2. Link fragments inside <i> and <b>
13058 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13059 this is one of the shortcomings of this format)
13061 ''[[foo''<nowiki>]]</nowiki>
13063 '''[[foo'''<nowiki>]]</nowiki>
13066 </p><p><b>[[foo</b>]]
13070 #### --------------- Paragraphs ---------------
13071 #### 1. No unnecessary escapes
13072 #### --------------------------------------
13075 1. No unnecessary escapes
13077 bar <span><nowiki>[[foo]]</nowiki></span>
13079 =bar <span><nowiki>[[foo]]</nowiki></span>
13081 [[bar <span><nowiki>[[foo]]</nowiki></span>
13083 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13085 <nowiki>=bar </nowiki><span>foo]]</span>=
13087 <p>bar <span>[[foo]]</span>
13088 </p><p>=bar <span>[[foo]]</span>
13089 </p><p>[[bar <span>[[foo]]</span>
13090 </p><p>]]bar <span>[[foo]]</span>
13091 </p><p>=bar <span>foo]]</span>=
13095 #### --------------- PRE ------------------
13096 #### 1. Leading space in SOL context should be escaped
13097 #### --------------------------------------
13099 1. Leading space in SOL context should be escaped
13103 <nowiki> foo</nowiki>
13104 <!--cmt--><nowiki> foo</nowiki>
13111 #### --------------- HTML tags ---------------
13114 #### 3. multi-line html tag
13115 #### --------------------------------------
13121 <a href="http://google.com">google</a>
13123 <a href="http://google.com">google</a>
13129 <nowiki><div>foo</div>
13130 <div style="color:red">foo</div></nowiki>
13132 <p><div>foo</div>
13133 <div style="color:red">foo</div>
13138 3. multi-line html tag
13150 #### --------------- Others ---------------
13154 <nowiki>foo</nowiki>
13156 <p><nowiki>foo</nowiki>
13161 Tag-like HTML structures are passed through as text
13183 </p><p>1<d e>f
13188 # This fails in the PHP parser (see bug 40670,
13189 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13191 Tag names followed by punctuation should not be recognized as tags
13197 <p><s.ome> text
13207 Try for 100% code coverage