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 Ident preformatting with inline content
802 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
819 Regression with preformatted in <center>
832 # Expected output in the following test is not really expected (there should be
833 # <pre> in the output) -- it's only testing for well-formedness.
835 Bug 6200: Preformatted in <blockquote>
848 <pre> with attributes (bug 3202)
850 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
852 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
857 <pre> with width attribute (bug 3202)
859 <pre width="8">Narrow screen goodies</pre>
861 <pre width="8">Narrow screen goodies</pre>
866 <pre> with forbidden attribute (bug 3202)
868 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
870 <pre width="8">Narrow screen goodies</pre>
875 <pre> with forbidden attribute values (bug 3202)
877 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
879 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
884 <nowiki> inside <pre> (bug 13238)
892 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
900 <pre><nowiki>Foo</nowiki></pre>
905 <nowiki> and <pre> preference (first one wins)
938 <nowiki></pre></nowiki>
945 Templates: Pre: 1a. Templates that break a line should suppress <pre>
953 Templates: Pre: 1b. Templates that break a line should suppress <pre>
963 Templates: Pre: 1c: Wrapping should be based on expanded content
975 Templates: Pre: 1d: Wrapping should be based on expanded content
996 Templates: Pre: 1e. Wrapping should be based on expanded content
1000 {{echo| foo}}{{echo| bar}}
1005 {{echo|<!--cmt--> foo}}
1007 <!--cmt-->{{echo| foo}}
1009 {{echo|{{echo| }}bar}}
1027 Templates: Pre: 1f: Wrapping should be based on expanded content
1064 Templates: Single-line variant of parameter whitespace stripping test
1070 {{echo|{{echo| a}}}}
1072 {{echo|1={{echo| a}}}}
1085 Templates: Strip whitespace from named parameters, but not positional ones
1113 ### Parsoid-centric tests for testing RT edge cases for pre
1117 1a. Pre and Comments
1130 1b. Pre and Comments
1143 1c. Pre and Comments
1193 3a. Pre and block tags (single-line html)
1201 <pre><span> foo </span>
1206 3b. Pre and block tags (pre-content on separate line)
1258 4. Multiple spaces at start-of-line
1277 ### Definition lists
1284 <dl><dt> name </dt><dd> Definition
1290 Definition list for indentation only
1294 <dl><dd> Indented text
1300 Definition list with no space
1304 <dl><dt>name</dt><dd>Definition
1310 Definition list with URL link
1312 ; http://example.com/ : definition
1314 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1320 Definition list with bracketed URL link
1322 ;[http://www.example.com/ Example]:Something about it
1324 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1330 Definition list with wikilink containing colon
1332 ; [[Help:FAQ]]: The least-read page on Wikipedia
1334 <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
1339 # At Brion's and JeLuF's insistence... :)
1341 Definition list with news link containing colon
1343 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1345 <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!
1351 Malformed definition list with colon
1353 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1355 <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
1361 Definition lists: colon in external link text
1363 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1365 <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
1371 Definition lists: colon in HTML attribute
1373 ;<b style="display: inline">bold</b>
1375 <dl><dt><b style="display: inline">bold</b>
1381 Definition lists: self-closed tag
1383 ;one<br/>two : two-line fun
1385 <dl><dt>one<br />two </dt><dd> two-line fun
1391 Bug 11748: Literal closing tags
1395 <dd>test test test test test</dd>
1397 <dd>test test test test test</dd>
1402 <dd>test test test test test</dd>
1404 <dd>test test test test test</dd>
1410 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1413 ; term : description
1419 <dl><dt> term </dt><dd> description
1430 Definition list with empty definition and following paragraph
1435 <dl><dt> term</dt><dd>
1442 Nested definition lists using html syntax
1459 Definition Lists: No nesting: Multiple dd's
1473 Definition Lists: Indentation: Regular
1489 Definition Lists: Indentation: Missing 1st level
1503 Definition Lists: Indentation: Multi-level indent
1507 <dl><dd><dl><dd><dl><dd>i3
1515 Definition Lists: Hacky use to indent tables
1522 should be left alone
1524 <dl><dd><dl><dd><table>
1529 </td></tr></table></dd></dl></dd></dl>
1531 should be left alone
1534 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1535 ## as an empty dt item. It also ignores all but the last ";" when followed
1536 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1537 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1540 ## Ex: ";;t2 ::d2" is transformed into:
1552 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1553 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1564 ## All Parsoid only definition list tests have this difference.
1566 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1567 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1570 Definition Lists: Nesting: Multi-level (Parsoid only)
1600 Definition Lists: Nesting: Test 2 (Parsoid only)
1620 Definition Lists: Nesting: Test 3 (Parsoid only)
1648 Definition Lists: Nesting: Test 4
1653 <dl><dd><dl><dd><dl><dt>t3
1663 Definition Lists: Mixed Lists: Test 1
1669 <dl><dd><dl><dt><ul><li> foo
1681 Definition Lists: Mixed Lists: Test 2
1695 Definition Lists: Mixed Lists: Test 3
1700 <ul><li><dl><dd><dl><dd><dl><dd> d1
1711 Definition Lists: Mixed Lists: Test 4
1716 <ul><li><dl><dt>d1 </dt><dd>d2
1717 </dd><dt>d3 </dt><dd>d4
1725 Definition Lists: Mixed Lists: Test 5
1740 Definition Lists: Mixed Lists: Test 6
1745 <ol><li><ul><li><dl><dd>d1
1757 Definition Lists: Mixed Lists: Test 7
1771 Definition Lists: Mixed Lists: Test 8
1787 Definition Lists: Mixed Lists: Test 9
1791 <ul><li><dl><dt>foo </dt><dd>bar
1799 Definition Lists: Mixed Lists: Test 10
1803 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1812 Definition Lists: Mixed Lists: Test 11
1817 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1822 <dl><dt>boo </dt><dd>baz
1833 Definition Lists: Weird Ones: Test 1
1835 *#;*::;; foo : bar (who uses this?)
1837 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1853 External links: non-bracketed
1855 Non-bracketed: http://example.com
1857 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1862 External links: numbered
1864 Numbered: [http://example.com]
1865 Numbered: [http://example.net]
1866 Numbered: [http://example.com]
1868 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1869 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1870 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1875 External links: specified text
1877 Specified text: [http://example.com link]
1879 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1884 External links: trail
1886 Linktrails should not work for external links: [http://example.com link]s
1888 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1893 External links: dollar sign in URL
1895 http://example.com/1$2345
1897 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1902 External links: dollar sign in URL (named)
1904 [http://example.com/1$2345]
1906 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1911 External links: open square bracket forbidden in URL (bug 4377)
1913 http://example.com/1[2345
1915 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1920 External links: open square bracket forbidden in URL (named) (bug 4377)
1922 [http://example.com/1[2345]
1924 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1929 External links: nowiki in URL link text (bug 6230)
1931 [http://example.com/ <nowiki>''example site''</nowiki>]
1933 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1938 External links: newline forbidden in text (bug 6230 regression check)
1940 [http://example.com/ first
1943 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1949 External links: Pipe char between url and text
1951 [http://example.com | link]
1953 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1958 External links: protocol-relative URL in brackets
1960 [//example.com/ Test]
1962 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1967 External links: protocol-relative URL in brackets without text
1971 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1976 External links: protocol-relative URL in free text is left alone
1980 <p>//example.com/Foo
1985 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1987 foo//example.com/Foo
1989 <p>foo//example.com/Foo
1996 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1998 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2003 External image from https
2005 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2007 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2012 Link to non-http image, no img tag
2014 Link to non-http image, no img tag: ftp://example.com/test.jpg
2016 <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>
2021 External links: terminating separator
2023 Terminating separator: http://example.com/thing,
2025 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2030 External links: intervening separator
2032 Intervening separator: http://example.com/1,2,3
2034 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2039 External links: old bug with URL in query
2041 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2043 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2048 External links: old URL-in-URL bug, mixed protocols
2050 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2052 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2057 External links: URL in text
2059 URL in text: [http://example.com http://example.com]
2061 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2066 External links: Clickable images
2068 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2070 <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>
2075 External links: raw ampersand
2077 Old & use: http://x&y
2079 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2084 External links: encoded ampersand
2086 Old & use: http://x&y
2088 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2093 External links: encoded equals (bug 6102)
2095 http://example.com/?foo=bar
2097 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2102 External links: [raw ampersand]
2104 Old & use: [http://x&y]
2106 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2111 External links: [encoded ampersand]
2113 Old & use: [http://x&y]
2115 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2120 External links: [encoded equals] (bug 6102)
2122 [http://example.com/?foo=bar]
2124 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2129 External links: [IDN ignored character reference in hostname; strip it right off]
2131 [http://e‌xample.com/]
2133 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2137 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2138 # Where an external link could easily circumvent the sanitization of the text of
2139 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2140 # test demands a higher standard. That's a bit strange.
2144 # http://example.com -> [http://example.com|http://example.com]
2145 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2147 # The first example is sanitized, but the second is not. Any security benefits
2148 # from this production are trivial to circumvent. Either remove this test and
2149 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2150 # the test accordingly.
2155 External links: IDN ignored character reference in hostname; strip it right off
2157 http://e‌xample.com/
2159 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2164 External links: www.jpeg.org (bug 554)
2168 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2173 External links: URL within URL (original bug 2)
2175 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2177 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2182 BUG 361: URL inside bracketed URL
2184 [http://www.example.com/foo http://www.example.com/bar]
2186 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2191 BUG 361: URL within URL, not bracketed
2193 http://www.example.com/foo?=http://www.example.com/bar
2195 <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>
2200 BUG 289: ">"-token in URL-tail
2202 http://www.example.com/<hello>
2204 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2209 BUG 289: literal ">"-token in URL-tail
2211 http://www.example.com/<b>html</b>
2213 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2218 BUG 289: ">"-token in bracketed URL
2220 [http://www.example.com/<hello> stuff]
2222 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2227 BUG 289: literal ">"-token in bracketed URL
2229 [http://www.example.com/<b>html</b> stuff]
2231 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2236 BUG 289: literal double quote at end of URL
2238 http://www.example.com/"hello"
2240 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2245 BUG 289: literal double quote in bracketed URL
2247 [http://www.example.com/"hello" stuff]
2249 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2254 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2256 [http://www.example.com test]
2258 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2263 External links: wiki links within external link (Bug 3695)
2265 [http://example.com [[wikilink]] embedded in ext link]
2267 <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>
2272 BUG 787: Links with one slash after the url protocol are invalid
2276 [http:/example.com title]
2278 <p>http:/example.com
2279 </p><p>[http:/example.com title]
2284 Bracketed external links with template-generated invalid target
2286 [{{echo|http:/example.com}} title]
2288 <p>[http:/example.com title]
2293 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2295 ''[http://example.com text'']
2296 [http://example.com '''text]'''
2297 ''Something [http://example.com in italic'']
2298 ''Something [http://example.com mixed''''', even bold]'''
2299 '''''Now [http://example.com both''''']
2301 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2302 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2303 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2304 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2305 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2311 Bug 4781: %26 in URL
2313 http://www.example.com/?title=AT%26T
2315 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2319 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2320 # % is actually legal in HTML5. Any change in output would need testing though.
2322 Bug 4781, 5267: %25 in URL
2324 http://www.example.com/?title=100%25_Bran
2326 <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>
2331 Bug 4781, 5267: %28, %29 in URL
2333 http://www.example.com/?title=Ben-Hur_%281959_film%29
2335 <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>
2341 Bug 4781: %26 in autonumber URL
2343 [http://www.example.com/?title=AT%26T]
2345 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2350 Bug 4781, 5267: %26 in autonumber URL
2352 [http://www.example.com/?title=100%25_Bran]
2354 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2359 Bug 4781, 5267: %28, %29 in autonumber URL
2361 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2363 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2369 Bug 4781: %26 in bracketed URL
2371 [http://www.example.com/?title=AT%26T link]
2373 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2378 Bug 4781, 5267: %26 in bracketed URL
2380 [http://www.example.com/?title=100%25_Bran link]
2382 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2387 Bug 4781, 5267: %28, %29 in bracketed URL
2389 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2391 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2396 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2398 Some [http://example.com/ pretty ''italics'' and stuff]!
2400 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2405 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2407 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2409 <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>
2414 External link containing double-single-quotes with no space separating the url from text in italics
2416 [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]].]
2418 <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>
2423 URL-encoding in URL functions (single parameter)
2425 {{localurl:Some page|amp=&}}
2427 <p>/index.php?title=Some_page&amp=&
2432 URL-encoding in URL functions (multiple parameters)
2434 {{localurl:Some page|q=?&=&}}
2436 <p>/index.php?title=Some_page&q=?&amp=&
2443 http://example.com/index.php?foozoid%5B%5D=bar
2445 http://example.com/index.php?foozoid[]=bar
2447 <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>
2448 </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>
2453 IPv6 urls (bug 21261)
2457 http://[2404:130:0:1000::187:2]/index.php
2459 <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>
2470 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2472 Normal text. '''''Bold italic text.''''' Normal text.
2474 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2475 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2481 Unclosed and unmatched quotes
2483 '''''Bold italic text '''with bold deactivated''' in between.'''''
2485 '''''Bold italic text ''with italic deactivated'' in between.'''''
2489 ..spanning two paragraphs (should not work).'''
2491 '''Bold tag left open
2493 ''Italic tag left open
2497 <!-- Unmatching number of opening, closing tags: -->
2498 '''This year''''s election ''should'' beat '''last year''''s.
2500 ''Tom'''s car is bigger than ''Susan'''s.
2502 Plain ''italic'''s plain
2504 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2505 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2506 </p><p><b>Bold text..</b>
2507 </p><p>..spanning two paragraphs (should not work).
2508 </p><p><b>Bold tag left open</b>
2509 </p><p><i>Italic tag left open</i>
2511 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2512 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2513 </p><p>Plain <i>italic'</i>s plain
2520 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2523 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2524 # is the bare minimun required by the spec, see:
2525 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2527 A table with no data.
2533 # A table with nothing but a caption is invalid XHTML, we might want to render
2534 # this as <p>caption</p>
2536 A table with nothing but a caption
2544 </caption><tr><td></td></tr></table>
2570 Simple table but with multiple dashes for row wikitext
2588 Multiplication table
2590 {| border="1" cellpadding="2"
2591 |+Multiplication table
2593 ! × !! 1 !! 2 !! 3
2611 <table border="1" cellpadding="2">
2612 <caption>Multiplication table
2659 Allow +/- in 2nd and later cells in a row
2686 |rowspan=2| Cell 2, row 1 (and 2)
2697 <td rowspan="2"> Cell 2, row 1 (and 2)
2715 {| bgcolor=#ABCDEF border=2
2720 |the original table again
2728 <table bgcolor="#ABCDEF" border="2">
2736 <td>the original table again
2742 Invalid attributes in table cell (bug 1830)
2757 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2760 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2764 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2765 <td>]" onmouseover="alert(document.cookie)">test
2774 Indented table markup mixed with indented pre content (proposed in bug 6200)
2779 Text that should be rendered preformatted
2787 <pre>Text that should be rendered preformatted
2796 Template-generated table cell attributes and cell content
2804 <td style="color: red"> Foo
2813 Plain link, capitalized
2817 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2822 Plain link, uncapitalized
2826 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2833 [[Main Page|The Main Page]]
2835 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2844 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2849 Broken link with fragment
2851 [[Zigzagzogzagzig#zug]]
2853 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2858 Special page link with fragment
2860 [[Special:Version#anchor]]
2862 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2867 Nonexistent special page link with fragment
2869 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2871 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2878 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2880 <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>
2887 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2889 <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>!!!
2894 Link with 3 brackets
2903 Piped link with 3 brackets
2905 [[[main page|the main page]]]
2907 <p>[[[main page|the main page]]]
2912 Link with multiple pipes
2914 [[Main Page|The|Main|Page]]
2916 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2923 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2925 <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>
2930 Piped link to namespace
2932 [[Meta:Disclaimers|The disclaimers]]
2934 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2941 [[Usually caused by a typo (oops}]]
2943 <p>[[Usually caused by a typo (oops}]]
2948 Link containing % (not as a hex sequence)
2952 <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>
2957 Link containing % as a single hex sequence interpreted to char
2961 <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>
2966 Link containing % as a double hex sequence interpreted to hex sequence
2970 <p>[[7%2525 Solution]]
2975 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2976 Example for such a section: == < ==
2978 [[%23%3c]][[%23%3e]]
2980 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2985 Link containing "<#" and ">#" as a hex sequences
2987 [[%3c%23]][[%3e%23]]
2989 <p>[[%3c%23]][[%3e%23]]
2994 Link containing double-single-quotes '' (bug 4598)
2996 [[Lista d''e paise d''o munno]]
2998 <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>
3003 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3005 Some [[Link|pretty ''italics'' and stuff]]!
3007 <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>!
3012 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3014 ''Some [[Link|pretty ''italics'' and stuff]]!
3016 <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>
3021 Link with double quotes in title part (literal) and alternate part (interpreted)
3023 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3027 [[''Pentecoste''|Pentecoste]]
3029 [[''Pentecoste''|''Pentecoste'']]
3031 <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>
3032 </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>
3033 </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>
3034 </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>
3039 Broken image links with HTML captions (bug 39700)
3041 [[File:Nonexistent|<script></script>]]
3042 [[File:Nonexistent|100px|<script></script>]]
3043 [[File:Nonexistent|<]]
3044 [[File:Nonexistent|a<i>b</i>c]]
3046 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3047 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3048 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3049 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3056 [[http://www.example.com]]
3058 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3063 Plain link to URL with link text
3065 [[http://www.example.com Link text]]
3067 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3072 Plain link to protocol-relative URL
3074 [[//www.example.com]]
3076 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3081 Plain link to protocol-relative URL with link text
3083 [[//www.example.com Link text]]
3085 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3090 # I'm fairly sure the expected result here is wrong.
3091 # We want these to be URL links, not pseudo-pages with URLs for titles....
3092 # However the current output is also pretty screwy.
3095 # I'm changing it to match the current output--it arguably makes more
3096 # sense in the light of the test above. Old expected result was:
3097 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3099 # But I think this test is bordering on "garbage in, garbage out" anyway.
3104 Piped link to URL: [[http://www.example.com|an example URL]]
3106 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3111 BUG 2: [[page|http://url/]] should link to page, not http://url/
3113 [[Main Page|http://url/]]
3115 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3120 BUG 337: Escaped self-links should be bold
3124 [[Bug462]] [[Bug462]]
3126 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3131 Self-link to section should not be bold
3135 [[Main Page#section]]
3137 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3148 Self-link to numeric title
3154 <p><strong class="selflink">0</strong>
3159 Link to numeric-equivalent title
3165 <p><a href="/wiki/00" title="00">00</a>
3170 <nowiki> inside a link
3172 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3174 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3179 Non-breaking spaces in title
3181 [[ Main Page ]]
3183 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3188 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3194 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3199 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3205 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3210 Internal link with en linktrail: no apostrophes (bug 27473)
3216 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3221 Internal link with ca linktrail with apostrophes (bug 27473)
3227 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3232 Internal link with kaa linktrail with apostrophes (bug 27473)
3238 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3243 ### Interwiki links (see maintenance/interwiki.sql)
3247 Inline interwiki link
3249 [[MeatBall:SoftSecurity]]
3251 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3256 Inline interwiki link with empty title (bug 2372)
3260 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3265 Interwiki link encoding conversion (bug 1636)
3267 *[[Wikipedia:ro:Olteniţa]]
3268 *[[Wikipedia:ro:Olteniţa]]
3270 <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>
3271 </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>
3277 Interwiki link with fragment (bug 2130)
3279 [[MeatBall:SoftSecurity#foo]]
3281 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3296 Double interlanguage link
3307 Interlanguage link, with prefix links
3319 Double interlanguage link, with prefix links (bug 8897)
3332 Parsoid-specific test: Wikilinks with should RT properly
3338 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3356 Broken br tag sanitization
3365 Incorrecly removing closing slashes from correctly formed XHTML
3367 <br style="clear:both;" />
3369 <p><br style="clear:both;" />
3374 Failing to transform badly formed HTML into correct XHTML
3376 <br style="clear: left;">
3377 <br style="clear: right;">
3378 <br style="clear: both;">
3380 <p><br style="clear: left;" />
3381 <br style="clear: right;" />
3382 <br style="clear: both;" />
3387 Handling html with a div self-closing tag
3396 <p><div title />
3400 <p><div title=bar />
3401 <div title=bar/>
3403 <div title="bar/"></div>
3409 Handling html with a br self-closing tag
3418 <p><br title="title" />
3419 <br title="title" />
3428 Horizontal ruler (should it add that extra space?)
3442 Horizontal ruler -- 4+ dashes render hr
3451 Horizontal ruler -- eats additional dashes on the same line
3460 Horizontal ruler -- does not collaps dashes on consecutive lines
3471 Horizontal ruler -- <4 dashes render as plain text
3480 ### Block-level elements
3503 <ol><li>Numbered list
3520 ***#Number on level 4
3522 **#Number on level 3
3523 **#Number on level 3
3527 #** Level 3, but ordered
3530 <ol><li> with numbers
3532 <ul><li> and bullets
3534 <ol><li> and numbers
3536 </li><li>bullets again
3537 <ul><li>bullet level 2
3538 <ul><li>bullet level 3
3539 <ol><li>Number on level 4
3542 </li><li>bullet level 2
3543 <ol><li>Number on level 3
3544 </li><li>Number on level 3
3547 <ol><li>number level 2
3550 <ul><li><ul><li> Level 3
3554 <ol><li><ul><li><ul><li> Level 3, but ordered
3588 Nested lists 3 (first element empty)
3601 Nested lists 4 (first element empty)
3614 Nested lists 5 (both elements empty)
3627 Nested lists 6 (both elements empty)
3640 Nested lists 7 (skip initial nesting levels)
3644 <ul><li><ul><li><ul><li> foo
3652 Nested lists 8 (multiple nesting transitions)
3660 <ul><li><ul><li> bar
3670 1. Lists with start-of-line-transparent tokens before bullets: Comments
3684 2. Lists with start-of-line-transparent tokens before bullets: Template close
3696 List items are not parsed correctly following a <pre> block (bug 785)
3702 <ul><li> <pre>foo</pre>
3703 </li><li> <pre>bar</pre>
3710 List items from template
3721 * notSOL{{inner list}}
3740 List interrupted by empty line or heading
3750 <ul><li><ul><li> bar
3753 <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>
3754 <ul><li> Another list item
3765 Magic Word: {{CURRENTDAY}}
3774 Magic Word: {{CURRENTDAY2}}
3783 Magic Word: {{CURRENTDAYNAME}}
3792 Magic Word: {{CURRENTDOW}}
3801 Magic Word: {{CURRENTMONTH}}
3810 Magic Word: {{CURRENTMONTHABBREV}}
3812 {{CURRENTMONTHABBREV}}
3819 Magic Word: {{CURRENTMONTHNAME}}
3821 {{CURRENTMONTHNAME}}
3828 Magic Word: {{CURRENTMONTHNAMEGEN}}
3830 {{CURRENTMONTHNAMEGEN}}
3837 Magic Word: {{CURRENTTIME}}
3846 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3855 Magic Word: {{CURRENTYEAR}}
3864 Magic Word: {{FULLPAGENAME}}
3866 title=[[User:Ævar Arnfjörð Bjarmason]]
3870 <p>User:Ævar Arnfjörð Bjarmason
3875 Magic Word: {{FULLPAGENAMEE}}
3877 title=[[User:Ævar Arnfjörð Bjarmason]]
3881 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3886 Magic Word: {{NAMESPACE}}
3888 title=[[User:Ævar Arnfjörð Bjarmason]]
3897 Magic Word: {{NAMESPACEE}}
3899 title=[[User:Ævar Arnfjörð Bjarmason]]
3908 Magic Word: {{NAMESPACENUMBER}}
3910 title=[[User:Ævar Arnfjörð Bjarmason]]
3919 Magic Word: {{NUMBEROFFILES}}
3928 Magic Word: {{PAGENAME}}
3930 title=[[User:Ævar Arnfjörð Bjarmason]]
3934 <p>Ævar Arnfjörð Bjarmason
3939 Magic Word: {{PAGENAME}} with metacharacters
3941 title=[['foo & bar = baz']]
3945 <p><i>'foo & bar = baz'</i>
3950 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3952 title=[[*RFC 1234 http://example.com/]]
3956 <p>*RFC 1234 http://example.com/
3961 Magic Word: {{PAGENAMEE}}
3963 title=[[User:Ævar Arnfjörð Bjarmason]]
3967 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3972 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3974 title=[[*RFC 1234 http://example.com/]]
3978 <p>*RFC_1234_http://example.com/
3983 Magic Word: {{REVISIONID}}
3992 Magic Word: {{SCRIPTPATH}}
4001 Magic Word: {{SERVER}}
4005 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4010 Magic Word: {{SERVERNAME}}
4019 Magic Word: {{SITENAME}}
4028 Namespace 1 {{ns:1}}
4037 Namespace 1 {{ns:01}}
4046 Namespace 0 {{ns:0}} (bug 4783)
4054 Namespace 0 {{ns:00}} (bug 4783)
4062 Namespace -1 {{ns:-1}}
4071 Namespace User {{ns:User}}
4080 Namespace User talk {{ns:User_talk}}
4089 Namespace User talk {{ns:uSeR tAlK}}
4098 Namespace File {{ns:File}}
4107 Namespace File {{ns:Image}}
4116 Namespace (lang=de) Benutzer {{ns:User}}
4127 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4133 <p>Benutzer Diskussion
4141 {{urlencode:hi world?!}}
4142 {{urlencode:hi world?!|WIKI}}
4143 {{urlencode:hi world?!|PATH}}
4144 {{urlencode:hi world?!|QUERY}}
4157 Magic links: internal link to RFC (bug 479)
4161 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4166 Magic links: RFC (bug 479)
4170 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4175 Magic links: ISBN (bug 1937)
4179 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4184 Magic links: PMID incorrectly converts space to underscore
4188 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4197 Nonexistent template
4199 {{thistemplatedoesnotexist}}
4201 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4208 This is a test template
4216 <p>This is a test template
4221 Template with explicit namespace
4225 <p>This is a test template
4233 This is a test template with parameter {{{param}}}
4239 {{paramtest|param=foo}}
4241 <p>This is a test template with parameter foo
4246 Template:paramtestnum
4252 Template unnamed parameter
4254 {{paramtestnum|Main Page|the main page}}
4256 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4261 Template:templatesimple
4267 Template:templateredirect
4269 #redirect [[Template:templatesimple]]
4273 Template:templateasargtestnum
4279 Template:templateasargtest
4281 {{template{{{templ}}}}}
4285 Template:templateasargtest2
4291 Template with template name as unnamed argument
4293 {{templateasargtestnum|templatesimple}}
4300 Template with template name as argument
4302 {{templateasargtest|templ=simple}}
4309 Template with template name as argument (2)
4311 {{templateasargtest2|templ=templatesimple}}
4318 Template:templateasargtestdefault
4320 {{{{{templ|templatesimple}}}}}
4330 Template with default value
4332 {{templateasargtestdefault}}
4339 Template with default value (value set)
4341 {{templateasargtestdefault|templ=templa}}
4350 {{templateredirect}}
4357 Template with argument in separate line
4359 {{ templateasargtest |
4367 Template with complex template as argument
4370 param ={{ templateasargtest |
4373 <p>This is a test template with parameter (test)
4378 Template with thumb image (with link in description)
4381 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4383 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>
4388 Template:complextemplate
4390 {{{1}}} {{paramtest|
4391 param ={{{param}}}}}
4395 Template with complex arguments
4398 param ={{ templateasargtest |
4399 templ = simple }}|[[Template:complextemplate|link]]}}
4401 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4406 BUG 553: link with two variables in a piped link
4409 |[[{{{1}}}|{{{2}}}]]
4414 <td>[[{{{1}}}|{{{2}}}]]
4420 Magic variable as template parameter
4422 {{paramtest|param={{SITENAME}}}}
4424 <p>This is a test template with parameter MediaWiki
4431 [[{{{param}}}|link]]
4435 Template parameter as link source
4437 {{linktest|param=Main Page}}
4439 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4444 Template-generated attribute string (k='v')
4446 <span {{attr_str|id|v1}}>bar</span>
4448 <p><span id="v1">bar</span>
4455 including another template, {{paramtest|param={{{arg}}}}}
4459 Template passing argument to another template
4461 {{paramtest2|arg='hmm'}}
4463 <p>including another template, This is a test template with parameter 'hmm'
4474 Template as link source
4478 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4496 Template infinite loop
4500 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4505 Template from main namespace
4524 BUG 529: Template with table, not included at beginning of line
4543 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4563 BUG 41: Template parameters shown as broken links
4572 Template with targets containing wikilinks
4576 {{[[{{echo|foo}}]]}}
4578 {{{{echo|[[foo}}]]}}
4580 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4581 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4589 ''None'' of '''this''' should be
4591 but rather passed unmodified
4595 # hmm, fix this or just deprecate msgnw and document its behavior?
4601 {{msgnw:MSGNW test}}
4603 <p>''None'' of '''this''' should be
4605 but rather passed unmodified
4613 {{int:youhavenewmessages|lots of money|not!}}
4615 <p>You have lots of money (not!).
4622 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4626 <includeonly> and <noinclude> being included
4637 <onlyinclude>Foo</onlyinclude>bar
4641 <onlyinclude> being included
4653 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4657 <onlyinclude> and <includeonly> being included
4666 <includeonly> and <noinclude> on a page
4668 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4675 <onlyinclude> on a page
4677 <onlyinclude>Foo</onlyinclude>bar
4684 Template:Includeonly section
4687 ==Includeonly section==
4693 Bug 6563: Edit link generation for section shown by <includeonly>
4695 {{includeonly section}}
4697 <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>
4698 <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>
4702 # Uses same input as the contents of [[Template:Includeonly section]]
4704 Bug 6563: Section extraction for section shown by <includeonly>
4709 ==Includeonly section==
4717 Bug 6563: Edit link generation for section suppressed by <includeonly>
4720 ==Includeonly section==
4724 <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>
4729 Bug 6563: Section extraction for section suppressed by <includeonly>
4734 ==Includeonly section==
4742 ### <includeonly> and <noinclude> in attributes
4745 0. includeonly around the entire attribute
4747 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4749 <p><span id="v2">bar</span>
4754 1. includeonly in html attr key
4756 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4758 <p><span id="foo">bar</span>
4763 2. includeonly in html attr value
4765 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4766 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4768 <p><span id="v1">bar</span>
4769 <span id="v1">bar</span>
4774 3. includeonly in part of an attr value
4776 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4778 <p><span style="color:red;">bar</span>
4783 ### Testing parsing of templates where a template arg
4784 ### has the same name as the template itself.
4794 Templates: Template Name/Arg clash: 1. Use of positional param
4803 Templates: Template Name/Arg clash: 2. Use of named param
4812 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4821 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4825 Templates: 1. Simple use
4834 Templates: 2. Inside a block tag
4836 <div>{{echo|Foo}}</div>
4843 Templates: P-wrapping: 1a. Templates on consecutive lines
4854 Templates: P-wrapping: 1b. Templates on consecutive lines
4868 Templates: P-wrapping: 1c. Templates on consecutive lines
4871 {{echo|bar}} <div>baz</div>
4880 Templates: Inline Text: 1. Multiple tmeplate uses
4882 {{echo|Foo}}bar{{echo|baz}}
4889 Templates: Inline Text: 2. Back-to-back template uses
4891 {{echo|Foo}}{{echo|bar}}
4898 Templates: Block Tags: 1. Multiple template uses
4900 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4902 <div>Foo</div><div>bar</div><div>baz</div>
4907 Templates: Block Tags: 2. Back-to-back template uses
4909 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4911 <div>Foo</div><div>bar</div>
4916 Templates: Links: 1. Simple example
4918 {{echo|[[Foo|bar]]}}
4920 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4925 Templates: Links: 2. Generation of link href
4927 [[{{echo|Foo}}|bar]]
4929 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4934 Templates: Links: 3. Generation of part of a link href
4936 [[Fo{{echo|o}}|bar]]
4938 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4943 Templates: Links: 4. Multiple templates generating link href
4945 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4947 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4952 Templates: Links: 5. Generation of link text
4954 [[Foo|{{echo|bar}}]]
4956 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4961 Templates: Links: 5. Nested templates (only outermost template should be marked)
4963 {{echo|[[{{echo|Foo}}|bar]]}}
4965 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4970 Templates: HTML Tag: 1. Generation of HTML attr. key
4972 <div {{echo|style}}="color:red;">foo</div>
4974 <div style="color:red;">foo</div>
4979 Templates: HTML Tag: 2. Generation of HTML attr. value
4981 <div style={{echo|'color:red;'}}>foo</div>
4983 <div style="color:red;">foo</div>
4988 Templates: HTML Tag: 3. Generation of HTML attr key and value
4990 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4992 <div style="color:red;">foo</div>
4997 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4999 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5001 <div title="This is a long title with just one piece templated">foo</div>
5006 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5008 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5010 <div title="This is a long title with just one piece templated">foo</div>
5015 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5017 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5019 <div title="This is a long title with just one piece templated">foo</div>
5024 Templates: HTML Tables: 1. Generating start of a HTML table
5026 {{echo|<table><tr><td>foo</td>}}</tr></table>
5028 <table><tr><td>foo</td></tr></table>
5033 Templates: HTML Tables: 2a. Generating middle of a HTML table
5035 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5037 <table><tr><td>foo</td></tr></table>
5042 Templates: HTML Tables: 2b. Generating middle of a HTML table
5044 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5046 <table><tr><td>foo</td></tr></table>
5051 Templates: HTML Tables: 3. Generating end of a HTML table
5053 <table><tr>{{echo|<td>foo</td></tr></table>}}
5055 <table><tr><td>foo</td></tr></table>
5060 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5062 {{echo|<table>}}<tr><td>foo</td></tr></table>
5064 <table><tr><td>foo</td></tr></table>
5069 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5071 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5073 <table><tr><td>foo</td></tr></table>
5078 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5080 <table><tr>{{echo|<td>}}foo</td></tr></table>
5082 <table><tr><td>foo</td></tr></table>
5087 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5089 <table><tr><td>foo{{echo|</td>}}</tr></table>
5091 <table><tr><td>foo</td></tr></table>
5096 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5098 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5100 <table><tr><td>foo</td></tr></table>
5105 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5107 <table><tr><td>foo</td></tr>{{echo|</table>}}
5109 <table><tr><td>foo</td></tr></table>
5114 Templates: Wiki Tables: 1. Fostering of entire template content
5122 <tr><td></td></tr></table>
5127 Templates: Wiki Tables: 2. Fostering of partial template content
5137 <tr><td></td></tr></table>
5142 Templates: Wiki Tables: 3. td-content via multiple templates
5145 {{echo|{{pipe}}a}}{{echo|b}}
5156 Templates: Lists: Multi-line list-items via templates
5158 *{{echo|a {{nonexistent|
5160 *{{echo|b {{nonexistent|
5163 <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>
5164 </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>
5170 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5172 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5174 <p><i>ab</i>c<i>d</i>e
5179 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5180 (PHP parser generates misnested html)
5184 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5186 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5190 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5191 (PHP parser generates misnested html)
5195 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5198 <div><i>b</i>c<i>d</i></div>
5203 Templates: Ugly nesting: 4. Divs opened/closed across templates
5205 a<div>b{{echo|c</div>d}}e
5212 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5218 |{{echo|foo</table>}}
5222 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5223 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5224 bar</span><span about="#mwt1">
5229 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5239 <td>1. {{echo|foo </table>}}</td>
5241 <td>2. {{echo|baz </table>}}</td>
5254 <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">
5255 <tbody><tr data-parsoid="{"stx":"html"}">
5256 <td data-parsoid="{"stx":"html"}">
5257 <table data-parsoid="{"stx":"html"}">
5258 <tbody><tr data-parsoid="{"stx":"html"}">
5259 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5260 <td data-parsoid="{"stx":"html"}"> bar </td>
5261 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5262 </span><span about="#mwt1">
5264 abc</span><span about="#mwt1">
5265 </span><span about="#mwt1">
5266 </span><span about="#mwt1">
5267 </span><span about="#mwt1">
5268 </span><span about="#mwt1">
5270 xyz</span><span about="#mwt1">
5271 </span><span about="#mwt1">
5276 Parser Functions: 1. Simple example
5285 Parser Functions: 2. Nested use (only outermost should be marked up)
5294 ### Pre-save transform tests
5297 pre-save transform: subst:
5303 This is a test template
5307 pre-save transform: normal template
5317 pre-save transform: nonexistent template
5321 {{thistemplatedoesnotexist}}
5323 {{thistemplatedoesnotexist}}
5328 pre-save transform: subst magic variables
5337 # This is bug 89, which I fixed. -- wtm
5339 pre-save transform: subst: templates with parameters
5343 {{subst:paramtest|param="something else"}}
5345 This is a test template with parameter "something else"
5351 <nowiki>'''not wiki'''</nowiki>
5355 pre-save transform: nowiki in subst (bug 1188)
5359 {{subst:nowikitest}}
5361 <nowiki>'''not wiki'''</nowiki>
5366 Template:commenttest
5368 This template has <!-- a comment --> in it.
5372 pre-save transform: comment in subst (bug 1936)
5376 {{subst:commenttest}}
5378 This template has <!-- a comment --> in it.
5382 pre-save transform: unclosed tag
5386 <nowiki>'''not wiki'''
5388 <nowiki>'''not wiki'''
5392 pre-save transform: mixed tag case
5396 <NOwiki>'''not wiki'''</noWIKI>
5398 <NOwiki>'''not wiki'''</noWIKI>
5402 pre-save transform: unclosed comment in <nowiki>
5406 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5408 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5414 <span onmouseover="alert('crap')">Oh no</span>
5418 (confirming safety of fix for subst bug 1936)
5420 {{Template:dangerous}}
5422 <p><span>Oh no</span>
5427 pre-save transform: comment containing gallery (bug 5024)
5431 <!-- <gallery>data</gallery> -->
5433 <!-- <gallery>data</gallery> -->
5437 pre-save transform: comment containing extension
5441 <!-- <tag>data</tag> -->
5443 <!-- <tag>data</tag> -->
5447 pre-save transform: comment containing nowiki
5451 <!-- <nowiki>data</nowiki> -->
5453 <!-- <nowiki>data</nowiki> -->
5457 pre-save transform: <noinclude> in subst (bug 3298)
5467 pre-save transform: <onlyinclude> in subst (bug 3298)
5479 {{<includeonly>subst:</includeonly>Includes}}
5483 Template:SafeSubstTest
5485 {{<includeonly>safesubst:</includeonly>Includes}}
5489 bug 22297: safesubst: works during PST
5493 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5499 bug 22297: safesubst: works during normal parse
5508 subst: does not work during normal parse
5512 <p>{{subst:Includes}}
5517 pre-save transform: context links ("pipe trick")
5521 [[Article (context)|]]
5524 [[Bar:Article (context)|]]
5525 [[:Bar:Article (context)|]]
5527 [[|Article (context)]]
5531 [[Article (context)|Article]]
5532 [[Bar:Article|Article]]
5533 [[:Bar:Article|Article]]
5534 [[Bar:Article (context)|Article]]
5535 [[:Bar:Article (context)|Article]]
5537 [[Article (context)]]
5538 [[Bar:X (Y) Z|X (Y) Z]]
5539 [[:Bar:X (Y) Z|X (Y) Z]]
5543 pre-save transform: context links ("pipe trick") with interwiki prefix
5547 [[interwiki:Article|]]
5548 [[:interwiki:Article|]]
5549 [[interwiki:Bar:Article|]]
5550 [[:interwiki:Bar:Article|]]
5552 [[interwiki:Article|Article]]
5553 [[:interwiki:Article|Article]]
5554 [[interwiki:Bar:Article|Bar:Article]]
5555 [[:interwiki:Bar:Article|Bar:Article]]
5559 pre-save transform: context links ("pipe trick") with parens in title
5561 pst title=[[Somearticle (context)]]
5565 [[Article (context)|Article]]
5569 pre-save transform: context links ("pipe trick") with comma in title
5571 pst title=[[Someplace, Somewhere]]
5574 [[Otherplace, Elsewhere|]]
5575 [[Otherplace, Elsewhere, Anywhere|]]
5577 [[Otherplace, Somewhere|Otherplace]]
5578 [[Otherplace, Elsewhere|Otherplace]]
5579 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5583 pre-save transform: context links ("pipe trick") with parens and comma
5585 pst title=[[Someplace (IGNORED), Somewhere]]
5588 [[Otherplace (place), Elsewhere|]]
5590 [[Otherplace, Somewhere|Otherplace]]
5591 [[Otherplace (place), Elsewhere|Otherplace]]
5595 pre-save transform: context links ("pipe trick") with comma and parens
5597 pst title=[[Who, me? (context)]]
5600 [[Me, Myself, and I (1937 song)|]]
5602 [[Yes, you. (context)|Yes, you.]]
5603 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5607 pre-save transform: context links ("pipe trick") with namespace
5609 pst title=[[Ns:Somearticle]]
5613 [[Ns:Article|Article]]
5617 pre-save transform: context links ("pipe trick") with namespace and parens
5619 pst title=[[Ns:Somearticle (context)]]
5623 [[Ns:Article (context)|Article]]
5627 pre-save transform: context links ("pipe trick") with namespace and comma
5629 pst title=[[Ns:Somearticle, Context, Whatever]]
5633 [[Ns:Article, Context, Whatever|Article]]
5637 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5639 pst title=[[Ns:Somearticle, Context (context)]]
5643 [[Ns:Article (context)|Article]]
5647 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5649 pst title=[[Ns:Somearticle (IGNORED), Context]]
5653 [[Ns:Article, Context|Article]]
5657 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5661 [[Article(context)|]]
5662 [[Bar:Article(context)|]]
5663 [[:Bar:Article(context)|]]
5664 [[|Article(context)]]
5668 [[Article(context)|Article]]
5669 [[Bar:Article(context)|Article]]
5670 [[:Bar:Article(context)|Article]]
5671 [[Article(context)]]
5673 [[:Bar:X(Y)Z|X(Y)Z]]
5677 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5681 [[Article (context)|]]
5682 [[Bar:Article (context)|]]
5683 [[:Bar:Article (context)|]]
5684 [[|Article (context)]]
5688 [[Article (context)|Article]]
5689 [[Bar:Article (context)|Article]]
5690 [[:Bar:Article (context)|Article]]
5691 [[Article (context)]]
5692 [[Bar:X (Y) Z|X (Y) Z]]
5693 [[:Bar:X (Y) Z|X (Y) Z]]
5697 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5701 [[Article(context)|]]
5702 [[Bar:Article(context)|]]
5703 [[:Bar:Article(context)|]]
5704 [[|Article(context)]]
5708 [[Article(context)|Article]]
5709 [[Bar:Article(context)|Article]]
5710 [[:Bar:Article(context)|Article]]
5711 [[Article(context)]]
5713 [[:Bar:X(Y)Z|X(Y)Z]]
5717 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5721 [[Article (context), context|]]
5722 [[Article (context),context|]]
5723 [[Bar:Article (context), context|]]
5724 [[Bar:Article (context),context|]]
5725 [[:Bar:Article (context), context|]]
5726 [[:Bar:Article (context),context|]]
5728 [[Article (context), context|Article]]
5729 [[Article (context),context|Article]]
5730 [[Bar:Article (context), context|Article]]
5731 [[Bar:Article (context),context|Article]]
5732 [[:Bar:Article (context), context|Article]]
5733 [[:Bar:Article (context),context|Article]]
5737 pre-save transform: trim trailing empty lines
5741 Empty lines are trimmed
5747 Empty lines are trimmed
5751 pre-save transform: Signature expansion
5756 * <noinclude>~~~</noinclude>
5757 * <includeonly>~~~</includeonly>
5758 * <onlyinclude>~~~</onlyinclude>
5760 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5761 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5762 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5763 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5768 pre-save transform: Signature expansion in nowiki tags (bug 93)
5774 <nowiki>~~~~</nowiki>
5776 <includeonly><nowiki>~~~~</nowiki></includeonly>
5778 <noinclude><nowiki>~~~~</nowiki></noinclude>
5780 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5782 {{subst:Foo}} shall be converted to FOO
5784 As well as inside noinclude/onlyinclude
5785 <noinclude>{{subst:Foo}}</noinclude>
5786 <onlyinclude>{{subst:Foo}}</onlyinclude>
5788 But not inside includeonly
5789 <includeonly>{{subst:Foo}}</includeonly>
5793 <nowiki>~~~~</nowiki>
5795 <includeonly><nowiki>~~~~</nowiki></includeonly>
5797 <noinclude><nowiki>~~~~</nowiki></noinclude>
5799 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5801 FOO shall be converted to FOO
5803 As well as inside noinclude/onlyinclude
5804 <noinclude>FOO</noinclude>
5805 <onlyinclude>FOO</onlyinclude>
5807 But not inside includeonly
5808 <includeonly>{{subst:Foo}}</includeonly>
5812 ### Message transform tests
5815 message transform: magic variables
5825 message transform: should not transform wiki markup
5835 message transform: <noinclude> in transcluded template (bug 4926)
5845 message transform: <onlyinclude> in transcluded template (bug 4926)
5855 {{#special:}} page name, known
5859 {{#special:Recentchanges}}
5861 Special:RecentChanges
5865 {{#special:}} page name with subpage, known
5869 {{#special:Recentchanges/param}}
5871 Special:RecentChanges/param
5875 {{#special:}} page name, unknown
5879 {{#special:foobarnonexistent}}
5881 No such special page
5885 {{#speciale:}} page name, known
5889 {{#speciale:Recentchanges}}
5891 Special:RecentChanges
5895 {{#speciale:}} page name with subpage, known
5899 {{#speciale:Recentchanges/param}}
5901 Special:RecentChanges/param
5905 {{#speciale:}} page name, unknown
5909 {{#speciale:foobarnonexistent}}
5911 No_such_special_page
5920 [[Image:foobar.jpg]]
5922 <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>
5929 [[Image:foobar.jpg|right]]
5931 <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>
5936 Simple image (using File: namespace, now canonical)
5940 <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>
5947 [[Image:foobar.jpg|right|Caption text]]
5949 <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>
5954 Image with empty attribute
5956 [[Image:foobar.jpg|right||Caption text]]
5958 <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>
5963 Image with link tails
5965 123[[Image:foobar.jpg]]456
5966 123[[Image:foobar.jpg|right]]456
5967 123[[Image:foobar.jpg|thumb]]456
5969 <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
5971 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
5972 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
5977 Image with multiple captions -- only last one is accepted
5979 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5981 <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>
5986 Image with link parameter, wiki target
5988 [[Image:foobar.jpg|link=Target page]]
5990 <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>
5995 Image with link parameter, URL target
5997 [[Image:foobar.jpg|link=http://example.com/]]
5999 <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>
6004 Image with link parameter, wgExternalLinkTarget
6006 [[Image:foobar.jpg|link=http://example.com/]]
6008 wgExternalLinkTarget='foobar'
6010 <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>
6015 Image with link parameter, wgNoFollowLinks set to false
6017 [[Image:foobar.jpg|link=http://example.com/]]
6019 wgNoFollowLinks=false
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, wgNoFollowDomainExceptions
6028 [[Image:foobar.jpg|link=http://example.com/]]
6030 wgNoFollowDomainExceptions='example.com'
6032 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6037 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6039 [[Image:foobar.jpg|link=http://example.com/|Title]]
6041 wgExternalLinkTarget='foobar'
6043 <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>
6048 Image with empty link parameter
6050 [[Image:foobar.jpg|link=]]
6052 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6057 Image with link parameter (wiki target) and unnamed parameter
6059 [[Image:foobar.jpg|link=Target page|Title]]
6061 <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>
6066 Image with link parameter (URL target) and unnamed parameter
6068 [[Image:foobar.jpg|link=http://example.com/|Title]]
6070 <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>
6075 Thumbnail image with link parameter
6077 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6079 <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>
6084 Image with frame and link
6086 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6088 <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>
6093 Image with frame and link and explicit alt
6095 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6097 <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>
6102 Image with wiki markup in implicit alt
6104 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6106 <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>
6111 Image with wiki markup in explicit alt
6113 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6115 <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>
6120 Link to image page- image page normally doesn't exists, hence edit link
6121 Add test with existing image page
6122 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6126 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6131 bug 18784 Link to non-existent image page with caption should use caption as link text
6133 [[:Image:test|caption]]
6135 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6140 Frameless image caption with a free URL
6142 [[Image:foobar.jpg|http://example.com]]
6144 <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>
6149 Thumbnail image caption with a free URL
6151 [[Image:foobar.jpg|thumb|http://example.com]]
6153 <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>
6158 Thumbnail image caption with a free URL and explicit alt
6160 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6162 <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>
6167 BUG 1887: A ISBN with a thumbnail
6169 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6171 <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>
6176 BUG 1887: A RFC with a thumbnail
6178 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6180 <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>
6185 BUG 1887: A mailto link with a thumbnail
6187 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6189 <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>
6193 # Pending resolution to bug 368
6195 BUG 648: Frameless image caption with a link
6197 [[Image:foobar.jpg|text with a [[link]] in it]]
6199 <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>
6204 BUG 648: Frameless image caption with a link (suffix)
6206 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6208 <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>
6213 BUG 648: Frameless image caption with an interwiki link
6215 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6217 <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>
6222 BUG 648: Frameless image caption with a piped interwiki link
6224 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6226 <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>
6231 Escape HTML special chars in image alt text
6233 [[Image:foobar.jpg|& < > "]]
6235 <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>
6240 BUG 499: Alt text should have Ӓ, not &1234;
6242 [[Image:foobar.jpg|♀]]
6244 <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>
6249 Broken image caption with link
6251 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6253 <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.
6258 Image caption containing another image
6260 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6262 <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>
6267 Image caption containing a newline
6269 [[Image:Foobar.jpg|This
6272 <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>
6278 Bug 3090: External links other than http: in image captions
6280 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6282 <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>
6289 [[Image:foobar.jpg|a|class=b]]
6291 <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>
6298 #REDIRECT [[File:Barfoo.jpg]]
6304 [[Image:Barfoo.jpg]]
6306 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6311 Missing image with uploads disabled
6315 [[Image:Foobaz.jpg]]
6317 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6326 Subpage test/subpage
6334 subpage title=[[Subpage test]]
6338 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6343 Subpage noslash link
6345 subpage title=[[Subpage test]]
6349 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6358 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6363 BUG 561: {{/Subpage}}
6365 subpage title=[[Page]]
6369 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6377 Category:MediaWiki User's Guide
6385 [[:Category:MediaWiki User's Guide]]
6387 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6396 [[Category:MediaWiki User's Guide]]
6398 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6402 PAGESINCATEGORY invalid title fatal (r33546 fix)
6404 {{PAGESINCATEGORY:<bogus>}}
6411 Category with different sort key
6415 [[Category:MediaWiki User's Guide|Foo]]
6417 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6421 Category with identical sort key
6425 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6427 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6431 Category with empty sort key
6436 [[Category:MediaWiki User's Guide|]]
6438 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6442 Category with empty sort key and parentheses
6447 [[Category:Foo (bar)|]]
6449 [[Category:Foo (bar)|Foo]]
6453 Category with link tail
6458 123[[Category:Foo]]456
6460 123[[Category:Foo]]456
6464 Category with template
6469 [[Category:{{echo|Foo}}]]
6471 [[Category:{{echo|Foo}}]]
6475 Category with template in sort key
6480 [[Category:Foo|{{echo|Bar}}]]
6482 [[Category:Foo|{{echo|Bar}}]]
6486 Category with template in sort key and title
6491 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6493 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6497 Category / paragraph interactions
6499 Foo [[Category:Baz]] Bar
6501 Foo [[Category:Baz]]
6509 [[Category:Baz]] Bar
6522 {{echo|[[Category:Baz]]}}
6537 ### Inter-language links
6540 Inter-language links
6546 [[zh:食品]]
6548 es:Alimento fr:Nourriture zh:食品
6552 Duplicate interlanguage links (bug 24502)
6568 Basic section headings
6575 ===Smaller headline===
6578 <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>
6581 <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>
6584 <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>
6590 Section headings with TOC
6593 === Subheadline 1 ===
6594 ===== Skipping a level =====
6595 ====== Skipping a level ======
6599 ===Another headline===
6601 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6603 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6605 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6607 <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>
6609 <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>
6616 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6618 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6623 <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>
6624 <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>
6625 <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>
6626 <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>
6627 <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>
6630 <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>
6634 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6636 Handling of sections up to level 6 and beyond
6639 == Level 2 Heading==
6640 === Level 3 Heading===
6641 ==== Level 4 Heading====
6642 ===== Level 5 Heading=====
6643 ====== Level 6 Heading======
6644 ======= Level 7 Heading=======
6645 ======== Level 8 Heading========
6646 ========= Level 9 Heading=========
6647 ========== Level 10 Heading==========
6649 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6651 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6653 <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>
6655 <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>
6657 <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>
6659 <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>
6661 <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>
6662 <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>
6663 <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>
6664 <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>
6665 <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>
6678 <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>
6679 <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>
6680 <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>
6681 <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>
6682 <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>
6683 <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>
6684 <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>
6685 <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>
6686 <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>
6687 <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>
6692 TOC regression (bug 9764)
6696 ==== title 1.1.1 ====
6701 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6703 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6705 <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>
6707 <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>
6710 <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>
6713 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6715 <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>
6720 <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>
6721 <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>
6722 <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>
6723 <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>
6724 <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>
6725 <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>
6730 TOC with wgMaxTocLevel=3 (bug 6204)
6736 ==== title 1.1.1 ====
6741 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6743 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6745 <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>
6746 <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>
6749 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6751 <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>
6756 <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>
6757 <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>
6758 <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>
6759 <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>
6760 <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>
6761 <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>
6766 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6772 ====Section 1.1.1====
6773 ====Section 1.1.1.1====
6776 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6778 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6780 <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>
6783 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6786 <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>
6787 <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>
6788 <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>
6789 <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>
6790 <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>
6796 Resolving duplicate section names
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>
6807 Resolving duplicate section names with differing case (bug 10721)
6812 <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>
6813 <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>
6825 Template with sections, __NOTOC__
6832 <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>
6833 <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>
6834 <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>
6835 <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>
6840 __NOEDITSECTION__ keyword
6846 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6847 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6852 Link inside a section heading
6854 ==Section with a [[Main Page|link]] in it==
6856 <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>
6861 TOC regression (bug 12077)
6868 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6870 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6872 <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>
6875 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6878 <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>
6879 <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>
6880 <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>
6885 BUG 1219 URL next to image (good)
6887 http://example.com [[Image:foobar.jpg]]
6889 <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>
6894 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6897 The line above must have a trailing space!
6900 But just in case it doesn't...
6902 <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>
6903 <p>The line above must have a trailing space!
6905 <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>
6906 <p>But just in case it doesn't...
6911 Header with special characters (bug 25462)
6913 The tooltips shall not show entities to the user (ie. be double escaped)
6930 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6932 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6934 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6935 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6936 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6937 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6938 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6941 <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>
6944 <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>
6947 <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>
6950 <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>
6953 <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>
6959 Headers with excess '=' characters
6960 (Are similar tests necessary beyond the 1st level?)
6964 =''italic'' heading==
6965 ==''italic'' heading=
6967 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6969 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6970 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6971 <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>
6972 <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>
6975 <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>
6976 <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>
6977 <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>
6978 <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>
6983 BUG 1219 URL next to image (broken)
6985 http://example.com[[Image:foobar.jpg]]
6987 <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>
6992 Bug 1186 news: in the middle of text
6994 http://en.wikinews.org/wiki/Wikinews:Workplace
6996 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7002 Namespaced link must have a title
7011 Namespaced link must have a title (bad fragment version)
7013 [[Project:#fragment]]
7015 <p>[[Project:#fragment]]
7021 div with no attributes
7023 <div>HTML rocks</div>
7025 <div>HTML rocks</div>
7030 div with double-quoted attribute
7032 <div id="rock">HTML rocks</div>
7034 <div id="rock">HTML rocks</div>
7039 div with single-quoted attribute
7041 <div id='rock'>HTML rocks</div>
7043 <div id="rock">HTML rocks</div>
7048 div with unquoted attribute
7050 <div id=rock>HTML rocks</div>
7052 <div id="rock">HTML rocks</div>
7057 div with illegal double attributes
7059 <div id="a" id="b">HTML rocks</div>
7061 <div id="b">HTML rocks</div>
7066 HTML multiple attributes correction
7068 <p class="error" class="awesome">Awesome!</p>
7070 <p class="awesome">Awesome!</p>
7075 Table multiple attributes correction
7078 !+ class="error" class="awesome"| status
7083 <th class="awesome"> status
7091 <DIV ID="x">HTML ROCKS</DIV>
7093 <div id="x">HTML ROCKS</div>
7099 text with amp in the middle of nowhere
7103 <p>Remember AT&T?
7108 text with character entity: eacute
7110 I always thought é was a cute letter.
7112 <p>I always thought é was a cute letter.
7117 text with undefined character entity: xacute
7119 I always thought &xacute; was a cute letter.
7121 <p>I always thought &xacute; was a cute letter.
7133 [[Media:Foobar.jpg]]
7135 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7140 Media link with text
7142 [[Media:Foobar.jpg|A neat file to look at]]
7144 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7148 # FIXME: this is still bad HTML tag nesting
7150 Media link with nasty text
7151 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7153 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7155 <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>
7160 Media link to nonexistent file (bug 1702)
7162 [[Media:No such.jpg]]
7164 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7169 Image link to nonexistent file (bug 1850 - good)
7171 [[Image:No such.jpg]]
7173 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7178 :Image link to nonexistent file (bug 1850 - bad)
7180 [[:Image:No such.jpg]]
7182 <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>
7189 Character reference normalization in link text (bug 1938)
7191 [[Main Page|this&that]]
7193 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7200 Test for unicode normalization
7202 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7206 (bug 19451) Links should refer to the normalized form.
7214 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7215 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7216 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7217 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7218 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7223 Empty attribute crash test (bug 2067)
7225 <font color="">foo</font>
7227 <p><font color="">foo</font>
7232 Empty attribute crash test single-quotes (bug 2067)
7234 <font color=''>foo</font>
7236 <p><font color="">foo</font>
7241 Attribute test: equals, then nothing
7243 <font color=>foo</font>
7250 Attribute test: unquoted value
7252 <font color=x>foo</font>
7254 <p><font color="x">foo</font>
7259 Attribute test: unquoted but illegal value (hash)
7261 <font color=#x>foo</font>
7263 <p><font color="#x">foo</font>
7268 Attribute test: no value
7270 <font color>foo</font>
7272 <p><font color="color">foo</font>
7277 Bug 2095: link with three closing brackets
7281 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7286 Bug 2095: link with pipe and three closing brackets
7290 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7295 Bug 2095: link with pipe and three closing brackets, version 2
7297 [[Main Page|[http://example.com/]]]
7299 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7309 Template:Dangerous attribute
7311 " onmouseover="alert(document.cookie)
7315 Template:Dangerous style attribute
7317 border-size: expression(alert(document.cookie))
7323 <div style="float: right; {{{1}}}">Magic div</div>
7327 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7329 <div title="{{test}}"></div>
7331 <div title="This is a test template"></div>
7336 Bug 2304: HTML attribute safety (dangerous template; 2309)
7338 <div title="{{dangerous attribute}}"></div>
7340 <div title=""></div>
7345 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7347 <div style="{{dangerous style attribute}}"></div>
7349 <div style="/* insecure input */"></div>
7354 Bug 2304: HTML attribute safety (safe parameter; 2309)
7356 {{div style|width: 200px}}
7358 <div style="float: right; width: 200px">Magic div</div>
7363 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7365 {{div style|width: expression(alert(document.cookie))}}
7367 <div style="/* insecure input */">Magic div</div>
7372 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7374 {{div style|"><script>alert(document.cookie)</script>}}
7376 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7381 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7383 {{div style|" ><script>alert(document.cookie)</script>}}
7385 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7390 Bug 2304: HTML attribute safety (link)
7392 <div title="[[Main Page]]"></div>
7394 <div title="[[Main Page]]"></div>
7399 Bug 2304: HTML attribute safety (italics)
7401 <div title="''foobar''"></div>
7403 <div title="''foobar''"></div>
7408 Bug 2304: HTML attribute safety (bold)
7410 <div title="'''foobar'''"></div>
7412 <div title="'''foobar'''"></div>
7418 Bug 2304: HTML attribute safety (ISBN)
7420 <div title="ISBN 1234567890"></div>
7422 <div title="ISBN 1234567890"></div>
7427 Bug 2304: HTML attribute safety (RFC)
7429 <div title="RFC 1234"></div>
7431 <div title="RFC 1234"></div>
7436 Bug 2304: HTML attribute safety (PMID)
7438 <div title="PMID 1234567890"></div>
7440 <div title="PMID 1234567890"></div>
7445 Bug 2304: HTML attribute safety (web link)
7447 <div title="http://example.com/"></div>
7449 <div title="http://example.com/"></div>
7454 Bug 2304: HTML attribute safety (named web link)
7456 <div title="[http://example.com/ link]"></div>
7458 <div title="[http://example.com/ link]"></div>
7463 Bug 3244: HTML attribute safety (extension; safe)
7465 <div style="<nowiki>background:blue</nowiki>"></div>
7467 <div style="background:blue"></div>
7472 Bug 3244: HTML attribute safety (extension; unsafe)
7474 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7476 <div style="/* insecure input */"></div>
7480 # More MSIE fun discovered by Tom Gilder
7483 MSIE CSS safety test: spurious slash
7485 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7487 <div style="/* insecure input */">evil</div>
7492 MSIE CSS safety test: hex code
7494 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7496 <div style="/* insecure input */">evil</div>
7501 MSIE CSS safety test: comment in url
7503 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7505 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7510 MSIE CSS safety test: comment in expression
7512 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7514 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7520 Table attribute legitimate extension
7523 !+ style="<nowiki>color:blue</nowiki>"| status
7528 <th style="color:blue"> status
7534 Table attribute safety
7537 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7542 <th style="/* insecure input */"> status
7548 CSS line continuation 1
7550 <div style="background-image: u\ rl(test.jpg);"></div>
7552 <div style="/* insecure input */"></div>
7557 CSS line continuation 2
7559 <div style="background-image: u\ rl(test.jpg); "></div>
7561 <div style="/* insecure input */"></div>
7572 Expansion of multi-line templates in attribute values (bug 6255)
7574 <div style="background: {{identity|#00FF00}}">-</div>
7576 <div style="background: #00FF00">-</div>
7582 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7584 <div style="background:
7587 <div style="background: #00FF00">-</div>
7592 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7594 <div style="background: #00FF00">-</div>
7596 <div style="background: #00FF00">-</div>
7601 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7604 Parser hook: empty input
7617 Parser hook: empty input using terminated empty elements
7630 Parser hook: empty input using terminated empty elements (space before)
7643 Parser hook: basic input
7657 Parser hook: case insensitive
7671 Parser hook: case insensitive, redux
7684 Parser hook: nested tags
7688 <tag><tag></tag></tag>
7699 Parser hook: basic arguments
7701 <tag width=200 height = "100" depth = '50' square></tag>
7709 'square' => 'square',
7716 Parser hook: argument containing a forward slash (bug 5344)
7718 <tag filename='/tmp/bla'></tag>
7723 'filename' => '/tmp/bla',
7730 Parser hook: empty input using terminated empty elements (bug 2374)
7743 # </tag> should be output literally since there is no matching tag that begins it
7745 Parser hook: basic arguments using terminated empty elements (bug 2374)
7747 <tag width=200 height = "100" depth = '50' square/>
7757 'square' => 'square',
7766 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7770 Parser hook: static parser hook not inside a comment
7772 <statictag>hello, world</statictag>
7773 <statictag action=flush/>
7781 Parser hook: static parser hook inside a comment
7783 <!-- <statictag>hello, world</statictag> -->
7784 <statictag action=flush/>
7790 # Nested template calls; this case was broken by Parser.php rev 1.506,
7794 Template:One-parameter
7796 (My parameter is: {{{1}}})
7800 Template:Map-one-parameter
7806 Nested template calls
7808 {{Map-one-parameter|One-parameter|param}}
7810 <p>(My parameter is: param)
7819 Sanitizer: Closing of open tags
7821 <s></s><table></table>
7823 <s></s><table></table>
7828 Sanitizer: Closing of open but not closed tags
7837 Sanitizer: Closing of closed but not open tags
7846 Sanitizer: Closing of closed but not open table tags
7848 Table not started</td></tr></table>
7850 <p>Table not started</td></tr></table>
7855 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7857 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7859 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7864 Sanitizer: Validating the contents of the id attribute (bug 4515)
7870 Something, but definitely not <br id="9" />...
7874 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7878 <br id="foo" /><br id="foo" />
7880 Something need to be done. foo-2 ?
7884 Language converter: output gets cut off unexpectedly (bug 5757)
7888 this bit is safe: }-
7890 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7892 then we get cut off here: }-
7894 all additional text is vanished
7896 <p>this bit is safe: }-
7897 </p><p>but if we add a conversion instance: xxx
7898 </p><p>then we get cut off here: }-
7899 </p><p>all additional text is vanished
7904 Self closed html pairs (bug 5487)
7907 <center><font id="bug" />Centered text</center>
7908 <div><font id="bug2" />In div text</div>
7910 <center><font id="bug" />Centered text</center>
7911 <div><font id="bug2" />In div text</div>
7920 Punctuation: nbsp before exclamation
7924 <p>C'est grave !
7929 Punctuation: CSS !important (bug 11874)
7931 <div style="width:50% !important">important</div>
7933 <div style="width:50% !important">important</div>
7938 Punctuation: CSS ! important (bug 11874; with space after)
7940 <div style="width:50% ! important">important</div>
7942 <div style="width:50% ! important">important</div>
7948 HTML bullet list, closed tags (bug 5497)
7963 HTML bullet list, unclosed tags (bug 5497)
7980 HTML ordered list, closed tags (bug 5497)
7995 HTML ordered list, unclosed tags (bug 5497)
8012 HTML nested bullet list, closed tags (bug 5497)
8037 HTML nested bullet list, open tags (bug 5497)
8062 HTML nested ordered list, closed tags (bug 5497)
8087 HTML nested ordered list, open tags (bug 5497)
8112 HTML ordered list item with parameters oddity
8114 <ol><li id="fragment">One</li></ol>
8116 <ol><li id="fragment">One</li></ol>
8121 bug 5918: autonumbering
8123 [http://first/] [http://second] [ftp://ftp]
8127 [mailto:enclosed@mail.tld With target]
8129 [mailto:enclosed@mail.tld]
8131 mailto:inline@mail.tld
8133 <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>
8134 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8135 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8136 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8137 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8143 # Security and HTML correctness
8144 # From Nick Jenkins' fuzz testing
8148 Fuzz testing: Parser13
8163 Fuzz testing: Parser14
8168 <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>
8169 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8171 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8178 Fuzz testing: Parser14-table
8183 <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>
8184 <table style="__TOC__">
8190 # Known to produce bogus xml (extra </td>)
8192 Fuzz testing: Parser16
8212 Fuzz testing: Parser21
8215 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8220 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8230 Fuzz testing: Parser22
8232 http://===r:::https://b
8236 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8244 # Known to produce bad XML for now
8246 Fuzz testing: Parser24
8253 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8254 <br style="onmouseover='alert(document.cookie);' " />
8256 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8261 <u class="|">}}}} >
8262 <br style="onmouseover='alert(document.cookie);'" />
8264 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8273 # Note: the current result listed for this is not what the original one was,
8274 # but the original bug was JavaScript injection, which is fixed in any case.
8275 # It's not clear that the original result listed was any more correct than the
8276 # current one. Original result:
8279 # <li class="||">
8280 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8282 Fuzz testing: Parser25 (bug 6055)
8288 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8290 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8295 Fuzz testing: URL adjacent extension (with space, clean)
8298 http://example.com <nowiki>junk</nowiki>
8300 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8305 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8308 http://example.com<nowiki>junk</nowiki>
8310 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8315 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8318 http://example.com<pre>junk</pre>
8320 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8325 Fuzz testing: image with bogus manual thumbnail
8327 [[Image:foobar.jpg|thumbnail= ]]
8329 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8334 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8336 <pre dir=" "></pre>
8338 <pre dir=" "></pre>
8343 Parsing optional HTML elements (Bug 6171)
8348 <td> Some tabular data</td>
8349 <td> More tabular data ...
8350 <td> And yet som tabular data</td>
8356 <td> Some tabular data</td>
8357 <td> More tabular data ...
8358 </td><td> And yet som tabular data</td>
8365 Correct handling of <td>, <tr> (Bug 6171)
8370 <td> Some tabular data</td>
8371 <td> More tabular data ...</td>
8372 <td> And yet som tabular data</td>
8378 <td> Some tabular data</td>
8379 <td> More tabular data ...</td>
8380 <td> And yet som tabular data</td>
8388 Parsing crashing regression (fr:JavaScript)
8392 <p></body></x>
8397 Inline wiki vs wiki block nesting
8403 <p><b>Bold paragraph</b>
8404 </p><p>New wiki paragraph
8409 Inline HTML vs wiki block nesting
8417 <p><b>Bold paragraph</b>
8418 </p><p>New wiki paragraph
8422 # Original result was this:
8423 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8425 # While that might be marginally more intuitive, maybe, the six-apostrophe
8426 # construct is clearly pathological and the result stated here (which is what
8427 # the parser actually does) is about as reasonable as anything.
8429 Mixing markup for italics and bold
8432 '''bold''''''bold''bolditalics'''''
8434 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8442 Article for special page transclusion test
8446 Special page transclusion
8449 {{Special:Prefixindex/Xyzzyx}}
8451 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8456 Special page transclusion twice (bug 5021)
8459 {{Special:Prefixindex/Xyzzyx}}
8460 {{Special:Prefixindex/Xyzzyx}}
8462 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8463 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8468 Transclusion of default MediaWiki message
8470 {{MediaWiki:Mainpage}}
8477 Transclusion of nonexistent MediaWiki message
8479 {{MediaWiki:Mainpagexxx}}
8481 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8486 Transclusion of MediaWiki message with underscore
8488 {{MediaWiki:history_short}}
8495 Transclusion of MediaWiki message with space
8497 {{MediaWiki:history short}}
8504 Invalid header with following text
8514 Section extraction test (section 0)
8534 Section extraction test (section 1)
8556 Section extraction test (section 2)
8577 Section extraction test (section 3)
8597 Section extraction test (section 4)
8621 Section extraction test (section 5)
8641 Section extraction test (section 6)
8662 Section extraction test (section 7)
8682 Section extraction test (section 8)
8702 Section extraction test (section 9)
8723 Section extraction test (section 10)
8743 Section extraction test (nonexistent section 11)
8762 Section extraction test with bogus heading (section 1)
8767 ==bogus== not a legal section
8771 ==bogus== not a legal section
8775 Section extraction test with bogus heading (section 2)
8780 ==bogus== not a legal section
8787 Section extraction test with comment after heading (section 1)
8799 Section extraction test with comment after heading (section 2)
8811 Section extraction test with bogus <nowiki> heading (section 1)
8816 ==bogus== <nowiki>not a legal section</nowiki>
8820 ==bogus== <nowiki>not a legal section</nowiki>
8824 Section extraction test with bogus <nowiki> heading (section 2)
8829 ==bogus== <nowiki>not a legal section</nowiki>
8836 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8837 # instead of respecting commented sections
8839 Section extraction prefixed by comment (section 1)
8850 Section extraction prefixed by comment (section 2)
8861 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8862 # instead of respecting HTML-style headings
8864 Section extraction, mixed wiki and html (section 1)
8880 Section extraction, mixed wiki and html (section 2)
8896 # Formerly testing for bug 3342
8898 Section extraction, heading surrounded by <noinclude>
8902 <noinclude>==unmarked==</noinclude>
8908 # Test behaviour of bug 19910
8910 Sectiion with all-equals
8915 The line above must have a trailing space
8918 But just in case it doesn't...
8922 But just in case it doesn't...
8926 Section replacement test (section 0)
8957 Section replacement test (section 1)
8986 Section replacement test (section 2)
9016 Section replacement test (section 3)
9047 Section replacement test (section 4)
9074 Section replacement test (section 5)
9105 Section replacement test (section 6)
9135 Section replacement test (section 7)
9166 Section replacement test (section 8)
9197 Section replacement test (section 9)
9226 Section replacement test (section 10)
9256 Section replacement test with initial whitespace (bug 13728)
9260 Preformatted initial line
9264 Preformatted initial line
9271 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9283 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9296 Section extraction, <pre> around bogus header (bug 10309)
9313 Section replacement, <pre> around bogus header (bug 10309)
9315 noxml replace=2,"xxx"
9336 Handling of 
 in URLs
9340 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9347 5 quotes, code coverage +1 line
9354 Special:Search page linking.
9358 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9373 * {{SUBJECTPAGENAME}}
9374 * {{SUBJECTPAGENAMEE}}
9381 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9383 <ul><li> Parser test
9384 </li><li> Parser test
9385 </li><li> Parser test
9386 </li><li> Parser_test
9387 </li><li> Parser test
9388 </li><li> Parser_test
9389 </li><li> Talk:Parser test
9390 </li><li> Talk:Parser_test
9391 </li><li> Parser test
9392 </li><li> Parser_test
9399 </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>
9403 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9413 image4 |300px| centre
9414 image5.svg| http://///////
9419 <ul class="gallery">
9420 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9421 <div style="height: 150px;">Image1.png</div>
9422 <div class="gallerytext">
9425 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9426 <div style="height: 150px;">Image2.gif</div>
9427 <div class="gallerytext">
9432 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9433 <div style="height: 150px;">Image3</div>
9434 <div class="gallerytext">
9437 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9438 <div style="height: 150px;">Image4</div>
9439 <div class="gallerytext">
9444 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9445 <div style="height: 150px;">Image5.svg</div>
9446 <div class="gallerytext">
9447 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9451 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9452 <div style="height: 150px;">* image6</div>
9453 <div class="gallerytext">
9461 Gallery (with options)
9463 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9464 File:Nonexistant.jpg|caption
9465 File:Nonexistant.jpg
9466 image:foobar.jpg|some '''caption''' [[Main Page]]
9468 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9471 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9472 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9473 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9474 <div style="height: 70px;">Nonexistant.jpg</div>
9475 <div class="gallerytext">
9480 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9481 <div style="height: 70px;">Nonexistant.jpg</div>
9482 <div class="gallerytext">
9485 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9486 <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>
9487 <div class="gallerytext">
9488 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9492 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9493 <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>
9494 <div class="gallerytext">
9497 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9498 <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>
9499 <div class="gallerytext">
9509 Gallery with wikitext inside caption
9512 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9513 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9516 <ul class="gallery">
9517 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9518 <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>
9519 <div class="gallerytext">
9520 <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>
9524 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9525 <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>
9526 <div class="gallerytext">
9527 <p>This is a test template
9536 gallery (with showfilename option)
9538 <gallery showfilename>
9539 File:Nonexistant.jpg|caption
9540 File:Nonexistant.jpg
9541 image:foobar.jpg|some '''caption''' [[Main Page]]
9545 <ul class="gallery">
9546 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9547 <div style="height: 150px;">Nonexistant.jpg</div>
9548 <div class="gallerytext">
9549 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9554 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9555 <div style="height: 150px;">Nonexistant.jpg</div>
9556 <div class="gallerytext">
9557 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9561 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9562 <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>
9563 <div class="gallerytext">
9564 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9565 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9569 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9570 <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>
9571 <div class="gallerytext">
9572 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9581 Gallery (with namespace-less filenames)
9584 File:Nonexistant.jpg
9590 <ul class="gallery">
9591 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9592 <div style="height: 150px;">Nonexistant.jpg</div>
9593 <div class="gallerytext">
9596 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9597 <div style="height: 150px;">Nonexistant.jpg</div>
9598 <div class="gallerytext">
9601 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9602 <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>
9603 <div class="gallerytext">
9606 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9607 <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>
9608 <div class="gallerytext">
9616 HTML Hex character encoding (spells the word "JavaScript")
9618 JavaScript
9620 <p>JavaScript
9625 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9629 <p>&#xsee;&#XSEE;
9634 HTML Hex character encoding mixed case
9643 __FORCETOC__ override
9655 ISBN 978-0-1234-56 789
9657 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9662 ISBN followed by 5 spaces
9673 ISBN ISBN 1234567890
9675 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9680 Bug 22905: <abbr> followed by ISBN followed by </a>
9682 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9684 <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>
9693 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9698 Double RFC with a wiki link
9702 <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>
9711 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9716 Centre-aligned image
9718 [[Image:foobar.jpg|centre]]
9720 <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>
9727 [[Image:foobar.jpg|none]]
9729 <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>
9734 Width + Height sized image (using px) (height is ignored)
9736 [[Image:foobar.jpg|640x480px]]
9738 <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>
9743 Width-sized image (using px, no following whitespace)
9745 [[Image:foobar.jpg|640px]]
9747 <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>
9752 Width-sized image (using px, with following whitespace - test regression from r39467)
9754 [[Image:foobar.jpg|640px ]]
9756 <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>
9761 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9763 [[Image:foobar.jpg| 640px]]
9765 <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>
9770 Another italics / bold test
9778 # Note the results may be incorrect, as parserTest output included this:
9779 # XML error: Mismatched tag at byte 6120:
9780 # ...<dd> </dt></dl> </dd...
9788 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9799 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9801 Images with the "|" character in the comment
9803 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9805 <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>
9810 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9812 <html><script>alert(1);</script></html>
9814 <p><html><script>alert(1);</script></html>
9819 HTML with raw HTML ($wgRawHtml==true)
9823 <html><script>alert(1);</script></html>
9825 <p><script>alert(1);</script>
9830 Parents of subpages, one level up
9832 subpage title=[[Subpage test/L1/L2/L3]]
9836 <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>
9842 Parents of subpages, one level up, not named
9844 subpage title=[[Subpage test/L1/L2/L3]]
9848 <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>
9855 Parents of subpages, two levels up
9857 subpage title=[[Subpage test/L1/L2/L3]]
9863 <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
9864 </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>
9869 Parents of subpages, two levels up, without trailing slash or name.
9871 subpage title=[[Subpage test/L1/L2/L3]]
9880 Parents of subpages, two levels up, with lots of extra trailing slashes.
9882 subpage title=[[Subpage test/L1/L2/L3]]
9886 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9891 Definition list code coverage
9897 <dl><dt> title  </dt><dd> def
9898 </dd><dt> title </dt><dd> def
9899 </dd><dt>title</dt><dd> def
9905 Don't fall for the self-closing div
9907 <div>hello world</div/>
9909 <div>hello world</div>
9918 <p>[[:Template:Msg]]
9927 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9931 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9933 Always escape literal '>' in output, not just after '<'
9947 <p>This is a test template
9948 This is a test template
9960 Inclusion of !userCanEdit() content
9964 <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>
9970 Out-of-order TOC heading levels
9979 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9981 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9983 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9984 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9987 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9989 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9990 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9995 <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>
9996 <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>
9997 <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>
9998 <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>
9999 <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>
10000 <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>
10006 ISBN with a dummy number
10016 ISBN with space-delimited number
10020 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10026 ISBN with multiple spaces, no number
10045 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10046 </p><p>ISBN 12345678901
10052 ISBN with trailing year (bug 8110)
10054 ISBN 1-234-56789-0 - 2006
10056 ISBN 1 234 56789 0 - 2006
10058 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10059 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10067 {{anchorencode:foo bar©#%n}}
10069 <p>foo_bar.C2.A9.23.25n
10074 anchorencode trims spaces
10076 {{anchorencode: __pretty__please__}}
10083 anchorencode deals with links
10085 {{anchorencode: [[hello|world]] [[hi]]}}
10092 anchorencode deals with templates
10094 {{anchorencode: {{Foo}} }}
10101 anchorencode encodes like the TOC generator: (bug 18431)
10103 === _ +:.3A%3A&&]] ===
10104 {{anchorencode: _ +:.3A%3A&&]] }}
10107 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10108 <p>.2B:.3A.253A.26.26.5D.5D
10112 # Expected output in the following test is not necessarily expected (there
10113 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10114 # only testing for well-formedness.
10116 Bug 6200: blockquotes and paragraph formatting
10136 Bug 8293: Use of center tag ruins paragraph formatting
10158 ### Language variants related tests
10161 Self-link in language variants
10163 title=[[Dunav]] language=sr
10165 Both [[Dunav]] and [[Дунав]] are names for this river.
10167 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10173 Link to pages in language variants
10177 Main Page can be written as [[Маин Паге]]
10179 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10185 Multiple links to pages in language variants
10189 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10191 <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>.
10197 Simple template in language variants
10203 <p>This is a test template
10209 Template with explicit namespace in language variants
10215 <p>This is a test template
10221 Basic test for template parameter in language variants
10225 {{парамтест|param=foo}}
10227 <p>This is a test template with parameter foo
10233 Simple category in language variants
10237 [[Category:МедиаWики Усер'с Гуиде]]
10239 <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>
10244 Stripping -{}- tags (language variants)
10248 Latin proverb: -{Ne nuntium necare}-
10250 <p>Latin proverb: Ne nuntium necare
10256 Prevent conversion with -{}- tags (language variants)
10258 language=sr variant=sr-ec
10260 Latinski: -{Ne nuntium necare}-
10262 <p>Латински: Ne nuntium necare
10268 Prevent conversion of text with -{}- tags (language variants)
10270 language=sr variant=sr-ec
10272 Latinski: -{Ne nuntium necare}-
10274 <p>Латински: Ne nuntium necare
10280 Prevent conversion of links with -{}- tags (language variants)
10282 language=sr variant=sr-ec
10286 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10292 -{}- tags within headlines (within html for parserConvert())
10294 language=sr variant=sr-ec
10298 <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>
10304 Explicit definition of language variant alternatives
10306 language=zh variant=zh-tw
10308 -{zh:China;zh-tw:Taiwan}-, not China
10310 <p>Taiwan, not China
10316 Explicit session-wise language variant mapping (A flag and - flag)
10318 language=zh variant=zh-tw
10320 Taiwan is not China.
10321 But -{A|zh:China;zh-tw:Taiwan}- is China,
10322 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10323 and -{China}- is China.
10325 <p>Taiwan is not China.
10326 But Taiwan is Taiwan,
10327 (This should be stripped!)
10328 and China is China.
10333 Explicit session-wise language variant mapping (H flag for hide)
10335 language=zh variant=zh-tw
10337 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10340 <p>(This should be stripped!)
10346 Adding explicit conversion rule for title (T flag)
10348 language=zh variant=zh-tw showtitle
10350 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10353 <p>Should be stripped!
10358 Testing that changing the language variant here in the tests actually works
10360 language=zh variant=zh showtitle
10362 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10365 <p>Should be stripped!
10370 Bug 24072: more test on conversion rule for title
10372 language=zh variant=zh-tw showtitle
10374 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10375 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10378 <p>This should be stripped!
10379 This won't take interferes with the title rule.
10384 Raw output of variant escape tags (R flag)
10386 language=zh variant=zh-tw
10388 Raw: -{R|zh:China;zh-tw:Taiwan}-
10390 <p>Raw: zh:China;zh-tw:Taiwan
10395 Nested using of manual convert syntax
10397 language=zh variant=zh-hk
10399 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10401 <p>Nested: Hello Hong Kong!
10406 Do not convert roman numbers to language variants
10408 language=sr variant=sr-ec
10412 <p>Фридрих IV је цар.
10417 Unclosed language converter markup "-{"
10428 Don't convert raw rule "-{R|=>}-" to "=>"
10445 Bug 529: Uncovered bullet
10455 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10456 # Templates in Wikipedia rely on this behavior, as tidy has always been
10457 # enabled there. These tests are normally run *without* tidy, so specify the
10458 # full output here.
10459 # To test realistic parsing behavior, apply a tidy-like transformation to both
10460 # the expected output and your parser's output.
10462 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10464 ******* Foo {{bullet}}
10466 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10479 Bug 529: Uncovered table already at line-start
10502 Bug 529: Uncovered bullet in parser function result
10504 * Foo {{lc:{{bullet}} }}
10513 Bug 5678: Double-parsed template argument
10515 {{lc:{{{1}}}|hello}}
10522 Bug 5678: Double-parsed template invocation
10524 {{lc:{{paramtest {{!}} param = hello }} }}
10526 <p>{{paramtest | param = hello }}
10531 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10534 title=[[Main Page]]
10536 {{PRVNÍVELKÉ:ěščř}}
10537 {{prvnívelké:ěščř}}
10557 Morwen/13: Unclosed link followed by heading
10564 <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>
10569 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10576 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10581 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10588 <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>
10603 Paragraphs inside divs (no extra line breaks)
10615 Paragraphs inside divs (extra line break on open)
10630 Paragraphs inside divs (extra line break on close)
10645 Paragraphs inside divs (extra line break on open and close)
10662 Nesting tags, paragraphs on lines which begin with <div>
10666 <div></div><strong>A
10675 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10677 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10681 <blockquote>Line one
10683 Line two</blockquote>
10685 <blockquote>Line one
10686 Line two</blockquote>
10691 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10698 Line two</blockquote>
10703 Line two</blockquote>
10708 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10712 <blockquote>Line one
10717 <blockquote>Line one
10725 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10744 Paragraphs inside blockquotes/divs (no extra line breaks)
10746 <blockquote><div>Line one
10748 Line two</div></blockquote>
10750 <blockquote><div>Line one
10751 Line two</div></blockquote>
10756 Paragraphs inside blockquotes/divs (extra line break on open)
10761 Line two</div></blockquote>
10766 Line two</div></blockquote>
10771 Paragraphs inside blockquotes/divs (extra line break on close)
10773 <blockquote><div>Line one
10776 </div></blockquote>
10778 <blockquote><div>Line one
10781 </div></blockquote>
10786 Paragraphs inside blockquotes/divs (extra line break on open and close)
10792 </div></blockquote>
10798 </div></blockquote>
10803 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10805 wgLinkHolderBatchSize=0
10811 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10812 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10813 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10818 Free external link invading image caption
10820 [[Image:Foobar.jpg|thumb|http://x|hello]]
10822 <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>
10827 Bug 15196: localised external link numbers
10831 [http://en.wikipedia.org/]
10833 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10838 Multibyte character in padleft
10840 {{padleft:-Hello|7|Æ}}
10847 Multibyte character in padright
10849 {{padright:Hello-|7|Æ}}
10858 wgUseDynamicDates=1
10862 <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>
10867 formatdate parser function
10869 {{#formatdate:2009-03-24}}
10871 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10876 formatdate parser function, with default format
10878 {{#formatdate:2009-03-24|mdy}}
10880 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10885 Linked date with autoformatting disabled
10887 wgUseDynamicDates=false
10891 <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>
10896 Spacing of numbers in formatted dates
10898 {{#formatdate:January 15}}
10900 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10905 Spacing of numbers in formatted dates (linked)
10907 wgUseDynamicDates=true
10911 <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>
10916 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
10918 language=nl title=[[MediaWiki:Common.css]]
10920 {{#formatdate:2009-03-24|dmy}}
10922 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10935 Edit comment with link
10939 I like the [[Main Page]] a lot
10941 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10945 Edit comment with link and link text
10949 I like the [[Main Page|best pages]] a lot
10951 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10955 Edit comment with link and link text with suffix
10959 I like the [[Main Page|best page]]s a lot
10961 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10965 Edit comment with section link (non-local, eg in history list)
10967 comment title=[[Main Page]]
10969 /* External links */ removed bogus entries
10971 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10975 Edit comment with section link and text before it (non-local, eg in history list)
10977 comment title=[[Main Page]]
10979 pre-comment text /* External links */ removed bogus entries
10981 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>
10985 Edit comment with section link (local, eg in diff view)
10987 comment local title=[[Main Page]]
10989 /* External links */ removed bogus entries
10991 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10995 Edit comment with subpage link (bug 14080)
10999 title=[[Subpage test]]
11001 Poked at a [[/subpage]] here...
11003 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11007 Edit comment with subpage link and link text (bug 14080)
11011 title=[[Subpage test]]
11013 Poked at a [[/subpage|neat little page]] here...
11015 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11019 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11022 title=[[Subpage test]]
11024 Poked at a [[/subpage]] here...
11026 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11030 Edit comment with bare anchor link (local, as on diff)
11034 title=[[Main Page]]
11038 <a href="#section">#section</a>
11042 Edit comment with bare anchor link (non-local, as on history)
11045 title=[[Main Page]]
11049 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11053 Anchor starting with underscore
11057 <p><a href="#_ref">One</a>
11062 Id starting with underscore
11064 <div id="_ref"></div>
11066 <div id="_ref"></div>
11071 Space normalisation on autocomment (bug 22784)
11074 title=[[Main Page]]
11076 /* __hello__world__ */
11078 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11082 percent-encoding and + signs in comments (Bug 26410)
11086 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11088 <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>
11092 Bad images - basic functionality
11101 Bad images - bug 16039: text after bad image disappears
11115 Verify that displaytitle works (bug #22501) no displaytitle
11119 wgAllowDisplayTitle=true
11120 wgRestrictDisplayTitle=false
11122 this is not the the title
11125 <p>this is not the the title
11130 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11135 wgAllowDisplayTitle=true
11136 wgRestrictDisplayTitle=false
11138 this is not the the title
11139 {{DISPLAYTITLE:whatever}}
11142 <p>this is not the the title
11147 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11152 wgAllowDisplayTitle=true
11153 wgRestrictDisplayTitle=true
11155 this is not the the title
11156 {{DISPLAYTITLE:whatever}}
11159 <p>this is not the the title
11164 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11169 wgAllowDisplayTitle=true
11170 wgRestrictDisplayTitle=true
11172 this is not the the title
11173 {{DISPLAYTITLE:screen}}
11176 <p>this is not the the title
11181 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11186 wgAllowDisplayTitle=false
11188 this is not the the title
11189 {{DISPLAYTITLE:screen}}
11192 <p>this is not the the title
11193 <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>
11198 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11203 wgAllowDisplayTitle=false
11205 this is not the the title
11208 <p>this is not the the title
11213 preload: check <noinclude> and <includeonly>
11217 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11223 preload: check <onlyinclude>
11227 Goodbye <onlyinclude>Hello world</onlyinclude>
11233 preload: can pass tags through if we want to
11237 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11239 <includeonly>Hello world</includeonly>
11243 preload: check that it doesn't try to do tricks
11247 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11249 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11253 Play a bit with r67090 and bug 3158
11257 <div style="width:50% !important"> </div>
11258 <div style="width:50% !important"> </div>
11259 <div style="width:50% !important"> </div>
11260 <div style="border : solid;"> </div>
11262 <div style="width:50% !important"> </div>
11263 <div style="width:50% !important"> </div>
11264 <div style="width:50% !important"> </div>
11265 <div style="border : solid;"> </div>
11270 HTML5 data attributes
11272 <span data-foo="bar">Baz</span>
11273 <p data-abc-def_hij="">Quuz</p>
11275 <p><span data-foo="bar">Baz</span>
11277 <p data-abc-def_hij="">Quuz</p>
11282 percent-encoding and + signs in internal links (Bug 26410)
11284 [[User:+%]] [[Page+title%]]
11285 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11286 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11287 [[%33%45]] [[%33%45+]]
11289 <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>
11290 <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>
11291 <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>
11292 <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>
11297 Special characters in embedded file links (bug 27679)
11299 [[File:Contains & ampersand.jpg]]
11300 [[File:Does not exist.jpg|Title with & ampersand]]
11302 <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>
11303 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11309 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11311 Text's been normalized?
11313 <p>Text's been normalized?
11318 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11320 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11322 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11327 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11329 [http://www.example.org/ ideograms]
11331 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11336 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11338 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11340 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11364 Bug 31098 Template which includes system messages which includes the template
11368 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11369 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11374 Deprecated presentational attributes are converted to css
11377 | valign=top align=left width=100 height=25% | Asdf
11379 <ul type="disc"></ul>
11383 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11385 <ul style="list-style-type: disc;"></ul>
11390 Bug31490 Turkish: ucfirst 'blah'
11401 Bug31490 Turkish: ucfirst 'ix'
11412 Bug31490 Turkish: lcfirst 'BLAH'
11423 Bug31490 Turkish: ucfırst (with a dotless i)
11429 <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>
11434 Bug31490 ucfırst (with a dotless i) with English language
11440 <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>
11445 Bug 26375: TOC with italics
11447 title=[[Main Page]]
11450 == ''Lost'' episodes ==
11452 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11454 <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>
11457 <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>
11462 Bug 26375: TOC with bold
11464 title=[[Main Page]]
11467 == '''should be bold''' then normal text ==
11469 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11471 <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>
11474 <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>
11479 Bug 33845: Headings become cursive in TOC when they contain an image
11481 title=[[Main Page]]
11484 == Image [[Image:foobar.jpg]] ==
11486 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11488 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11491 <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>
11496 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11498 title=[[Main Page]]
11501 == <blockquote>Quote</blockquote> ==
11503 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11505 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11508 <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>
11513 Unclosed tags in TOC
11515 title=[[Main Page]]
11519 <small>Hanc marginis exiguitas non caperet.</small>
11522 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11524 <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>
11527 <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>
11528 <p><small>Hanc marginis exiguitas non caperet.</small>
11534 Multiple tags in TOC
11537 == <i>Foo</i> <b>Bar</b> ==
11539 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11541 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11543 <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>
11544 <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>
11547 <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>
11548 <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>
11553 Tags with parameters in TOC
11556 == <sup class="in-h2">Hello</sup> ==
11558 == <sup class="a > b">Evilbye</sup> ==
11560 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11562 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11563 <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>
11566 <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>
11567 <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>
11572 span tags with directionality in TOC
11575 == <span dir="ltr">C++</span> ==
11577 == <span dir="rtl">זבנג!</span> ==
11579 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11581 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11583 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11585 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11587 <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>
11588 <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>
11589 <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>
11590 <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>
11591 <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>
11594 <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>
11595 <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>
11596 <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>
11597 <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>
11598 <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>
11605 == {{int:headline_sample}} ==
11609 Bug 32057: Title needed when expanding <h> nodes.
11611 title=[[Main Page]]
11615 <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>
11620 Strip marker in urlencode
11622 {{urlencode:x<nowiki/>y}}
11623 {{urlencode:x<nowiki/>y|wiki}}
11624 {{urlencode:x<nowiki/>y|path}}
11651 Strip marker in formatNum
11653 {{formatnum:1<nowiki/>2}}
11654 {{formatnum:1<nowiki/>2|R}}
11662 Strip marker in grammar
11666 {{grammar:elative|foo<nowiki/>bar}}
11673 Strip marker in padleft
11675 {{padleft:|2|x<nowiki/>y}}
11682 Strip marker in padright
11684 {{padright:|2|x<nowiki/>y}}
11691 Strip marker in anchorencode
11693 {{anchorencode:x<nowiki/>y}}
11700 nowiki inside link inside heading (bug 18295)
11702 ==[[foo|x<nowiki>y</nowiki>z]]==
11704 <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>
11709 new support for bdi element (bug 31817)
11711 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11713 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11718 Ignore pipe between table row attributes
11722 |- id=foo | style='color: red'
11730 <tr id="foo" style="color: red">
11737 Gallery override link with WikiLink (bug 34852)
11740 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11743 <ul class="gallery">
11744 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11745 <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>
11746 <div class="gallerytext">
11756 Gallery override link with absolute external link (bug 34852)
11759 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11762 <ul class="gallery">
11763 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11764 <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>
11765 <div class="gallerytext">
11775 Gallery override link with malicious javascript (bug 34852)
11778 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11781 <ul class="gallery">
11782 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11783 <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>
11784 <div class="gallerytext">
11794 Language parser function
11803 Padleft and padright as substr
11805 {{padleft:|3|abcde}}
11806 {{padright:|3|abcde}}
11814 Bug 34939 - Case insensitive link parsing ([HttP://])
11816 [HttP://MediaWiki.Org/]
11818 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11823 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11825 [HttP://MediaWiki.Org/ MediaWiki]
11827 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11832 Bug 34939 - Case insensitive link parsing (HttP://)
11834 HttP://MediaWiki.Org/
11836 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11841 ### Parsoids-specific tests
11842 ### Parsoid-PHP parser incompatibilities
11845 1. SOL-sensitive wikitext tokens as template-args
11859 #### The following section of tests are primarily to test
11860 #### wikitext escaping capabilities of Parsoid.
11861 #### A lot of the tests are disabled for the PHP parser either
11862 #### because of minor newline diffs or other reasons.
11863 #### As Parsoid serializer can handle newlines and other HTML
11864 #### more robustly, some of these tests might get reenabled
11865 #### for the PHP parser.
11867 #### --------------- Headings ---------------
11869 #### 1. Nested inside html <h1>=foo=</h1>
11870 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11871 #### 3. Nested inside html with wikitext split by html tags
11872 #### 4. No escape needed
11873 #### 5. Empty headings <h1></h1>
11874 #### 6. Heading chars in SOL context
11875 #### ----------------------------------------
11877 Headings: 0. Unnested
11879 <nowiki>=foo=</nowiki>
11881 <nowiki>=foo</nowiki>''a''=
11884 </p><p>=foo<i>a</i>=
11889 Headings: 1. Nested inside html
11893 =<nowiki>=foo=</nowiki>=
11894 ==<nowiki>=foo=</nowiki>==
11895 ===<nowiki>=foo=</nowiki>===
11896 ====<nowiki>=foo=</nowiki>====
11897 =====<nowiki>=foo=</nowiki>=====
11898 ======<nowiki>=foo=</nowiki>======
11909 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11914 <nowiki>*bar</nowiki>
11918 <nowiki>=bar=</nowiki>
11926 Headings: 3. Nested inside html with wikitext split by html tags
11930 =<nowiki>=</nowiki>'''bold'''foo==
11932 <h1>=<b>bold</b>foo=</h1>
11936 Headings: 4. No escaping needed (testing just h1 and h2)
11951 <h1><i>=</i>foo=</h1>
11956 Headings: 5. Empty headings
11960 =<nowiki></nowiki>=
11961 ==<nowiki></nowiki>==
11962 ===<nowiki></nowiki>===
11963 ====<nowiki></nowiki>====
11964 =====<nowiki></nowiki>=====
11965 ======<nowiki></nowiki>======
11976 Headings: 6. Heading chars in SOL context
11980 <!--cmt--><nowiki>=h1=</nowiki>
11986 #### --------------- Lists ---------------
11987 #### 0. Outside nests (*foo, etc.)
11988 #### 1. Nested inside html <ul><li>*foo</li></ul>
11989 #### 2. Inside definition lists
11990 #### 3. Only bullets at start should be escaped
11991 #### 4. No escapes needed
11992 #### 5. No unnecessary escapes
11993 #### 6. Escape bullets in SOL position
11994 #### 7. Escape bullets in a multi-line context
11995 #### ----------------------------------------
11998 Lists: 0. Outside nests
12000 <nowiki>*foo</nowiki>
12002 <nowiki>#foo</nowiki>
12010 Lists: 1. Nested inside html
12012 *<nowiki>*foo</nowiki>
12014 *<nowiki>#foo</nowiki>
12016 *<nowiki>:foo</nowiki>
12018 *<nowiki>;foo</nowiki>
12020 #<nowiki>*foo</nowiki>
12022 #<nowiki>#foo</nowiki>
12024 #<nowiki>:foo</nowiki>
12026 #<nowiki>;foo</nowiki>
12048 Lists: 2. Inside definition lists
12050 ;<nowiki>;foo</nowiki>
12052 ;<nowiki>:foo</nowiki>
12054 ;<nowiki>:foo</nowiki>
12057 :<nowiki>:foo</nowiki>
12072 Lists: 3. Only bullets at start of text should be escaped
12074 *<nowiki>*foo*bar</nowiki>
12076 *<nowiki>*foo</nowiki>''it''*bar
12080 <ul><li>*foo<i>it</i>*bar
12086 Lists: 4. No escapes needed
12098 <ul><li><i>foo</i>*bar
12100 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12105 Lists: 5. No unnecessary escapes
12107 * bar <span><nowiki>[[foo]]</nowiki></span>
12109 *=bar <span><nowiki>[[foo]]</nowiki></span>
12111 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12113 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12115 *=bar <span>foo]]</span>=
12117 <ul><li> bar <span>[[foo]]</span>
12119 <ul><li>=bar <span>[[foo]]</span>
12121 <ul><li>[[bar <span>[[foo]]</span>
12123 <ul><li>]]bar <span>[[foo]]</span>
12125 <ul><li>=bar <span>foo]]</span>=
12131 Lists: 6. Escape bullets in SOL position
12135 <!--cmt--><nowiki>*foo</nowiki>
12142 Lists: 7. Escape bullets in a multi-line context
12152 #### --------------- HRs ---------------
12153 #### 1. Single line
12154 #### -----------------------------------
12157 HRs: 1. Single line
12162 <nowiki>----</nowiki>
12164 <nowiki>=foo=</nowiki>
12166 <nowiki>*foo</nowiki>
12173 #### --------------- Tables ---------------
12174 #### 1a. Simple example
12175 #### 1b. No escaping needed (!foo)
12176 #### 1c. No escaping needed (|foo)
12177 #### 1d. No escaping needed (|}foo)
12179 #### 2a. Nested in td (<td>foo|bar</td>)
12180 #### 2b. Nested in td (<td>foo||bar</td>)
12181 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12183 #### 3a. Nested in th (<th>foo!bar</th>)
12184 #### 3b. Nested in th (<th>foo!!bar</th>)
12185 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12189 #### 4c. No escaping needed
12190 #### --------------------------------------
12193 Tables: 1a. Simple example
12204 Tables: 1b. No escaping needed
12213 Tables: 1c. No escaping needed
12222 Tables: 1d. No escaping needed
12231 Tables: 2a. Nested in td
12236 |<nowiki>foo|bar</nowiki>
12246 Tables: 2b. Nested in td
12251 |<nowiki>foo||bar</nowiki>
12252 |''it''<nowiki>foo||bar</nowiki>
12257 </td><td><i>it</i>foo||bar
12263 Tables: 2c. Nested in td -- no escaping needed
12278 Tables: 3a. Nested in th
12293 Tables: 3b. Nested in th
12298 !<nowiki>foo!!bar</nowiki>
12308 Tables: 3c. Nested in th -- no escaping needed
12323 Tables: 4a. Escape -
12331 |<nowiki>-bar</nowiki>
12335 <tr><th>-bar</th></tr>
12336 <tr><td>-bar</td></tr>
12341 Tables: 4b. Escape +
12349 |<nowiki>+bar</nowiki>
12353 <tr><th>+bar</th></tr>
12354 <tr><td>+bar</td></tr>
12359 Tables: 4c. No escaping needed
12373 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12374 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12378 #### --------------- Links ---------------
12379 #### 1. Quote marks in link text
12380 #### 2. Wikilinks: Escapes needed
12381 #### 3. Wikilinks: No escapes needed
12382 #### 4. Extlinks: Escapes needed
12383 #### 5. Extlinks: No escapes needed
12384 #### --------------------------------------
12386 Links 1. Quote marks in link text
12390 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12392 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12396 Links 2. WikiLinks: Escapes needed
12400 [[Foo|<nowiki>[Foobar]</nowiki>]]
12401 [[Foo|<nowiki>Foobar]</nowiki>]]
12402 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12403 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12404 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12405 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12406 [[Foo|<nowiki>|Bar</nowiki>]]
12408 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12409 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12410 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12411 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12412 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12413 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12414 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12418 Links 3. WikiLinks: No escapes needed
12425 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12426 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12430 Links 4. ExtLinks: Escapes needed
12434 [http://google.com <nowiki>[google]</nowiki>]
12435 [http://google.com <nowiki>google]</nowiki>]
12437 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12438 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12442 Links 5. ExtLinks: No escapes needed
12446 [http://google.com [google]
12448 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12451 #### --------------- Quotes ---------------
12452 #### 1. Quotes inside <b> and <i>
12453 #### 2. Link fragments separated by <i> and <b> tags
12454 #### 3. Link fragments inside <i> and <b>
12455 #### --------------------------------------
12457 1. Quotes inside <b> and <i>
12459 ''<nowiki>'foo'</nowiki>''
12460 ''<nowiki>''foo''</nowiki>''
12461 ''<nowiki>'''foo'''</nowiki>''
12462 '''<nowiki>'foo'</nowiki>'''
12463 '''<nowiki>''foo''</nowiki>'''
12464 '''<nowiki>'''foo'''</nowiki>'''
12465 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12473 <b>foo'<i>bar'</i>baz</b>
12478 2. Link fragments separated by <i> and <b> tags
12480 [[''foo''<nowiki>hello]]</nowiki>
12482 [['''foo'''<nowiki>hello]]</nowiki>
12484 <p>[[<i>foo</i>hello]]
12485 </p><p>[[<b>foo</b>hello]]
12490 2. Link fragments inside <i> and <b>
12491 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12492 this is one of the shortcomings of this format)
12494 ''[[foo''<nowiki>]]</nowiki>
12496 '''[[foo'''<nowiki>]]</nowiki>
12499 </p><p><b>[[foo</b>]]
12503 #### --------------- Paragraphs ---------------
12504 #### 1. No unnecessary escapes
12505 #### --------------------------------------
12508 1. No unnecessary escapes
12510 bar <span><nowiki>[[foo]]</nowiki></span>
12512 =bar <span><nowiki>[[foo]]</nowiki></span>
12514 [[bar <span><nowiki>[[foo]]</nowiki></span>
12516 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12518 <nowiki>=bar </nowiki><span>foo]]</span>=
12520 <p>bar <span>[[foo]]</span>
12521 </p><p>=bar <span>[[foo]]</span>
12522 </p><p>[[bar <span>[[foo]]</span>
12523 </p><p>]]bar <span>[[foo]]</span>
12524 </p><p>=bar <span>foo]]</span>=
12528 #### --------------- PRE ------------------
12529 #### 1. Leading space in SOL context should be escaped
12530 #### --------------------------------------
12532 1. Leading space in SOL context should be escaped
12536 <nowiki> foo</nowiki>
12537 <!--cmt--><nowiki> foo</nowiki>
12544 #### --------------- HTML tags ---------------
12547 #### 3. multi-line html tag
12548 #### --------------------------------------
12554 <a href="http://google.com">google</a>
12556 <a href="http://google.com">google</a>
12562 <nowiki><div>foo</div>
12563 <div style="color:red">foo</div></nowiki>
12565 <p><div>foo</div>
12566 <div style="color:red">foo</div>
12571 3. multi-line html tag
12583 #### --------------- Others ---------------
12587 <nowiki>foo</nowiki>
12589 <p><nowiki>foo</nowiki>
12598 Try for 100% code coverage