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]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
124 This is a simple paragraph.
126 <p>This is a simple paragraph.
131 Paragraphs with extra newline spacing
169 * plain''italic''plain
170 * plain''italic''plain''italic''plain
171 * plain'''bold'''plain
172 * plain'''bold'''plain'''bold'''plain
173 * plain''italic''plain'''bold'''plain
174 * plain'''bold'''plain''italic''plain
175 * plain''italic'''bold-italic'''italic''plain
176 * plain'''bold''bold-italic''bold'''plain
177 * plain'''''bold-italic'''italic''plain
178 * plain'''''bold-italic''bold'''plain
179 * plain''italic'''bold-italic'''''plain
180 * plain'''bold''bold-italic'''''plain
181 * plain l'''italic''plain
182 * plain l''''bold''' plain
185 </li><li> plain<i>italic</i>plain
186 </li><li> plain<i>italic</i>plain<i>italic</i>plain
187 </li><li> plain<b>bold</b>plain
188 </li><li> plain<b>bold</b>plain<b>bold</b>plain
189 </li><li> plain<i>italic</i>plain<b>bold</b>plain
190 </li><li> plain<b>bold</b>plain<i>italic</i>plain
191 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
192 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
193 </li><li> plain<i><b>bold-italic</b>italic</i>plain
194 </li><li> plain<b><i>bold-italic</i>bold</b>plain
195 </li><li> plain<i>italic<b>bold-italic</b></i>plain
196 </li><li> plain<b>bold<i>bold-italic</i></b>plain
197 </li><li> plain l'<i>italic</i>plain
198 </li><li> plain l'<b>bold</b> plain
204 ### 2-quote opening sequence tests
207 Italics and bold: 2-quote opening sequence: (2,2)
217 Italics and bold: 2-quote opening sequence: (2,3)
227 Italics and bold: 2-quote opening sequence: (2,4)
237 Italics and bold: 2-quote opening sequence: (2,5)
247 ### 3-quote opening sequence tests
251 Italics and bold: 3-quote opening sequence: (3,2)
261 Italics and bold: 3-quote opening sequence: (3,3)
271 Italics and bold: 3-quote opening sequence: (3,4)
281 Italics and bold: 3-quote opening sequence: (3,5)
291 ### 4-quote opening sequence tests
295 Italics and bold: 4-quote opening sequence: (4,2)
305 Italics and bold: 4-quote opening sequence: (4,3)
315 Italics and bold: 4-quote opening sequence: (4,4)
325 Italics and bold: 4-quote opening sequence: (4,5)
335 ### 5-quote opening sequence tests
339 Italics and bold: 5-quote opening sequence: (5,2)
349 Italics and bold: 5-quote opening sequence: (5,3)
359 Italics and bold: 5-quote opening sequence: (5,4)
363 <p><i><b>foo'</b></i>
369 Italics and bold: 5-quote opening sequence: (5,5)
378 ### multiple quote sequences in a line
381 Italics and bold: multiple quote sequences: (2,4,2)
385 <p><i>foo'<b>bar</b></i>
391 Italics and bold: multiple quote sequences: (2,4,3)
395 <p><i>foo'<b>bar</b></i>
401 Italics and bold: multiple quote sequences: (2,4,4)
405 <p><i>foo'<b>bar'</b></i>
411 Italics and bold: multiple quote sequences: (3,4,2)
421 Italics and bold: multiple quote sequences: (3,4,3)
430 ### other quote tests
433 Italics and bold: other quote tests: (2,3,5)
435 ''this is about '''foo's family'''''
437 <p><i>this is about <b>foo's family</b></i>
443 Italics and bold: other quote tests: (2,(3,3),2)
445 ''this is about '''foo's''' family''
447 <p><i>this is about <b>foo's</b> family</i>
453 Italics and bold: other quote tests: (3,2,3,2)
455 '''this is about ''foo'''s family''
457 <p><b>this is about <i>foo</i></b><i>s family</i>
463 Italics and bold: other quote tests: (3,2,3,3)
465 '''this is about ''foo'''s family'''
467 <p>'<i>this is about </i>foo<b>s family</b>
474 Italics and bold: other quote tests: (3,(2,2),3)
476 '''this is about ''foo's'' family'''
478 <p><b>this is about <i>foo's</i> family</b>
483 ### <nowiki> test cases
487 <nowiki> unordered list
489 <nowiki>* This is not an unordered list item.</nowiki>
491 <p>* This is not an unordered list item.
498 <nowiki>Lorem ipsum dolor
519 :There is not nowiki.
520 :There is <nowiki>nowiki</nowiki>.
522 #There is not nowiki.
523 #There is <nowiki>nowiki</nowiki>.
525 *There is not nowiki.
526 *There is <nowiki>nowiki</nowiki>.
528 <dl><dd>There is not nowiki.
529 </dd><dd>There is nowiki.
531 <ol><li>There is not nowiki.
532 </li><li>There is nowiki.
534 <ul><li>There is not nowiki.
535 </li><li>There is nowiki.
547 <!-- comment 1 --> asdf
549 <!-- comment 1 --> asdf
552 <!-- comment 1 --> asdf
553 <!-- comment 2 -->xyz
555 <!-- comment 1 --> asdf
556 <!-- comment 2 --> xyz
612 asdf<!-- comment 1 -->jkl
622 <!-- foo --> b <!-- bar -->
636 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
642 Comment semantics and delimiters
644 <!-- --><!----><!-----><!------>
650 Comment semantics and delimiters, redux
652 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
653 -- foo -- funky huh? ... -->
659 Comment semantics and delimiters: directors cut
661 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
662 everything starting with < followed by !-- until the first -- and > we see,
663 that wouldn't be valid XML however, since in XML -- has to terminate a comment
671 Comment semantics: nesting
673 <!--<!-- no, we're not going to do anything fancy here -->-->
680 Comment semantics: unclosed comment at end
682 <!--This comment will run out to the end of the document
688 Comment in template title
697 Comment on its own line post-expand
709 Comment on its own line post-expand with non-significant whitespace
721 ### paragraph wraping tests
735 Block tag on one line
747 Block tag on both lines
759 Multiple lines without block tags
777 ### Preformatted text
786 And a [[Main Page|link]]
792 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
797 Ident preformatting with inline content
808 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
825 Regression with preformatted in <center>
838 # Expected output in the following test is not really expected (there should be
839 # <pre> in the output) -- it's only testing for well-formedness.
841 Bug 6200: Preformatted in <blockquote>
854 <pre> with attributes (bug 3202)
856 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
858 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
863 <pre> with width attribute (bug 3202)
865 <pre width="8">Narrow screen goodies</pre>
867 <pre width="8">Narrow screen goodies</pre>
872 <pre> with forbidden attribute (bug 3202)
874 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
876 <pre width="8">Narrow screen goodies</pre>
881 <pre> with forbidden attribute values (bug 3202)
883 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
885 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
890 <nowiki> inside <pre> (bug 13238)
898 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
906 <pre><nowiki>Foo</nowiki></pre>
911 <nowiki> and <pre> preference (first one wins)
944 <nowiki></pre></nowiki>
951 Templates: Pre: 1a. Templates that break a line should suppress <pre>
959 Templates: Pre: 1b. Templates that break a line should suppress <pre>
969 Templates: Pre: 1c: Wrapping should be based on expanded content
981 Templates: Pre: 1d: Wrapping should be based on expanded content
1002 Templates: Pre: 1e. Wrapping should be based on expanded content
1006 {{echo| foo}}{{echo| bar}}
1011 {{echo|<!--cmt--> foo}}
1013 <!--cmt-->{{echo| foo}}
1015 {{echo|{{echo| }}bar}}
1033 Templates: Pre: 1f: Wrapping should be based on expanded content
1070 Templates: Single-line variant of parameter whitespace stripping test
1076 {{echo|{{echo| a}}}}
1078 {{echo|1={{echo| a}}}}
1091 Templates: Strip whitespace from named parameters, but not positional ones
1119 ### Parsoid-centric tests for testing RT edge cases for pre
1123 1a. Pre and Comments
1136 1b. Pre and Comments
1149 1c. Pre and Comments
1199 3a. Pre and block tags (single-line html)
1207 <pre><span> foo </span>
1212 3b. Pre and block tags (pre-content on separate line)
1264 4. Multiple spaces at start-of-line
1283 ### Definition lists
1290 <dl><dt> name </dt><dd> Definition
1296 Definition list for indentation only
1300 <dl><dd> Indented text
1306 Definition list with no space
1310 <dl><dt>name</dt><dd>Definition
1316 Definition list with URL link
1318 ; http://example.com/ : definition
1320 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1326 Definition list with bracketed URL link
1328 ;[http://www.example.com/ Example]:Something about it
1330 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1336 Definition list with wikilink containing colon
1338 ; [[Help:FAQ]]: The least-read page on Wikipedia
1340 <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
1345 # At Brion's and JeLuF's insistence... :)
1347 Definition list with news link containing colon
1349 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1351 <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!
1357 Malformed definition list with colon
1359 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1361 <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
1367 Definition lists: colon in external link text
1369 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1371 <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
1377 Definition lists: colon in HTML attribute
1379 ;<b style="display: inline">bold</b>
1381 <dl><dt><b style="display: inline">bold</b>
1387 Definition lists: self-closed tag
1389 ;one<br/>two : two-line fun
1391 <dl><dt>one<br />two </dt><dd> two-line fun
1397 Bug 11748: Literal closing tags
1401 <dd>test test test test test</dd>
1403 <dd>test test test test test</dd>
1408 <dd>test test test test test</dd>
1410 <dd>test test test test test</dd>
1416 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1419 ; term : description
1425 <dl><dt> term </dt><dd> description
1436 Definition list with empty definition and following paragraph
1441 <dl><dt> term</dt><dd>
1448 Nested definition lists using html syntax
1465 Definition Lists: No nesting: Multiple dd's
1479 Definition Lists: Indentation: Regular
1495 Definition Lists: Indentation: Missing 1st level
1509 Definition Lists: Indentation: Multi-level indent
1513 <dl><dd><dl><dd><dl><dd>i3
1521 Definition Lists: Hacky use to indent tables
1528 should be left alone
1530 <dl><dd><dl><dd><table>
1535 </td></tr></table></dd></dl></dd></dl>
1537 should be left alone
1540 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1541 ## as an empty dt item. It also ignores all but the last ";" when followed
1542 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1543 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1546 ## Ex: ";;t2 ::d2" is transformed into:
1558 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1559 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1570 ## All Parsoid only definition list tests have this difference.
1572 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1573 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1576 Table / list interaction: indented table with lists in table contents
1598 </td></tr></table></dd></dl>
1603 Definition Lists: Nesting: Multi-level (Parsoid only)
1633 Definition Lists: Nesting: Test 2 (Parsoid only)
1653 Definition Lists: Nesting: Test 3 (Parsoid only)
1681 Definition Lists: Nesting: Test 4
1686 <dl><dd><dl><dd><dl><dt>t3
1696 Definition Lists: Mixed Lists: Test 1
1702 <dl><dd><dl><dt><ul><li> foo
1714 Definition Lists: Mixed Lists: Test 2
1728 Definition Lists: Mixed Lists: Test 3
1733 <ul><li><dl><dd><dl><dd><dl><dd> d1
1744 Definition Lists: Mixed Lists: Test 4
1749 <ul><li><dl><dt>d1 </dt><dd>d2
1750 </dd><dt>d3 </dt><dd>d4
1758 Definition Lists: Mixed Lists: Test 5
1773 Definition Lists: Mixed Lists: Test 6
1778 <ol><li><ul><li><dl><dd>d1
1790 Definition Lists: Mixed Lists: Test 7
1804 Definition Lists: Mixed Lists: Test 8
1820 Definition Lists: Mixed Lists: Test 9
1824 <ul><li><dl><dt>foo </dt><dd>bar
1832 Definition Lists: Mixed Lists: Test 10
1836 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1845 Definition Lists: Mixed Lists: Test 11
1850 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1855 <dl><dt>boo </dt><dd>baz
1866 Definition Lists: Weird Ones: Test 1
1868 *#;*::;; foo : bar (who uses this?)
1870 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1886 External links: non-bracketed
1888 Non-bracketed: http://example.com
1890 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1895 External links: numbered
1897 Numbered: [http://example.com]
1898 Numbered: [http://example.net]
1899 Numbered: [http://example.com]
1901 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1902 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1903 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1908 External links: specified text
1910 Specified text: [http://example.com link]
1912 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1917 External links: trail
1919 Linktrails should not work for external links: [http://example.com link]s
1921 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1926 External links: dollar sign in URL
1928 http://example.com/1$2345
1930 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1935 External links: dollar sign in URL (named)
1937 [http://example.com/1$2345]
1939 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1944 External links: open square bracket forbidden in URL (bug 4377)
1946 http://example.com/1[2345
1948 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1953 External links: open square bracket forbidden in URL (named) (bug 4377)
1955 [http://example.com/1[2345]
1957 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1962 External links: nowiki in URL link text (bug 6230)
1964 [http://example.com/ <nowiki>''example site''</nowiki>]
1966 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1971 External links: newline forbidden in text (bug 6230 regression check)
1973 [http://example.com/ first
1976 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1982 External links: Pipe char between url and text
1984 [http://example.com | link]
1986 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1991 External links: protocol-relative URL in brackets
1993 [//example.com/ Test]
1995 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2000 External links: protocol-relative URL in brackets without text
2004 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2009 External links: protocol-relative URL in free text is left alone
2013 <p>//example.com/Foo
2018 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2020 foo//example.com/Foo
2022 <p>foo//example.com/Foo
2029 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2031 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2036 External image from https
2038 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2040 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2045 Link to non-http image, no img tag
2047 Link to non-http image, no img tag: ftp://example.com/test.jpg
2049 <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>
2054 External links: terminating separator
2056 Terminating separator: http://example.com/thing,
2058 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2063 External links: intervening separator
2065 Intervening separator: http://example.com/1,2,3
2067 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2072 External links: old bug with URL in query
2074 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2076 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2081 External links: old URL-in-URL bug, mixed protocols
2083 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2085 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2090 External links: URL in text
2092 URL in text: [http://example.com http://example.com]
2094 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2099 External links: Clickable images
2101 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2103 <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>
2108 External links: raw ampersand
2110 Old & use: http://x&y
2112 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2117 External links: encoded ampersand
2119 Old & use: http://x&y
2121 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2126 External links: encoded equals (bug 6102)
2128 http://example.com/?foo=bar
2130 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2135 External links: [raw ampersand]
2137 Old & use: [http://x&y]
2139 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2144 External links: [encoded ampersand]
2146 Old & use: [http://x&y]
2148 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2153 External links: [encoded equals] (bug 6102)
2155 [http://example.com/?foo=bar]
2157 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2162 External links: [IDN ignored character reference in hostname; strip it right off]
2164 [http://e‌xample.com/]
2166 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2170 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2171 # Where an external link could easily circumvent the sanitization of the text of
2172 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2173 # test demands a higher standard. That's a bit strange.
2177 # http://example.com -> [http://example.com|http://example.com]
2178 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2180 # The first example is sanitized, but the second is not. Any security benefits
2181 # from this production are trivial to circumvent. Either remove this test and
2182 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2183 # the test accordingly.
2188 External links: IDN ignored character reference in hostname; strip it right off
2190 http://e‌xample.com/
2192 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2197 External links: www.jpeg.org (bug 554)
2201 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2206 External links: URL within URL (original bug 2)
2208 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2210 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2215 BUG 361: URL inside bracketed URL
2217 [http://www.example.com/foo http://www.example.com/bar]
2219 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2224 BUG 361: URL within URL, not bracketed
2226 http://www.example.com/foo?=http://www.example.com/bar
2228 <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>
2233 BUG 289: ">"-token in URL-tail
2235 http://www.example.com/<hello>
2237 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2242 BUG 289: literal ">"-token in URL-tail
2244 http://www.example.com/<b>html</b>
2246 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2251 BUG 289: ">"-token in bracketed URL
2253 [http://www.example.com/<hello> stuff]
2255 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2260 BUG 289: literal ">"-token in bracketed URL
2262 [http://www.example.com/<b>html</b> stuff]
2264 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2269 BUG 289: literal double quote at end of URL
2271 http://www.example.com/"hello"
2273 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2278 BUG 289: literal double quote in bracketed URL
2280 [http://www.example.com/"hello" stuff]
2282 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2287 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2289 [http://www.example.com test]
2291 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2296 External links: wiki links within external link (Bug 3695)
2298 [http://example.com [[wikilink]] embedded in ext link]
2300 <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>
2305 BUG 787: Links with one slash after the url protocol are invalid
2309 [http:/example.com title]
2311 <p>http:/example.com
2312 </p><p>[http:/example.com title]
2317 Bracketed external links with template-generated invalid target
2319 [{{echo|http:/example.com}} title]
2321 <p>[http:/example.com title]
2326 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2328 ''[http://example.com text'']
2329 [http://example.com '''text]'''
2330 ''Something [http://example.com in italic'']
2331 ''Something [http://example.com mixed''''', even bold]'''
2332 '''''Now [http://example.com both''''']
2334 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2335 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2336 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2337 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2338 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2344 Bug 4781: %26 in URL
2346 http://www.example.com/?title=AT%26T
2348 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2352 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2353 # % is actually legal in HTML5. Any change in output would need testing though.
2355 Bug 4781, 5267: %25 in URL
2357 http://www.example.com/?title=100%25_Bran
2359 <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>
2364 Bug 4781, 5267: %28, %29 in URL
2366 http://www.example.com/?title=Ben-Hur_%281959_film%29
2368 <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>
2374 Bug 4781: %26 in autonumber URL
2376 [http://www.example.com/?title=AT%26T]
2378 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2383 Bug 4781, 5267: %26 in autonumber URL
2385 [http://www.example.com/?title=100%25_Bran]
2387 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2392 Bug 4781, 5267: %28, %29 in autonumber URL
2394 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2396 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2402 Bug 4781: %26 in bracketed URL
2404 [http://www.example.com/?title=AT%26T link]
2406 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2411 Bug 4781, 5267: %26 in bracketed URL
2413 [http://www.example.com/?title=100%25_Bran link]
2415 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2420 Bug 4781, 5267: %28, %29 in bracketed URL
2422 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2424 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2429 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2431 Some [http://example.com/ pretty ''italics'' and stuff]!
2433 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2438 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2440 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2442 <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>
2447 External link containing double-single-quotes with no space separating the url from text in italics
2449 [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]].]
2451 <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>
2456 URL-encoding in URL functions (single parameter)
2458 {{localurl:Some page|amp=&}}
2460 <p>/index.php?title=Some_page&amp=&
2465 URL-encoding in URL functions (multiple parameters)
2467 {{localurl:Some page|q=?&=&}}
2469 <p>/index.php?title=Some_page&q=?&amp=&
2476 http://example.com/index.php?foozoid%5B%5D=bar
2478 http://example.com/index.php?foozoid[]=bar
2480 <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>
2481 </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>
2486 IPv6 urls (bug 21261)
2490 http://[2404:130:0:1000::187:2]/index.php
2492 <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>
2497 Non-extlinks in brackets
2506 [{{echo|foo}} ''bar'']
2507 [{{echo|foo}}l's] errand
2508 [{{echo|foo}}l's errand]
2530 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2532 Normal text. '''''Bold italic text.''''' Normal text.
2534 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2535 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2541 Unclosed and unmatched quotes
2543 '''''Bold italic text '''with bold deactivated''' in between.'''''
2545 '''''Bold italic text ''with italic deactivated'' in between.'''''
2549 ..spanning two paragraphs (should not work).'''
2551 '''Bold tag left open
2553 ''Italic tag left open
2557 <!-- Unmatching number of opening, closing tags: -->
2558 '''This year''''s election ''should'' beat '''last year''''s.
2560 ''Tom'''s car is bigger than ''Susan'''s.
2562 Plain ''italic'''s plain
2564 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2565 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2566 </p><p><b>Bold text..</b>
2567 </p><p>..spanning two paragraphs (should not work).
2568 </p><p><b>Bold tag left open</b>
2569 </p><p><i>Italic tag left open</i>
2571 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2572 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2573 </p><p>Plain <i>italic'</i>s plain
2580 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2583 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2584 # is the bare minimun required by the spec, see:
2585 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2587 A table with no data.
2593 # A table with nothing but a caption is invalid XHTML, we might want to render
2594 # this as <p>caption</p>
2596 A table with nothing but a caption
2604 </caption><tr><td></td></tr></table>
2609 Table td-cell syntax variations
2613 | foo bar foo || baz
2614 | style='color:red;' | baz
2615 | style='color:red;' || baz
2622 <td> foo bar foo </td>
2625 <td style="color:red;"> baz
2627 <td> style='color:red;' </td>
2655 Simple table but with multiple dashes for row wikitext
2673 Multiplication table
2675 {| border="1" cellpadding="2"
2676 |+Multiplication table
2678 ! × !! 1 !! 2 !! 3
2696 <table border="1" cellpadding="2">
2697 <caption>Multiplication table
2744 Accept "||" in table headings
2759 Accept "||" in indented table headings
2769 </th></tr></table></dd></dl>
2774 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
2791 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 +/-
2795 |style='color:red;'|+1
2796 |style='color:blue;'|-1
2808 <td style="color:red;">+1
2810 <td style="color:blue;">-1
2834 |rowspan=2| Cell 2, row 1 (and 2)
2845 <td rowspan="2"> Cell 2, row 1 (and 2)
2863 {| bgcolor=#ABCDEF border=2
2868 |the original table again
2876 <table bgcolor="#ABCDEF" border="2">
2884 <td>the original table again
2890 Invalid attributes in table cell (bug 1830)
2905 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2908 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2912 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2913 <td>]" onmouseover="alert(document.cookie)">test
2922 Indented table markup mixed with indented pre content (proposed in bug 6200)
2927 Text that should be rendered preformatted
2935 <pre>Text that should be rendered preformatted
2944 Template-generated table cell attributes and cell content
2952 <td style="color: red"> Foo
2958 Table with row followed by newlines and table heading
2975 # FIXME: Preserve the attribute properly (with an empty string as value) in
2976 # the PHP parser. Parsoid implements the behavior below.
2978 Table attributes with empty value
2997 Plain link, capitalized
3001 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3006 Plain link, uncapitalized
3010 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3017 [[Main Page|The Main Page]]
3019 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3028 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3033 Broken link with fragment
3035 [[Zigzagzogzagzig#zug]]
3037 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3042 Special page link with fragment
3044 [[Special:Version#anchor]]
3046 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3051 Nonexistent special page link with fragment
3053 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3055 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3062 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3064 <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>
3071 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3073 <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>!!!
3078 Link with 3 brackets
3087 Piped link with 3 brackets
3089 [[[main page|the main page]]]
3091 <p>[[[main page|the main page]]]
3096 Link with multiple pipes
3098 [[Main Page|The|Main|Page]]
3100 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3107 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3109 <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>
3114 Piped link to namespace
3116 [[Meta:Disclaimers|The disclaimers]]
3118 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3125 [[Usually caused by a typo (oops}]]
3127 <p>[[Usually caused by a typo (oops}]]
3132 Link containing % (not as a hex sequence)
3136 <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>
3141 Link containing % as a single hex sequence interpreted to char
3145 <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>
3150 Link containing % as a double hex sequence interpreted to hex sequence
3154 <p>[[7%2525 Solution]]
3159 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3160 Example for such a section: == < ==
3162 [[%23%3c]][[%23%3e]]
3164 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3169 Link containing "<#" and ">#" as a hex sequences
3171 [[%3c%23]][[%3e%23]]
3173 <p>[[%3c%23]][[%3e%23]]
3178 Link containing double-single-quotes '' (bug 4598)
3180 [[Lista d''e paise d''o munno]]
3182 <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>
3187 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3189 Some [[Link|pretty ''italics'' and stuff]]!
3191 <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>!
3196 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3198 ''Some [[Link|pretty ''italics'' and stuff]]!
3200 <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>
3205 Link with double quotes in title part (literal) and alternate part (interpreted)
3207 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3211 [[''Pentecoste''|Pentecoste]]
3213 [[''Pentecoste''|''Pentecoste'']]
3215 <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>
3216 </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>
3217 </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>
3218 </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>
3223 Broken image links with HTML captions (bug 39700)
3225 [[File:Nonexistent|<script></script>]]
3226 [[File:Nonexistent|100px|<script></script>]]
3227 [[File:Nonexistent|<]]
3228 [[File:Nonexistent|a<i>b</i>c]]
3230 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3231 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3232 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3233 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3240 [[http://www.example.com]]
3242 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3247 Plain link to URL with link text
3249 [[http://www.example.com Link text]]
3251 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3256 Plain link to protocol-relative URL
3258 [[//www.example.com]]
3260 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3265 Plain link to protocol-relative URL with link text
3267 [[//www.example.com Link text]]
3269 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3274 Plain link to page with question mark in title
3280 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3281 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3286 # I'm fairly sure the expected result here is wrong.
3287 # We want these to be URL links, not pseudo-pages with URLs for titles....
3288 # However the current output is also pretty screwy.
3291 # I'm changing it to match the current output--it arguably makes more
3292 # sense in the light of the test above. Old expected result was:
3293 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3295 # But I think this test is bordering on "garbage in, garbage out" anyway.
3300 Piped link to URL: [[http://www.example.com|an example URL]]
3302 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3307 BUG 2: [[page|http://url/]] should link to page, not http://url/
3309 [[Main Page|http://url/]]
3311 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3316 BUG 337: Escaped self-links should be bold
3320 [[Bug462]] [[Bug462]]
3322 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3327 Self-link to section should not be bold
3331 [[Main Page#section]]
3333 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3344 Self-link to numeric title
3350 <p><strong class="selflink">0</strong>
3355 Link to numeric-equivalent title
3361 <p><a href="/wiki/00" title="00">00</a>
3366 <nowiki> inside a link
3368 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3370 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3375 Non-breaking spaces in title
3377 [[ Main Page ]]
3379 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3384 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3390 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3395 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3401 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3406 Internal link with en linktrail: no apostrophes (bug 27473)
3412 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3417 Internal link with ca linktrail with apostrophes (bug 27473)
3423 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3428 Internal link with kaa linktrail with apostrophes (bug 27473)
3434 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3439 ### Interwiki links (see maintenance/interwiki.sql)
3443 Inline interwiki link
3445 [[MeatBall:SoftSecurity]]
3447 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3452 Inline interwiki link with empty title (bug 2372)
3456 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3461 Interwiki link encoding conversion (bug 1636)
3463 *[[Wikipedia:ro:Olteniţa]]
3464 *[[Wikipedia:ro:Olteniţa]]
3466 <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>
3467 </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>
3473 Interwiki link with fragment (bug 2130)
3475 [[MeatBall:SoftSecurity#foo]]
3477 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3492 Double interlanguage link
3503 Interlanguage link, with prefix links
3515 Double interlanguage link, with prefix links (bug 8897)
3528 Parsoid-specific test: Wikilinks with should RT properly
3534 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3552 Broken br tag sanitization
3561 Incorrecly removing closing slashes from correctly formed XHTML
3563 <br style="clear:both;" />
3565 <p><br style="clear:both;" />
3570 Failing to transform badly formed HTML into correct XHTML
3572 <br style="clear: left;">
3573 <br style="clear: right;">
3574 <br style="clear: both;">
3576 <p><br style="clear: left;" />
3577 <br style="clear: right;" />
3578 <br style="clear: both;" />
3583 Handling html with a div self-closing tag
3592 <p><div title />
3596 <p><div title=bar />
3597 <div title=bar/>
3599 <div title="bar/"></div>
3605 Handling html with a br self-closing tag
3614 <p><br title="title" />
3615 <br title="title" />
3624 Horizontal ruler (should it add that extra space?)
3638 Horizontal ruler -- 4+ dashes render hr
3647 Horizontal ruler -- eats additional dashes on the same line
3656 Horizontal ruler -- does not collaps dashes on consecutive lines
3667 Horizontal ruler -- <4 dashes render as plain text
3676 Horizontal ruler -- Supports content following dashes on same line
3685 ### Block-level elements
3708 <ol><li>Numbered list
3725 ***#Number on level 4
3727 **#Number on level 3
3728 **#Number on level 3
3732 #** Level 3, but ordered
3735 <ol><li> with numbers
3737 <ul><li> and bullets
3739 <ol><li> and numbers
3741 </li><li>bullets again
3742 <ul><li>bullet level 2
3743 <ul><li>bullet level 3
3744 <ol><li>Number on level 4
3747 </li><li>bullet level 2
3748 <ol><li>Number on level 3
3749 </li><li>Number on level 3
3752 <ol><li>number level 2
3755 <ul><li><ul><li> Level 3
3759 <ol><li><ul><li><ul><li> Level 3, but ordered
3793 Nested lists 3 (first element empty)
3806 Nested lists 4 (first element empty)
3819 Nested lists 5 (both elements empty)
3832 Nested lists 6 (both elements empty)
3845 Nested lists 7 (skip initial nesting levels)
3849 <ul><li><ul><li><ul><li> foo
3857 Nested lists 8 (multiple nesting transitions)
3865 <ul><li><ul><li> bar
3875 1. Lists with start-of-line-transparent tokens before bullets: Comments
3889 2. Lists with start-of-line-transparent tokens before bullets: Template close
3901 List items are not parsed correctly following a <pre> block (bug 785)
3907 <ul><li> <pre>foo</pre>
3908 </li><li> <pre>bar</pre>
3915 List items from template
3926 * notSOL{{inner list}}
3945 List interrupted by empty line or heading
3955 <ul><li><ul><li> bar
3958 <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>
3959 <ul><li> Another list item
3970 Magic Word: {{CURRENTDAY}}
3979 Magic Word: {{CURRENTDAY2}}
3988 Magic Word: {{CURRENTDAYNAME}}
3997 Magic Word: {{CURRENTDOW}}
4006 Magic Word: {{CURRENTMONTH}}
4015 Magic Word: {{CURRENTMONTHABBREV}}
4017 {{CURRENTMONTHABBREV}}
4024 Magic Word: {{CURRENTMONTHNAME}}
4026 {{CURRENTMONTHNAME}}
4033 Magic Word: {{CURRENTMONTHNAMEGEN}}
4035 {{CURRENTMONTHNAMEGEN}}
4042 Magic Word: {{CURRENTTIME}}
4051 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4060 Magic Word: {{CURRENTYEAR}}
4069 Magic Word: {{FULLPAGENAME}}
4071 title=[[User:Ævar Arnfjörð Bjarmason]]
4075 <p>User:Ævar Arnfjörð Bjarmason
4080 Magic Word: {{FULLPAGENAMEE}}
4082 title=[[User:Ævar Arnfjörð Bjarmason]]
4086 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4091 Magic Word: {{NAMESPACE}}
4093 title=[[User:Ævar Arnfjörð Bjarmason]]
4102 Magic Word: {{NAMESPACEE}}
4104 title=[[User:Ævar Arnfjörð Bjarmason]]
4113 Magic Word: {{NAMESPACENUMBER}}
4115 title=[[User:Ævar Arnfjörð Bjarmason]]
4124 Magic Word: {{NUMBEROFFILES}}
4133 Magic Word: {{PAGENAME}}
4135 title=[[User:Ævar Arnfjörð Bjarmason]]
4139 <p>Ævar Arnfjörð Bjarmason
4144 Magic Word: {{PAGENAME}} with metacharacters
4146 title=[['foo & bar = baz']]
4150 <p><i>'foo & bar = baz'</i>
4155 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4157 title=[[*RFC 1234 http://example.com/]]
4161 <p>*RFC 1234 http://example.com/
4166 Magic Word: {{PAGENAMEE}}
4168 title=[[User:Ævar Arnfjörð Bjarmason]]
4172 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4177 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4179 title=[[*RFC 1234 http://example.com/]]
4183 <p>*RFC_1234_http://example.com/
4188 Magic Word: {{REVISIONID}}
4197 Magic Word: {{SCRIPTPATH}}
4206 Magic Word: {{SERVER}}
4210 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4215 Magic Word: {{SERVERNAME}}
4224 Magic Word: {{SITENAME}}
4233 Namespace 1 {{ns:1}}
4242 Namespace 1 {{ns:01}}
4251 Namespace 0 {{ns:0}} (bug 4783)
4259 Namespace 0 {{ns:00}} (bug 4783)
4267 Namespace -1 {{ns:-1}}
4276 Namespace User {{ns:User}}
4285 Namespace User talk {{ns:User_talk}}
4294 Namespace User talk {{ns:uSeR tAlK}}
4303 Namespace File {{ns:File}}
4312 Namespace File {{ns:Image}}
4321 Namespace (lang=de) Benutzer {{ns:User}}
4332 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4338 <p>Benutzer Diskussion
4346 {{urlencode:hi world?!}}
4347 {{urlencode:hi world?!|WIKI}}
4348 {{urlencode:hi world?!|PATH}}
4349 {{urlencode:hi world?!|QUERY}}
4362 Magic links: internal link to RFC (bug 479)
4366 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4371 Magic links: RFC (bug 479)
4375 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4380 Magic links: ISBN (bug 1937)
4384 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4389 Magic links: PMID incorrectly converts space to underscore
4393 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4402 Nonexistent template
4404 {{thistemplatedoesnotexist}}
4406 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4413 This is a test template
4421 <p>This is a test template
4426 Template with explicit namespace
4430 <p>This is a test template
4438 This is a test template with parameter {{{param}}}
4444 {{paramtest|param=foo}}
4446 <p>This is a test template with parameter foo
4451 Template:paramtestnum
4457 Template unnamed parameter
4459 {{paramtestnum|Main Page|the main page}}
4461 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4466 Template:templatesimple
4472 Template:templateredirect
4474 #redirect [[Template:templatesimple]]
4478 Template:templateasargtestnum
4484 Template:templateasargtest
4486 {{template{{{templ}}}}}
4490 Template:templateasargtest2
4496 Template with template name as unnamed argument
4498 {{templateasargtestnum|templatesimple}}
4505 Template with template name as argument
4507 {{templateasargtest|templ=simple}}
4514 Template with template name as argument (2)
4516 {{templateasargtest2|templ=templatesimple}}
4523 Template:templateasargtestdefault
4525 {{{{{templ|templatesimple}}}}}
4535 Template with default value
4537 {{templateasargtestdefault}}
4544 Template with default value (value set)
4546 {{templateasargtestdefault|templ=templa}}
4555 {{templateredirect}}
4562 Template with argument in separate line
4564 {{ templateasargtest |
4572 Template with complex template as argument
4575 param ={{ templateasargtest |
4578 <p>This is a test template with parameter (test)
4583 Template with thumb image (with link in description)
4586 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4588 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>
4593 Template:complextemplate
4595 {{{1}}} {{paramtest|
4596 param ={{{param}}}}}
4600 Template with complex arguments
4603 param ={{ templateasargtest |
4604 templ = simple }}|[[Template:complextemplate|link]]}}
4606 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4611 BUG 553: link with two variables in a piped link
4614 |[[{{{1}}}|{{{2}}}]]
4619 <td>[[{{{1}}}|{{{2}}}]]
4625 Magic variable as template parameter
4627 {{paramtest|param={{SITENAME}}}}
4629 <p>This is a test template with parameter MediaWiki
4636 [[{{{param}}}|link]]
4640 Template parameter as link source
4642 {{linktest|param=Main Page}}
4644 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4649 Template-generated attribute string (k='v')
4651 <span {{attr_str|id|v1}}>bar</span>
4653 <p><span id="v1">bar</span>
4660 including another template, {{paramtest|param={{{arg}}}}}
4664 Template passing argument to another template
4666 {{paramtest2|arg='hmm'}}
4668 <p>including another template, This is a test template with parameter 'hmm'
4679 Template as link source
4683 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4701 Template infinite loop
4705 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4710 Template from main namespace
4729 BUG 529: Template with table, not included at beginning of line
4748 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4768 BUG 41: Template parameters shown as broken links
4777 Template with targets containing wikilinks
4781 {{[[{{echo|foo}}]]}}
4783 {{{{echo|[[foo}}]]}}
4785 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4786 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4794 ''None'' of '''this''' should be
4796 but rather passed unmodified
4800 # hmm, fix this or just deprecate msgnw and document its behavior?
4806 {{msgnw:MSGNW test}}
4808 <p>''None'' of '''this''' should be
4810 but rather passed unmodified
4818 {{int:youhavenewmessages|lots of money|not!}}
4820 <p>You have lots of money (not!).
4827 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4831 <includeonly> and <noinclude> being included
4842 <onlyinclude>Foo</onlyinclude>bar
4846 <onlyinclude> being included
4858 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4862 <onlyinclude> and <includeonly> being included
4871 <includeonly> and <noinclude> on a page
4873 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4880 Un-closed <noinclude>
4887 <onlyinclude> on a page
4889 <onlyinclude>Foo</onlyinclude>bar
4896 Un-closed <onlyinclude>
4903 Template:Includeonly section
4906 ==Includeonly section==
4912 Bug 6563: Edit link generation for section shown by <includeonly>
4914 {{includeonly section}}
4916 <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>
4917 <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>
4921 # Uses same input as the contents of [[Template:Includeonly section]]
4923 Bug 6563: Section extraction for section shown by <includeonly>
4928 ==Includeonly section==
4936 Bug 6563: Edit link generation for section suppressed by <includeonly>
4939 ==Includeonly section==
4943 <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>
4948 Bug 6563: Section extraction for section suppressed by <includeonly>
4953 ==Includeonly section==
4961 Un-closed <includeonly>
4968 ### <includeonly> and <noinclude> in attributes
4971 0. includeonly around the entire attribute
4973 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4975 <p><span id="v2">bar</span>
4980 1. includeonly in html attr key
4982 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4984 <p><span id="foo">bar</span>
4989 2. includeonly in html attr value
4991 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4992 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4994 <p><span id="v1">bar</span>
4995 <span id="v1">bar</span>
5000 3. includeonly in part of an attr value
5002 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5004 <p><span style="color:red;">bar</span>
5009 ### Testing parsing of templates where a template arg
5010 ### has the same name as the template itself.
5020 Templates: Template Name/Arg clash: 1. Use of positional param
5029 Templates: Template Name/Arg clash: 2. Use of named param
5038 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5047 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5051 Templates: 1. Simple use
5060 Templates: 2. Inside a block tag
5062 <div>{{echo|Foo}}</div>
5069 Templates: P-wrapping: 1a. Templates on consecutive lines
5080 Templates: P-wrapping: 1b. Templates on consecutive lines
5094 Templates: P-wrapping: 1c. Templates on consecutive lines
5097 {{echo|bar}} <div>baz</div>
5106 Templates: Inline Text: 1. Multiple tmeplate uses
5108 {{echo|Foo}}bar{{echo|baz}}
5115 Templates: Inline Text: 2. Back-to-back template uses
5117 {{echo|Foo}}{{echo|bar}}
5124 Templates: Block Tags: 1. Multiple template uses
5126 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5128 <div>Foo</div><div>bar</div><div>baz</div>
5133 Templates: Block Tags: 2. Back-to-back template uses
5135 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5137 <div>Foo</div><div>bar</div>
5142 Templates: Links: 1. Simple example
5144 {{echo|[[Foo|bar]]}}
5146 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5151 Templates: Links: 2. Generation of link href
5153 [[{{echo|Foo}}|bar]]
5155 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5160 Templates: Links: 3. Generation of part of a link href
5162 [[Fo{{echo|o}}|bar]]
5164 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5169 Templates: Links: 4. Multiple templates generating link href
5171 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5173 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5178 Templates: Links: 5. Generation of link text
5180 [[Foo|{{echo|bar}}]]
5182 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5187 Templates: Links: 5. Nested templates (only outermost template should be marked)
5189 {{echo|[[{{echo|Foo}}|bar]]}}
5191 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5196 Templates: HTML Tag: 1. Generation of HTML attr. key
5198 <div {{echo|style}}="color:red;">foo</div>
5200 <div style="color:red;">foo</div>
5205 Templates: HTML Tag: 2. Generation of HTML attr. value
5207 <div style={{echo|'color:red;'}}>foo</div>
5209 <div style="color:red;">foo</div>
5214 Templates: HTML Tag: 3. Generation of HTML attr key and value
5216 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5218 <div style="color:red;">foo</div>
5223 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5225 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5227 <div title="This is a long title with just one piece templated">foo</div>
5232 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5234 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5236 <div title="This is a long title with just one piece templated">foo</div>
5241 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5243 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5245 <div title="This is a long title with just one piece templated">foo</div>
5250 Templates: HTML Tables: 1. Generating start of a HTML table
5252 {{echo|<table><tr><td>foo</td>}}</tr></table>
5254 <table><tr><td>foo</td></tr></table>
5259 Templates: HTML Tables: 2a. Generating middle of a HTML table
5261 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5263 <table><tr><td>foo</td></tr></table>
5268 Templates: HTML Tables: 2b. Generating middle of a HTML table
5270 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5272 <table><tr><td>foo</td></tr></table>
5277 Templates: HTML Tables: 3. Generating end of a HTML table
5279 <table><tr>{{echo|<td>foo</td></tr></table>}}
5281 <table><tr><td>foo</td></tr></table>
5286 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5288 {{echo|<table>}}<tr><td>foo</td></tr></table>
5290 <table><tr><td>foo</td></tr></table>
5295 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5297 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5299 <table><tr><td>foo</td></tr></table>
5304 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5306 <table><tr>{{echo|<td>}}foo</td></tr></table>
5308 <table><tr><td>foo</td></tr></table>
5313 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5315 <table><tr><td>foo{{echo|</td>}}</tr></table>
5317 <table><tr><td>foo</td></tr></table>
5322 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5324 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5326 <table><tr><td>foo</td></tr></table>
5331 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5333 <table><tr><td>foo</td></tr>{{echo|</table>}}
5335 <table><tr><td>foo</td></tr></table>
5340 Templates: Wiki Tables: 1. Fostering of entire template content
5348 <tr><td></td></tr></table>
5353 Templates: Wiki Tables: 2. Fostering of partial template content
5363 <tr><td></td></tr></table>
5368 Templates: Wiki Tables: 3. td-content via multiple templates
5371 {{echo|{{pipe}}a}}{{echo|b}}
5382 Templates: Lists: Multi-line list-items via templates
5384 *{{echo|a {{nonexistent|
5386 *{{echo|b {{nonexistent|
5389 <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>
5390 </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>
5396 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5398 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5400 <p><i>ab</i>c<i>d</i>e
5405 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5406 (PHP parser generates misnested html)
5410 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5412 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5416 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5417 (PHP parser generates misnested html)
5421 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5424 <div><i>b</i>c<i>d</i></div>
5429 Templates: Ugly nesting: 4. Divs opened/closed across templates
5431 a<div>b{{echo|c</div>d}}e
5438 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5444 |{{echo|foo</table>}}
5448 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5449 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5450 bar</span><span about="#mwt1">
5455 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5465 <td>1. {{echo|foo </table>}}</td>
5467 <td>2. {{echo|baz </table>}}</td>
5480 <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">
5481 <tbody><tr data-parsoid="{"stx":"html"}">
5482 <td data-parsoid="{"stx":"html"}">
5483 <table data-parsoid="{"stx":"html"}">
5484 <tbody><tr data-parsoid="{"stx":"html"}">
5485 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5486 <td data-parsoid="{"stx":"html"}"> bar </td>
5487 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5488 </span><span about="#mwt1">
5490 abc</span><span about="#mwt1">
5491 </span><span about="#mwt1">
5492 </span><span about="#mwt1">
5493 </span><span about="#mwt1">
5494 </span><span about="#mwt1">
5496 xyz</span><span about="#mwt1">
5497 </span><span about="#mwt1">
5502 Parser Functions: 1. Simple example
5511 Parser Functions: 2. Nested use (only outermost should be marked up)
5520 ### Pre-save transform tests
5523 pre-save transform: subst:
5529 This is a test template
5533 pre-save transform: normal template
5543 pre-save transform: nonexistent template
5547 {{thistemplatedoesnotexist}}
5549 {{thistemplatedoesnotexist}}
5554 pre-save transform: subst magic variables
5563 # This is bug 89, which I fixed. -- wtm
5565 pre-save transform: subst: templates with parameters
5569 {{subst:paramtest|param="something else"}}
5571 This is a test template with parameter "something else"
5577 <nowiki>'''not wiki'''</nowiki>
5581 pre-save transform: nowiki in subst (bug 1188)
5585 {{subst:nowikitest}}
5587 <nowiki>'''not wiki'''</nowiki>
5592 Template:commenttest
5594 This template has <!-- a comment --> in it.
5598 pre-save transform: comment in subst (bug 1936)
5602 {{subst:commenttest}}
5604 This template has <!-- a comment --> in it.
5608 pre-save transform: unclosed tag
5612 <nowiki>'''not wiki'''
5614 <nowiki>'''not wiki'''
5618 pre-save transform: mixed tag case
5622 <NOwiki>'''not wiki'''</noWIKI>
5624 <NOwiki>'''not wiki'''</noWIKI>
5628 pre-save transform: unclosed comment in <nowiki>
5632 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5634 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5640 <span onmouseover="alert('crap')">Oh no</span>
5644 (confirming safety of fix for subst bug 1936)
5646 {{Template:dangerous}}
5648 <p><span>Oh no</span>
5653 pre-save transform: comment containing gallery (bug 5024)
5657 <!-- <gallery>data</gallery> -->
5659 <!-- <gallery>data</gallery> -->
5663 pre-save transform: comment containing extension
5667 <!-- <tag>data</tag> -->
5669 <!-- <tag>data</tag> -->
5673 pre-save transform: comment containing nowiki
5677 <!-- <nowiki>data</nowiki> -->
5679 <!-- <nowiki>data</nowiki> -->
5683 pre-save transform: <noinclude> in subst (bug 3298)
5693 pre-save transform: <onlyinclude> in subst (bug 3298)
5705 {{<includeonly>subst:</includeonly>Includes}}
5709 Template:SafeSubstTest
5711 {{<includeonly>safesubst:</includeonly>Includes}}
5715 bug 22297: safesubst: works during PST
5719 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5725 bug 22297: safesubst: works during normal parse
5734 subst: does not work during normal parse
5738 <p>{{subst:Includes}}
5743 pre-save transform: context links ("pipe trick")
5747 [[Article (context)|]]
5750 [[Bar:Article (context)|]]
5751 [[:Bar:Article (context)|]]
5753 [[|Article (context)]]
5757 [[Article (context)|Article]]
5758 [[Bar:Article|Article]]
5759 [[:Bar:Article|Article]]
5760 [[Bar:Article (context)|Article]]
5761 [[:Bar:Article (context)|Article]]
5763 [[Article (context)]]
5764 [[Bar:X (Y) Z|X (Y) Z]]
5765 [[:Bar:X (Y) Z|X (Y) Z]]
5769 pre-save transform: context links ("pipe trick") with interwiki prefix
5773 [[interwiki:Article|]]
5774 [[:interwiki:Article|]]
5775 [[interwiki:Bar:Article|]]
5776 [[:interwiki:Bar:Article|]]
5778 [[interwiki:Article|Article]]
5779 [[:interwiki:Article|Article]]
5780 [[interwiki:Bar:Article|Bar:Article]]
5781 [[:interwiki:Bar:Article|Bar:Article]]
5785 pre-save transform: context links ("pipe trick") with parens in title
5787 pst title=[[Somearticle (context)]]
5791 [[Article (context)|Article]]
5795 pre-save transform: context links ("pipe trick") with comma in title
5797 pst title=[[Someplace, Somewhere]]
5800 [[Otherplace, Elsewhere|]]
5801 [[Otherplace, Elsewhere, Anywhere|]]
5803 [[Otherplace, Somewhere|Otherplace]]
5804 [[Otherplace, Elsewhere|Otherplace]]
5805 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5809 pre-save transform: context links ("pipe trick") with parens and comma
5811 pst title=[[Someplace (IGNORED), Somewhere]]
5814 [[Otherplace (place), Elsewhere|]]
5816 [[Otherplace, Somewhere|Otherplace]]
5817 [[Otherplace (place), Elsewhere|Otherplace]]
5821 pre-save transform: context links ("pipe trick") with comma and parens
5823 pst title=[[Who, me? (context)]]
5826 [[Me, Myself, and I (1937 song)|]]
5828 [[Yes, you. (context)|Yes, you.]]
5829 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5833 pre-save transform: context links ("pipe trick") with namespace
5835 pst title=[[Ns:Somearticle]]
5839 [[Ns:Article|Article]]
5843 pre-save transform: context links ("pipe trick") with namespace and parens
5845 pst title=[[Ns:Somearticle (context)]]
5849 [[Ns:Article (context)|Article]]
5853 pre-save transform: context links ("pipe trick") with namespace and comma
5855 pst title=[[Ns:Somearticle, Context, Whatever]]
5859 [[Ns:Article, Context, Whatever|Article]]
5863 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5865 pst title=[[Ns:Somearticle, Context (context)]]
5869 [[Ns:Article (context)|Article]]
5873 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5875 pst title=[[Ns:Somearticle (IGNORED), Context]]
5879 [[Ns:Article, Context|Article]]
5883 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5887 [[Article(context)|]]
5888 [[Bar:Article(context)|]]
5889 [[:Bar:Article(context)|]]
5890 [[|Article(context)]]
5894 [[Article(context)|Article]]
5895 [[Bar:Article(context)|Article]]
5896 [[:Bar:Article(context)|Article]]
5897 [[Article(context)]]
5899 [[:Bar:X(Y)Z|X(Y)Z]]
5903 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5907 [[Article (context)|]]
5908 [[Bar:Article (context)|]]
5909 [[:Bar:Article (context)|]]
5910 [[|Article (context)]]
5914 [[Article (context)|Article]]
5915 [[Bar:Article (context)|Article]]
5916 [[:Bar:Article (context)|Article]]
5917 [[Article (context)]]
5918 [[Bar:X (Y) Z|X (Y) Z]]
5919 [[:Bar:X (Y) Z|X (Y) Z]]
5923 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5927 [[Article(context)|]]
5928 [[Bar:Article(context)|]]
5929 [[:Bar:Article(context)|]]
5930 [[|Article(context)]]
5934 [[Article(context)|Article]]
5935 [[Bar:Article(context)|Article]]
5936 [[:Bar:Article(context)|Article]]
5937 [[Article(context)]]
5939 [[:Bar:X(Y)Z|X(Y)Z]]
5943 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5947 [[Article (context), context|]]
5948 [[Article (context),context|]]
5949 [[Bar:Article (context), context|]]
5950 [[Bar:Article (context),context|]]
5951 [[:Bar:Article (context), context|]]
5952 [[:Bar:Article (context),context|]]
5954 [[Article (context), context|Article]]
5955 [[Article (context),context|Article]]
5956 [[Bar:Article (context), context|Article]]
5957 [[Bar:Article (context),context|Article]]
5958 [[:Bar:Article (context), context|Article]]
5959 [[:Bar:Article (context),context|Article]]
5963 pre-save transform: trim trailing empty lines
5967 Empty lines are trimmed
5973 Empty lines are trimmed
5977 pre-save transform: Signature expansion
5982 * <noinclude>~~~</noinclude>
5983 * <includeonly>~~~</includeonly>
5984 * <onlyinclude>~~~</onlyinclude>
5986 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5987 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5988 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5989 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5994 pre-save transform: Signature expansion in nowiki tags (bug 93)
6000 <nowiki>~~~~</nowiki>
6002 <includeonly><nowiki>~~~~</nowiki></includeonly>
6004 <noinclude><nowiki>~~~~</nowiki></noinclude>
6006 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6008 {{subst:Foo}} shall be converted to FOO
6010 As well as inside noinclude/onlyinclude
6011 <noinclude>{{subst:Foo}}</noinclude>
6012 <onlyinclude>{{subst:Foo}}</onlyinclude>
6014 But not inside includeonly
6015 <includeonly>{{subst:Foo}}</includeonly>
6019 <nowiki>~~~~</nowiki>
6021 <includeonly><nowiki>~~~~</nowiki></includeonly>
6023 <noinclude><nowiki>~~~~</nowiki></noinclude>
6025 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6027 FOO shall be converted to FOO
6029 As well as inside noinclude/onlyinclude
6030 <noinclude>FOO</noinclude>
6031 <onlyinclude>FOO</onlyinclude>
6033 But not inside includeonly
6034 <includeonly>{{subst:Foo}}</includeonly>
6038 ### Message transform tests
6041 message transform: magic variables
6051 message transform: should not transform wiki markup
6061 message transform: <noinclude> in transcluded template (bug 4926)
6071 message transform: <onlyinclude> in transcluded template (bug 4926)
6081 {{#special:}} page name, known
6085 {{#special:Recentchanges}}
6087 Special:RecentChanges
6091 {{#special:}} page name with subpage, known
6095 {{#special:Recentchanges/param}}
6097 Special:RecentChanges/param
6101 {{#special:}} page name, unknown
6105 {{#special:foobarnonexistent}}
6107 No such special page
6111 {{#speciale:}} page name, known
6115 {{#speciale:Recentchanges}}
6117 Special:RecentChanges
6121 {{#speciale:}} page name with subpage, known
6125 {{#speciale:Recentchanges/param}}
6127 Special:RecentChanges/param
6131 {{#speciale:}} page name, unknown
6135 {{#speciale:foobarnonexistent}}
6137 No_such_special_page
6146 [[Image:foobar.jpg]]
6148 <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>
6155 [[Image:foobar.jpg|right]]
6157 <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>
6162 Simple image (using File: namespace, now canonical)
6166 <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>
6173 [[Image:foobar.jpg|right|Caption text]]
6175 <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>
6180 Image with empty attribute
6182 [[Image:foobar.jpg|right||Caption text]]
6184 <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>
6189 Image with link tails
6191 123[[Image:foobar.jpg]]456
6192 123[[Image:foobar.jpg|right]]456
6193 123[[Image:foobar.jpg|thumb]]456
6195 <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
6197 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
6198 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
6203 Image with multiple captions -- only last one is accepted
6205 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6207 <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>
6212 Image with width attribute at different positions
6214 [[Image:foobar.jpg|200px|right|Caption]]
6215 [[Image:foobar.jpg|right|200px|Caption]]
6216 [[Image:foobar.jpg|right|Caption|200px]]
6218 <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>
6219 <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>
6220 <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>
6225 Image with link parameter, wiki target
6227 [[Image:foobar.jpg|link=Target page]]
6229 <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>
6234 Image with link parameter, URL target
6236 [[Image:foobar.jpg|link=http://example.com/]]
6238 <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>
6243 Image with link parameter, wgExternalLinkTarget
6245 [[Image:foobar.jpg|link=http://example.com/]]
6247 wgExternalLinkTarget='foobar'
6249 <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>
6254 Image with link parameter, wgNoFollowLinks set to false
6256 [[Image:foobar.jpg|link=http://example.com/]]
6258 wgNoFollowLinks=false
6260 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6265 Image with link parameter, wgNoFollowDomainExceptions
6267 [[Image:foobar.jpg|link=http://example.com/]]
6269 wgNoFollowDomainExceptions='example.com'
6271 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6276 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6278 [[Image:foobar.jpg|link=http://example.com/|Title]]
6280 wgExternalLinkTarget='foobar'
6282 <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>
6287 Image with empty link parameter
6289 [[Image:foobar.jpg|link=]]
6291 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6296 Image with link parameter (wiki target) and unnamed parameter
6298 [[Image:foobar.jpg|link=Target page|Title]]
6300 <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>
6305 Image with link parameter (URL target) and unnamed parameter
6307 [[Image:foobar.jpg|link=http://example.com/|Title]]
6309 <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>
6314 Thumbnail image with link parameter
6316 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6318 <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>
6323 Image with frame and link
6325 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6327 <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>
6332 Image with frame and link and explicit alt
6334 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6336 <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>
6341 Image with wiki markup in implicit alt
6343 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6345 <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>
6350 Image with wiki markup in explicit alt
6352 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6354 <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>
6359 Link to image page- image page normally doesn't exists, hence edit link
6360 Add test with existing image page
6361 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6365 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6370 bug 18784 Link to non-existent image page with caption should use caption as link text
6372 [[:Image:test|caption]]
6374 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6379 Frameless image caption with a free URL
6381 [[Image:foobar.jpg|http://example.com]]
6383 <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>
6388 Thumbnail image caption with a free URL
6390 [[Image:foobar.jpg|thumb|http://example.com]]
6392 <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>
6397 Thumbnail image caption with a free URL and explicit alt
6399 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6401 <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>
6406 BUG 1887: A ISBN with a thumbnail
6408 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6410 <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>
6415 BUG 1887: A RFC with a thumbnail
6417 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6419 <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>
6424 BUG 1887: A mailto link with a thumbnail
6426 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6428 <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>
6432 # Pending resolution to bug 368
6434 BUG 648: Frameless image caption with a link
6436 [[Image:foobar.jpg|text with a [[link]] in it]]
6438 <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>
6443 BUG 648: Frameless image caption with a link (suffix)
6445 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6447 <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>
6452 BUG 648: Frameless image caption with an interwiki link
6454 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6456 <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>
6461 BUG 648: Frameless image caption with a piped interwiki link
6463 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6465 <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>
6470 Escape HTML special chars in image alt text
6472 [[Image:foobar.jpg|& < > "]]
6474 <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>
6479 BUG 499: Alt text should have Ӓ, not &1234;
6481 [[Image:foobar.jpg|♀]]
6483 <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>
6488 Broken image caption with link
6490 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6492 <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.
6497 Image caption containing another image
6499 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6501 <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>
6506 Image caption containing a newline
6508 [[Image:Foobar.jpg|This
6511 <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>
6517 Bug 3090: External links other than http: in image captions
6519 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6521 <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>
6528 [[Image:foobar.jpg|a|class=b]]
6530 <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>
6537 #REDIRECT [[File:Barfoo.jpg]]
6543 [[Image:Barfoo.jpg]]
6545 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6550 Missing image with uploads disabled
6554 [[Image:Foobaz.jpg]]
6556 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6565 Subpage test/subpage
6573 subpage title=[[Subpage test]]
6577 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6582 Subpage noslash link
6584 subpage title=[[Subpage test]]
6588 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6597 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6602 BUG 561: {{/Subpage}}
6604 subpage title=[[Page]]
6608 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6616 Category:MediaWiki User's Guide
6624 [[:Category:MediaWiki User's Guide]]
6626 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6635 [[Category:MediaWiki User's Guide]]
6637 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6641 PAGESINCATEGORY invalid title fatal (r33546 fix)
6643 {{PAGESINCATEGORY:<bogus>}}
6650 Category with different sort key
6654 [[Category:MediaWiki User's Guide|Foo]]
6656 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6660 Category with identical sort key
6664 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6666 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6670 Category with empty sort key
6675 [[Category:MediaWiki User's Guide|]]
6677 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6681 Category with empty sort key and parentheses
6686 [[Category:Foo (bar)|]]
6688 [[Category:Foo (bar)|Foo]]
6692 Category with link tail
6697 123[[Category:Foo]]456
6699 123[[Category:Foo]]456
6703 Category with template
6708 [[Category:{{echo|Foo}}]]
6710 [[Category:{{echo|Foo}}]]
6714 Category with template in sort key
6719 [[Category:Foo|{{echo|Bar}}]]
6721 [[Category:Foo|{{echo|Bar}}]]
6725 Category with template in sort key and title
6730 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6732 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6736 Category / paragraph interactions
6738 Foo [[Category:Baz]] Bar
6740 Foo [[Category:Baz]]
6748 [[Category:Baz]] Bar
6761 {{echo|[[Category:Baz]]}}
6776 ### Inter-language links
6779 Inter-language links
6785 [[zh:食品]]
6787 es:Alimento fr:Nourriture zh:食品
6791 Duplicate interlanguage links (bug 24502)
6807 Basic section headings
6814 ===Smaller headline===
6817 <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>
6820 <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>
6823 <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>
6829 Section headings with TOC
6832 === Subheadline 1 ===
6833 ===== Skipping a level =====
6834 ====== Skipping a level ======
6838 ===Another headline===
6840 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6842 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6844 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6846 <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>
6848 <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>
6855 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6857 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6862 <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>
6863 <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>
6864 <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>
6865 <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>
6866 <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>
6869 <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>
6873 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6875 Handling of sections up to level 6 and beyond
6878 == Level 2 Heading==
6879 === Level 3 Heading===
6880 ==== Level 4 Heading====
6881 ===== Level 5 Heading=====
6882 ====== Level 6 Heading======
6883 ======= Level 7 Heading=======
6884 ======== Level 8 Heading========
6885 ========= Level 9 Heading=========
6886 ========== Level 10 Heading==========
6888 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6890 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6892 <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>
6894 <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>
6896 <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>
6898 <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>
6900 <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>
6901 <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>
6902 <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>
6903 <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>
6904 <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>
6917 <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>
6918 <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>
6919 <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>
6920 <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>
6921 <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>
6922 <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>
6923 <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>
6924 <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>
6925 <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>
6926 <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>
6931 TOC regression (bug 9764)
6935 ==== title 1.1.1 ====
6940 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6942 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6944 <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>
6946 <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>
6949 <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>
6952 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6954 <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>
6959 <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>
6960 <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>
6961 <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>
6962 <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>
6963 <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>
6964 <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>
6969 TOC with wgMaxTocLevel=3 (bug 6204)
6975 ==== title 1.1.1 ====
6980 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6982 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6984 <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>
6985 <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>
6988 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6990 <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>
6995 <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>
6996 <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>
6997 <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>
6998 <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>
6999 <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>
7000 <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>
7005 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7011 ====Section 1.1.1====
7012 ====Section 1.1.1.1====
7015 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7017 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7019 <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>
7022 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7025 <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>
7026 <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>
7027 <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>
7028 <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>
7029 <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>
7035 Resolving duplicate section names
7040 <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>
7041 <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>
7046 Resolving duplicate section names with differing case (bug 10721)
7051 <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>
7052 <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>
7064 Template with sections, __NOTOC__
7071 <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>
7072 <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>
7073 <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>
7074 <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>
7079 __NOEDITSECTION__ keyword
7085 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7086 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7091 Link inside a section heading
7093 ==Section with a [[Main Page|link]] in it==
7095 <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>
7100 TOC regression (bug 12077)
7107 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7109 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7111 <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>
7114 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7117 <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>
7118 <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>
7119 <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>
7124 BUG 1219 URL next to image (good)
7126 http://example.com [[Image:foobar.jpg]]
7128 <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>
7133 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7136 The line above must have a trailing space!
7139 But just in case it doesn't...
7141 <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>
7142 <p>The line above must have a trailing space!
7144 <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>
7145 <p>But just in case it doesn't...
7150 Header with special characters (bug 25462)
7152 The tooltips shall not show entities to the user (ie. be double escaped)
7169 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7171 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7173 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7174 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7175 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7176 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7177 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7180 <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>
7183 <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>
7186 <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>
7189 <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>
7192 <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>
7198 Headers with excess '=' characters
7199 (Are similar tests necessary beyond the 1st level?)
7203 =''italic'' heading==
7204 ==''italic'' heading=
7206 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7208 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7209 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7210 <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>
7211 <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>
7214 <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>
7215 <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>
7216 <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>
7217 <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>
7222 BUG 1219 URL next to image (broken)
7224 http://example.com[[Image:foobar.jpg]]
7226 <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>
7231 Bug 1186 news: in the middle of text
7233 http://en.wikinews.org/wiki/Wikinews:Workplace
7235 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7241 Namespaced link must have a title
7250 Namespaced link must have a title (bad fragment version)
7252 [[Project:#fragment]]
7254 <p>[[Project:#fragment]]
7260 div with no attributes
7262 <div>HTML rocks</div>
7264 <div>HTML rocks</div>
7269 div with double-quoted attribute
7271 <div id="rock">HTML rocks</div>
7273 <div id="rock">HTML rocks</div>
7278 div with single-quoted attribute
7280 <div id='rock'>HTML rocks</div>
7282 <div id="rock">HTML rocks</div>
7287 div with unquoted attribute
7289 <div id=rock>HTML rocks</div>
7291 <div id="rock">HTML rocks</div>
7296 div with illegal double attributes
7298 <div id="a" id="b">HTML rocks</div>
7300 <div id="b">HTML rocks</div>
7304 # FIXME: produce empty string instead of "class" in the PHP parser, following
7307 div with empty attribute value, space before equals
7311 <div class =>HTML rocks</div>
7313 <div class="">HTML rocks</div>
7317 # This it very inconsistent in the PHP parser: it returns
7318 # class="class" if there is a space between the name and the equal sign (see
7319 # 'div with empty attribute value, space before equals'), but strips the
7320 # attribute completely if the space is missing. We hope that not much content
7321 # depends on this, so are implementing the behavior below in Parsoid for
7322 # consistencies' sake. Disabled for the PHP parser.
7323 # FIXME: fix this behavior in the PHP parser?
7325 div with empty attribute value, no space before equals
7329 <div class=>HTML rocks</div>
7331 <div class="">HTML rocks</div>
7336 HTML multiple attributes correction
7338 <p class="error" class="awesome">Awesome!</p>
7340 <p class="awesome">Awesome!</p>
7345 Table multiple attributes correction
7348 !+ class="error" class="awesome"| status
7353 <th class="awesome"> status
7361 <DIV ID="x">HTML ROCKS</DIV>
7363 <div id="x">HTML ROCKS</div>
7368 Non-ASCII pseudo-tags are rendered as text
7377 Pseudo-tag with URL 'name' renders as url link
7379 <http://example.com/>
7381 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7386 text with amp in the middle of nowhere
7390 <p>Remember AT&T?
7395 text with character entity: eacute
7397 I always thought é was a cute letter.
7399 <p>I always thought é was a cute letter.
7404 text with undefined character entity: xacute
7406 I always thought &xacute; was a cute letter.
7408 <p>I always thought &xacute; was a cute letter.
7420 [[Media:Foobar.jpg]]
7422 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7427 Media link with text
7429 [[Media:Foobar.jpg|A neat file to look at]]
7431 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7435 # FIXME: this is still bad HTML tag nesting
7437 Media link with nasty text
7438 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7440 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7442 <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>
7447 Media link to nonexistent file (bug 1702)
7449 [[Media:No such.jpg]]
7451 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7456 Image link to nonexistent file (bug 1850 - good)
7458 [[Image:No such.jpg]]
7460 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7465 :Image link to nonexistent file (bug 1850 - bad)
7467 [[:Image:No such.jpg]]
7469 <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>
7476 Character reference normalization in link text (bug 1938)
7478 [[Main Page|this&that]]
7480 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7487 Test for unicode normalization
7489 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7493 (bug 19451) Links should refer to the normalized form.
7501 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7502 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7503 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7504 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7505 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7510 Empty attribute crash test (bug 2067)
7512 <font color="">foo</font>
7514 <p><font color="">foo</font>
7519 Empty attribute crash test single-quotes (bug 2067)
7521 <font color=''>foo</font>
7523 <p><font color="">foo</font>
7528 Attribute test: equals, then nothing
7530 <font color=>foo</font>
7537 Attribute test: unquoted value
7539 <font color=x>foo</font>
7541 <p><font color="x">foo</font>
7546 Attribute test: unquoted but illegal value (hash)
7548 <font color=#x>foo</font>
7550 <p><font color="#x">foo</font>
7555 Attribute test: no value
7557 <font color>foo</font>
7559 <p><font color="color">foo</font>
7564 Bug 2095: link with three closing brackets
7568 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7573 Bug 2095: link with pipe and three closing brackets
7577 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7582 Bug 2095: link with pipe and three closing brackets, version 2
7584 [[Main Page|[http://example.com/]]]
7586 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7596 Template:Dangerous attribute
7598 " onmouseover="alert(document.cookie)
7602 Template:Dangerous style attribute
7604 border-size: expression(alert(document.cookie))
7610 <div style="float: right; {{{1}}}">Magic div</div>
7614 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7616 <div title="{{test}}"></div>
7618 <div title="This is a test template"></div>
7623 Bug 2304: HTML attribute safety (dangerous template; 2309)
7625 <div title="{{dangerous attribute}}"></div>
7627 <div title=""></div>
7632 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7634 <div style="{{dangerous style attribute}}"></div>
7636 <div style="/* insecure input */"></div>
7641 Bug 2304: HTML attribute safety (safe parameter; 2309)
7643 {{div style|width: 200px}}
7645 <div style="float: right; width: 200px">Magic div</div>
7650 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7652 {{div style|width: expression(alert(document.cookie))}}
7654 <div style="/* insecure input */">Magic div</div>
7659 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7661 {{div style|"><script>alert(document.cookie)</script>}}
7663 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7668 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7670 {{div style|" ><script>alert(document.cookie)</script>}}
7672 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7677 Bug 2304: HTML attribute safety (link)
7679 <div title="[[Main Page]]"></div>
7681 <div title="[[Main Page]]"></div>
7686 Bug 2304: HTML attribute safety (italics)
7688 <div title="''foobar''"></div>
7690 <div title="''foobar''"></div>
7695 Bug 2304: HTML attribute safety (bold)
7697 <div title="'''foobar'''"></div>
7699 <div title="'''foobar'''"></div>
7705 Bug 2304: HTML attribute safety (ISBN)
7707 <div title="ISBN 1234567890"></div>
7709 <div title="ISBN 1234567890"></div>
7714 Bug 2304: HTML attribute safety (RFC)
7716 <div title="RFC 1234"></div>
7718 <div title="RFC 1234"></div>
7723 Bug 2304: HTML attribute safety (PMID)
7725 <div title="PMID 1234567890"></div>
7727 <div title="PMID 1234567890"></div>
7732 Bug 2304: HTML attribute safety (web link)
7734 <div title="http://example.com/"></div>
7736 <div title="http://example.com/"></div>
7741 Bug 2304: HTML attribute safety (named web link)
7743 <div title="[http://example.com/ link]"></div>
7745 <div title="[http://example.com/ link]"></div>
7750 Bug 3244: HTML attribute safety (extension; safe)
7752 <div style="<nowiki>background:blue</nowiki>"></div>
7754 <div style="background:blue"></div>
7759 Bug 3244: HTML attribute safety (extension; unsafe)
7761 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7763 <div style="/* insecure input */"></div>
7767 # More MSIE fun discovered by Tom Gilder
7770 MSIE CSS safety test: spurious slash
7772 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7774 <div style="/* insecure input */">evil</div>
7779 MSIE CSS safety test: hex code
7781 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7783 <div style="/* insecure input */">evil</div>
7788 MSIE CSS safety test: comment in url
7790 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7792 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7797 MSIE CSS safety test: comment in expression
7799 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7801 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7807 Table attribute legitimate extension
7810 !+ style="<nowiki>color:blue</nowiki>"| status
7815 <th style="color:blue"> status
7821 Table attribute safety
7824 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7829 <th style="/* insecure input */"> status
7835 CSS line continuation 1
7837 <div style="background-image: u\ rl(test.jpg);"></div>
7839 <div style="/* insecure input */"></div>
7844 CSS line continuation 2
7846 <div style="background-image: u\ rl(test.jpg); "></div>
7848 <div style="/* insecure input */"></div>
7859 Expansion of multi-line templates in attribute values (bug 6255)
7861 <div style="background: {{identity|#00FF00}}">-</div>
7863 <div style="background: #00FF00">-</div>
7869 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7871 <div style="background:
7874 <div style="background: #00FF00">-</div>
7879 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7881 <div style="background: #00FF00">-</div>
7883 <div style="background: #00FF00">-</div>
7888 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7891 Parser hook: empty input
7904 Parser hook: empty input using terminated empty elements
7917 Parser hook: empty input using terminated empty elements (space before)
7930 Parser hook: basic input
7944 Parser hook: case insensitive
7958 Parser hook: case insensitive, redux
7971 Parser hook: nested tags
7975 <tag><tag></tag></tag>
7986 Parser hook: basic arguments
7988 <tag width=200 height = "100" depth = '50' square></tag>
7996 'square' => 'square',
8003 Parser hook: argument containing a forward slash (bug 5344)
8005 <tag filename='/tmp/bla'></tag>
8010 'filename' => '/tmp/bla',
8017 Parser hook: empty input using terminated empty elements (bug 2374)
8030 # </tag> should be output literally since there is no matching tag that begins it
8032 Parser hook: basic arguments using terminated empty elements (bug 2374)
8034 <tag width=200 height = "100" depth = '50' square/>
8044 'square' => 'square',
8053 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8057 Parser hook: static parser hook not inside a comment
8059 <statictag>hello, world</statictag>
8060 <statictag action=flush/>
8068 Parser hook: static parser hook inside a comment
8070 <!-- <statictag>hello, world</statictag> -->
8071 <statictag action=flush/>
8077 # Nested template calls; this case was broken by Parser.php rev 1.506,
8081 Template:One-parameter
8083 (My parameter is: {{{1}}})
8087 Template:Map-one-parameter
8093 Nested template calls
8095 {{Map-one-parameter|One-parameter|param}}
8097 <p>(My parameter is: param)
8106 Sanitizer: Closing of open tags
8108 <s></s><table></table>
8110 <s></s><table></table>
8115 Sanitizer: Closing of open but not closed tags
8124 Sanitizer: Closing of closed but not open tags
8133 Sanitizer: Closing of closed but not open table tags
8135 Table not started</td></tr></table>
8137 <p>Table not started</td></tr></table>
8142 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8144 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8146 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8151 Sanitizer: Validating the contents of the id attribute (bug 4515)
8157 Something, but definitely not <br id="9" />...
8161 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8165 <br id="foo" /><br id="foo" />
8167 Something need to be done. foo-2 ?
8171 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8174 <meta itemprop="hello" content="world">
8175 <meta http-equiv="refresh" content="5">
8176 <meta itemprop="hello" http-equiv="refresh" content="5">
8177 <link itemprop="hello" href="{{SERVER}}">
8178 <link rel="stylesheet" href="{{SERVER}}">
8179 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8182 <div itemscope="itemscope">
8183 <p> <meta itemprop="hello" content="world" />
8184 <meta http-equiv="refresh" content="5">
8185 <meta itemprop="hello" content="5" />
8187 <link itemprop="hello" href="http://Britney-Spears" />
8188 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8189 <link itemprop="hello" href="http://Britney-Spears" />
8195 Language converter: output gets cut off unexpectedly (bug 5757)
8199 this bit is safe: }-
8201 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8203 then we get cut off here: }-
8205 all additional text is vanished
8207 <p>this bit is safe: }-
8208 </p><p>but if we add a conversion instance: xxx
8209 </p><p>then we get cut off here: }-
8210 </p><p>all additional text is vanished
8215 Self closed html pairs (bug 5487)
8218 <center><font id="bug" />Centered text</center>
8219 <div><font id="bug2" />In div text</div>
8221 <center><font id="bug" />Centered text</center>
8222 <div><font id="bug2" />In div text</div>
8231 Punctuation: nbsp before exclamation
8235 <p>C'est grave !
8240 Punctuation: CSS !important (bug 11874)
8242 <div style="width:50% !important">important</div>
8244 <div style="width:50% !important">important</div>
8249 Punctuation: CSS ! important (bug 11874; with space after)
8251 <div style="width:50% ! important">important</div>
8253 <div style="width:50% ! important">important</div>
8259 HTML bullet list, closed tags (bug 5497)
8274 HTML bullet list, unclosed tags (bug 5497)
8291 HTML ordered list, closed tags (bug 5497)
8306 HTML ordered list, unclosed tags (bug 5497)
8323 HTML nested bullet list, closed tags (bug 5497)
8348 HTML nested bullet list, open tags (bug 5497)
8373 HTML nested ordered list, closed tags (bug 5497)
8398 HTML nested ordered list, open tags (bug 5497)
8423 HTML ordered list item with parameters oddity
8425 <ol><li id="fragment">One</li></ol>
8427 <ol><li id="fragment">One</li></ol>
8432 bug 5918: autonumbering
8434 [http://first/] [http://second] [ftp://ftp]
8438 [mailto:enclosed@mail.tld With target]
8440 [mailto:enclosed@mail.tld]
8442 mailto:inline@mail.tld
8444 <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>
8445 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8446 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8447 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8448 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8454 # Security and HTML correctness
8455 # From Nick Jenkins' fuzz testing
8459 Fuzz testing: Parser13
8474 Fuzz testing: Parser14
8479 <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>
8480 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8482 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8489 Fuzz testing: Parser14-table
8494 <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>
8495 <table style="__TOC__">
8501 # Known to produce bogus xml (extra </td>)
8503 Fuzz testing: Parser16
8523 Fuzz testing: Parser21
8526 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8531 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8541 Fuzz testing: Parser22
8543 http://===r:::https://b
8547 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8555 # Known to produce bad XML for now
8557 Fuzz testing: Parser24
8564 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8565 <br style="onmouseover='alert(document.cookie);' " />
8567 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8572 <u class="|">}}}} >
8573 <br style="onmouseover='alert(document.cookie);'" />
8575 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8584 # Note: the current result listed for this is not what the original one was,
8585 # but the original bug was JavaScript injection, which is fixed in any case.
8586 # It's not clear that the original result listed was any more correct than the
8587 # current one. Original result:
8590 # <li class="||">
8591 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8593 Fuzz testing: Parser25 (bug 6055)
8599 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8601 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8606 Fuzz testing: URL adjacent extension (with space, clean)
8609 http://example.com <nowiki>junk</nowiki>
8611 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8616 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8619 http://example.com<nowiki>junk</nowiki>
8621 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8626 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8629 http://example.com<pre>junk</pre>
8631 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8636 Fuzz testing: image with bogus manual thumbnail
8638 [[Image:foobar.jpg|thumbnail= ]]
8640 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8645 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8647 <pre dir=" "></pre>
8649 <pre dir=" "></pre>
8654 Parsing optional HTML elements (Bug 6171)
8659 <td> Some tabular data</td>
8660 <td> More tabular data ...
8661 <td> And yet som tabular data</td>
8667 <td> Some tabular data</td>
8668 <td> More tabular data ...
8669 </td><td> And yet som tabular data</td>
8676 Correct handling of <td>, <tr> (Bug 6171)
8681 <td> Some tabular data</td>
8682 <td> More tabular data ...</td>
8683 <td> And yet som tabular data</td>
8689 <td> Some tabular data</td>
8690 <td> More tabular data ...</td>
8691 <td> And yet som tabular data</td>
8699 Parsing crashing regression (fr:JavaScript)
8703 <p></body></x>
8708 Inline wiki vs wiki block nesting
8714 <p><b>Bold paragraph</b>
8715 </p><p>New wiki paragraph
8720 Inline HTML vs wiki block nesting
8728 <p><b>Bold paragraph</b>
8729 </p><p>New wiki paragraph
8733 # Original result was this:
8734 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8736 # While that might be marginally more intuitive, maybe, the six-apostrophe
8737 # construct is clearly pathological and the result stated here (which is what
8738 # the parser actually does) is about as reasonable as anything.
8740 Mixing markup for italics and bold
8743 '''bold''''''bold''bolditalics'''''
8745 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8753 Article for special page transclusion test
8757 Special page transclusion
8760 {{Special:Prefixindex/Xyzzyx}}
8762 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8767 Special page transclusion twice (bug 5021)
8770 {{Special:Prefixindex/Xyzzyx}}
8771 {{Special:Prefixindex/Xyzzyx}}
8773 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8774 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8779 Transclusion of default MediaWiki message
8781 {{MediaWiki:Mainpage}}
8788 Transclusion of nonexistent MediaWiki message
8790 {{MediaWiki:Mainpagexxx}}
8792 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8797 Transclusion of MediaWiki message with underscore
8799 {{MediaWiki:history_short}}
8806 Transclusion of MediaWiki message with space
8808 {{MediaWiki:history short}}
8815 Invalid header with following text
8825 Section extraction test (section 0)
8845 Section extraction test (section 1)
8867 Section extraction test (section 2)
8888 Section extraction test (section 3)
8908 Section extraction test (section 4)
8932 Section extraction test (section 5)
8952 Section extraction test (section 6)
8973 Section extraction test (section 7)
8993 Section extraction test (section 8)
9013 Section extraction test (section 9)
9034 Section extraction test (section 10)
9054 Section extraction test (nonexistent section 11)
9073 Section extraction test with bogus heading (section 1)
9078 ==bogus== not a legal section
9082 ==bogus== not a legal section
9086 Section extraction test with bogus heading (section 2)
9091 ==bogus== not a legal section
9098 Section extraction test with comment after heading (section 1)
9110 Section extraction test with comment after heading (section 2)
9122 Section extraction test with bogus <nowiki> heading (section 1)
9127 ==bogus== <nowiki>not a legal section</nowiki>
9131 ==bogus== <nowiki>not a legal section</nowiki>
9135 Section extraction test with bogus <nowiki> heading (section 2)
9140 ==bogus== <nowiki>not a legal section</nowiki>
9147 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9148 # instead of respecting commented sections
9150 Section extraction prefixed by comment (section 1)
9161 Section extraction prefixed by comment (section 2)
9172 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9173 # instead of respecting HTML-style headings
9175 Section extraction, mixed wiki and html (section 1)
9191 Section extraction, mixed wiki and html (section 2)
9207 # Formerly testing for bug 3342
9209 Section extraction, heading surrounded by <noinclude>
9213 <noinclude>==unmarked==</noinclude>
9219 # Test behaviour of bug 19910
9221 Sectiion with all-equals
9226 The line above must have a trailing space
9229 But just in case it doesn't...
9233 But just in case it doesn't...
9237 Section replacement test (section 0)
9268 Section replacement test (section 1)
9297 Section replacement test (section 2)
9327 Section replacement test (section 3)
9358 Section replacement test (section 4)
9385 Section replacement test (section 5)
9416 Section replacement test (section 6)
9446 Section replacement test (section 7)
9477 Section replacement test (section 8)
9508 Section replacement test (section 9)
9537 Section replacement test (section 10)
9567 Section replacement test with initial whitespace (bug 13728)
9571 Preformatted initial line
9575 Preformatted initial line
9582 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9594 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9607 Section extraction, <pre> around bogus header (bug 10309)
9624 Section replacement, <pre> around bogus header (bug 10309)
9626 noxml replace=2,"xxx"
9647 Handling of 
 in URLs
9651 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9658 5 quotes, code coverage +1 line
9665 Special:Search page linking.
9669 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9684 * {{SUBJECTPAGENAME}}
9685 * {{SUBJECTPAGENAMEE}}
9692 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9694 <ul><li> Parser test
9695 </li><li> Parser test
9696 </li><li> Parser test
9697 </li><li> Parser_test
9698 </li><li> Parser test
9699 </li><li> Parser_test
9700 </li><li> Talk:Parser test
9701 </li><li> Talk:Parser_test
9702 </li><li> Parser test
9703 </li><li> Parser_test
9710 </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>
9714 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9724 image4 |300px| centre
9725 image5.svg| http://///////
9730 <ul class="gallery">
9731 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9732 <div style="height: 150px;">Image1.png</div>
9733 <div class="gallerytext">
9736 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9737 <div style="height: 150px;">Image2.gif</div>
9738 <div class="gallerytext">
9743 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9744 <div style="height: 150px;">Image3</div>
9745 <div class="gallerytext">
9748 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9749 <div style="height: 150px;">Image4</div>
9750 <div class="gallerytext">
9755 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9756 <div style="height: 150px;">Image5.svg</div>
9757 <div class="gallerytext">
9758 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9762 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9763 <div style="height: 150px;">* image6</div>
9764 <div class="gallerytext">
9772 Gallery (with options)
9774 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9775 File:Nonexistant.jpg|caption
9776 File:Nonexistant.jpg
9777 image:foobar.jpg|some '''caption''' [[Main Page]]
9779 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9782 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9783 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9784 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9785 <div style="height: 70px;">Nonexistant.jpg</div>
9786 <div class="gallerytext">
9791 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9792 <div style="height: 70px;">Nonexistant.jpg</div>
9793 <div class="gallerytext">
9796 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9797 <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>
9798 <div class="gallerytext">
9799 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9803 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9804 <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>
9805 <div class="gallerytext">
9808 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9809 <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>
9810 <div class="gallerytext">
9820 Gallery with wikitext inside caption
9823 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9824 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9827 <ul class="gallery">
9828 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9829 <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>
9830 <div class="gallerytext">
9831 <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>
9835 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9836 <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>
9837 <div class="gallerytext">
9838 <p>This is a test template
9847 gallery (with showfilename option)
9849 <gallery showfilename>
9850 File:Nonexistant.jpg|caption
9851 File:Nonexistant.jpg
9852 image:foobar.jpg|some '''caption''' [[Main Page]]
9856 <ul class="gallery">
9857 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9858 <div style="height: 150px;">Nonexistant.jpg</div>
9859 <div class="gallerytext">
9860 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9865 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9866 <div style="height: 150px;">Nonexistant.jpg</div>
9867 <div class="gallerytext">
9868 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9872 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9873 <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>
9874 <div class="gallerytext">
9875 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9876 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9880 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9881 <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>
9882 <div class="gallerytext">
9883 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9892 Gallery (with namespace-less filenames)
9895 File:Nonexistant.jpg
9901 <ul class="gallery">
9902 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9903 <div style="height: 150px;">Nonexistant.jpg</div>
9904 <div class="gallerytext">
9907 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9908 <div style="height: 150px;">Nonexistant.jpg</div>
9909 <div class="gallerytext">
9912 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9913 <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>
9914 <div class="gallerytext">
9917 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9918 <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>
9919 <div class="gallerytext">
9927 HTML Hex character encoding (spells the word "JavaScript")
9929 JavaScript
9931 <p>JavaScript
9936 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9940 <p>&#xsee;&#XSEE;
9945 HTML Hex character encoding mixed case
9954 __FORCETOC__ override
9966 ISBN 978-0-1234-56 789
9968 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9973 ISBN followed by 5 spaces
9984 ISBN ISBN 1234567890
9986 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9991 Bug 22905: <abbr> followed by ISBN followed by </a>
9993 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9995 <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>
10004 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10009 Double RFC with a wiki link
10013 <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>
10022 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10027 Centre-aligned image
10029 [[Image:foobar.jpg|centre]]
10031 <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>
10038 [[Image:foobar.jpg|none]]
10040 <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>
10045 Width + Height sized image (using px) (height is ignored)
10047 [[Image:foobar.jpg|640x480px]]
10049 <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>
10054 Width-sized image (using px, no following whitespace)
10056 [[Image:foobar.jpg|640px]]
10058 <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>
10063 Width-sized image (using px, with following whitespace - test regression from r39467)
10065 [[Image:foobar.jpg|640px ]]
10067 <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>
10072 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10074 [[Image:foobar.jpg| 640px]]
10076 <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>
10081 Another italics / bold test
10089 # Note the results may be incorrect, as parserTest output included this:
10090 # XML error: Mismatched tag at byte 6120:
10091 # ...<dd> </dt></dl> </dd...
10099 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10110 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10112 Images with the "|" character in the comment
10114 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10116 <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>
10121 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10123 <html><script>alert(1);</script></html>
10125 <p><html><script>alert(1);</script></html>
10130 HTML with raw HTML ($wgRawHtml==true)
10134 <html><script>alert(1);</script></html>
10136 <p><script>alert(1);</script>
10141 Parents of subpages, one level up
10143 subpage title=[[Subpage test/L1/L2/L3]]
10147 <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>
10153 Parents of subpages, one level up, not named
10155 subpage title=[[Subpage test/L1/L2/L3]]
10159 <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>
10166 Parents of subpages, two levels up
10168 subpage title=[[Subpage test/L1/L2/L3]]
10174 <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
10175 </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>
10180 Parents of subpages, two levels up, without trailing slash or name.
10182 subpage title=[[Subpage test/L1/L2/L3]]
10191 Parents of subpages, two levels up, with lots of extra trailing slashes.
10193 subpage title=[[Subpage test/L1/L2/L3]]
10197 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10202 Definition list code coverage
10208 <dl><dt> title  </dt><dd> def
10209 </dd><dt> title </dt><dd> def
10210 </dd><dt>title</dt><dd> def
10216 Don't fall for the self-closing div
10218 <div>hello world</div/>
10220 <div>hello world</div>
10229 <p>[[:Template:Msg]]
10238 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10242 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10244 Always escape literal '>' in output, not just after '<'
10258 <p>This is a test template
10259 This is a test template
10271 Inclusion of !userCanEdit() content
10275 <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>
10281 Out-of-order TOC heading levels
10290 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10292 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10294 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10295 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10298 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10300 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10301 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10306 <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>
10307 <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>
10308 <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>
10309 <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>
10310 <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>
10311 <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>
10317 ISBN with a dummy number
10327 ISBN with space-delimited number
10331 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10337 ISBN with multiple spaces, no number
10356 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10357 </p><p>ISBN 12345678901
10363 ISBN with trailing year (bug 8110)
10365 ISBN 1-234-56789-0 - 2006
10367 ISBN 1 234 56789 0 - 2006
10369 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10370 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10378 {{anchorencode:foo bar©#%n}}
10380 <p>foo_bar.C2.A9.23.25n
10385 anchorencode trims spaces
10387 {{anchorencode: __pretty__please__}}
10394 anchorencode deals with links
10396 {{anchorencode: [[hello|world]] [[hi]]}}
10403 anchorencode deals with templates
10405 {{anchorencode: {{Foo}} }}
10412 anchorencode encodes like the TOC generator: (bug 18431)
10414 === _ +:.3A%3A&&]] ===
10415 {{anchorencode: _ +:.3A%3A&&]] }}
10418 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10419 <p>.2B:.3A.253A.26.26.5D.5D
10423 # Expected output in the following test is not necessarily expected (there
10424 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10425 # only testing for well-formedness.
10427 Bug 6200: blockquotes and paragraph formatting
10447 Bug 8293: Use of center tag ruins paragraph formatting
10469 ### Language variants related tests
10472 Self-link in language variants
10474 title=[[Dunav]] language=sr
10476 Both [[Dunav]] and [[Дунав]] are names for this river.
10478 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10484 Link to pages in language variants
10488 Main Page can be written as [[Маин Паге]]
10490 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10496 Multiple links to pages in language variants
10500 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10502 <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>.
10508 Simple template in language variants
10514 <p>This is a test template
10520 Template with explicit namespace in language variants
10526 <p>This is a test template
10532 Basic test for template parameter in language variants
10536 {{парамтест|param=foo}}
10538 <p>This is a test template with parameter foo
10544 Simple category in language variants
10548 [[Category:МедиаWики Усер'с Гуиде]]
10550 <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>
10555 Stripping -{}- tags (language variants)
10559 Latin proverb: -{Ne nuntium necare}-
10561 <p>Latin proverb: Ne nuntium necare
10567 Prevent conversion with -{}- tags (language variants)
10569 language=sr variant=sr-ec
10571 Latinski: -{Ne nuntium necare}-
10573 <p>Латински: Ne nuntium necare
10579 Prevent conversion of text with -{}- tags (language variants)
10581 language=sr variant=sr-ec
10583 Latinski: -{Ne nuntium necare}-
10585 <p>Латински: Ne nuntium necare
10591 Prevent conversion of links with -{}- tags (language variants)
10593 language=sr variant=sr-ec
10597 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10603 -{}- tags within headlines (within html for parserConvert())
10605 language=sr variant=sr-ec
10609 <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>
10615 Explicit definition of language variant alternatives
10617 language=zh variant=zh-tw
10619 -{zh:China;zh-tw:Taiwan}-, not China
10621 <p>Taiwan, not China
10627 Explicit session-wise language variant mapping (A flag and - flag)
10629 language=zh variant=zh-tw
10631 Taiwan is not China.
10632 But -{A|zh:China;zh-tw:Taiwan}- is China,
10633 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10634 and -{China}- is China.
10636 <p>Taiwan is not China.
10637 But Taiwan is Taiwan,
10638 (This should be stripped!)
10639 and China is China.
10644 Explicit session-wise language variant mapping (H flag for hide)
10646 language=zh variant=zh-tw
10648 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10651 <p>(This should be stripped!)
10657 Adding explicit conversion rule for title (T flag)
10659 language=zh variant=zh-tw showtitle
10661 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10664 <p>Should be stripped!
10669 Testing that changing the language variant here in the tests actually works
10671 language=zh variant=zh showtitle
10673 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10676 <p>Should be stripped!
10681 Bug 24072: more test on conversion rule for title
10683 language=zh variant=zh-tw showtitle
10685 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10686 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10689 <p>This should be stripped!
10690 This won't take interferes with the title rule.
10695 Raw output of variant escape tags (R flag)
10697 language=zh variant=zh-tw
10699 Raw: -{R|zh:China;zh-tw:Taiwan}-
10701 <p>Raw: zh:China;zh-tw:Taiwan
10706 Nested using of manual convert syntax
10708 language=zh variant=zh-hk
10710 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10712 <p>Nested: Hello Hong Kong!
10717 Proper conversion of text in external links
10719 language=sr variant=sr-ec
10721 http://www.google.com
10722 gopher://www.google.com
10723 [http://www.google.com http://www.google.com]
10724 [gopher://www.google.com gopher://www.google.com]
10725 [https://www.google.com irc://www.google.com]
10726 [ftp://www.google.com www.google.com/ftp://dir]
10727 [//www.google.com www.google.com]
10729 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10730 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10731 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10732 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10733 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10734 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10735 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10740 Do not convert roman numbers to language variants
10742 language=sr variant=sr-ec
10746 <p>Фридрих IV је цар.
10751 Unclosed language converter markup "-{"
10762 Don't convert raw rule "-{R|=>}-" to "=>"
10779 Bug 529: Uncovered bullet
10789 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10790 # Templates in Wikipedia rely on this behavior, as tidy has always been
10791 # enabled there. These tests are normally run *without* tidy, so specify the
10792 # full output here.
10793 # To test realistic parsing behavior, apply a tidy-like transformation to both
10794 # the expected output and your parser's output.
10796 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10798 ******* Foo {{bullet}}
10800 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10813 Bug 529: Uncovered table already at line-start
10836 Bug 529: Uncovered bullet in parser function result
10838 * Foo {{lc:{{bullet}} }}
10847 Bug 5678: Double-parsed template argument
10849 {{lc:{{{1}}}|hello}}
10856 Bug 5678: Double-parsed template invocation
10858 {{lc:{{paramtest {{!}} param = hello }} }}
10860 <p>{{paramtest | param = hello }}
10865 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10868 title=[[Main Page]]
10870 {{PRVNÍVELKÉ:ěščř}}
10871 {{prvnívelké:ěščř}}
10891 Morwen/13: Unclosed link followed by heading
10898 <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>
10903 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10910 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10915 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10922 <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>
10937 Paragraphs inside divs (no extra line breaks)
10949 Paragraphs inside divs (extra line break on open)
10964 Paragraphs inside divs (extra line break on close)
10979 Paragraphs inside divs (extra line break on open and close)
10996 Nesting tags, paragraphs on lines which begin with <div>
11000 <div></div><strong>A
11009 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11011 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11015 <blockquote>Line one
11017 Line two</blockquote>
11019 <blockquote>Line one
11020 Line two</blockquote>
11025 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11032 Line two</blockquote>
11037 Line two</blockquote>
11042 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11046 <blockquote>Line one
11051 <blockquote>Line one
11059 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11078 Paragraphs inside blockquotes/divs (no extra line breaks)
11080 <blockquote><div>Line one
11082 Line two</div></blockquote>
11084 <blockquote><div>Line one
11085 Line two</div></blockquote>
11090 Paragraphs inside blockquotes/divs (extra line break on open)
11095 Line two</div></blockquote>
11100 Line two</div></blockquote>
11105 Paragraphs inside blockquotes/divs (extra line break on close)
11107 <blockquote><div>Line one
11110 </div></blockquote>
11112 <blockquote><div>Line one
11115 </div></blockquote>
11120 Paragraphs inside blockquotes/divs (extra line break on open and close)
11126 </div></blockquote>
11132 </div></blockquote>
11137 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11139 wgLinkHolderBatchSize=0
11145 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11146 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11147 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11152 Free external link invading image caption
11154 [[Image:Foobar.jpg|thumb|http://x|hello]]
11156 <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>
11161 Bug 15196: localised external link numbers
11165 [http://en.wikipedia.org/]
11167 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11172 Multibyte character in padleft
11174 {{padleft:-Hello|7|Æ}}
11181 Multibyte character in padright
11183 {{padright:Hello-|7|Æ}}
11192 wgUseDynamicDates=1
11196 <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>
11201 formatdate parser function
11203 {{#formatdate:2009-03-24}}
11205 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11210 formatdate parser function, with default format
11212 {{#formatdate:2009-03-24|mdy}}
11214 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11219 Linked date with autoformatting disabled
11221 wgUseDynamicDates=false
11225 <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>
11230 Spacing of numbers in formatted dates
11232 {{#formatdate:January 15}}
11234 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11239 Spacing of numbers in formatted dates (linked)
11241 wgUseDynamicDates=true
11245 <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>
11250 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
11252 language=nl title=[[MediaWiki:Common.css]]
11254 {{#formatdate:2009-03-24|dmy}}
11256 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11269 Edit comment with link
11273 I like the [[Main Page]] a lot
11275 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11279 Edit comment with link and link text
11283 I like the [[Main Page|best pages]] a lot
11285 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11289 Edit comment with link and link text with suffix
11293 I like the [[Main Page|best page]]s a lot
11295 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11299 Edit comment with section link (non-local, eg in history list)
11301 comment title=[[Main Page]]
11303 /* External links */ removed bogus entries
11305 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11309 Edit comment with section link and text before it (non-local, eg in history list)
11311 comment title=[[Main Page]]
11313 pre-comment text /* External links */ removed bogus entries
11315 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>
11319 Edit comment with section link (local, eg in diff view)
11321 comment local title=[[Main Page]]
11323 /* External links */ removed bogus entries
11325 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11329 Edit comment with subpage link (bug 14080)
11333 title=[[Subpage test]]
11335 Poked at a [[/subpage]] here...
11337 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11341 Edit comment with subpage link and link text (bug 14080)
11345 title=[[Subpage test]]
11347 Poked at a [[/subpage|neat little page]] here...
11349 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11353 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11356 title=[[Subpage test]]
11358 Poked at a [[/subpage]] here...
11360 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11364 Edit comment with bare anchor link (local, as on diff)
11368 title=[[Main Page]]
11372 <a href="#section">#section</a>
11376 Edit comment with bare anchor link (non-local, as on history)
11379 title=[[Main Page]]
11383 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11387 Anchor starting with underscore
11391 <p><a href="#_ref">One</a>
11396 Id starting with underscore
11398 <div id="_ref"></div>
11400 <div id="_ref"></div>
11405 Space normalisation on autocomment (bug 22784)
11408 title=[[Main Page]]
11410 /* __hello__world__ */
11412 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11416 percent-encoding and + signs in comments (Bug 26410)
11420 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11422 <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>
11426 Bad images - basic functionality
11435 Bad images - bug 16039: text after bad image disappears
11449 Verify that displaytitle works (bug #22501) no displaytitle
11453 wgAllowDisplayTitle=true
11454 wgRestrictDisplayTitle=false
11456 this is not the the title
11459 <p>this is not the the title
11464 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11469 wgAllowDisplayTitle=true
11470 wgRestrictDisplayTitle=false
11472 this is not the the title
11473 {{DISPLAYTITLE:whatever}}
11476 <p>this is not the the title
11481 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11486 wgAllowDisplayTitle=true
11487 wgRestrictDisplayTitle=true
11489 this is not the the title
11490 {{DISPLAYTITLE:whatever}}
11493 <p>this is not the the title
11498 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11503 wgAllowDisplayTitle=true
11504 wgRestrictDisplayTitle=true
11506 this is not the the title
11507 {{DISPLAYTITLE:screen}}
11510 <p>this is not the the title
11515 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11520 wgAllowDisplayTitle=false
11522 this is not the the title
11523 {{DISPLAYTITLE:screen}}
11526 <p>this is not the the title
11527 <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>
11532 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11537 wgAllowDisplayTitle=false
11539 this is not the the title
11542 <p>this is not the the title
11547 preload: check <noinclude> and <includeonly>
11551 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11557 preload: check <onlyinclude>
11561 Goodbye <onlyinclude>Hello world</onlyinclude>
11567 preload: can pass tags through if we want to
11571 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11573 <includeonly>Hello world</includeonly>
11577 preload: check that it doesn't try to do tricks
11581 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11583 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11587 Play a bit with r67090 and bug 3158
11591 <div style="width:50% !important"> </div>
11592 <div style="width:50% !important"> </div>
11593 <div style="width:50% !important"> </div>
11594 <div style="border : solid;"> </div>
11596 <div style="width:50% !important"> </div>
11597 <div style="width:50% !important"> </div>
11598 <div style="width:50% !important"> </div>
11599 <div style="border : solid;"> </div>
11604 HTML5 data attributes
11606 <span data-foo="bar">Baz</span>
11607 <p data-abc-def_hij="">Quuz</p>
11609 <p><span data-foo="bar">Baz</span>
11611 <p data-abc-def_hij="">Quuz</p>
11616 percent-encoding and + signs in internal links (Bug 26410)
11618 [[User:+%]] [[Page+title%]]
11619 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11620 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11621 [[%33%45]] [[%33%45+]]
11623 <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>
11624 <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>
11625 <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>
11626 <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>
11631 Special characters in embedded file links (bug 27679)
11633 [[File:Contains & ampersand.jpg]]
11634 [[File:Does not exist.jpg|Title with & ampersand]]
11636 <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>
11637 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11643 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11645 Text's been normalized?
11647 <p>Text's been normalized?
11652 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11654 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11656 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11661 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11663 [http://www.example.org/ ideograms]
11665 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11670 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11672 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11674 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11698 Bug 31098 Template which includes system messages which includes the template
11702 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11703 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11708 Bug31490 Turkish: ucfirst 'blah'
11719 Bug31490 Turkish: ucfirst 'ix'
11730 Bug31490 Turkish: lcfirst 'BLAH'
11741 Bug31490 Turkish: ucfırst (with a dotless i)
11747 <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>
11752 Bug31490 ucfırst (with a dotless i) with English language
11758 <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>
11763 Bug 26375: TOC with italics
11765 title=[[Main Page]]
11768 == ''Lost'' episodes ==
11770 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11772 <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>
11775 <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>
11780 Bug 26375: TOC with bold
11782 title=[[Main Page]]
11785 == '''should be bold''' then normal text ==
11787 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11789 <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>
11792 <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>
11797 Bug 33845: Headings become cursive in TOC when they contain an image
11799 title=[[Main Page]]
11802 == Image [[Image:foobar.jpg]] ==
11804 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11806 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11809 <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>
11814 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11816 title=[[Main Page]]
11819 == <blockquote>Quote</blockquote> ==
11821 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11823 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11826 <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>
11831 Unclosed tags in TOC
11833 title=[[Main Page]]
11837 <small>Hanc marginis exiguitas non caperet.</small>
11840 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11842 <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>
11845 <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>
11846 <p><small>Hanc marginis exiguitas non caperet.</small>
11852 Multiple tags in TOC
11855 == <i>Foo</i> <b>Bar</b> ==
11857 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11859 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11861 <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>
11862 <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>
11865 <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>
11866 <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>
11871 Tags with parameters in TOC
11874 == <sup class="in-h2">Hello</sup> ==
11876 == <sup class="a > b">Evilbye</sup> ==
11878 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11880 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11881 <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>
11884 <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>
11885 <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>
11890 span tags with directionality in TOC
11893 == <span dir="ltr">C++</span> ==
11895 == <span dir="rtl">זבנג!</span> ==
11897 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11899 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11901 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11903 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11905 <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>
11906 <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>
11907 <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>
11908 <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>
11909 <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>
11912 <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>
11913 <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>
11914 <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>
11915 <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>
11916 <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>
11923 == {{int:headline_sample}} ==
11927 Bug 32057: Title needed when expanding <h> nodes.
11929 title=[[Main Page]]
11933 <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>
11938 Strip marker in urlencode
11940 {{urlencode:x<nowiki/>y}}
11941 {{urlencode:x<nowiki/>y|wiki}}
11942 {{urlencode:x<nowiki/>y|path}}
11969 Strip marker in formatNum
11971 {{formatnum:1<nowiki/>2}}
11972 {{formatnum:1<nowiki/>2|R}}
11980 Strip marker in grammar
11984 {{grammar:elative|foo<nowiki/>bar}}
11991 Strip marker in padleft
11993 {{padleft:|2|x<nowiki/>y}}
12000 Strip marker in padright
12002 {{padright:|2|x<nowiki/>y}}
12009 Strip marker in anchorencode
12011 {{anchorencode:x<nowiki/>y}}
12018 nowiki inside link inside heading (bug 18295)
12020 ==[[foo|x<nowiki>y</nowiki>z]]==
12022 <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>
12027 new support for bdi element (bug 31817)
12029 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12031 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12036 Ignore pipe between table row attributes
12040 |- id=foo | style='color: red'
12048 <tr id="foo" style="color: red">
12055 Gallery override link with WikiLink (bug 34852)
12058 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12061 <ul class="gallery">
12062 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12063 <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>
12064 <div class="gallerytext">
12074 Gallery override link with absolute external link (bug 34852)
12077 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12080 <ul class="gallery">
12081 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12082 <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>
12083 <div class="gallerytext">
12093 Gallery override link with malicious javascript (bug 34852)
12096 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12099 <ul class="gallery">
12100 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12101 <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>
12102 <div class="gallerytext">
12112 Language parser function
12121 Padleft and padright as substr
12123 {{padleft:|3|abcde}}
12124 {{padright:|3|abcde}}
12132 Bug 34939 - Case insensitive link parsing ([HttP://])
12134 [HttP://MediaWiki.Org/]
12136 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12141 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12143 [HttP://MediaWiki.Org/ MediaWiki]
12145 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12150 Bug 34939 - Case insensitive link parsing (HttP://)
12152 HttP://MediaWiki.Org/
12154 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12159 ### Parsoids-specific tests
12160 ### Parsoid-PHP parser incompatibilities
12163 1. SOL-sensitive wikitext tokens as template-args
12177 #### The following section of tests are primarily to test
12178 #### wikitext escaping capabilities of Parsoid.
12179 #### A lot of the tests are disabled for the PHP parser either
12180 #### because of minor newline diffs or other reasons.
12181 #### As Parsoid serializer can handle newlines and other HTML
12182 #### more robustly, some of these tests might get reenabled
12183 #### for the PHP parser.
12185 #### --------------- Headings ---------------
12187 #### 1. Nested inside html <h1>=foo=</h1>
12188 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12189 #### 3. Nested inside html with wikitext split by html tags
12190 #### 4. No escape needed
12191 #### 5. Empty headings <h1></h1>
12192 #### 6. Heading chars in SOL context
12193 #### ----------------------------------------
12195 Headings: 0. Unnested
12197 <nowiki>=foo=</nowiki>
12199 <nowiki>=foo</nowiki>''a''=
12202 </p><p>=foo<i>a</i>=
12207 Headings: 1. Nested inside html
12211 =<nowiki>=foo=</nowiki>=
12212 ==<nowiki>=foo=</nowiki>==
12213 ===<nowiki>=foo=</nowiki>===
12214 ====<nowiki>=foo=</nowiki>====
12215 =====<nowiki>=foo=</nowiki>=====
12216 ======<nowiki>=foo=</nowiki>======
12227 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12232 <nowiki>*bar</nowiki>
12236 <nowiki>=bar=</nowiki>
12244 Headings: 3. Nested inside html with wikitext split by html tags
12248 =<nowiki>=</nowiki>'''bold'''foo==
12250 <h1>=<b>bold</b>foo=</h1>
12254 Headings: 4. No escaping needed (testing just h1 and h2)
12269 <h1><i>=</i>foo=</h1>
12274 Headings: 5. Empty headings
12278 =<nowiki></nowiki>=
12279 ==<nowiki></nowiki>==
12280 ===<nowiki></nowiki>===
12281 ====<nowiki></nowiki>====
12282 =====<nowiki></nowiki>=====
12283 ======<nowiki></nowiki>======
12294 Headings: 6. Heading chars in SOL context
12298 <!--cmt--><nowiki>=h1=</nowiki>
12304 #### --------------- Lists ---------------
12305 #### 0. Outside nests (*foo, etc.)
12306 #### 1. Nested inside html <ul><li>*foo</li></ul>
12307 #### 2. Inside definition lists
12308 #### 3. Only bullets at start should be escaped
12309 #### 4. No escapes needed
12310 #### 5. No unnecessary escapes
12311 #### 6. Escape bullets in SOL position
12312 #### 7. Escape bullets in a multi-line context
12313 #### ----------------------------------------
12316 Lists: 0. Outside nests
12318 <nowiki>*foo</nowiki>
12320 <nowiki>#foo</nowiki>
12328 Lists: 1. Nested inside html
12330 *<nowiki>*foo</nowiki>
12332 *<nowiki>#foo</nowiki>
12334 *<nowiki>:foo</nowiki>
12336 *<nowiki>;foo</nowiki>
12338 #<nowiki>*foo</nowiki>
12340 #<nowiki>#foo</nowiki>
12342 #<nowiki>:foo</nowiki>
12344 #<nowiki>;foo</nowiki>
12366 Lists: 2. Inside definition lists
12368 ;<nowiki>;foo</nowiki>
12370 ;<nowiki>:foo</nowiki>
12372 ;<nowiki>:foo</nowiki>
12375 :<nowiki>:foo</nowiki>
12390 Lists: 3. Only bullets at start of text should be escaped
12392 *<nowiki>*foo*bar</nowiki>
12394 *<nowiki>*foo</nowiki>''it''*bar
12398 <ul><li>*foo<i>it</i>*bar
12404 Lists: 4. No escapes needed
12416 <ul><li><i>foo</i>*bar
12418 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12423 Lists: 5. No unnecessary escapes
12425 * bar <span><nowiki>[[foo]]</nowiki></span>
12427 *=bar <span><nowiki>[[foo]]</nowiki></span>
12429 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12431 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12433 *=bar <span>foo]]</span>=
12435 <ul><li> bar <span>[[foo]]</span>
12437 <ul><li>=bar <span>[[foo]]</span>
12439 <ul><li>[[bar <span>[[foo]]</span>
12441 <ul><li>]]bar <span>[[foo]]</span>
12443 <ul><li>=bar <span>foo]]</span>=
12449 Lists: 6. Escape bullets in SOL position
12453 <!--cmt--><nowiki>*foo</nowiki>
12460 Lists: 7. Escape bullets in a multi-line context
12470 #### --------------- HRs ---------------
12471 #### 1. Single line
12472 #### -----------------------------------
12475 HRs: 1. Single line
12480 <nowiki>----</nowiki>
12482 <nowiki>=foo=</nowiki>
12484 <nowiki>*foo</nowiki>
12491 #### --------------- Tables ---------------
12492 #### 1a. Simple example
12493 #### 1b. No escaping needed (!foo)
12494 #### 1c. No escaping needed (|foo)
12495 #### 1d. No escaping needed (|}foo)
12497 #### 2a. Nested in td (<td>foo|bar</td>)
12498 #### 2b. Nested in td (<td>foo||bar</td>)
12499 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12501 #### 3a. Nested in th (<th>foo!bar</th>)
12502 #### 3b. Nested in th (<th>foo!!bar</th>)
12503 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12507 #### 4c. No escaping needed
12508 #### --------------------------------------
12511 Tables: 1a. Simple example
12522 Tables: 1b. No escaping needed
12531 Tables: 1c. No escaping needed
12540 Tables: 1d. No escaping needed
12549 Tables: 2a. Nested in td
12554 |<nowiki>foo|bar</nowiki>
12564 Tables: 2b. Nested in td
12569 |<nowiki>foo||bar</nowiki>
12570 |''it''<nowiki>foo||bar</nowiki>
12575 </td><td><i>it</i>foo||bar
12581 Tables: 2c. Nested in td -- no escaping needed
12596 Tables: 3a. Nested in th
12611 Tables: 3b. Nested in th
12616 !<nowiki>foo!!bar</nowiki>
12626 Tables: 3c. Nested in th -- no escaping needed
12641 Tables: 4a. Escape -
12649 |<nowiki>-bar</nowiki>
12653 <tr><th>-bar</th></tr>
12654 <tr><td>-bar</td></tr>
12659 Tables: 4b. Escape +
12667 |<nowiki>+bar</nowiki>
12671 <tr><th>+bar</th></tr>
12672 <tr><td>+bar</td></tr>
12677 Tables: 4c. No escaping needed
12691 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12692 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12696 #### --------------- Links ---------------
12697 #### 1. Quote marks in link text
12698 #### 2. Wikilinks: Escapes needed
12699 #### 3. Wikilinks: No escapes needed
12700 #### 4. Extlinks: Escapes needed
12701 #### 5. Extlinks: No escapes needed
12702 #### --------------------------------------
12704 Links 1. Quote marks in link text
12708 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12710 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12714 Links 2. WikiLinks: Escapes needed
12718 [[Foo|<nowiki>[Foobar]</nowiki>]]
12719 [[Foo|<nowiki>Foobar]</nowiki>]]
12720 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12721 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12722 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12723 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12724 [[Foo|<nowiki>|Bar</nowiki>]]
12726 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12727 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12728 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12729 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12730 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12731 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12732 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12736 Links 3. WikiLinks: No escapes needed
12743 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12744 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12748 Links 4. ExtLinks: Escapes needed
12752 [http://google.com <nowiki>[google]</nowiki>]
12753 [http://google.com <nowiki>google]</nowiki>]
12755 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12756 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12760 Links 5. ExtLinks: No escapes needed
12764 [http://google.com [google]
12766 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12769 #### --------------- Quotes ---------------
12770 #### 1. Quotes inside <b> and <i>
12771 #### 2. Link fragments separated by <i> and <b> tags
12772 #### 3. Link fragments inside <i> and <b>
12773 #### --------------------------------------
12775 1. Quotes inside <b> and <i>
12777 ''<nowiki>'foo'</nowiki>''
12778 ''<nowiki>''foo''</nowiki>''
12779 ''<nowiki>'''foo'''</nowiki>''
12780 '''<nowiki>'foo'</nowiki>'''
12781 '''<nowiki>''foo''</nowiki>'''
12782 '''<nowiki>'''foo'''</nowiki>'''
12783 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12791 <b>foo'<i>bar'</i>baz</b>
12796 2. Link fragments separated by <i> and <b> tags
12798 [[''foo''<nowiki>hello]]</nowiki>
12800 [['''foo'''<nowiki>hello]]</nowiki>
12802 <p>[[<i>foo</i>hello]]
12803 </p><p>[[<b>foo</b>hello]]
12808 2. Link fragments inside <i> and <b>
12809 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12810 this is one of the shortcomings of this format)
12812 ''[[foo''<nowiki>]]</nowiki>
12814 '''[[foo'''<nowiki>]]</nowiki>
12817 </p><p><b>[[foo</b>]]
12821 #### --------------- Paragraphs ---------------
12822 #### 1. No unnecessary escapes
12823 #### --------------------------------------
12826 1. No unnecessary escapes
12828 bar <span><nowiki>[[foo]]</nowiki></span>
12830 =bar <span><nowiki>[[foo]]</nowiki></span>
12832 [[bar <span><nowiki>[[foo]]</nowiki></span>
12834 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12836 <nowiki>=bar </nowiki><span>foo]]</span>=
12838 <p>bar <span>[[foo]]</span>
12839 </p><p>=bar <span>[[foo]]</span>
12840 </p><p>[[bar <span>[[foo]]</span>
12841 </p><p>]]bar <span>[[foo]]</span>
12842 </p><p>=bar <span>foo]]</span>=
12846 #### --------------- PRE ------------------
12847 #### 1. Leading space in SOL context should be escaped
12848 #### --------------------------------------
12850 1. Leading space in SOL context should be escaped
12854 <nowiki> foo</nowiki>
12855 <!--cmt--><nowiki> foo</nowiki>
12862 #### --------------- HTML tags ---------------
12865 #### 3. multi-line html tag
12866 #### --------------------------------------
12872 <a href="http://google.com">google</a>
12874 <a href="http://google.com">google</a>
12880 <nowiki><div>foo</div>
12881 <div style="color:red">foo</div></nowiki>
12883 <p><div>foo</div>
12884 <div style="color:red">foo</div>
12889 3. multi-line html tag
12901 #### --------------- Others ---------------
12905 <nowiki>foo</nowiki>
12907 <p><nowiki>foo</nowiki>
12912 Tag-like HTML structures are passed through as text
12934 </p><p>1<d e>f
12939 # This fails in the PHP parser (see bug 40670,
12940 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
12942 Tag names followed by punctuation should not be recognized as tags
12948 <p><s.ome> text
12958 Try for 100% code coverage