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
118 This is a simple paragraph.
120 <p>This is a simple paragraph.
125 Paragraphs with extra newline spacing
163 * plain''italic''plain
164 * plain''italic''plain''italic''plain
165 * plain'''bold'''plain
166 * plain'''bold'''plain'''bold'''plain
167 * plain''italic''plain'''bold'''plain
168 * plain'''bold'''plain''italic''plain
169 * plain''italic'''bold-italic'''italic''plain
170 * plain'''bold''bold-italic''bold'''plain
171 * plain'''''bold-italic'''italic''plain
172 * plain'''''bold-italic''bold'''plain
173 * plain''italic'''bold-italic'''''plain
174 * plain'''bold''bold-italic'''''plain
175 * plain l'''italic''plain
176 * plain l''''bold''' plain
179 </li><li> plain<i>italic</i>plain
180 </li><li> plain<i>italic</i>plain<i>italic</i>plain
181 </li><li> plain<b>bold</b>plain
182 </li><li> plain<b>bold</b>plain<b>bold</b>plain
183 </li><li> plain<i>italic</i>plain<b>bold</b>plain
184 </li><li> plain<b>bold</b>plain<i>italic</i>plain
185 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
186 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
187 </li><li> plain<i><b>bold-italic</b>italic</i>plain
188 </li><li> plain<b><i>bold-italic</i>bold</b>plain
189 </li><li> plain<i>italic<b>bold-italic</b></i>plain
190 </li><li> plain<b>bold<i>bold-italic</i></b>plain
191 </li><li> plain l'<i>italic</i>plain
192 </li><li> plain l'<b>bold</b> plain
198 ### 2-quote opening sequence tests
201 Italics and bold: 2-quote opening sequence: (2,2)
211 Italics and bold: 2-quote opening sequence: (2,3)
221 Italics and bold: 2-quote opening sequence: (2,4)
231 Italics and bold: 2-quote opening sequence: (2,5)
241 ### 3-quote opening sequence tests
245 Italics and bold: 3-quote opening sequence: (3,2)
255 Italics and bold: 3-quote opening sequence: (3,3)
265 Italics and bold: 3-quote opening sequence: (3,4)
275 Italics and bold: 3-quote opening sequence: (3,5)
285 ### 4-quote opening sequence tests
289 Italics and bold: 4-quote opening sequence: (4,2)
299 Italics and bold: 4-quote opening sequence: (4,3)
309 Italics and bold: 4-quote opening sequence: (4,4)
319 Italics and bold: 4-quote opening sequence: (4,5)
329 ### 5-quote opening sequence tests
333 Italics and bold: 5-quote opening sequence: (5,2)
343 Italics and bold: 5-quote opening sequence: (5,3)
353 Italics and bold: 5-quote opening sequence: (5,4)
357 <p><i><b>foo'</b></i>
363 Italics and bold: 5-quote opening sequence: (5,5)
372 ### multiple quote sequences in a line
375 Italics and bold: multiple quote sequences: (2,4,2)
379 <p><i>foo'<b>bar</b></i>
385 Italics and bold: multiple quote sequences: (2,4,3)
389 <p><i>foo'<b>bar</b></i>
395 Italics and bold: multiple quote sequences: (2,4,4)
399 <p><i>foo'<b>bar'</b></i>
405 Italics and bold: multiple quote sequences: (3,4,2)
415 Italics and bold: multiple quote sequences: (3,4,3)
424 ### other quote tests
427 Italics and bold: other quote tests: (2,3,5)
429 ''this is about '''foo's family'''''
431 <p><i>this is about <b>foo's family</b></i>
437 Italics and bold: other quote tests: (2,(3,3),2)
439 ''this is about '''foo's''' family''
441 <p><i>this is about <b>foo's</b> family</i>
447 Italics and bold: other quote tests: (3,2,3,2)
449 '''this is about ''foo'''s family''
451 <p><b>this is about <i>foo</i></b><i>s family</i>
457 Italics and bold: other quote tests: (3,2,3,3)
459 '''this is about ''foo'''s family'''
461 <p>'<i>this is about </i>foo<b>s family</b>
468 Italics and bold: other quote tests: (3,(2,2),3)
470 '''this is about ''foo's'' family'''
472 <p><b>this is about <i>foo's</i> family</b>
477 ### <nowiki> test cases
481 <nowiki> unordered list
483 <nowiki>* This is not an unordered list item.</nowiki>
485 <p>* This is not an unordered list item.
492 <nowiki>Lorem ipsum dolor
513 :There is not nowiki.
514 :There is <nowiki>nowiki</nowiki>.
516 #There is not nowiki.
517 #There is <nowiki>nowiki</nowiki>.
519 *There is not nowiki.
520 *There is <nowiki>nowiki</nowiki>.
522 <dl><dd>There is not nowiki.
523 </dd><dd>There is nowiki.
525 <ol><li>There is not nowiki.
526 </li><li>There is nowiki.
528 <ul><li>There is not nowiki.
529 </li><li>There is nowiki.
541 <!-- comment 1 --> asdf
543 <!-- comment 1 --> asdf
546 <!-- comment 1 --> asdf
547 <!-- comment 2 -->xyz
549 <!-- comment 1 --> asdf
550 <!-- comment 2 --> xyz
606 asdf<!-- comment 1 -->jkl
616 <!-- foo --> b <!-- bar -->
630 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
636 Comment semantics and delimiters
638 <!-- --><!----><!-----><!------>
644 Comment semantics and delimiters, redux
646 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
647 -- foo -- funky huh? ... -->
653 Comment semantics and delimiters: directors cut
655 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
656 everything starting with < followed by !-- until the first -- and > we see,
657 that wouldn't be valid XML however, since in XML -- has to terminate a comment
665 Comment semantics: nesting
667 <!--<!-- no, we're not going to do anything fancy here -->-->
674 Comment semantics: unclosed comment at end
676 <!--This comment will run out to the end of the document
682 Comment in template title
691 Comment on its own line post-expand
703 Comment on its own line post-expand with non-significant whitespace
715 ### paragraph wraping tests
729 Block tag on one line
741 Block tag on both lines
753 Multiple lines without block tags
771 ### Preformatted text
780 And a [[Main Page|link]]
786 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
791 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
808 Regression with preformatted in <center>
821 # Expected output in the following test is not really expected (there should be
822 # <pre> in the output) -- it's only testing for well-formedness.
824 Bug 6200: Preformatted in <blockquote>
837 <pre> with attributes (bug 3202)
839 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
841 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
846 <pre> with width attribute (bug 3202)
848 <pre width="8">Narrow screen goodies</pre>
850 <pre width="8">Narrow screen goodies</pre>
855 <pre> with forbidden attribute (bug 3202)
857 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
859 <pre width="8">Narrow screen goodies</pre>
864 <pre> with forbidden attribute values (bug 3202)
866 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
868 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
873 <nowiki> inside <pre> (bug 13238)
881 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
889 <pre><nowiki>Foo</nowiki></pre>
894 <nowiki> and <pre> preference (first one wins)
927 <nowiki></pre></nowiki>
934 Templates: Pre: 1a. Templates that break a line should suppress <pre>
942 Templates: Pre: 1b. Templates that break a line should suppress <pre>
952 Templates: Pre: 1c: Wrapping should be based on expanded content
964 Templates: Pre: 1d: Wrapping should be based on expanded content
985 Templates: Pre: 1e. Wrapping should be based on expanded content
989 {{echo| foo}}{{echo| bar}}
994 {{echo|<!--cmt--> foo}}
996 <!--cmt-->{{echo| foo}}
998 {{echo|{{echo| }}bar}}
1016 Templates: Pre: 1f: Wrapping should be based on expanded content
1053 Templates: Single-line variant of parameter whitespace stripping test
1059 {{echo|{{echo| a}}}}
1061 {{echo|1={{echo| a}}}}
1074 Templates: Strip whitespace from named parameters, but not positional ones
1102 ### Parsoid-centric tests for testing RT edge cases for pre
1106 1a. Pre and Comments
1119 1b. Pre and Comments
1132 1c. Pre and Comments
1182 3a. Pre and block tags (single-line html)
1190 <pre><span> foo </span>
1195 3b. Pre and block tags (pre-content on separate line)
1247 4. Multiple spaces at start-of-line
1266 ### Definition lists
1273 <dl><dt> name </dt><dd> Definition
1279 Definition list for indentation only
1283 <dl><dd> Indented text
1289 Definition list with no space
1293 <dl><dt>name</dt><dd>Definition
1299 Definition list with URL link
1301 ; http://example.com/ : definition
1303 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1309 Definition list with bracketed URL link
1311 ;[http://www.example.com/ Example]:Something about it
1313 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1319 Definition list with wikilink containing colon
1321 ; [[Help:FAQ]]: The least-read page on Wikipedia
1323 <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
1328 # At Brion's and JeLuF's insistence... :)
1330 Definition list with news link containing colon
1332 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1334 <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!
1340 Malformed definition list with colon
1342 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1344 <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
1350 Definition lists: colon in external link text
1352 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1354 <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
1360 Definition lists: colon in HTML attribute
1362 ;<b style="display: inline">bold</b>
1364 <dl><dt><b style="display: inline">bold</b>
1370 Definition lists: self-closed tag
1372 ;one<br/>two : two-line fun
1374 <dl><dt>one<br />two </dt><dd> two-line fun
1380 Bug 11748: Literal closing tags
1384 <dd>test test test test test</dd>
1386 <dd>test test test test test</dd>
1391 <dd>test test test test test</dd>
1393 <dd>test test test test test</dd>
1399 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1402 ; term : description
1408 <dl><dt> term </dt><dd> description
1419 Definition list with empty definition and following paragraph
1424 <dl><dt> term</dt><dd>
1431 Nested definition lists using html syntax
1448 Definition Lists: No nesting: Multiple dd's
1462 Definition Lists: Indentation: Regular
1478 Definition Lists: Indentation: Missing 1st level
1492 Definition Lists: Indentation: Multi-level indent
1496 <dl><dd><dl><dd><dl><dd>i3
1504 Definition Lists: Hacky use to indent tables
1511 should be left alone
1513 <dl><dd><dl><dd><table>
1518 </td></tr></table></dd></dl></dd></dl>
1520 should be left alone
1523 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1524 ## as an empty dt item. It also ignores all but the last ";" when followed
1525 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1526 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1529 ## Ex: ";;t2 ::d2" is transformed into:
1541 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1542 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1553 ## All Parsoid only definition list tests have this difference.
1555 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1556 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1559 Definition Lists: Nesting: Multi-level (Parsoid only)
1589 Definition Lists: Nesting: Test 2 (Parsoid only)
1609 Definition Lists: Nesting: Test 3 (Parsoid only)
1637 Definition Lists: Nesting: Test 4
1642 <dl><dd><dl><dd><dl><dt>t3
1652 Definition Lists: Mixed Lists: Test 1
1658 <dl><dd><dl><dt><ul><li> foo
1670 Definition Lists: Mixed Lists: Test 2
1684 Definition Lists: Mixed Lists: Test 3
1689 <ul><li><dl><dd><dl><dd><dl><dd> d1
1700 Definition Lists: Mixed Lists: Test 4
1705 <ul><li><dl><dt>d1 </dt><dd>d2
1706 </dd><dt>d3 </dt><dd>d4
1714 Definition Lists: Mixed Lists: Test 5
1729 Definition Lists: Mixed Lists: Test 6
1734 <ol><li><ul><li><dl><dd>d1
1746 Definition Lists: Mixed Lists: Test 7
1760 Definition Lists: Mixed Lists: Test 8
1776 Definition Lists: Mixed Lists: Test 9
1780 <ul><li><dl><dt>foo </dt><dd>bar
1788 Definition Lists: Mixed Lists: Test 10
1792 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1801 Definition Lists: Mixed Lists: Test 11
1806 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1811 <dl><dt>boo </dt><dd>baz
1822 Definition Lists: Weird Ones: Test 1
1824 *#;*::;; foo : bar (who uses this?)
1826 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1842 External links: non-bracketed
1844 Non-bracketed: http://example.com
1846 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1851 External links: numbered
1853 Numbered: [http://example.com]
1854 Numbered: [http://example.net]
1855 Numbered: [http://example.com]
1857 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1858 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1859 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1864 External links: specified text
1866 Specified text: [http://example.com link]
1868 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1873 External links: trail
1875 Linktrails should not work for external links: [http://example.com link]s
1877 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1882 External links: dollar sign in URL
1884 http://example.com/1$2345
1886 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1891 External links: dollar sign in URL (named)
1893 [http://example.com/1$2345]
1895 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1900 External links: open square bracket forbidden in URL (bug 4377)
1902 http://example.com/1[2345
1904 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1909 External links: open square bracket forbidden in URL (named) (bug 4377)
1911 [http://example.com/1[2345]
1913 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1918 External links: nowiki in URL link text (bug 6230)
1920 [http://example.com/ <nowiki>''example site''</nowiki>]
1922 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1927 External links: newline forbidden in text (bug 6230 regression check)
1929 [http://example.com/ first
1932 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1938 External links: Pipe char between url and text
1940 [http://example.com | link]
1942 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1947 External links: protocol-relative URL in brackets
1949 [//example.com/ Test]
1951 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1956 External links: protocol-relative URL in brackets without text
1960 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1965 External links: protocol-relative URL in free text is left alone
1969 <p>//example.com/Foo
1974 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1976 foo//example.com/Foo
1978 <p>foo//example.com/Foo
1985 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1987 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1992 External image from https
1994 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1996 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2001 Link to non-http image, no img tag
2003 Link to non-http image, no img tag: ftp://example.com/test.jpg
2005 <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>
2010 External links: terminating separator
2012 Terminating separator: http://example.com/thing,
2014 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2019 External links: intervening separator
2021 Intervening separator: http://example.com/1,2,3
2023 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2028 External links: old bug with URL in query
2030 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2032 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2037 External links: old URL-in-URL bug, mixed protocols
2039 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2041 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2046 External links: URL in text
2048 URL in text: [http://example.com http://example.com]
2050 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2055 External links: Clickable images
2057 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2059 <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>
2064 External links: raw ampersand
2066 Old & use: http://x&y
2068 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2073 External links: encoded ampersand
2075 Old & use: http://x&y
2077 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2082 External links: encoded equals (bug 6102)
2084 http://example.com/?foo=bar
2086 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2091 External links: [raw ampersand]
2093 Old & use: [http://x&y]
2095 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2100 External links: [encoded ampersand]
2102 Old & use: [http://x&y]
2104 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2109 External links: [encoded equals] (bug 6102)
2111 [http://example.com/?foo=bar]
2113 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2118 External links: [IDN ignored character reference in hostname; strip it right off]
2120 [http://e‌xample.com/]
2122 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2126 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2127 # Where an external link could easily circumvent the sanitization of the text of
2128 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2129 # test demands a higher standard. That's a bit strange.
2133 # http://example.com -> [http://example.com|http://example.com]
2134 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2136 # The first example is sanitized, but the second is not. Any security benefits
2137 # from this production are trivial to circumvent. Either remove this test and
2138 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2139 # the test accordingly.
2144 External links: IDN ignored character reference in hostname; strip it right off
2146 http://e‌xample.com/
2148 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2153 External links: www.jpeg.org (bug 554)
2157 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2162 External links: URL within URL (original bug 2)
2164 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2166 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2171 BUG 361: URL inside bracketed URL
2173 [http://www.example.com/foo http://www.example.com/bar]
2175 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2180 BUG 361: URL within URL, not bracketed
2182 http://www.example.com/foo?=http://www.example.com/bar
2184 <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>
2189 BUG 289: ">"-token in URL-tail
2191 http://www.example.com/<hello>
2193 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2198 BUG 289: literal ">"-token in URL-tail
2200 http://www.example.com/<b>html</b>
2202 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2207 BUG 289: ">"-token in bracketed URL
2209 [http://www.example.com/<hello> stuff]
2211 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2216 BUG 289: literal ">"-token in bracketed URL
2218 [http://www.example.com/<b>html</b> stuff]
2220 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2225 BUG 289: literal double quote at end of URL
2227 http://www.example.com/"hello"
2229 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2234 BUG 289: literal double quote in bracketed URL
2236 [http://www.example.com/"hello" stuff]
2238 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2243 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2245 [http://www.example.com test]
2247 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2252 External links: wiki links within external link (Bug 3695)
2254 [http://example.com [[wikilink]] embedded in ext link]
2256 <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>
2261 BUG 787: Links with one slash after the url protocol are invalid
2265 [http:/example.com title]
2267 <p>http:/example.com
2268 </p><p>[http:/example.com title]
2273 Bracketed external links with template-generated invalid target
2275 [{{echo|http:/example.com}} title]
2277 <p>[http:/example.com title]
2282 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2284 ''[http://example.com text'']
2285 [http://example.com '''text]'''
2286 ''Something [http://example.com in italic'']
2287 ''Something [http://example.com mixed''''', even bold]'''
2288 '''''Now [http://example.com both''''']
2290 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2291 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2292 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2293 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2294 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2300 Bug 4781: %26 in URL
2302 http://www.example.com/?title=AT%26T
2304 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2308 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2309 # % is actually legal in HTML5. Any change in output would need testing though.
2311 Bug 4781, 5267: %25 in URL
2313 http://www.example.com/?title=100%25_Bran
2315 <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>
2320 Bug 4781, 5267: %28, %29 in URL
2322 http://www.example.com/?title=Ben-Hur_%281959_film%29
2324 <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>
2330 Bug 4781: %26 in autonumber URL
2332 [http://www.example.com/?title=AT%26T]
2334 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2339 Bug 4781, 5267: %26 in autonumber URL
2341 [http://www.example.com/?title=100%25_Bran]
2343 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2348 Bug 4781, 5267: %28, %29 in autonumber URL
2350 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2352 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2358 Bug 4781: %26 in bracketed URL
2360 [http://www.example.com/?title=AT%26T link]
2362 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2367 Bug 4781, 5267: %26 in bracketed URL
2369 [http://www.example.com/?title=100%25_Bran link]
2371 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2376 Bug 4781, 5267: %28, %29 in bracketed URL
2378 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2380 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2385 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2387 Some [http://example.com/ pretty ''italics'' and stuff]!
2389 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2394 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2396 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2398 <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>
2403 External link containing double-single-quotes with no space separating the url from text in italics
2405 [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]].]
2407 <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>
2412 URL-encoding in URL functions (single parameter)
2414 {{localurl:Some page|amp=&}}
2416 <p>/index.php?title=Some_page&amp=&
2421 URL-encoding in URL functions (multiple parameters)
2423 {{localurl:Some page|q=?&=&}}
2425 <p>/index.php?title=Some_page&q=?&amp=&
2432 http://example.com/index.php?foozoid%5B%5D=bar
2434 http://example.com/index.php?foozoid[]=bar
2436 <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>
2437 </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>
2442 IPv6 urls (bug 21261)
2446 http://[2404:130:0:1000::187:2]/index.php
2448 <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>
2459 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2461 Normal text. '''''Bold italic text.''''' Normal text.
2463 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2464 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2470 Unclosed and unmatched quotes
2472 '''''Bold italic text '''with bold deactivated''' in between.'''''
2474 '''''Bold italic text ''with italic deactivated'' in between.'''''
2478 ..spanning two paragraphs (should not work).'''
2480 '''Bold tag left open
2482 ''Italic tag left open
2486 <!-- Unmatching number of opening, closing tags: -->
2487 '''This year''''s election ''should'' beat '''last year''''s.
2489 ''Tom'''s car is bigger than ''Susan'''s.
2491 Plain ''italic'''s plain
2493 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2494 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2495 </p><p><b>Bold text..</b>
2496 </p><p>..spanning two paragraphs (should not work).
2497 </p><p><b>Bold tag left open</b>
2498 </p><p><i>Italic tag left open</i>
2500 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2501 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2502 </p><p>Plain <i>italic'</i>s plain
2509 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2512 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2513 # is the bare minimun required by the spec, see:
2514 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2516 A table with no data.
2522 # A table with nothing but a caption is invalid XHTML, we might want to render
2523 # this as <p>caption</p>
2525 A table with nothing but a caption
2533 </caption><tr><td></td></tr></table>
2559 Simple table but with multiple dashes for row wikitext
2577 Multiplication table
2579 {| border="1" cellpadding="2"
2580 |+Multiplication table
2582 ! × !! 1 !! 2 !! 3
2600 <table border="1" cellpadding="2">
2601 <caption>Multiplication table
2648 Allow +/- in 2nd and later cells in a row
2675 |rowspan=2| Cell 2, row 1 (and 2)
2686 <td rowspan="2"> Cell 2, row 1 (and 2)
2704 {| bgcolor=#ABCDEF border=2
2709 |the original table again
2717 <table bgcolor="#ABCDEF" border="2">
2725 <td>the original table again
2731 Invalid attributes in table cell (bug 1830)
2746 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2749 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2753 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2754 <td>]" onmouseover="alert(document.cookie)">test
2763 Indented table markup mixed with indented pre content (proposed in bug 6200)
2768 Text that should be rendered preformatted
2776 <pre>Text that should be rendered preformatted
2785 Template-generated table cell attributes and cell content
2793 <td style="color: red"> Foo
2802 Plain link, capitalized
2806 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2811 Plain link, uncapitalized
2815 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2822 [[Main Page|The Main Page]]
2824 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2833 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2838 Broken link with fragment
2840 [[Zigzagzogzagzig#zug]]
2842 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2847 Special page link with fragment
2849 [[Special:Version#anchor]]
2851 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2856 Nonexistent special page link with fragment
2858 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2860 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2867 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2869 <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>
2876 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2878 <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>!!!
2883 Link with 3 brackets
2892 Piped link with 3 brackets
2894 [[[main page|the main page]]]
2896 <p>[[[main page|the main page]]]
2901 Link with multiple pipes
2903 [[Main Page|The|Main|Page]]
2905 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2912 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2914 <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>
2919 Piped link to namespace
2921 [[Meta:Disclaimers|The disclaimers]]
2923 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2930 [[Usually caused by a typo (oops}]]
2932 <p>[[Usually caused by a typo (oops}]]
2937 Link containing % (not as a hex sequence)
2941 <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>
2946 Link containing % as a single hex sequence interpreted to char
2950 <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>
2955 Link containing % as a double hex sequence interpreted to hex sequence
2959 <p>[[7%2525 Solution]]
2964 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2965 Example for such a section: == < ==
2967 [[%23%3c]][[%23%3e]]
2969 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2974 Link containing "<#" and ">#" as a hex sequences
2976 [[%3c%23]][[%3e%23]]
2978 <p>[[%3c%23]][[%3e%23]]
2983 Link containing double-single-quotes '' (bug 4598)
2985 [[Lista d''e paise d''o munno]]
2987 <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>
2992 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2994 Some [[Link|pretty ''italics'' and stuff]]!
2996 <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>!
3001 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3003 ''Some [[Link|pretty ''italics'' and stuff]]!
3005 <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>
3010 Link with double quotes in title part (literal) and alternate part (interpreted)
3012 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3016 [[''Pentecoste''|Pentecoste]]
3018 [[''Pentecoste''|''Pentecoste'']]
3020 <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>
3021 </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>
3022 </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>
3023 </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>
3028 Broken image links with HTML captions (bug 39700)
3030 [[File:Nonexistent|<script></script>]]
3031 [[File:Nonexistent|100px|<script></script>]]
3032 [[File:Nonexistent|<]]
3033 [[File:Nonexistent|a<i>b</i>c]]
3035 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3036 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3037 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3038 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3045 [[http://www.example.com]]
3047 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3052 Plain link to URL with link text
3054 [[http://www.example.com Link text]]
3056 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3061 Plain link to protocol-relative URL
3063 [[//www.example.com]]
3065 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3070 Plain link to protocol-relative URL with link text
3072 [[//www.example.com Link text]]
3074 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3079 # I'm fairly sure the expected result here is wrong.
3080 # We want these to be URL links, not pseudo-pages with URLs for titles....
3081 # However the current output is also pretty screwy.
3084 # I'm changing it to match the current output--it arguably makes more
3085 # sense in the light of the test above. Old expected result was:
3086 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3088 # But I think this test is bordering on "garbage in, garbage out" anyway.
3093 Piped link to URL: [[http://www.example.com|an example URL]]
3095 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3100 BUG 2: [[page|http://url/]] should link to page, not http://url/
3102 [[Main Page|http://url/]]
3104 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3109 BUG 337: Escaped self-links should be bold
3113 [[Bug462]] [[Bug462]]
3115 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3120 Self-link to section should not be bold
3124 [[Main Page#section]]
3126 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3137 Self-link to numeric title
3143 <p><strong class="selflink">0</strong>
3148 Link to numeric-equivalent title
3154 <p><a href="/wiki/00" title="00">00</a>
3159 <nowiki> inside a link
3161 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3163 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3168 Non-breaking spaces in title
3170 [[ Main Page ]]
3172 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3177 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3183 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3188 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3194 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3199 Internal link with en linktrail: no apostrophes (bug 27473)
3205 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3210 Internal link with ca linktrail with apostrophes (bug 27473)
3216 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3221 Internal link with kaa linktrail with apostrophes (bug 27473)
3227 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3232 ### Interwiki links (see maintenance/interwiki.sql)
3236 Inline interwiki link
3238 [[MeatBall:SoftSecurity]]
3240 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3245 Inline interwiki link with empty title (bug 2372)
3249 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3254 Interwiki link encoding conversion (bug 1636)
3256 *[[Wikipedia:ro:Olteniţa]]
3257 *[[Wikipedia:ro:Olteniţa]]
3259 <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>
3260 </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>
3266 Interwiki link with fragment (bug 2130)
3268 [[MeatBall:SoftSecurity#foo]]
3270 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3285 Double interlanguage link
3296 Interlanguage link, with prefix links
3308 Double interlanguage link, with prefix links (bug 8897)
3321 Parsoid-specific test: Wikilinks with should RT properly
3327 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3345 Broken br tag sanitization
3354 Incorrecly removing closing slashes from correctly formed XHTML
3356 <br style="clear:both;" />
3358 <p><br style="clear:both;" />
3363 Failing to transform badly formed HTML into correct XHTML
3365 <br style="clear: left;">
3366 <br style="clear: right;">
3367 <br style="clear: both;">
3369 <p><br style="clear: left;" />
3370 <br style="clear: right;" />
3371 <br style="clear: both;" />
3376 Handling html with a div self-closing tag
3385 <p><div title />
3389 <p><div title=bar />
3390 <div title=bar/>
3392 <div title="bar/"></div>
3398 Handling html with a br self-closing tag
3407 <p><br title="title" />
3408 <br title="title" />
3417 Horizontal ruler (should it add that extra space?)
3431 Horizontal ruler -- 4+ dashes render hr
3440 Horizontal ruler -- eats additional dashes on the same line
3449 Horizontal ruler -- does not collaps dashes on consecutive lines
3460 Horizontal ruler -- <4 dashes render as plain text
3469 ### Block-level elements
3492 <ol><li>Numbered list
3509 ***#Number on level 4
3511 **#Number on level 3
3512 **#Number on level 3
3516 #** Level 3, but ordered
3519 <ol><li> with numbers
3521 <ul><li> and bullets
3523 <ol><li> and numbers
3525 </li><li>bullets again
3526 <ul><li>bullet level 2
3527 <ul><li>bullet level 3
3528 <ol><li>Number on level 4
3531 </li><li>bullet level 2
3532 <ol><li>Number on level 3
3533 </li><li>Number on level 3
3536 <ol><li>number level 2
3539 <ul><li><ul><li> Level 3
3543 <ol><li><ul><li><ul><li> Level 3, but ordered
3577 Nested lists 3 (first element empty)
3590 Nested lists 4 (first element empty)
3603 Nested lists 5 (both elements empty)
3616 Nested lists 6 (both elements empty)
3629 Nested lists 7 (skip initial nesting levels)
3633 <ul><li><ul><li><ul><li> foo
3641 Nested lists 8 (multiple nesting transitions)
3649 <ul><li><ul><li> bar
3659 1. Lists with start-of-line-transparent tokens before bullets: Comments
3673 2. Lists with start-of-line-transparent tokens before bullets: Template close
3685 List items are not parsed correctly following a <pre> block (bug 785)
3691 <ul><li> <pre>foo</pre>
3692 </li><li> <pre>bar</pre>
3699 List items from template
3710 * notSOL{{inner list}}
3729 List interrupted by empty line or heading
3739 <ul><li><ul><li> bar
3742 <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>
3743 <ul><li> Another list item
3754 Magic Word: {{CURRENTDAY}}
3763 Magic Word: {{CURRENTDAY2}}
3772 Magic Word: {{CURRENTDAYNAME}}
3781 Magic Word: {{CURRENTDOW}}
3790 Magic Word: {{CURRENTMONTH}}
3799 Magic Word: {{CURRENTMONTHABBREV}}
3801 {{CURRENTMONTHABBREV}}
3808 Magic Word: {{CURRENTMONTHNAME}}
3810 {{CURRENTMONTHNAME}}
3817 Magic Word: {{CURRENTMONTHNAMEGEN}}
3819 {{CURRENTMONTHNAMEGEN}}
3826 Magic Word: {{CURRENTTIME}}
3835 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3844 Magic Word: {{CURRENTYEAR}}
3853 Magic Word: {{FULLPAGENAME}}
3855 title=[[User:Ævar Arnfjörð Bjarmason]]
3859 <p>User:Ævar Arnfjörð Bjarmason
3864 Magic Word: {{FULLPAGENAMEE}}
3866 title=[[User:Ævar Arnfjörð Bjarmason]]
3870 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3875 Magic Word: {{NAMESPACE}}
3877 title=[[User:Ævar Arnfjörð Bjarmason]]
3886 Magic Word: {{NAMESPACEE}}
3888 title=[[User:Ævar Arnfjörð Bjarmason]]
3897 Magic Word: {{NAMESPACENUMBER}}
3899 title=[[User:Ævar Arnfjörð Bjarmason]]
3908 Magic Word: {{NUMBEROFFILES}}
3917 Magic Word: {{PAGENAME}}
3919 title=[[User:Ævar Arnfjörð Bjarmason]]
3923 <p>Ævar Arnfjörð Bjarmason
3928 Magic Word: {{PAGENAME}} with metacharacters
3930 title=[['foo & bar = baz']]
3934 <p><i>'foo & bar = baz'</i>
3939 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3941 title=[[*RFC 1234 http://example.com/]]
3945 <p>*RFC 1234 http://example.com/
3950 Magic Word: {{PAGENAMEE}}
3952 title=[[User:Ævar Arnfjörð Bjarmason]]
3956 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3961 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3963 title=[[*RFC 1234 http://example.com/]]
3967 <p>*RFC_1234_http://example.com/
3972 Magic Word: {{REVISIONID}}
3981 Magic Word: {{SCRIPTPATH}}
3990 Magic Word: {{SERVER}}
3994 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3999 Magic Word: {{SERVERNAME}}
4008 Magic Word: {{SITENAME}}
4017 Namespace 1 {{ns:1}}
4026 Namespace 1 {{ns:01}}
4035 Namespace 0 {{ns:0}} (bug 4783)
4043 Namespace 0 {{ns:00}} (bug 4783)
4051 Namespace -1 {{ns:-1}}
4060 Namespace User {{ns:User}}
4069 Namespace User talk {{ns:User_talk}}
4078 Namespace User talk {{ns:uSeR tAlK}}
4087 Namespace File {{ns:File}}
4096 Namespace File {{ns:Image}}
4105 Namespace (lang=de) Benutzer {{ns:User}}
4116 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4122 <p>Benutzer Diskussion
4130 {{urlencode:hi world?!}}
4131 {{urlencode:hi world?!|WIKI}}
4132 {{urlencode:hi world?!|PATH}}
4133 {{urlencode:hi world?!|QUERY}}
4146 Magic links: internal link to RFC (bug 479)
4150 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4155 Magic links: RFC (bug 479)
4159 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4164 Magic links: ISBN (bug 1937)
4168 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4173 Magic links: PMID incorrectly converts space to underscore
4177 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4186 Nonexistent template
4188 {{thistemplatedoesnotexist}}
4190 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4197 This is a test template
4205 <p>This is a test template
4210 Template with explicit namespace
4214 <p>This is a test template
4222 This is a test template with parameter {{{param}}}
4228 {{paramtest|param=foo}}
4230 <p>This is a test template with parameter foo
4235 Template:paramtestnum
4241 Template unnamed parameter
4243 {{paramtestnum|Main Page|the main page}}
4245 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4250 Template:templatesimple
4256 Template:templateredirect
4258 #redirect [[Template:templatesimple]]
4262 Template:templateasargtestnum
4268 Template:templateasargtest
4270 {{template{{{templ}}}}}
4274 Template:templateasargtest2
4280 Template with template name as unnamed argument
4282 {{templateasargtestnum|templatesimple}}
4289 Template with template name as argument
4291 {{templateasargtest|templ=simple}}
4298 Template with template name as argument (2)
4300 {{templateasargtest2|templ=templatesimple}}
4307 Template:templateasargtestdefault
4309 {{{{{templ|templatesimple}}}}}
4319 Template with default value
4321 {{templateasargtestdefault}}
4328 Template with default value (value set)
4330 {{templateasargtestdefault|templ=templa}}
4339 {{templateredirect}}
4346 Template with argument in separate line
4348 {{ templateasargtest |
4356 Template with complex template as argument
4359 param ={{ templateasargtest |
4362 <p>This is a test template with parameter (test)
4367 Template with thumb image (with link in description)
4370 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4372 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>
4377 Template:complextemplate
4379 {{{1}}} {{paramtest|
4380 param ={{{param}}}}}
4384 Template with complex arguments
4387 param ={{ templateasargtest |
4388 templ = simple }}|[[Template:complextemplate|link]]}}
4390 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4395 BUG 553: link with two variables in a piped link
4398 |[[{{{1}}}|{{{2}}}]]
4403 <td>[[{{{1}}}|{{{2}}}]]
4409 Magic variable as template parameter
4411 {{paramtest|param={{SITENAME}}}}
4413 <p>This is a test template with parameter MediaWiki
4420 [[{{{param}}}|link]]
4424 Template parameter as link source
4426 {{linktest|param=Main Page}}
4428 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4433 Template-generated attribute string (k='v')
4435 <span {{attr_str|id|v1}}>bar</span>
4437 <p><span id="v1">bar</span>
4444 including another template, {{paramtest|param={{{arg}}}}}
4448 Template passing argument to another template
4450 {{paramtest2|arg='hmm'}}
4452 <p>including another template, This is a test template with parameter 'hmm'
4463 Template as link source
4467 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4485 Template infinite loop
4489 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4494 Template from main namespace
4513 BUG 529: Template with table, not included at beginning of line
4532 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4552 BUG 41: Template parameters shown as broken links
4561 Template with targets containing wikilinks
4565 {{[[{{echo|foo}}]]}}
4567 {{{{echo|[[foo}}]]}}
4569 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4570 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4578 ''None'' of '''this''' should be
4580 but rather passed unmodified
4584 # hmm, fix this or just deprecate msgnw and document its behavior?
4590 {{msgnw:MSGNW test}}
4592 <p>''None'' of '''this''' should be
4594 but rather passed unmodified
4602 {{int:youhavenewmessages|lots of money|not!}}
4604 <p>You have lots of money (not!).
4611 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4615 <includeonly> and <noinclude> being included
4626 <onlyinclude>Foo</onlyinclude>bar
4630 <onlyinclude> being included
4642 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4646 <onlyinclude> and <includeonly> being included
4655 <includeonly> and <noinclude> on a page
4657 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4664 <onlyinclude> on a page
4666 <onlyinclude>Foo</onlyinclude>bar
4673 Template:Includeonly section
4676 ==Includeonly section==
4682 Bug 6563: Edit link generation for section shown by <includeonly>
4684 {{includeonly section}}
4686 <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>
4687 <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>
4691 # Uses same input as the contents of [[Template:Includeonly section]]
4693 Bug 6563: Section extraction for section shown by <includeonly>
4698 ==Includeonly section==
4706 Bug 6563: Edit link generation for section suppressed by <includeonly>
4709 ==Includeonly section==
4713 <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>
4718 Bug 6563: Section extraction for section suppressed by <includeonly>
4723 ==Includeonly section==
4731 ### <includeonly> and <noinclude> in attributes
4734 0. includeonly around the entire attribute
4736 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4738 <p><span id="v2">bar</span>
4743 1. includeonly in html attr key
4745 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4747 <p><span id="foo">bar</span>
4752 2. includeonly in html attr value
4754 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4755 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4757 <p><span id="v1">bar</span>
4758 <span id="v1">bar</span>
4763 3. includeonly in part of an attr value
4765 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4767 <p><span style="color:red;">bar</span>
4772 ### Testing parsing of templates where a template arg
4773 ### has the same name as the template itself.
4783 Templates: Template Name/Arg clash: 1. Use of positional param
4792 Templates: Template Name/Arg clash: 2. Use of named param
4801 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4810 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4814 Templates: 1. Simple use
4823 Templates: 2. Inside a block tag
4825 <div>{{echo|Foo}}</div>
4832 Templates: P-wrapping: 1a. Templates on consecutive lines
4843 Templates: P-wrapping: 1b. Templates on consecutive lines
4857 Templates: P-wrapping: 1c. Templates on consecutive lines
4860 {{echo|bar}} <div>baz</div>
4869 Templates: Inline Text: 1. Multiple tmeplate uses
4871 {{echo|Foo}}bar{{echo|baz}}
4878 Templates: Inline Text: 2. Back-to-back template uses
4880 {{echo|Foo}}{{echo|bar}}
4887 Templates: Block Tags: 1. Multiple template uses
4889 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4891 <div>Foo</div><div>bar</div><div>baz</div>
4896 Templates: Block Tags: 2. Back-to-back template uses
4898 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4900 <div>Foo</div><div>bar</div>
4905 Templates: Links: 1. Simple example
4907 {{echo|[[Foo|bar]]}}
4909 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4914 Templates: Links: 2. Generation of link href
4916 [[{{echo|Foo}}|bar]]
4918 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4923 Templates: Links: 3. Generation of part of a link href
4925 [[Fo{{echo|o}}|bar]]
4927 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4932 Templates: Links: 4. Multiple templates generating link href
4934 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4936 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4941 Templates: Links: 5. Generation of link text
4943 [[Foo|{{echo|bar}}]]
4945 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4950 Templates: Links: 5. Nested templates (only outermost template should be marked)
4952 {{echo|[[{{echo|Foo}}|bar]]}}
4954 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4959 Templates: HTML Tag: 1. Generation of HTML attr. key
4961 <div {{echo|style}}="color:red;">foo</div>
4963 <div style="color:red;">foo</div>
4968 Templates: HTML Tag: 2. Generation of HTML attr. value
4970 <div style={{echo|'color:red;'}}>foo</div>
4972 <div style="color:red;">foo</div>
4977 Templates: HTML Tag: 3. Generation of HTML attr key and value
4979 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4981 <div style="color:red;">foo</div>
4986 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4988 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4990 <div title="This is a long title with just one piece templated">foo</div>
4995 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4997 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4999 <div title="This is a long title with just one piece templated">foo</div>
5004 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5006 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5008 <div title="This is a long title with just one piece templated">foo</div>
5013 Templates: HTML Tables: 1. Generating start of a HTML table
5015 {{echo|<table><tr><td>foo</td>}}</tr></table>
5017 <table><tr><td>foo</td></tr></table>
5022 Templates: HTML Tables: 2a. Generating middle of a HTML table
5024 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5026 <table><tr><td>foo</td></tr></table>
5031 Templates: HTML Tables: 2b. Generating middle of a HTML table
5033 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5035 <table><tr><td>foo</td></tr></table>
5040 Templates: HTML Tables: 3. Generating end of a HTML table
5042 <table><tr>{{echo|<td>foo</td></tr></table>}}
5044 <table><tr><td>foo</td></tr></table>
5049 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5051 {{echo|<table>}}<tr><td>foo</td></tr></table>
5053 <table><tr><td>foo</td></tr></table>
5058 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5060 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5062 <table><tr><td>foo</td></tr></table>
5067 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5069 <table><tr>{{echo|<td>}}foo</td></tr></table>
5071 <table><tr><td>foo</td></tr></table>
5076 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5078 <table><tr><td>foo{{echo|</td>}}</tr></table>
5080 <table><tr><td>foo</td></tr></table>
5085 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5087 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5089 <table><tr><td>foo</td></tr></table>
5094 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5096 <table><tr><td>foo</td></tr>{{echo|</table>}}
5098 <table><tr><td>foo</td></tr></table>
5103 Templates: Wiki Tables: 1. Fostering of entire template content
5111 <tr><td></td></tr></table>
5116 Templates: Wiki Tables: 2. Fostering of partial template content
5126 <tr><td></td></tr></table>
5131 Templates: Wiki Tables: 3. td-content via multiple templates
5134 {{echo|{{pipe}}a}}{{echo|b}}
5145 Templates: Lists: Multi-line list-items via templates
5147 *{{echo|a {{nonexistent|
5149 *{{echo|b {{nonexistent|
5152 <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>
5153 </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>
5159 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5161 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5163 <p><i>ab</i>c<i>d</i>e
5168 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5169 (PHP parser generates misnested html)
5173 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5175 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5179 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5180 (PHP parser generates misnested html)
5184 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5187 <div><i>b</i>c<i>d</i></div>
5192 Templates: Ugly nesting: 4. Divs opened/closed across templates
5194 a<div>b{{echo|c</div>d}}e
5201 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5207 |{{echo|foo</table>}}
5211 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5212 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5213 bar</span><span about="#mwt1">
5218 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5228 <td>1. {{echo|foo </table>}}</td>
5230 <td>2. {{echo|baz </table>}}</td>
5243 <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">
5244 <tbody><tr data-parsoid="{"stx":"html"}">
5245 <td data-parsoid="{"stx":"html"}">
5246 <table data-parsoid="{"stx":"html"}">
5247 <tbody><tr data-parsoid="{"stx":"html"}">
5248 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5249 <td data-parsoid="{"stx":"html"}"> bar </td>
5250 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5251 </span><span about="#mwt1">
5253 abc</span><span about="#mwt1">
5254 </span><span about="#mwt1">
5255 </span><span about="#mwt1">
5256 </span><span about="#mwt1">
5257 </span><span about="#mwt1">
5259 xyz</span><span about="#mwt1">
5260 </span><span about="#mwt1">
5265 Parser Functions: 1. Simple example
5274 Parser Functions: 2. Nested use (only outermost should be marked up)
5283 ### Pre-save transform tests
5286 pre-save transform: subst:
5292 This is a test template
5296 pre-save transform: normal template
5306 pre-save transform: nonexistent template
5310 {{thistemplatedoesnotexist}}
5312 {{thistemplatedoesnotexist}}
5317 pre-save transform: subst magic variables
5326 # This is bug 89, which I fixed. -- wtm
5328 pre-save transform: subst: templates with parameters
5332 {{subst:paramtest|param="something else"}}
5334 This is a test template with parameter "something else"
5340 <nowiki>'''not wiki'''</nowiki>
5344 pre-save transform: nowiki in subst (bug 1188)
5348 {{subst:nowikitest}}
5350 <nowiki>'''not wiki'''</nowiki>
5355 Template:commenttest
5357 This template has <!-- a comment --> in it.
5361 pre-save transform: comment in subst (bug 1936)
5365 {{subst:commenttest}}
5367 This template has <!-- a comment --> in it.
5371 pre-save transform: unclosed tag
5375 <nowiki>'''not wiki'''
5377 <nowiki>'''not wiki'''
5381 pre-save transform: mixed tag case
5385 <NOwiki>'''not wiki'''</noWIKI>
5387 <NOwiki>'''not wiki'''</noWIKI>
5391 pre-save transform: unclosed comment in <nowiki>
5395 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5397 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5403 <span onmouseover="alert('crap')">Oh no</span>
5407 (confirming safety of fix for subst bug 1936)
5409 {{Template:dangerous}}
5411 <p><span>Oh no</span>
5416 pre-save transform: comment containing gallery (bug 5024)
5420 <!-- <gallery>data</gallery> -->
5422 <!-- <gallery>data</gallery> -->
5426 pre-save transform: comment containing extension
5430 <!-- <tag>data</tag> -->
5432 <!-- <tag>data</tag> -->
5436 pre-save transform: comment containing nowiki
5440 <!-- <nowiki>data</nowiki> -->
5442 <!-- <nowiki>data</nowiki> -->
5446 pre-save transform: <noinclude> in subst (bug 3298)
5456 pre-save transform: <onlyinclude> in subst (bug 3298)
5468 {{<includeonly>subst:</includeonly>Includes}}
5472 Template:SafeSubstTest
5474 {{<includeonly>safesubst:</includeonly>Includes}}
5478 bug 22297: safesubst: works during PST
5482 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5488 bug 22297: safesubst: works during normal parse
5497 subst: does not work during normal parse
5501 <p>{{subst:Includes}}
5506 pre-save transform: context links ("pipe trick")
5510 [[Article (context)|]]
5513 [[Bar:Article (context)|]]
5514 [[:Bar:Article (context)|]]
5516 [[|Article (context)]]
5520 [[Article (context)|Article]]
5521 [[Bar:Article|Article]]
5522 [[:Bar:Article|Article]]
5523 [[Bar:Article (context)|Article]]
5524 [[:Bar:Article (context)|Article]]
5526 [[Article (context)]]
5527 [[Bar:X (Y) Z|X (Y) Z]]
5528 [[:Bar:X (Y) Z|X (Y) Z]]
5532 pre-save transform: context links ("pipe trick") with interwiki prefix
5536 [[interwiki:Article|]]
5537 [[:interwiki:Article|]]
5538 [[interwiki:Bar:Article|]]
5539 [[:interwiki:Bar:Article|]]
5541 [[interwiki:Article|Article]]
5542 [[:interwiki:Article|Article]]
5543 [[interwiki:Bar:Article|Bar:Article]]
5544 [[:interwiki:Bar:Article|Bar:Article]]
5548 pre-save transform: context links ("pipe trick") with parens in title
5550 pst title=[[Somearticle (context)]]
5554 [[Article (context)|Article]]
5558 pre-save transform: context links ("pipe trick") with comma in title
5560 pst title=[[Someplace, Somewhere]]
5563 [[Otherplace, Elsewhere|]]
5564 [[Otherplace, Elsewhere, Anywhere|]]
5566 [[Otherplace, Somewhere|Otherplace]]
5567 [[Otherplace, Elsewhere|Otherplace]]
5568 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5572 pre-save transform: context links ("pipe trick") with parens and comma
5574 pst title=[[Someplace (IGNORED), Somewhere]]
5577 [[Otherplace (place), Elsewhere|]]
5579 [[Otherplace, Somewhere|Otherplace]]
5580 [[Otherplace (place), Elsewhere|Otherplace]]
5584 pre-save transform: context links ("pipe trick") with comma and parens
5586 pst title=[[Who, me? (context)]]
5589 [[Me, Myself, and I (1937 song)|]]
5591 [[Yes, you. (context)|Yes, you.]]
5592 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5596 pre-save transform: context links ("pipe trick") with namespace
5598 pst title=[[Ns:Somearticle]]
5602 [[Ns:Article|Article]]
5606 pre-save transform: context links ("pipe trick") with namespace and parens
5608 pst title=[[Ns:Somearticle (context)]]
5612 [[Ns:Article (context)|Article]]
5616 pre-save transform: context links ("pipe trick") with namespace and comma
5618 pst title=[[Ns:Somearticle, Context, Whatever]]
5622 [[Ns:Article, Context, Whatever|Article]]
5626 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5628 pst title=[[Ns:Somearticle, Context (context)]]
5632 [[Ns:Article (context)|Article]]
5636 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5638 pst title=[[Ns:Somearticle (IGNORED), Context]]
5642 [[Ns:Article, Context|Article]]
5646 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5650 [[Article(context)|]]
5651 [[Bar:Article(context)|]]
5652 [[:Bar:Article(context)|]]
5653 [[|Article(context)]]
5657 [[Article(context)|Article]]
5658 [[Bar:Article(context)|Article]]
5659 [[:Bar:Article(context)|Article]]
5660 [[Article(context)]]
5662 [[:Bar:X(Y)Z|X(Y)Z]]
5666 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5670 [[Article (context)|]]
5671 [[Bar:Article (context)|]]
5672 [[:Bar:Article (context)|]]
5673 [[|Article (context)]]
5677 [[Article (context)|Article]]
5678 [[Bar:Article (context)|Article]]
5679 [[:Bar:Article (context)|Article]]
5680 [[Article (context)]]
5681 [[Bar:X (Y) Z|X (Y) Z]]
5682 [[:Bar:X (Y) Z|X (Y) Z]]
5686 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5690 [[Article(context)|]]
5691 [[Bar:Article(context)|]]
5692 [[:Bar:Article(context)|]]
5693 [[|Article(context)]]
5697 [[Article(context)|Article]]
5698 [[Bar:Article(context)|Article]]
5699 [[:Bar:Article(context)|Article]]
5700 [[Article(context)]]
5702 [[:Bar:X(Y)Z|X(Y)Z]]
5706 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5710 [[Article (context), context|]]
5711 [[Article (context),context|]]
5712 [[Bar:Article (context), context|]]
5713 [[Bar:Article (context),context|]]
5714 [[:Bar:Article (context), context|]]
5715 [[:Bar:Article (context),context|]]
5717 [[Article (context), context|Article]]
5718 [[Article (context),context|Article]]
5719 [[Bar:Article (context), context|Article]]
5720 [[Bar:Article (context),context|Article]]
5721 [[:Bar:Article (context), context|Article]]
5722 [[:Bar:Article (context),context|Article]]
5726 pre-save transform: trim trailing empty lines
5730 Empty lines are trimmed
5736 Empty lines are trimmed
5740 pre-save transform: Signature expansion
5745 * <noinclude>~~~</noinclude>
5746 * <includeonly>~~~</includeonly>
5747 * <onlyinclude>~~~</onlyinclude>
5749 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5750 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5751 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5752 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5757 pre-save transform: Signature expansion in nowiki tags (bug 93)
5763 <nowiki>~~~~</nowiki>
5765 <includeonly><nowiki>~~~~</nowiki></includeonly>
5767 <noinclude><nowiki>~~~~</nowiki></noinclude>
5769 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5771 {{subst:Foo}} shall be converted to FOO
5773 As well as inside noinclude/onlyinclude
5774 <noinclude>{{subst:Foo}}</noinclude>
5775 <onlyinclude>{{subst:Foo}}</onlyinclude>
5777 But not inside includeonly
5778 <includeonly>{{subst:Foo}}</includeonly>
5782 <nowiki>~~~~</nowiki>
5784 <includeonly><nowiki>~~~~</nowiki></includeonly>
5786 <noinclude><nowiki>~~~~</nowiki></noinclude>
5788 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5790 FOO shall be converted to FOO
5792 As well as inside noinclude/onlyinclude
5793 <noinclude>FOO</noinclude>
5794 <onlyinclude>FOO</onlyinclude>
5796 But not inside includeonly
5797 <includeonly>{{subst:Foo}}</includeonly>
5801 ### Message transform tests
5804 message transform: magic variables
5814 message transform: should not transform wiki markup
5824 message transform: <noinclude> in transcluded template (bug 4926)
5834 message transform: <onlyinclude> in transcluded template (bug 4926)
5844 {{#special:}} page name, known
5848 {{#special:Recentchanges}}
5850 Special:RecentChanges
5854 {{#special:}} page name with subpage, known
5858 {{#special:Recentchanges/param}}
5860 Special:RecentChanges/param
5864 {{#special:}} page name, unknown
5868 {{#special:foobarnonexistent}}
5870 No such special page
5874 {{#speciale:}} page name, known
5878 {{#speciale:Recentchanges}}
5880 Special:RecentChanges
5884 {{#speciale:}} page name with subpage, known
5888 {{#speciale:Recentchanges/param}}
5890 Special:RecentChanges/param
5894 {{#speciale:}} page name, unknown
5898 {{#speciale:foobarnonexistent}}
5900 No_such_special_page
5909 [[Image:foobar.jpg]]
5911 <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>
5918 [[Image:foobar.jpg|right]]
5920 <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>
5925 Simple image (using File: namespace, now canonical)
5929 <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>
5936 [[Image:foobar.jpg|right|Caption text]]
5938 <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>
5943 Image with empty attribute
5945 [[Image:foobar.jpg|right||Caption text]]
5947 <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>
5952 Image with link tails
5954 123[[Image:foobar.jpg]]456
5955 123[[Image:foobar.jpg|right]]456
5956 123[[Image:foobar.jpg|thumb]]456
5958 <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
5960 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
5961 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
5966 Image with multiple captions -- only last one is accepted
5968 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5970 <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>
5975 Image with link parameter, wiki target
5977 [[Image:foobar.jpg|link=Target page]]
5979 <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>
5984 Image with link parameter, URL target
5986 [[Image:foobar.jpg|link=http://example.com/]]
5988 <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>
5993 Image with link parameter, wgExternalLinkTarget
5995 [[Image:foobar.jpg|link=http://example.com/]]
5997 wgExternalLinkTarget='foobar'
5999 <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>
6004 Image with link parameter, wgNoFollowLinks set to false
6006 [[Image:foobar.jpg|link=http://example.com/]]
6008 wgNoFollowLinks=false
6010 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6015 Image with link parameter, wgNoFollowDomainExceptions
6017 [[Image:foobar.jpg|link=http://example.com/]]
6019 wgNoFollowDomainExceptions='example.com'
6021 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6026 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6028 [[Image:foobar.jpg|link=http://example.com/|Title]]
6030 wgExternalLinkTarget='foobar'
6032 <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>
6037 Image with empty link parameter
6039 [[Image:foobar.jpg|link=]]
6041 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6046 Image with link parameter (wiki target) and unnamed parameter
6048 [[Image:foobar.jpg|link=Target page|Title]]
6050 <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>
6055 Image with link parameter (URL target) and unnamed parameter
6057 [[Image:foobar.jpg|link=http://example.com/|Title]]
6059 <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>
6064 Thumbnail image with link parameter
6066 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6068 <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>
6073 Image with frame and link
6075 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6077 <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>
6082 Image with frame and link and explicit alt
6084 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6086 <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>
6091 Image with wiki markup in implicit alt
6093 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6095 <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>
6100 Image with wiki markup in explicit alt
6102 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6104 <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>
6109 Link to image page- image page normally doesn't exists, hence edit link
6110 Add test with existing image page
6111 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6115 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6120 bug 18784 Link to non-existent image page with caption should use caption as link text
6122 [[:Image:test|caption]]
6124 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6129 Frameless image caption with a free URL
6131 [[Image:foobar.jpg|http://example.com]]
6133 <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>
6138 Thumbnail image caption with a free URL
6140 [[Image:foobar.jpg|thumb|http://example.com]]
6142 <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>
6147 Thumbnail image caption with a free URL and explicit alt
6149 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6151 <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>
6156 BUG 1887: A ISBN with a thumbnail
6158 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6160 <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>
6165 BUG 1887: A RFC with a thumbnail
6167 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6169 <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>
6174 BUG 1887: A mailto link with a thumbnail
6176 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6178 <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>
6182 # Pending resolution to bug 368
6184 BUG 648: Frameless image caption with a link
6186 [[Image:foobar.jpg|text with a [[link]] in it]]
6188 <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>
6193 BUG 648: Frameless image caption with a link (suffix)
6195 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6197 <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>
6202 BUG 648: Frameless image caption with an interwiki link
6204 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6206 <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>
6211 BUG 648: Frameless image caption with a piped interwiki link
6213 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6215 <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>
6220 Escape HTML special chars in image alt text
6222 [[Image:foobar.jpg|& < > "]]
6224 <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>
6229 BUG 499: Alt text should have Ӓ, not &1234;
6231 [[Image:foobar.jpg|♀]]
6233 <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>
6238 Broken image caption with link
6240 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6242 <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.
6247 Image caption containing another image
6249 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6251 <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>
6256 Image caption containing a newline
6258 [[Image:Foobar.jpg|This
6261 <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>
6267 Bug 3090: External links other than http: in image captions
6269 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6271 <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>
6278 [[Image:foobar.jpg|a|class=b]]
6280 <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>
6287 #REDIRECT [[File:Barfoo.jpg]]
6293 [[Image:Barfoo.jpg]]
6295 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6300 Missing image with uploads disabled
6304 [[Image:Foobaz.jpg]]
6306 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6315 Subpage test/subpage
6323 subpage title=[[Subpage test]]
6327 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6332 Subpage noslash link
6334 subpage title=[[Subpage test]]
6338 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6347 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6352 BUG 561: {{/Subpage}}
6354 subpage title=[[Page]]
6358 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6366 Category:MediaWiki User's Guide
6374 [[:Category:MediaWiki User's Guide]]
6376 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6385 [[Category:MediaWiki User's Guide]]
6387 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6391 PAGESINCATEGORY invalid title fatal (r33546 fix)
6393 {{PAGESINCATEGORY:<bogus>}}
6400 Category with different sort key
6404 [[Category:MediaWiki User's Guide|Foo]]
6406 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6410 Category with identical sort key
6414 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6416 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6420 Category with empty sort key
6425 [[Category:MediaWiki User's Guide|]]
6427 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6431 Category with empty sort key and parentheses
6436 [[Category:Foo (bar)|]]
6438 [[Category:Foo (bar)|Foo]]
6442 Category with link tail
6447 123[[Category:Foo]]456
6449 123[[Category:Foo]]456
6453 Category with template
6458 [[Category:{{echo|Foo}}]]
6460 [[Category:{{echo|Foo}}]]
6464 Category with template in sort key
6469 [[Category:Foo|{{echo|Bar}}]]
6471 [[Category:Foo|{{echo|Bar}}]]
6475 Category with template in sort key and title
6480 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6482 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6486 Category / paragraph interactions
6488 Foo [[Category:Baz]] Bar
6490 Foo [[Category:Baz]]
6498 [[Category:Baz]] Bar
6511 {{echo|[[Category:Baz]]}}
6526 ### Inter-language links
6529 Inter-language links
6535 [[zh:食品]]
6537 es:Alimento fr:Nourriture zh:食品
6541 Duplicate interlanguage links (bug 24502)
6557 Basic section headings
6564 ===Smaller headline===
6567 <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>
6570 <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>
6573 <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>
6579 Section headings with TOC
6582 === Subheadline 1 ===
6583 ===== Skipping a level =====
6584 ====== Skipping a level ======
6588 ===Another headline===
6590 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6592 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6594 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6596 <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>
6598 <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>
6605 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6607 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6612 <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>
6613 <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>
6614 <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>
6615 <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>
6616 <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>
6619 <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>
6623 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6625 Handling of sections up to level 6 and beyond
6628 == Level 2 Heading==
6629 === Level 3 Heading===
6630 ==== Level 4 Heading====
6631 ===== Level 5 Heading=====
6632 ====== Level 6 Heading======
6633 ======= Level 7 Heading=======
6634 ======== Level 8 Heading========
6635 ========= Level 9 Heading=========
6636 ========== Level 10 Heading==========
6638 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6640 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6642 <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>
6644 <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>
6646 <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>
6648 <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>
6650 <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>
6651 <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>
6652 <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>
6653 <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>
6654 <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>
6667 <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>
6668 <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>
6669 <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>
6670 <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>
6671 <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>
6672 <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>
6673 <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>
6674 <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>
6675 <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>
6676 <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>
6681 TOC regression (bug 9764)
6685 ==== title 1.1.1 ====
6690 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6692 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6694 <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>
6696 <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>
6699 <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>
6702 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6704 <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>
6709 <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>
6710 <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>
6711 <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>
6712 <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>
6713 <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>
6714 <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>
6719 TOC with wgMaxTocLevel=3 (bug 6204)
6725 ==== title 1.1.1 ====
6730 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6732 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6734 <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>
6735 <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>
6738 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6740 <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>
6745 <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>
6746 <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>
6747 <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>
6748 <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>
6749 <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>
6750 <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>
6755 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6761 ====Section 1.1.1====
6762 ====Section 1.1.1.1====
6765 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6767 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6769 <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>
6772 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6775 <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>
6776 <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>
6777 <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>
6778 <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>
6779 <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>
6785 Resolving duplicate section names
6790 <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>
6791 <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>
6796 Resolving duplicate section names with differing case (bug 10721)
6801 <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>
6802 <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>
6814 Template with sections, __NOTOC__
6821 <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>
6822 <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>
6823 <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>
6824 <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>
6829 __NOEDITSECTION__ keyword
6835 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6836 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6841 Link inside a section heading
6843 ==Section with a [[Main Page|link]] in it==
6845 <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>
6850 TOC regression (bug 12077)
6857 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6859 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6861 <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>
6864 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6867 <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>
6868 <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>
6869 <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>
6874 BUG 1219 URL next to image (good)
6876 http://example.com [[Image:foobar.jpg]]
6878 <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>
6883 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6886 The line above must have a trailing space!
6889 But just in case it doesn't...
6891 <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>
6892 <p>The line above must have a trailing space!
6894 <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>
6895 <p>But just in case it doesn't...
6900 Header with special characters (bug 25462)
6902 The tooltips shall not show entities to the user (ie. be double escaped)
6919 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6921 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6923 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6924 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6925 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6926 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6927 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6930 <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>
6933 <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>
6936 <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>
6939 <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>
6942 <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>
6948 Headers with excess '=' characters
6949 (Are similar tests necessary beyond the 1st level?)
6953 =''italic'' heading==
6954 ==''italic'' heading=
6956 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6958 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6959 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6960 <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>
6961 <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>
6964 <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>
6965 <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>
6966 <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>
6967 <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>
6972 BUG 1219 URL next to image (broken)
6974 http://example.com[[Image:foobar.jpg]]
6976 <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>
6981 Bug 1186 news: in the middle of text
6983 http://en.wikinews.org/wiki/Wikinews:Workplace
6985 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6991 Namespaced link must have a title
7000 Namespaced link must have a title (bad fragment version)
7002 [[Project:#fragment]]
7004 <p>[[Project:#fragment]]
7010 div with no attributes
7012 <div>HTML rocks</div>
7014 <div>HTML rocks</div>
7019 div with double-quoted attribute
7021 <div id="rock">HTML rocks</div>
7023 <div id="rock">HTML rocks</div>
7028 div with single-quoted attribute
7030 <div id='rock'>HTML rocks</div>
7032 <div id="rock">HTML rocks</div>
7037 div with unquoted attribute
7039 <div id=rock>HTML rocks</div>
7041 <div id="rock">HTML rocks</div>
7046 div with illegal double attributes
7048 <div id="a" id="b">HTML rocks</div>
7050 <div id="b">HTML rocks</div>
7055 HTML multiple attributes correction
7057 <p class="error" class="awesome">Awesome!</p>
7059 <p class="awesome">Awesome!</p>
7064 Table multiple attributes correction
7067 !+ class="error" class="awesome"| status
7072 <th class="awesome"> status
7080 <DIV ID="x">HTML ROCKS</DIV>
7082 <div id="x">HTML ROCKS</div>
7088 text with amp in the middle of nowhere
7092 <p>Remember AT&T?
7097 text with character entity: eacute
7099 I always thought é was a cute letter.
7101 <p>I always thought é was a cute letter.
7106 text with undefined character entity: xacute
7108 I always thought &xacute; was a cute letter.
7110 <p>I always thought &xacute; was a cute letter.
7122 [[Media:Foobar.jpg]]
7124 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7129 Media link with text
7131 [[Media:Foobar.jpg|A neat file to look at]]
7133 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7137 # FIXME: this is still bad HTML tag nesting
7139 Media link with nasty text
7140 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7142 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7144 <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>
7149 Media link to nonexistent file (bug 1702)
7151 [[Media:No such.jpg]]
7153 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7158 Image link to nonexistent file (bug 1850 - good)
7160 [[Image:No such.jpg]]
7162 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7167 :Image link to nonexistent file (bug 1850 - bad)
7169 [[:Image:No such.jpg]]
7171 <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>
7178 Character reference normalization in link text (bug 1938)
7180 [[Main Page|this&that]]
7182 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7189 Test for unicode normalization
7191 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7195 (bug 19451) Links should refer to the normalized form.
7203 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7204 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7205 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7206 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7207 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7212 Empty attribute crash test (bug 2067)
7214 <font color="">foo</font>
7216 <p><font color="">foo</font>
7221 Empty attribute crash test single-quotes (bug 2067)
7223 <font color=''>foo</font>
7225 <p><font color="">foo</font>
7230 Attribute test: equals, then nothing
7232 <font color=>foo</font>
7239 Attribute test: unquoted value
7241 <font color=x>foo</font>
7243 <p><font color="x">foo</font>
7248 Attribute test: unquoted but illegal value (hash)
7250 <font color=#x>foo</font>
7252 <p><font color="#x">foo</font>
7257 Attribute test: no value
7259 <font color>foo</font>
7261 <p><font color="color">foo</font>
7266 Bug 2095: link with three closing brackets
7270 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7275 Bug 2095: link with pipe and three closing brackets
7279 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7284 Bug 2095: link with pipe and three closing brackets, version 2
7286 [[Main Page|[http://example.com/]]]
7288 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7298 Template:Dangerous attribute
7300 " onmouseover="alert(document.cookie)
7304 Template:Dangerous style attribute
7306 border-size: expression(alert(document.cookie))
7312 <div style="float: right; {{{1}}}">Magic div</div>
7316 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7318 <div title="{{test}}"></div>
7320 <div title="This is a test template"></div>
7325 Bug 2304: HTML attribute safety (dangerous template; 2309)
7327 <div title="{{dangerous attribute}}"></div>
7329 <div title=""></div>
7334 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7336 <div style="{{dangerous style attribute}}"></div>
7338 <div style="/* insecure input */"></div>
7343 Bug 2304: HTML attribute safety (safe parameter; 2309)
7345 {{div style|width: 200px}}
7347 <div style="float: right; width: 200px">Magic div</div>
7352 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7354 {{div style|width: expression(alert(document.cookie))}}
7356 <div style="/* insecure input */">Magic div</div>
7361 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7363 {{div style|"><script>alert(document.cookie)</script>}}
7365 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7370 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7372 {{div style|" ><script>alert(document.cookie)</script>}}
7374 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7379 Bug 2304: HTML attribute safety (link)
7381 <div title="[[Main Page]]"></div>
7383 <div title="[[Main Page]]"></div>
7388 Bug 2304: HTML attribute safety (italics)
7390 <div title="''foobar''"></div>
7392 <div title="''foobar''"></div>
7397 Bug 2304: HTML attribute safety (bold)
7399 <div title="'''foobar'''"></div>
7401 <div title="'''foobar'''"></div>
7407 Bug 2304: HTML attribute safety (ISBN)
7409 <div title="ISBN 1234567890"></div>
7411 <div title="ISBN 1234567890"></div>
7416 Bug 2304: HTML attribute safety (RFC)
7418 <div title="RFC 1234"></div>
7420 <div title="RFC 1234"></div>
7425 Bug 2304: HTML attribute safety (PMID)
7427 <div title="PMID 1234567890"></div>
7429 <div title="PMID 1234567890"></div>
7434 Bug 2304: HTML attribute safety (web link)
7436 <div title="http://example.com/"></div>
7438 <div title="http://example.com/"></div>
7443 Bug 2304: HTML attribute safety (named web link)
7445 <div title="[http://example.com/ link]"></div>
7447 <div title="[http://example.com/ link]"></div>
7452 Bug 3244: HTML attribute safety (extension; safe)
7454 <div style="<nowiki>background:blue</nowiki>"></div>
7456 <div style="background:blue"></div>
7461 Bug 3244: HTML attribute safety (extension; unsafe)
7463 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7465 <div style="/* insecure input */"></div>
7469 # More MSIE fun discovered by Tom Gilder
7472 MSIE CSS safety test: spurious slash
7474 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7476 <div style="/* insecure input */">evil</div>
7481 MSIE CSS safety test: hex code
7483 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7485 <div style="/* insecure input */">evil</div>
7490 MSIE CSS safety test: comment in url
7492 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7494 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7499 MSIE CSS safety test: comment in expression
7501 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7503 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7509 Table attribute legitimate extension
7512 !+ style="<nowiki>color:blue</nowiki>"| status
7517 <th style="color:blue"> status
7523 Table attribute safety
7526 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7531 <th style="/* insecure input */"> status
7537 CSS line continuation 1
7539 <div style="background-image: u\ rl(test.jpg);"></div>
7541 <div style="/* insecure input */"></div>
7546 CSS line continuation 2
7548 <div style="background-image: u\ rl(test.jpg); "></div>
7550 <div style="/* insecure input */"></div>
7561 Expansion of multi-line templates in attribute values (bug 6255)
7563 <div style="background: {{identity|#00FF00}}">-</div>
7565 <div style="background: #00FF00">-</div>
7571 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7573 <div style="background:
7576 <div style="background: #00FF00">-</div>
7581 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7583 <div style="background: #00FF00">-</div>
7585 <div style="background: #00FF00">-</div>
7590 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7593 Parser hook: empty input
7606 Parser hook: empty input using terminated empty elements
7619 Parser hook: empty input using terminated empty elements (space before)
7632 Parser hook: basic input
7646 Parser hook: case insensitive
7660 Parser hook: case insensitive, redux
7673 Parser hook: nested tags
7677 <tag><tag></tag></tag>
7688 Parser hook: basic arguments
7690 <tag width=200 height = "100" depth = '50' square></tag>
7698 'square' => 'square',
7705 Parser hook: argument containing a forward slash (bug 5344)
7707 <tag filename='/tmp/bla'></tag>
7712 'filename' => '/tmp/bla',
7719 Parser hook: empty input using terminated empty elements (bug 2374)
7732 # </tag> should be output literally since there is no matching tag that begins it
7734 Parser hook: basic arguments using terminated empty elements (bug 2374)
7736 <tag width=200 height = "100" depth = '50' square/>
7746 'square' => 'square',
7755 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7759 Parser hook: static parser hook not inside a comment
7761 <statictag>hello, world</statictag>
7762 <statictag action=flush/>
7770 Parser hook: static parser hook inside a comment
7772 <!-- <statictag>hello, world</statictag> -->
7773 <statictag action=flush/>
7779 # Nested template calls; this case was broken by Parser.php rev 1.506,
7783 Template:One-parameter
7785 (My parameter is: {{{1}}})
7789 Template:Map-one-parameter
7795 Nested template calls
7797 {{Map-one-parameter|One-parameter|param}}
7799 <p>(My parameter is: param)
7808 Sanitizer: Closing of open tags
7810 <s></s><table></table>
7812 <s></s><table></table>
7817 Sanitizer: Closing of open but not closed tags
7826 Sanitizer: Closing of closed but not open tags
7835 Sanitizer: Closing of closed but not open table tags
7837 Table not started</td></tr></table>
7839 <p>Table not started</td></tr></table>
7844 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7846 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7848 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7853 Sanitizer: Validating the contents of the id attribute (bug 4515)
7859 Something, but definitely not <br id="9" />...
7863 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7867 <br id="foo" /><br id="foo" />
7869 Something need to be done. foo-2 ?
7873 Language converter: output gets cut off unexpectedly (bug 5757)
7877 this bit is safe: }-
7879 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7881 then we get cut off here: }-
7883 all additional text is vanished
7885 <p>this bit is safe: }-
7886 </p><p>but if we add a conversion instance: xxx
7887 </p><p>then we get cut off here: }-
7888 </p><p>all additional text is vanished
7893 Self closed html pairs (bug 5487)
7896 <center><font id="bug" />Centered text</center>
7897 <div><font id="bug2" />In div text</div>
7899 <center><font id="bug" />Centered text</center>
7900 <div><font id="bug2" />In div text</div>
7909 Punctuation: nbsp before exclamation
7913 <p>C'est grave !
7918 Punctuation: CSS !important (bug 11874)
7920 <div style="width:50% !important">important</div>
7922 <div style="width:50% !important">important</div>
7927 Punctuation: CSS ! important (bug 11874; with space after)
7929 <div style="width:50% ! important">important</div>
7931 <div style="width:50% ! important">important</div>
7937 HTML bullet list, closed tags (bug 5497)
7952 HTML bullet list, unclosed tags (bug 5497)
7969 HTML ordered list, closed tags (bug 5497)
7984 HTML ordered list, unclosed tags (bug 5497)
8001 HTML nested bullet list, closed tags (bug 5497)
8026 HTML nested bullet list, open tags (bug 5497)
8051 HTML nested ordered list, closed tags (bug 5497)
8076 HTML nested ordered list, open tags (bug 5497)
8101 HTML ordered list item with parameters oddity
8103 <ol><li id="fragment">One</li></ol>
8105 <ol><li id="fragment">One</li></ol>
8110 bug 5918: autonumbering
8112 [http://first/] [http://second] [ftp://ftp]
8116 [mailto:enclosed@mail.tld With target]
8118 [mailto:enclosed@mail.tld]
8120 mailto:inline@mail.tld
8122 <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>
8123 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8124 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8125 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8126 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8132 # Security and HTML correctness
8133 # From Nick Jenkins' fuzz testing
8137 Fuzz testing: Parser13
8152 Fuzz testing: Parser14
8157 <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>
8158 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8160 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8167 Fuzz testing: Parser14-table
8172 <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>
8173 <table style="__TOC__">
8179 # Known to produce bogus xml (extra </td>)
8181 Fuzz testing: Parser16
8201 Fuzz testing: Parser21
8204 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8209 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8219 Fuzz testing: Parser22
8221 http://===r:::https://b
8225 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8233 # Known to produce bad XML for now
8235 Fuzz testing: Parser24
8242 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8243 <br style="onmouseover='alert(document.cookie);' " />
8245 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8250 <u class="|">}}}} >
8251 <br style="onmouseover='alert(document.cookie);'" />
8253 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8262 # Note: the current result listed for this is not what the original one was,
8263 # but the original bug was JavaScript injection, which is fixed in any case.
8264 # It's not clear that the original result listed was any more correct than the
8265 # current one. Original result:
8268 # <li class="||">
8269 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8271 Fuzz testing: Parser25 (bug 6055)
8277 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8279 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8284 Fuzz testing: URL adjacent extension (with space, clean)
8287 http://example.com <nowiki>junk</nowiki>
8289 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8294 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8297 http://example.com<nowiki>junk</nowiki>
8299 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8304 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8307 http://example.com<pre>junk</pre>
8309 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8314 Fuzz testing: image with bogus manual thumbnail
8316 [[Image:foobar.jpg|thumbnail= ]]
8318 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8323 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8325 <pre dir=" "></pre>
8327 <pre dir=" "></pre>
8332 Parsing optional HTML elements (Bug 6171)
8337 <td> Some tabular data</td>
8338 <td> More tabular data ...
8339 <td> And yet som tabular data</td>
8345 <td> Some tabular data</td>
8346 <td> More tabular data ...
8347 </td><td> And yet som tabular data</td>
8354 Correct handling of <td>, <tr> (Bug 6171)
8359 <td> Some tabular data</td>
8360 <td> More tabular data ...</td>
8361 <td> And yet som tabular data</td>
8367 <td> Some tabular data</td>
8368 <td> More tabular data ...</td>
8369 <td> And yet som tabular data</td>
8377 Parsing crashing regression (fr:JavaScript)
8381 <p></body></x>
8386 Inline wiki vs wiki block nesting
8392 <p><b>Bold paragraph</b>
8393 </p><p>New wiki paragraph
8398 Inline HTML vs wiki block nesting
8406 <p><b>Bold paragraph</b>
8407 </p><p>New wiki paragraph
8411 # Original result was this:
8412 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8414 # While that might be marginally more intuitive, maybe, the six-apostrophe
8415 # construct is clearly pathological and the result stated here (which is what
8416 # the parser actually does) is about as reasonable as anything.
8418 Mixing markup for italics and bold
8421 '''bold''''''bold''bolditalics'''''
8423 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8431 Article for special page transclusion test
8435 Special page transclusion
8438 {{Special:Prefixindex/Xyzzyx}}
8440 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8445 Special page transclusion twice (bug 5021)
8448 {{Special:Prefixindex/Xyzzyx}}
8449 {{Special:Prefixindex/Xyzzyx}}
8451 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8452 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8457 Transclusion of default MediaWiki message
8459 {{MediaWiki:Mainpage}}
8466 Transclusion of nonexistent MediaWiki message
8468 {{MediaWiki:Mainpagexxx}}
8470 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8475 Transclusion of MediaWiki message with underscore
8477 {{MediaWiki:history_short}}
8484 Transclusion of MediaWiki message with space
8486 {{MediaWiki:history short}}
8493 Invalid header with following text
8503 Section extraction test (section 0)
8523 Section extraction test (section 1)
8545 Section extraction test (section 2)
8566 Section extraction test (section 3)
8586 Section extraction test (section 4)
8610 Section extraction test (section 5)
8630 Section extraction test (section 6)
8651 Section extraction test (section 7)
8671 Section extraction test (section 8)
8691 Section extraction test (section 9)
8712 Section extraction test (section 10)
8732 Section extraction test (nonexistent section 11)
8751 Section extraction test with bogus heading (section 1)
8756 ==bogus== not a legal section
8760 ==bogus== not a legal section
8764 Section extraction test with bogus heading (section 2)
8769 ==bogus== not a legal section
8776 Section extraction test with comment after heading (section 1)
8788 Section extraction test with comment after heading (section 2)
8800 Section extraction test with bogus <nowiki> heading (section 1)
8805 ==bogus== <nowiki>not a legal section</nowiki>
8809 ==bogus== <nowiki>not a legal section</nowiki>
8813 Section extraction test with bogus <nowiki> heading (section 2)
8818 ==bogus== <nowiki>not a legal section</nowiki>
8825 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8826 # instead of respecting commented sections
8828 Section extraction prefixed by comment (section 1)
8839 Section extraction prefixed by comment (section 2)
8850 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8851 # instead of respecting HTML-style headings
8853 Section extraction, mixed wiki and html (section 1)
8869 Section extraction, mixed wiki and html (section 2)
8885 # Formerly testing for bug 3342
8887 Section extraction, heading surrounded by <noinclude>
8891 <noinclude>==unmarked==</noinclude>
8897 # Test behaviour of bug 19910
8899 Sectiion with all-equals
8904 The line above must have a trailing space
8907 But just in case it doesn't...
8911 But just in case it doesn't...
8915 Section replacement test (section 0)
8946 Section replacement test (section 1)
8975 Section replacement test (section 2)
9005 Section replacement test (section 3)
9036 Section replacement test (section 4)
9063 Section replacement test (section 5)
9094 Section replacement test (section 6)
9124 Section replacement test (section 7)
9155 Section replacement test (section 8)
9186 Section replacement test (section 9)
9215 Section replacement test (section 10)
9245 Section replacement test with initial whitespace (bug 13728)
9249 Preformatted initial line
9253 Preformatted initial line
9260 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9272 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9285 Section extraction, <pre> around bogus header (bug 10309)
9302 Section replacement, <pre> around bogus header (bug 10309)
9304 noxml replace=2,"xxx"
9325 Handling of 
 in URLs
9329 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9336 5 quotes, code coverage +1 line
9343 Special:Search page linking.
9347 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9362 * {{SUBJECTPAGENAME}}
9363 * {{SUBJECTPAGENAMEE}}
9370 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9372 <ul><li> Parser test
9373 </li><li> Parser test
9374 </li><li> Parser test
9375 </li><li> Parser_test
9376 </li><li> Parser test
9377 </li><li> Parser_test
9378 </li><li> Talk:Parser test
9379 </li><li> Talk:Parser_test
9380 </li><li> Parser test
9381 </li><li> Parser_test
9388 </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>
9392 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9402 image4 |300px| centre
9403 image5.svg| http://///////
9408 <ul class="gallery">
9409 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9410 <div style="height: 150px;">Image1.png</div>
9411 <div class="gallerytext">
9414 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9415 <div style="height: 150px;">Image2.gif</div>
9416 <div class="gallerytext">
9421 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9422 <div style="height: 150px;">Image3</div>
9423 <div class="gallerytext">
9426 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9427 <div style="height: 150px;">Image4</div>
9428 <div class="gallerytext">
9433 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9434 <div style="height: 150px;">Image5.svg</div>
9435 <div class="gallerytext">
9436 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9440 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9441 <div style="height: 150px;">* image6</div>
9442 <div class="gallerytext">
9450 Gallery (with options)
9452 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9453 File:Nonexistant.jpg|caption
9454 File:Nonexistant.jpg
9455 image:foobar.jpg|some '''caption''' [[Main Page]]
9457 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9460 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9461 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9462 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9463 <div style="height: 70px;">Nonexistant.jpg</div>
9464 <div class="gallerytext">
9469 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9470 <div style="height: 70px;">Nonexistant.jpg</div>
9471 <div class="gallerytext">
9474 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9475 <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>
9476 <div class="gallerytext">
9477 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9481 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9482 <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>
9483 <div class="gallerytext">
9486 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9487 <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>
9488 <div class="gallerytext">
9498 Gallery with wikitext inside caption
9501 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9502 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9505 <ul class="gallery">
9506 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9507 <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>
9508 <div class="gallerytext">
9509 <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>
9513 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9514 <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>
9515 <div class="gallerytext">
9516 <p>This is a test template
9525 gallery (with showfilename option)
9527 <gallery showfilename>
9528 File:Nonexistant.jpg|caption
9529 File:Nonexistant.jpg
9530 image:foobar.jpg|some '''caption''' [[Main Page]]
9534 <ul class="gallery">
9535 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9536 <div style="height: 150px;">Nonexistant.jpg</div>
9537 <div class="gallerytext">
9538 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9543 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9544 <div style="height: 150px;">Nonexistant.jpg</div>
9545 <div class="gallerytext">
9546 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9550 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9551 <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>
9552 <div class="gallerytext">
9553 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9554 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9558 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9559 <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>
9560 <div class="gallerytext">
9561 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9570 Gallery (with namespace-less filenames)
9573 File:Nonexistant.jpg
9579 <ul class="gallery">
9580 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9581 <div style="height: 150px;">Nonexistant.jpg</div>
9582 <div class="gallerytext">
9585 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9586 <div style="height: 150px;">Nonexistant.jpg</div>
9587 <div class="gallerytext">
9590 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9591 <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>
9592 <div class="gallerytext">
9595 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9596 <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>
9597 <div class="gallerytext">
9605 HTML Hex character encoding (spells the word "JavaScript")
9607 JavaScript
9609 <p>JavaScript
9614 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9618 <p>&#xsee;&#XSEE;
9623 HTML Hex character encoding mixed case
9632 __FORCETOC__ override
9644 ISBN 978-0-1234-56 789
9646 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9651 ISBN followed by 5 spaces
9662 ISBN ISBN 1234567890
9664 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9669 Bug 22905: <abbr> followed by ISBN followed by </a>
9671 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9673 <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>
9682 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9687 Double RFC with a wiki link
9691 <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>
9700 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9705 Centre-aligned image
9707 [[Image:foobar.jpg|centre]]
9709 <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>
9716 [[Image:foobar.jpg|none]]
9718 <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>
9723 Width + Height sized image (using px) (height is ignored)
9725 [[Image:foobar.jpg|640x480px]]
9727 <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>
9732 Width-sized image (using px, no following whitespace)
9734 [[Image:foobar.jpg|640px]]
9736 <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>
9741 Width-sized image (using px, with following whitespace - test regression from r39467)
9743 [[Image:foobar.jpg|640px ]]
9745 <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>
9750 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9752 [[Image:foobar.jpg| 640px]]
9754 <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>
9759 Another italics / bold test
9767 # Note the results may be incorrect, as parserTest output included this:
9768 # XML error: Mismatched tag at byte 6120:
9769 # ...<dd> </dt></dl> </dd...
9777 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9788 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9790 Images with the "|" character in the comment
9792 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9794 <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>
9799 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9801 <html><script>alert(1);</script></html>
9803 <p><html><script>alert(1);</script></html>
9808 HTML with raw HTML ($wgRawHtml==true)
9812 <html><script>alert(1);</script></html>
9814 <p><script>alert(1);</script>
9819 Parents of subpages, one level up
9821 subpage title=[[Subpage test/L1/L2/L3]]
9825 <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>
9831 Parents of subpages, one level up, not named
9833 subpage title=[[Subpage test/L1/L2/L3]]
9837 <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>
9844 Parents of subpages, two levels up
9846 subpage title=[[Subpage test/L1/L2/L3]]
9852 <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
9853 </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>
9858 Parents of subpages, two levels up, without trailing slash or name.
9860 subpage title=[[Subpage test/L1/L2/L3]]
9869 Parents of subpages, two levels up, with lots of extra trailing slashes.
9871 subpage title=[[Subpage test/L1/L2/L3]]
9875 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9880 Definition list code coverage
9886 <dl><dt> title  </dt><dd> def
9887 </dd><dt> title </dt><dd> def
9888 </dd><dt>title</dt><dd> def
9894 Don't fall for the self-closing div
9896 <div>hello world</div/>
9898 <div>hello world</div>
9907 <p>[[:Template:Msg]]
9916 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9920 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9922 Always escape literal '>' in output, not just after '<'
9936 <p>This is a test template
9937 This is a test template
9949 Inclusion of !userCanEdit() content
9953 <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>
9959 Out-of-order TOC heading levels
9968 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9970 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9972 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9973 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9976 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9978 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9979 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9984 <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>
9985 <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>
9986 <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>
9987 <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>
9988 <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>
9989 <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>
9995 ISBN with a dummy number
10005 ISBN with space-delimited number
10009 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10015 ISBN with multiple spaces, no number
10034 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10035 </p><p>ISBN 12345678901
10041 ISBN with trailing year (bug 8110)
10043 ISBN 1-234-56789-0 - 2006
10045 ISBN 1 234 56789 0 - 2006
10047 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10048 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10056 {{anchorencode:foo bar©#%n}}
10058 <p>foo_bar.C2.A9.23.25n
10063 anchorencode trims spaces
10065 {{anchorencode: __pretty__please__}}
10072 anchorencode deals with links
10074 {{anchorencode: [[hello|world]] [[hi]]}}
10081 anchorencode deals with templates
10083 {{anchorencode: {{Foo}} }}
10090 anchorencode encodes like the TOC generator: (bug 18431)
10092 === _ +:.3A%3A&&]] ===
10093 {{anchorencode: _ +:.3A%3A&&]] }}
10096 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10097 <p>.2B:.3A.253A.26.26.5D.5D
10101 # Expected output in the following test is not necessarily expected (there
10102 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10103 # only testing for well-formedness.
10105 Bug 6200: blockquotes and paragraph formatting
10125 Bug 8293: Use of center tag ruins paragraph formatting
10147 ### Language variants related tests
10150 Self-link in language variants
10152 title=[[Dunav]] language=sr
10154 Both [[Dunav]] and [[Дунав]] are names for this river.
10156 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10162 Link to pages in language variants
10166 Main Page can be written as [[Маин Паге]]
10168 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10174 Multiple links to pages in language variants
10178 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10180 <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>.
10186 Simple template in language variants
10192 <p>This is a test template
10198 Template with explicit namespace in language variants
10204 <p>This is a test template
10210 Basic test for template parameter in language variants
10214 {{парамтест|param=foo}}
10216 <p>This is a test template with parameter foo
10222 Simple category in language variants
10226 [[Category:МедиаWики Усер'с Гуиде]]
10228 <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>
10233 Stripping -{}- tags (language variants)
10237 Latin proverb: -{Ne nuntium necare}-
10239 <p>Latin proverb: Ne nuntium necare
10245 Prevent conversion with -{}- tags (language variants)
10247 language=sr variant=sr-ec
10249 Latinski: -{Ne nuntium necare}-
10251 <p>Латински: Ne nuntium necare
10257 Prevent conversion of text with -{}- tags (language variants)
10259 language=sr variant=sr-ec
10261 Latinski: -{Ne nuntium necare}-
10263 <p>Латински: Ne nuntium necare
10269 Prevent conversion of links with -{}- tags (language variants)
10271 language=sr variant=sr-ec
10275 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10281 -{}- tags within headlines (within html for parserConvert())
10283 language=sr variant=sr-ec
10287 <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>
10293 Explicit definition of language variant alternatives
10295 language=zh variant=zh-tw
10297 -{zh:China;zh-tw:Taiwan}-, not China
10299 <p>Taiwan, not China
10305 Explicit session-wise language variant mapping (A flag and - flag)
10307 language=zh variant=zh-tw
10309 Taiwan is not China.
10310 But -{A|zh:China;zh-tw:Taiwan}- is China,
10311 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10312 and -{China}- is China.
10314 <p>Taiwan is not China.
10315 But Taiwan is Taiwan,
10316 (This should be stripped!)
10317 and China is China.
10322 Explicit session-wise language variant mapping (H flag for hide)
10324 language=zh variant=zh-tw
10326 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10329 <p>(This should be stripped!)
10335 Adding explicit conversion rule for title (T flag)
10337 language=zh variant=zh-tw showtitle
10339 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10342 <p>Should be stripped!
10347 Testing that changing the language variant here in the tests actually works
10349 language=zh variant=zh showtitle
10351 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10354 <p>Should be stripped!
10359 Bug 24072: more test on conversion rule for title
10361 language=zh variant=zh-tw showtitle
10363 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10364 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10367 <p>This should be stripped!
10368 This won't take interferes with the title rule.
10373 Raw output of variant escape tags (R flag)
10375 language=zh variant=zh-tw
10377 Raw: -{R|zh:China;zh-tw:Taiwan}-
10379 <p>Raw: zh:China;zh-tw:Taiwan
10384 Nested using of manual convert syntax
10386 language=zh variant=zh-hk
10388 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10390 <p>Nested: Hello Hong Kong!
10395 Do not convert roman numbers to language variants
10397 language=sr variant=sr-ec
10401 <p>Фридрих IV је цар.
10406 Unclosed language converter markup "-{"
10417 Don't convert raw rule "-{R|=>}-" to "=>"
10434 Bug 529: Uncovered bullet
10444 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10445 # Templates in Wikipedia rely on this behavior, as tidy has always been
10446 # enabled there. These tests are normally run *without* tidy, so specify the
10447 # full output here.
10448 # To test realistic parsing behavior, apply a tidy-like transformation to both
10449 # the expected output and your parser's output.
10451 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10453 ******* Foo {{bullet}}
10455 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10468 Bug 529: Uncovered table already at line-start
10491 Bug 529: Uncovered bullet in parser function result
10493 * Foo {{lc:{{bullet}} }}
10502 Bug 5678: Double-parsed template argument
10504 {{lc:{{{1}}}|hello}}
10511 Bug 5678: Double-parsed template invocation
10513 {{lc:{{paramtest {{!}} param = hello }} }}
10515 <p>{{paramtest | param = hello }}
10520 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10523 title=[[Main Page]]
10525 {{PRVNÍVELKÉ:ěščř}}
10526 {{prvnívelké:ěščř}}
10546 Morwen/13: Unclosed link followed by heading
10553 <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>
10558 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10565 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10570 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10577 <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>
10592 Paragraphs inside divs (no extra line breaks)
10604 Paragraphs inside divs (extra line break on open)
10619 Paragraphs inside divs (extra line break on close)
10634 Paragraphs inside divs (extra line break on open and close)
10651 Nesting tags, paragraphs on lines which begin with <div>
10655 <div></div><strong>A
10664 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10666 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10670 <blockquote>Line one
10672 Line two</blockquote>
10674 <blockquote>Line one
10675 Line two</blockquote>
10680 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10687 Line two</blockquote>
10692 Line two</blockquote>
10697 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10701 <blockquote>Line one
10706 <blockquote>Line one
10714 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10733 Paragraphs inside blockquotes/divs (no extra line breaks)
10735 <blockquote><div>Line one
10737 Line two</div></blockquote>
10739 <blockquote><div>Line one
10740 Line two</div></blockquote>
10745 Paragraphs inside blockquotes/divs (extra line break on open)
10750 Line two</div></blockquote>
10755 Line two</div></blockquote>
10760 Paragraphs inside blockquotes/divs (extra line break on close)
10762 <blockquote><div>Line one
10765 </div></blockquote>
10767 <blockquote><div>Line one
10770 </div></blockquote>
10775 Paragraphs inside blockquotes/divs (extra line break on open and close)
10781 </div></blockquote>
10787 </div></blockquote>
10792 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10794 wgLinkHolderBatchSize=0
10800 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10801 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10802 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10807 Free external link invading image caption
10809 [[Image:Foobar.jpg|thumb|http://x|hello]]
10811 <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>
10816 Bug 15196: localised external link numbers
10820 [http://en.wikipedia.org/]
10822 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10827 Multibyte character in padleft
10829 {{padleft:-Hello|7|Æ}}
10836 Multibyte character in padright
10838 {{padright:Hello-|7|Æ}}
10847 wgUseDynamicDates=1
10851 <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>
10856 formatdate parser function
10858 {{#formatdate:2009-03-24}}
10860 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10865 formatdate parser function, with default format
10867 {{#formatdate:2009-03-24|mdy}}
10869 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10874 Linked date with autoformatting disabled
10876 wgUseDynamicDates=false
10880 <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>
10885 Spacing of numbers in formatted dates
10887 {{#formatdate:January 15}}
10889 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10894 Spacing of numbers in formatted dates (linked)
10896 wgUseDynamicDates=true
10900 <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>
10905 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
10907 language=nl title=[[MediaWiki:Common.css]]
10909 {{#formatdate:2009-03-24|dmy}}
10911 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10924 Edit comment with link
10928 I like the [[Main Page]] a lot
10930 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10934 Edit comment with link and link text
10938 I like the [[Main Page|best pages]] a lot
10940 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10944 Edit comment with link and link text with suffix
10948 I like the [[Main Page|best page]]s a lot
10950 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10954 Edit comment with section link (non-local, eg in history list)
10956 comment title=[[Main Page]]
10958 /* External links */ removed bogus entries
10960 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10964 Edit comment with section link and text before it (non-local, eg in history list)
10966 comment title=[[Main Page]]
10968 pre-comment text /* External links */ removed bogus entries
10970 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>
10974 Edit comment with section link (local, eg in diff view)
10976 comment local title=[[Main Page]]
10978 /* External links */ removed bogus entries
10980 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10984 Edit comment with subpage link (bug 14080)
10988 title=[[Subpage test]]
10990 Poked at a [[/subpage]] here...
10992 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10996 Edit comment with subpage link and link text (bug 14080)
11000 title=[[Subpage test]]
11002 Poked at a [[/subpage|neat little page]] here...
11004 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11008 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11011 title=[[Subpage test]]
11013 Poked at a [[/subpage]] here...
11015 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11019 Edit comment with bare anchor link (local, as on diff)
11023 title=[[Main Page]]
11027 <a href="#section">#section</a>
11031 Edit comment with bare anchor link (non-local, as on history)
11034 title=[[Main Page]]
11038 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11042 Anchor starting with underscore
11046 <p><a href="#_ref">One</a>
11051 Id starting with underscore
11053 <div id="_ref"></div>
11055 <div id="_ref"></div>
11060 Space normalisation on autocomment (bug 22784)
11063 title=[[Main Page]]
11065 /* __hello__world__ */
11067 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11071 percent-encoding and + signs in comments (Bug 26410)
11075 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11077 <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>
11081 Bad images - basic functionality
11090 Bad images - bug 16039: text after bad image disappears
11104 Verify that displaytitle works (bug #22501) no displaytitle
11108 wgAllowDisplayTitle=true
11109 wgRestrictDisplayTitle=false
11111 this is not the the title
11114 <p>this is not the the title
11119 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11124 wgAllowDisplayTitle=true
11125 wgRestrictDisplayTitle=false
11127 this is not the the title
11128 {{DISPLAYTITLE:whatever}}
11131 <p>this is not the the title
11136 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11141 wgAllowDisplayTitle=true
11142 wgRestrictDisplayTitle=true
11144 this is not the the title
11145 {{DISPLAYTITLE:whatever}}
11148 <p>this is not the the title
11153 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11158 wgAllowDisplayTitle=true
11159 wgRestrictDisplayTitle=true
11161 this is not the the title
11162 {{DISPLAYTITLE:screen}}
11165 <p>this is not the the title
11170 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11175 wgAllowDisplayTitle=false
11177 this is not the the title
11178 {{DISPLAYTITLE:screen}}
11181 <p>this is not the the title
11182 <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>
11187 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11192 wgAllowDisplayTitle=false
11194 this is not the the title
11197 <p>this is not the the title
11202 preload: check <noinclude> and <includeonly>
11206 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11212 preload: check <onlyinclude>
11216 Goodbye <onlyinclude>Hello world</onlyinclude>
11222 preload: can pass tags through if we want to
11226 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11228 <includeonly>Hello world</includeonly>
11232 preload: check that it doesn't try to do tricks
11236 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11238 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11242 Play a bit with r67090 and bug 3158
11246 <div style="width:50% !important"> </div>
11247 <div style="width:50% !important"> </div>
11248 <div style="width:50% !important"> </div>
11249 <div style="border : solid;"> </div>
11251 <div style="width:50% !important"> </div>
11252 <div style="width:50% !important"> </div>
11253 <div style="width:50% !important"> </div>
11254 <div style="border : solid;"> </div>
11259 HTML5 data attributes
11261 <span data-foo="bar">Baz</span>
11262 <p data-abc-def_hij="">Quuz</p>
11264 <p><span data-foo="bar">Baz</span>
11266 <p data-abc-def_hij="">Quuz</p>
11271 percent-encoding and + signs in internal links (Bug 26410)
11273 [[User:+%]] [[Page+title%]]
11274 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11275 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11276 [[%33%45]] [[%33%45+]]
11278 <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>
11279 <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>
11280 <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>
11281 <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>
11286 Special characters in embedded file links (bug 27679)
11288 [[File:Contains & ampersand.jpg]]
11289 [[File:Does not exist.jpg|Title with & ampersand]]
11291 <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>
11292 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11298 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11300 Text's been normalized?
11302 <p>Text's been normalized?
11307 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11309 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11311 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11316 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11318 [http://www.example.org/ ideograms]
11320 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11325 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11327 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11329 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11353 Bug 31098 Template which includes system messages which includes the template
11357 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11358 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11363 Deprecated presentational attributes are converted to css
11366 | valign=top align=left width=100 height=25% | Asdf
11368 <ul type="disc"></ul>
11372 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11374 <ul style="list-style-type: disc;"></ul>
11379 Bug31490 Turkish: ucfirst 'blah'
11390 Bug31490 Turkish: ucfirst 'ix'
11401 Bug31490 Turkish: lcfirst 'BLAH'
11412 Bug31490 Turkish: ucfırst (with a dotless i)
11418 <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>
11423 Bug31490 ucfırst (with a dotless i) with English language
11429 <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>
11434 Bug 26375: TOC with italics
11436 title=[[Main Page]]
11439 == ''Lost'' episodes ==
11441 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11443 <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>
11446 <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>
11451 Bug 26375: TOC with bold
11453 title=[[Main Page]]
11456 == '''should be bold''' then normal text ==
11458 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11460 <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>
11463 <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>
11468 Bug 33845: Headings become cursive in TOC when they contain an image
11470 title=[[Main Page]]
11473 == Image [[Image:foobar.jpg]] ==
11475 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11477 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11480 <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>
11485 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11487 title=[[Main Page]]
11490 == <blockquote>Quote</blockquote> ==
11492 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11494 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11497 <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>
11502 Unclosed tags in TOC
11504 title=[[Main Page]]
11508 <small>Hanc marginis exiguitas non caperet.</small>
11511 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11513 <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>
11516 <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>
11517 <p><small>Hanc marginis exiguitas non caperet.</small>
11523 Multiple tags in TOC
11526 == <i>Foo</i> <b>Bar</b> ==
11528 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11530 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11532 <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>
11533 <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>
11536 <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>
11537 <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>
11542 Tags with parameters in TOC
11545 == <sup class="in-h2">Hello</sup> ==
11547 == <sup class="a > b">Evilbye</sup> ==
11549 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11551 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11552 <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>
11555 <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>
11556 <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>
11561 span tags with directionality in TOC
11564 == <span dir="ltr">C++</span> ==
11566 == <span dir="rtl">זבנג!</span> ==
11568 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11570 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11572 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11574 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11576 <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>
11577 <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>
11578 <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>
11579 <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>
11580 <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>
11583 <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>
11584 <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>
11585 <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>
11586 <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>
11587 <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>
11594 == {{int:headline_sample}} ==
11598 Bug 32057: Title needed when expanding <h> nodes.
11600 title=[[Main Page]]
11604 <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>
11609 Strip marker in urlencode
11611 {{urlencode:x<nowiki/>y}}
11612 {{urlencode:x<nowiki/>y|wiki}}
11613 {{urlencode:x<nowiki/>y|path}}
11640 Strip marker in formatNum
11642 {{formatnum:1<nowiki/>2}}
11643 {{formatnum:1<nowiki/>2|R}}
11651 Strip marker in grammar
11655 {{grammar:elative|foo<nowiki/>bar}}
11662 Strip marker in padleft
11664 {{padleft:|2|x<nowiki/>y}}
11671 Strip marker in padright
11673 {{padright:|2|x<nowiki/>y}}
11680 Strip marker in anchorencode
11682 {{anchorencode:x<nowiki/>y}}
11689 nowiki inside link inside heading (bug 18295)
11691 ==[[foo|x<nowiki>y</nowiki>z]]==
11693 <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>
11698 new support for bdi element (bug 31817)
11700 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11702 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11707 Ignore pipe between table row attributes
11711 |- id=foo | style='color: red'
11719 <tr id="foo" style="color: red">
11726 Gallery override link with WikiLink (bug 34852)
11729 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11732 <ul class="gallery">
11733 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11734 <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>
11735 <div class="gallerytext">
11745 Gallery override link with absolute external link (bug 34852)
11748 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11751 <ul class="gallery">
11752 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11753 <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>
11754 <div class="gallerytext">
11764 Gallery override link with malicious javascript (bug 34852)
11767 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11770 <ul class="gallery">
11771 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11772 <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>
11773 <div class="gallerytext">
11783 Language parser function
11792 Padleft and padright as substr
11794 {{padleft:|3|abcde}}
11795 {{padright:|3|abcde}}
11803 Bug 34939 - Case insensitive link parsing ([HttP://])
11805 [HttP://MediaWiki.Org/]
11807 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11812 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11814 [HttP://MediaWiki.Org/ MediaWiki]
11816 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11821 Bug 34939 - Case insensitive link parsing (HttP://)
11823 HttP://MediaWiki.Org/
11825 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11830 ### Parsoids-specific tests
11831 ### Parsoid-PHP parser incompatibilities
11834 1. SOL-sensitive wikitext tokens as template-args
11848 #### The following section of tests are primarily to test
11849 #### wikitext escaping capabilities of Parsoid.
11850 #### A lot of the tests are disabled for the PHP parser either
11851 #### because of minor newline diffs or other reasons.
11852 #### As Parsoid serializer can handle newlines and other HTML
11853 #### more robustly, some of these tests might get reenabled
11854 #### for the PHP parser.
11856 #### --------------- Headings ---------------
11858 #### 1. Nested inside html <h1>=foo=</h1>
11859 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11860 #### 3. Nested inside html with wikitext split by html tags
11861 #### 4. No escape needed
11862 #### 5. Empty headings <h1></h1>
11863 #### 6. Heading chars in SOL context
11864 #### ----------------------------------------
11866 Headings: 0. Unnested
11868 <nowiki>=foo=</nowiki>
11870 <nowiki>=foo</nowiki>''a''=
11873 </p><p>=foo<i>a</i>=
11878 Headings: 1. Nested inside html
11882 =<nowiki>=foo=</nowiki>=
11883 ==<nowiki>=foo=</nowiki>==
11884 ===<nowiki>=foo=</nowiki>===
11885 ====<nowiki>=foo=</nowiki>====
11886 =====<nowiki>=foo=</nowiki>=====
11887 ======<nowiki>=foo=</nowiki>======
11898 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11903 <nowiki>*bar</nowiki>
11907 <nowiki>=bar=</nowiki>
11915 Headings: 3. Nested inside html with wikitext split by html tags
11919 =<nowiki>=</nowiki>'''bold'''foo==
11921 <h1>=<b>bold</b>foo=</h1>
11925 Headings: 4. No escaping needed (testing just h1 and h2)
11940 <h1><i>=</i>foo=</h1>
11945 Headings: 5. Empty headings
11949 =<nowiki></nowiki>=
11950 ==<nowiki></nowiki>==
11951 ===<nowiki></nowiki>===
11952 ====<nowiki></nowiki>====
11953 =====<nowiki></nowiki>=====
11954 ======<nowiki></nowiki>======
11965 Headings: 6. Heading chars in SOL context
11969 <!--cmt--><nowiki>=h1=</nowiki>
11975 #### --------------- Lists ---------------
11976 #### 0. Outside nests (*foo, etc.)
11977 #### 1. Nested inside html <ul><li>*foo</li></ul>
11978 #### 2. Inside definition lists
11979 #### 3. Only bullets at start should be escaped
11980 #### 4. No escapes needed
11981 #### 5. No unnecessary escapes
11982 #### 6. Escape bullets in SOL position
11983 #### 7. Escape bullets in a multi-line context
11984 #### ----------------------------------------
11987 Lists: 0. Outside nests
11989 <nowiki>*foo</nowiki>
11991 <nowiki>#foo</nowiki>
11999 Lists: 1. Nested inside html
12001 *<nowiki>*foo</nowiki>
12003 *<nowiki>#foo</nowiki>
12005 *<nowiki>:foo</nowiki>
12007 *<nowiki>;foo</nowiki>
12009 #<nowiki>*foo</nowiki>
12011 #<nowiki>#foo</nowiki>
12013 #<nowiki>:foo</nowiki>
12015 #<nowiki>;foo</nowiki>
12037 Lists: 2. Inside definition lists
12039 ;<nowiki>;foo</nowiki>
12041 ;<nowiki>:foo</nowiki>
12043 ;<nowiki>:foo</nowiki>
12046 :<nowiki>:foo</nowiki>
12061 Lists: 3. Only bullets at start of text should be escaped
12063 *<nowiki>*foo*bar</nowiki>
12065 *<nowiki>*foo</nowiki>''it''*bar
12069 <ul><li>*foo<i>it</i>*bar
12075 Lists: 4. No escapes needed
12087 <ul><li><i>foo</i>*bar
12089 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12094 Lists: 5. No unnecessary escapes
12096 * bar <span><nowiki>[[foo]]</nowiki></span>
12098 *=bar <span><nowiki>[[foo]]</nowiki></span>
12100 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12102 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12104 *=bar <span>foo]]</span>=
12106 <ul><li> bar <span>[[foo]]</span>
12108 <ul><li>=bar <span>[[foo]]</span>
12110 <ul><li>[[bar <span>[[foo]]</span>
12112 <ul><li>]]bar <span>[[foo]]</span>
12114 <ul><li>=bar <span>foo]]</span>=
12120 Lists: 6. Escape bullets in SOL position
12124 <!--cmt--><nowiki>*foo</nowiki>
12131 Lists: 7. Escape bullets in a multi-line context
12141 #### --------------- HRs ---------------
12142 #### 1. Single line
12143 #### -----------------------------------
12146 HRs: 1. Single line
12151 <nowiki>----</nowiki>
12153 <nowiki>=foo=</nowiki>
12155 <nowiki>*foo</nowiki>
12162 #### --------------- Tables ---------------
12163 #### 1a. Simple example
12164 #### 1b. No escaping needed (!foo)
12165 #### 1c. No escaping needed (|foo)
12166 #### 1d. No escaping needed (|}foo)
12168 #### 2a. Nested in td (<td>foo|bar</td>)
12169 #### 2b. Nested in td (<td>foo||bar</td>)
12170 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12172 #### 3a. Nested in th (<th>foo!bar</th>)
12173 #### 3b. Nested in th (<th>foo!!bar</th>)
12174 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12178 #### 4c. No escaping needed
12179 #### --------------------------------------
12182 Tables: 1a. Simple example
12193 Tables: 1b. No escaping needed
12202 Tables: 1c. No escaping needed
12211 Tables: 1d. No escaping needed
12220 Tables: 2a. Nested in td
12225 |<nowiki>foo|bar</nowiki>
12235 Tables: 2b. Nested in td
12240 |<nowiki>foo||bar</nowiki>
12241 |''it''<nowiki>foo||bar</nowiki>
12246 </td><td><i>it</i>foo||bar
12252 Tables: 2c. Nested in td -- no escaping needed
12267 Tables: 3a. Nested in th
12282 Tables: 3b. Nested in th
12287 !<nowiki>foo!!bar</nowiki>
12297 Tables: 3c. Nested in th -- no escaping needed
12312 Tables: 4a. Escape -
12320 |<nowiki>-bar</nowiki>
12324 <tr><th>-bar</th></tr>
12325 <tr><td>-bar</td></tr>
12330 Tables: 4b. Escape +
12338 |<nowiki>+bar</nowiki>
12342 <tr><th>+bar</th></tr>
12343 <tr><td>+bar</td></tr>
12348 Tables: 4c. No escaping needed
12362 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12363 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12367 #### --------------- Links ---------------
12368 #### 1. Quote marks in link text
12369 #### 2. Wikilinks: Escapes needed
12370 #### 3. Wikilinks: No escapes needed
12371 #### 4. Extlinks: Escapes needed
12372 #### 5. Extlinks: No escapes needed
12373 #### --------------------------------------
12375 Links 1. Quote marks in link text
12379 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12381 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12385 Links 2. WikiLinks: Escapes needed
12389 [[Foo|<nowiki>[Foobar]</nowiki>]]
12390 [[Foo|<nowiki>Foobar]</nowiki>]]
12391 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12392 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12393 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12394 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12395 [[Foo|<nowiki>|Bar</nowiki>]]
12397 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12398 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12399 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12400 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12401 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12402 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12403 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12407 Links 3. WikiLinks: No escapes needed
12414 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12415 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12419 Links 4. ExtLinks: Escapes needed
12423 [http://google.com <nowiki>[google]</nowiki>]
12424 [http://google.com <nowiki>google]</nowiki>]
12426 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12427 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12431 Links 5. ExtLinks: No escapes needed
12435 [http://google.com [google]
12437 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12440 #### --------------- Quotes ---------------
12441 #### 1. Quotes inside <b> and <i>
12442 #### 2. Link fragments separated by <i> and <b> tags
12443 #### 3. Link fragments inside <i> and <b>
12444 #### --------------------------------------
12446 1. Quotes inside <b> and <i>
12448 ''<nowiki>'foo'</nowiki>''
12449 ''<nowiki>''foo''</nowiki>''
12450 ''<nowiki>'''foo'''</nowiki>''
12451 '''<nowiki>'foo'</nowiki>'''
12452 '''<nowiki>''foo''</nowiki>'''
12453 '''<nowiki>'''foo'''</nowiki>'''
12454 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12462 <b>foo'<i>bar'</i>baz</b>
12467 2. Link fragments separated by <i> and <b> tags
12469 [[''foo''<nowiki>hello]]</nowiki>
12471 [['''foo'''<nowiki>hello]]</nowiki>
12473 <p>[[<i>foo</i>hello]]
12474 </p><p>[[<b>foo</b>hello]]
12479 2. Link fragments inside <i> and <b>
12480 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12481 this is one of the shortcomings of this format)
12483 ''[[foo''<nowiki>]]</nowiki>
12485 '''[[foo'''<nowiki>]]</nowiki>
12488 </p><p><b>[[foo</b>]]
12492 #### --------------- Paragraphs ---------------
12493 #### 1. No unnecessary escapes
12494 #### --------------------------------------
12497 1. No unnecessary escapes
12499 bar <span><nowiki>[[foo]]</nowiki></span>
12501 =bar <span><nowiki>[[foo]]</nowiki></span>
12503 [[bar <span><nowiki>[[foo]]</nowiki></span>
12505 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12507 <nowiki>=bar </nowiki><span>foo]]</span>=
12509 <p>bar <span>[[foo]]</span>
12510 </p><p>=bar <span>[[foo]]</span>
12511 </p><p>[[bar <span>[[foo]]</span>
12512 </p><p>]]bar <span>[[foo]]</span>
12513 </p><p>=bar <span>foo]]</span>=
12517 #### --------------- PRE ------------------
12518 #### 1. Leading space in SOL context should be escaped
12519 #### --------------------------------------
12521 1. Leading space in SOL context should be escaped
12525 <nowiki> foo</nowiki>
12526 <!--cmt--><nowiki> foo</nowiki>
12533 #### --------------- HTML tags ---------------
12536 #### 3. multi-line html tag
12537 #### --------------------------------------
12543 <a href="http://google.com">google</a>
12545 <a href="http://google.com">google</a>
12551 <nowiki><div>foo</div>
12552 <div style="color:red">foo</div></nowiki>
12554 <p><div>foo</div>
12555 <div style="color:red">foo</div>
12560 3. multi-line html tag
12572 #### --------------- Others ---------------
12576 <nowiki>foo</nowiki>
12578 <p><nowiki>foo</nowiki>
12587 Try for 100% code coverage