1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
118 This is a simple paragraph.
120 <p>This is a simple paragraph.
125 Paragraphs with extra newline spacing
163 * plain''italic''plain
164 * plain''italic''plain''italic''plain
165 * plain'''bold'''plain
166 * plain'''bold'''plain'''bold'''plain
167 * plain''italic''plain'''bold'''plain
168 * plain'''bold'''plain''italic''plain
169 * plain''italic'''bold-italic'''italic''plain
170 * plain'''bold''bold-italic''bold'''plain
171 * plain'''''bold-italic'''italic''plain
172 * plain'''''bold-italic''bold'''plain
173 * plain''italic'''bold-italic'''''plain
174 * plain'''bold''bold-italic'''''plain
175 * plain l'''italic''plain
176 * plain l''''bold''' plain
179 </li><li> plain<i>italic</i>plain
180 </li><li> plain<i>italic</i>plain<i>italic</i>plain
181 </li><li> plain<b>bold</b>plain
182 </li><li> plain<b>bold</b>plain<b>bold</b>plain
183 </li><li> plain<i>italic</i>plain<b>bold</b>plain
184 </li><li> plain<b>bold</b>plain<i>italic</i>plain
185 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
186 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
187 </li><li> plain<i><b>bold-italic</b>italic</i>plain
188 </li><li> plain<b><i>bold-italic</i>bold</b>plain
189 </li><li> plain<i>italic<b>bold-italic</b></i>plain
190 </li><li> plain<b>bold<i>bold-italic</i></b>plain
191 </li><li> plain l'<i>italic</i>plain
192 </li><li> plain l'<b>bold</b> plain
198 ### 2-quote opening sequence tests
201 Italics and bold: 2-quote opening sequence: (2,2)
211 Italics and bold: 2-quote opening sequence: (2,3)
221 Italics and bold: 2-quote opening sequence: (2,4)
231 Italics and bold: 2-quote opening sequence: (2,5)
241 ### 3-quote opening sequence tests
245 Italics and bold: 3-quote opening sequence: (3,2)
255 Italics and bold: 3-quote opening sequence: (3,3)
265 Italics and bold: 3-quote opening sequence: (3,4)
275 Italics and bold: 3-quote opening sequence: (3,5)
285 ### 4-quote opening sequence tests
289 Italics and bold: 4-quote opening sequence: (4,2)
299 Italics and bold: 4-quote opening sequence: (4,3)
309 Italics and bold: 4-quote opening sequence: (4,4)
319 Italics and bold: 4-quote opening sequence: (4,5)
329 ### 5-quote opening sequence tests
333 Italics and bold: 5-quote opening sequence: (5,2)
343 Italics and bold: 5-quote opening sequence: (5,3)
353 Italics and bold: 5-quote opening sequence: (5,4)
357 <p><i><b>foo'</b></i>
363 Italics and bold: 5-quote opening sequence: (5,5)
372 ### multiple quote sequences in a line
375 Italics and bold: multiple quote sequences: (2,4,2)
379 <p><i>foo'<b>bar</b></i>
385 Italics and bold: multiple quote sequences: (2,4,3)
389 <p><i>foo'<b>bar</b></i>
395 Italics and bold: multiple quote sequences: (2,4,4)
399 <p><i>foo'<b>bar'</b></i>
405 Italics and bold: multiple quote sequences: (3,4,2)
415 Italics and bold: multiple quote sequences: (3,4,3)
424 ### other quote tests
427 Italics and bold: other quote tests: (2,3,5)
429 ''this is about '''foo's family'''''
431 <p><i>this is about <b>foo's family</b></i>
437 Italics and bold: other quote tests: (2,(3,3),2)
439 ''this is about '''foo's''' family''
441 <p><i>this is about <b>foo's</b> family</i>
447 Italics and bold: other quote tests: (3,2,3,2)
449 '''this is about ''foo'''s family''
451 <p><b>this is about <i>foo</i></b><i>s family</i>
457 Italics and bold: other quote tests: (3,2,3,3)
459 '''this is about ''foo'''s family'''
461 <p>'<i>this is about </i>foo<b>s family</b>
468 Italics and bold: other quote tests: (3,(2,2),3)
470 '''this is about ''foo's'' family'''
472 <p><b>this is about <i>foo's</i> family</b>
477 ### <nowiki> test cases
481 <nowiki> unordered list
483 <nowiki>* This is not an unordered list item.</nowiki>
485 <p>* This is not an unordered list item.
492 <nowiki>Lorem ipsum dolor
513 :There is not nowiki.
514 :There is <nowiki>nowiki</nowiki>.
516 #There is not nowiki.
517 #There is <nowiki>nowiki</nowiki>.
519 *There is not nowiki.
520 *There is <nowiki>nowiki</nowiki>.
522 <dl><dd>There is not nowiki.
523 </dd><dd>There is nowiki.
525 <ol><li>There is not nowiki.
526 </li><li>There is nowiki.
528 <ul><li>There is not nowiki.
529 </li><li>There is nowiki.
541 <!-- comment 1 --> asdf
543 <!-- comment 1 --> asdf
546 <!-- comment 1 --> asdf
547 <!-- comment 2 -->xyz
549 <!-- comment 1 --> asdf
550 <!-- comment 2 --> xyz
606 asdf<!-- comment 1 -->jkl
616 <!-- foo --> b <!-- bar -->
630 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
636 Comment semantics and delimiters
638 <!-- --><!----><!-----><!------>
644 Comment semantics and delimiters, redux
646 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
647 -- foo -- funky huh? ... -->
653 Comment semantics and delimiters: directors cut
655 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
656 everything starting with < followed by !-- until the first -- and > we see,
657 that wouldn't be valid XML however, since in XML -- has to terminate a comment
665 Comment semantics: nesting
667 <!--<!-- no, we're not going to do anything fancy here -->-->
674 Comment semantics: unclosed comment at end
676 <!--This comment will run out to the end of the document
682 Comment in template title
691 Comment on its own line post-expand
703 Comment on its own line post-expand with non-significant whitespace
715 ### paragraph wraping tests
729 Block tag on one line
741 Block tag on both lines
753 Multiple lines without block tags
771 ### Preformatted text
780 And a [[Main Page|link]]
786 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
791 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
808 Regression with preformatted in <center>
821 # Expected output in the following test is not really expected (there should be
822 # <pre> in the output) -- it's only testing for well-formedness.
824 Bug 6200: Preformatted in <blockquote>
837 <pre> with attributes (bug 3202)
839 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
841 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
846 <pre> with width attribute (bug 3202)
848 <pre width="8">Narrow screen goodies</pre>
850 <pre width="8">Narrow screen goodies</pre>
855 <pre> with forbidden attribute (bug 3202)
857 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
859 <pre width="8">Narrow screen goodies</pre>
864 <pre> with forbidden attribute values (bug 3202)
866 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
868 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
873 <nowiki> inside <pre> (bug 13238)
881 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
889 <pre><nowiki>Foo</nowiki></pre>
894 <nowiki> and <pre> preference (first one wins)
927 <nowiki></pre></nowiki>
934 Templates: Pre: 1a. Templates that break a line should suppress <pre>
942 Templates: Pre: 1b. Templates that break a line should suppress <pre>
952 Templates: Pre: 1c: Wrapping should be based on expanded content
964 Templates: Pre: 1d: Wrapping should be based on expanded content
985 Templates: Pre: 1e. Wrapping should be based on expanded content
989 {{echo| foo}}{{echo| bar}}
994 {{echo|<!--cmt--> foo}}
996 <!--cmt-->{{echo| foo}}
998 {{echo|{{echo| }}bar}}
1016 Templates: Pre: 1f: Wrapping should be based on expanded content
1053 Templates: Single-line variant of parameter whitespace stripping test
1059 {{echo|{{echo| a}}}}
1061 {{echo|1={{echo| a}}}}
1074 Templates: Strip whitespace from named parameters, but not positional ones
1102 ### Parsoid-centric tests for testing RT edge cases for pre
1106 1a. Pre and Comments
1119 1b. Pre and Comments
1132 1c. Pre and Comments
1182 3a. Pre and block tags (single-line html)
1190 <pre><span> foo </span>
1195 3b. Pre and block tags (pre-content on separate line)
1247 4. Multiple spaces at start-of-line
1266 ### Definition lists
1273 <dl><dt> name </dt><dd> Definition
1279 Definition list for indentation only
1283 <dl><dd> Indented text
1289 Definition list with no space
1293 <dl><dt>name</dt><dd>Definition
1299 Definition list with URL link
1301 ; http://example.com/ : definition
1303 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1309 Definition list with bracketed URL link
1311 ;[http://www.example.com/ Example]:Something about it
1313 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1319 Definition list with wikilink containing colon
1321 ; [[Help:FAQ]]: The least-read page on Wikipedia
1323 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1328 # At Brion's and JeLuF's insistence... :)
1330 Definition list with news link containing colon
1332 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1334 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1340 Malformed definition list with colon
1342 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1344 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1350 Definition lists: colon in external link text
1352 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1354 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1360 Definition lists: colon in HTML attribute
1362 ;<b style="display: inline">bold</b>
1364 <dl><dt><b style="display: inline">bold</b>
1370 Definition lists: self-closed tag
1372 ;one<br/>two : two-line fun
1374 <dl><dt>one<br />two </dt><dd> two-line fun
1380 Bug 11748: Literal closing tags
1384 <dd>test test test test test</dd>
1386 <dd>test test test test test</dd>
1391 <dd>test test test test test</dd>
1393 <dd>test test test test test</dd>
1399 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1402 ; term : description
1408 <dl><dt> term </dt><dd> description
1419 Definition list with empty definition and following paragraph
1424 <dl><dt> term</dt><dd>
1431 Nested definition lists using html syntax
1448 Definition Lists: No nesting: Multiple dd's
1462 Definition Lists: Indentation: Regular
1478 Definition Lists: Indentation: Missing 1st level
1492 Definition Lists: Indentation: Multi-level indent
1496 <dl><dd><dl><dd><dl><dd>i3
1504 Definition Lists: Hacky use to indent tables
1511 should be left alone
1513 <dl><dd><dl><dd><table>
1518 </td></tr></table></dd></dl></dd></dl>
1520 should be left alone
1523 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1524 ## as an empty dt item. It also ignores all but the last ";" when followed
1525 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1526 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1529 ## Ex: ";;t2 ::d2" is transformed into:
1541 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1542 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1553 ## All Parsoid only definition list tests have this difference.
1555 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1556 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1559 Definition Lists: Nesting: Multi-level (Parsoid only)
1589 Definition Lists: Nesting: Test 2 (Parsoid only)
1609 Definition Lists: Nesting: Test 3 (Parsoid only)
1637 Definition Lists: Nesting: Test 4
1642 <dl><dd><dl><dd><dl><dt>t3
1652 Definition Lists: Mixed Lists: Test 1
1658 <dl><dd><dl><dt><ul><li> foo
1670 Definition Lists: Mixed Lists: Test 2
1684 Definition Lists: Mixed Lists: Test 3
1689 <ul><li><dl><dd><dl><dd><dl><dd> d1
1700 Definition Lists: Mixed Lists: Test 4
1705 <ul><li><dl><dt>d1 </dt><dd>d2
1706 </dd><dt>d3 </dt><dd>d4
1714 Definition Lists: Mixed Lists: Test 5
1729 Definition Lists: Mixed Lists: Test 6
1734 <ol><li><ul><li><dl><dd>d1
1746 Definition Lists: Mixed Lists: Test 7
1760 Definition Lists: Mixed Lists: Test 8
1776 Definition Lists: Mixed Lists: Test 9
1780 <ul><li><dl><dt>foo </dt><dd>bar
1788 Definition Lists: Mixed Lists: Test 10
1792 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1801 Definition Lists: Mixed Lists: Test 11
1806 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1811 <dl><dt>boo </dt><dd>baz
1822 Definition Lists: Weird Ones: Test 1
1824 *#;*::;; foo : bar (who uses this?)
1826 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1842 External links: non-bracketed
1844 Non-bracketed: http://example.com
1846 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1851 External links: numbered
1853 Numbered: [http://example.com]
1854 Numbered: [http://example.net]
1855 Numbered: [http://example.com]
1857 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1858 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1859 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1864 External links: specified text
1866 Specified text: [http://example.com link]
1868 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1873 External links: trail
1875 Linktrails should not work for external links: [http://example.com link]s
1877 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1882 External links: dollar sign in URL
1884 http://example.com/1$2345
1886 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1891 External links: dollar sign in URL (named)
1893 [http://example.com/1$2345]
1895 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1900 External links: open square bracket forbidden in URL (bug 4377)
1902 http://example.com/1[2345
1904 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1909 External links: open square bracket forbidden in URL (named) (bug 4377)
1911 [http://example.com/1[2345]
1913 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1918 External links: nowiki in URL link text (bug 6230)
1920 [http://example.com/ <nowiki>''example site''</nowiki>]
1922 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1927 External links: newline forbidden in text (bug 6230 regression check)
1929 [http://example.com/ first
1932 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1938 External links: Pipe char between url and text
1940 [http://example.com | link]
1942 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1947 External links: protocol-relative URL in brackets
1949 [//example.com/ Test]
1951 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1956 External links: protocol-relative URL in brackets without text
1960 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1965 External links: protocol-relative URL in free text is left alone
1969 <p>//example.com/Foo
1974 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1976 foo//example.com/Foo
1978 <p>foo//example.com/Foo
1985 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1987 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1992 External image from https
1994 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1996 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2001 Link to non-http image, no img tag
2003 Link to non-http image, no img tag: ftp://example.com/test.jpg
2005 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2010 External links: terminating separator
2012 Terminating separator: http://example.com/thing,
2014 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2019 External links: intervening separator
2021 Intervening separator: http://example.com/1,2,3
2023 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2028 External links: old bug with URL in query
2030 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2032 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2037 External links: old URL-in-URL bug, mixed protocols
2039 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2041 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2046 External links: URL in text
2048 URL in text: [http://example.com http://example.com]
2050 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2055 External links: Clickable images
2057 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2059 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2064 External links: raw ampersand
2066 Old & use: http://x&y
2068 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2073 External links: encoded ampersand
2075 Old & use: http://x&y
2077 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2082 External links: encoded equals (bug 6102)
2084 http://example.com/?foo=bar
2086 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2091 External links: [raw ampersand]
2093 Old & use: [http://x&y]
2095 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2100 External links: [encoded ampersand]
2102 Old & use: [http://x&y]
2104 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2109 External links: [encoded equals] (bug 6102)
2111 [http://example.com/?foo=bar]
2113 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2118 External links: [IDN ignored character reference in hostname; strip it right off]
2120 [http://e‌xample.com/]
2122 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2126 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2127 # Where an external link could easily circumvent the sanitization of the text of
2128 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2129 # test demands a higher standard. That's a bit strange.
2133 # http://example.com -> [http://example.com|http://example.com]
2134 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2136 # The first example is sanitized, but the second is not. Any security benefits
2137 # from this production are trivial to circumvent. Either remove this test and
2138 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2139 # the test accordingly.
2144 External links: IDN ignored character reference in hostname; strip it right off
2146 http://e‌xample.com/
2148 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2153 External links: www.jpeg.org (bug 554)
2157 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2162 External links: URL within URL (original bug 2)
2164 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2166 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2171 BUG 361: URL inside bracketed URL
2173 [http://www.example.com/foo http://www.example.com/bar]
2175 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2180 BUG 361: URL within URL, not bracketed
2182 http://www.example.com/foo?=http://www.example.com/bar
2184 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2189 BUG 289: ">"-token in URL-tail
2191 http://www.example.com/<hello>
2193 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2198 BUG 289: literal ">"-token in URL-tail
2200 http://www.example.com/<b>html</b>
2202 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2207 BUG 289: ">"-token in bracketed URL
2209 [http://www.example.com/<hello> stuff]
2211 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2216 BUG 289: literal ">"-token in bracketed URL
2218 [http://www.example.com/<b>html</b> stuff]
2220 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2225 BUG 289: literal double quote at end of URL
2227 http://www.example.com/"hello"
2229 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2234 BUG 289: literal double quote in bracketed URL
2236 [http://www.example.com/"hello" stuff]
2238 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2243 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2245 [http://www.example.com test]
2247 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2252 External links: wiki links within external link (Bug 3695)
2254 [http://example.com [[wikilink]] embedded in ext link]
2256 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2261 BUG 787: Links with one slash after the url protocol are invalid
2265 [http:/example.com title]
2267 <p>http:/example.com
2268 </p><p>[http:/example.com title]
2273 Bracketed external links with template-generated invalid target
2275 [{{echo|http:/example.com}} title]
2277 <p>[http:/example.com title]
2282 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2284 ''[http://example.com text'']
2285 [http://example.com '''text]'''
2286 ''Something [http://example.com in italic'']
2287 ''Something [http://example.com mixed''''', even bold]'''
2288 '''''Now [http://example.com both''''']
2290 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2291 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2292 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2293 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2294 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2300 Bug 4781: %26 in URL
2302 http://www.example.com/?title=AT%26T
2304 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2308 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2309 # % is actually legal in HTML5. Any change in output would need testing though.
2311 Bug 4781, 5267: %25 in URL
2313 http://www.example.com/?title=100%25_Bran
2315 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2320 Bug 4781, 5267: %28, %29 in URL
2322 http://www.example.com/?title=Ben-Hur_%281959_film%29
2324 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2330 Bug 4781: %26 in autonumber URL
2332 [http://www.example.com/?title=AT%26T]
2334 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2339 Bug 4781, 5267: %26 in autonumber URL
2341 [http://www.example.com/?title=100%25_Bran]
2343 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2348 Bug 4781, 5267: %28, %29 in autonumber URL
2350 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2352 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2358 Bug 4781: %26 in bracketed URL
2360 [http://www.example.com/?title=AT%26T link]
2362 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2367 Bug 4781, 5267: %26 in bracketed URL
2369 [http://www.example.com/?title=100%25_Bran link]
2371 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2376 Bug 4781, 5267: %28, %29 in bracketed URL
2378 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2380 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2385 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2387 Some [http://example.com/ pretty ''italics'' and stuff]!
2389 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2394 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2396 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2398 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2403 External link containing double-single-quotes with no space separating the url from text in italics
2405 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2407 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2412 URL-encoding in URL functions (single parameter)
2414 {{localurl:Some page|amp=&}}
2416 <p>/index.php?title=Some_page&amp=&
2421 URL-encoding in URL functions (multiple parameters)
2423 {{localurl:Some page|q=?&=&}}
2425 <p>/index.php?title=Some_page&q=?&amp=&
2432 http://example.com/index.php?foozoid%5B%5D=bar
2434 http://example.com/index.php?foozoid[]=bar
2436 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2437 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2442 IPv6 urls (bug 21261)
2446 http://[2404:130:0:1000::187:2]/index.php
2448 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
2459 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2461 Normal text. '''''Bold italic text.''''' Normal text.
2463 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2464 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2470 Unclosed and unmatched quotes
2472 '''''Bold italic text '''with bold deactivated''' in between.'''''
2474 '''''Bold italic text ''with italic deactivated'' in between.'''''
2478 ..spanning two paragraphs (should not work).'''
2480 '''Bold tag left open
2482 ''Italic tag left open
2486 <!-- Unmatching number of opening, closing tags: -->
2487 '''This year''''s election ''should'' beat '''last year''''s.
2489 ''Tom'''s car is bigger than ''Susan'''s.
2491 Plain ''italic'''s plain
2493 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2494 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2495 </p><p><b>Bold text..</b>
2496 </p><p>..spanning two paragraphs (should not work).
2497 </p><p><b>Bold tag left open</b>
2498 </p><p><i>Italic tag left open</i>
2500 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2501 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2502 </p><p>Plain <i>italic'</i>s plain
2509 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2512 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2513 # is the bare minimun required by the spec, see:
2514 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2516 A table with no data.
2522 # A table with nothing but a caption is invalid XHTML, we might want to render
2523 # this as <p>caption</p>
2525 A table with nothing but a caption
2533 </caption><tr><td></td></tr></table>
2559 Simple table but with multiple dashes for row wikitext
2577 Multiplication table
2579 {| border="1" cellpadding="2"
2580 |+Multiplication table
2582 ! × !! 1 !! 2 !! 3
2600 <table border="1" cellpadding="2">
2601 <caption>Multiplication table
2648 Allow +/- in 2nd and later cells in a row
2675 |rowspan=2| Cell 2, row 1 (and 2)
2686 <td rowspan="2"> Cell 2, row 1 (and 2)
2704 {| bgcolor=#ABCDEF border=2
2709 |the original table again
2717 <table bgcolor="#ABCDEF" border="2">
2725 <td>the original table again
2731 Invalid attributes in table cell (bug 1830)
2746 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2749 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2753 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2754 <td>]" onmouseover="alert(document.cookie)">test
2763 Indented table markup mixed with indented pre content (proposed in bug 6200)
2768 Text that should be rendered preformatted
2776 <pre>Text that should be rendered preformatted
2785 Template-generated table cell attributes and cell content
2793 <td style="color: red"> Foo
2802 Plain link, capitalized
2806 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2811 Plain link, uncapitalized
2815 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2822 [[Main Page|The Main Page]]
2824 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2833 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2838 Broken link with fragment
2840 [[Zigzagzogzagzig#zug]]
2842 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2847 Special page link with fragment
2849 [[Special:Version#anchor]]
2851 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2856 Nonexistent special page link with fragment
2858 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2860 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2867 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2869 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2876 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2878 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
2883 Link with 3 brackets
2892 Piped link with 3 brackets
2894 [[[main page|the main page]]]
2896 <p>[[[main page|the main page]]]
2901 Link with multiple pipes
2903 [[Main Page|The|Main|Page]]
2905 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2912 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2914 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
2919 Piped link to namespace
2921 [[Meta:Disclaimers|The disclaimers]]
2923 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2930 [[Usually caused by a typo (oops}]]
2932 <p>[[Usually caused by a typo (oops}]]
2937 Link containing % (not as a hex sequence)
2941 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
2946 Link containing % as a single hex sequence interpreted to char
2950 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
2955 Link containing % as a double hex sequence interpreted to hex sequence
2959 <p>[[7%2525 Solution]]
2964 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2965 Example for such a section: == < ==
2967 [[%23%3c]][[%23%3e]]
2969 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2974 Link containing "<#" and ">#" as a hex sequences
2976 [[%3c%23]][[%3e%23]]
2978 <p>[[%3c%23]][[%3e%23]]
2983 Link containing double-single-quotes '' (bug 4598)
2985 [[Lista d''e paise d''o munno]]
2987 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
2992 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2994 Some [[Link|pretty ''italics'' and stuff]]!
2996 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
3001 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3003 ''Some [[Link|pretty ''italics'' and stuff]]!
3005 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
3010 Link with double quotes in title part (literal) and alternate part (interpreted)
3012 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3016 [[''Pentecoste''|Pentecoste]]
3018 [[''Pentecoste''|''Pentecoste'']]
3020 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
3021 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
3022 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
3023 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
3028 Broken image links with HTML captions (bug 39700)
3030 [[File:Nonexistent|<script></script>]]
3031 [[File:Nonexistent|100px|<script></script>]]
3032 [[File:Nonexistent|<]]
3033 [[File:Nonexistent|a<i>b</i>c]]
3035 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3036 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3037 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3038 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3045 [[http://www.example.com]]
3047 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3052 Plain link to URL with link text
3054 [[http://www.example.com Link text]]
3056 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3061 Plain link to protocol-relative URL
3063 [[//www.example.com]]
3065 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3070 Plain link to protocol-relative URL with link text
3072 [[//www.example.com Link text]]
3074 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3079 # I'm fairly sure the expected result here is wrong.
3080 # We want these to be URL links, not pseudo-pages with URLs for titles....
3081 # However the current output is also pretty screwy.
3084 # I'm changing it to match the current output--it arguably makes more
3085 # sense in the light of the test above. Old expected result was:
3086 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3088 # But I think this test is bordering on "garbage in, garbage out" anyway.
3093 Piped link to URL: [[http://www.example.com|an example URL]]
3095 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3100 BUG 2: [[page|http://url/]] should link to page, not http://url/
3102 [[Main Page|http://url/]]
3104 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3109 BUG 337: Escaped self-links should be bold
3113 [[Bug462]] [[Bug462]]
3115 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3120 Self-link to section should not be bold
3124 [[Main Page#section]]
3126 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3137 Self-link to numeric title
3143 <p><strong class="selflink">0</strong>
3148 Link to numeric-equivalent title
3154 <p><a href="/wiki/00" title="00">00</a>
3159 <nowiki> inside a link
3161 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3163 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3168 Non-breaking spaces in title
3170 [[ Main Page ]]
3172 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3177 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3183 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3188 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3194 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3199 Internal link with en linktrail: no apostrophes (bug 27473)
3205 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3210 Internal link with ca linktrail with apostrophes (bug 27473)
3216 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3221 Internal link with kaa linktrail with apostrophes (bug 27473)
3227 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3232 ### Interwiki links (see maintenance/interwiki.sql)
3236 Inline interwiki link
3238 [[MeatBall:SoftSecurity]]
3240 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3245 Inline interwiki link with empty title (bug 2372)
3249 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3254 Interwiki link encoding conversion (bug 1636)
3256 *[[Wikipedia:ro:Olteniţa]]
3257 *[[Wikipedia:ro:Olteniţa]]
3259 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3260 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3266 Interwiki link with fragment (bug 2130)
3268 [[MeatBall:SoftSecurity#foo]]
3270 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3285 Double interlanguage link
3296 Interlanguage link, with prefix links
3308 Double interlanguage link, with prefix links (bug 8897)
3321 Parsoid-specific test: Wikilinks with should RT properly
3327 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3345 Broken br tag sanitization
3354 Incorrecly removing closing slashes from correctly formed XHTML
3356 <br style="clear:both;" />
3358 <p><br style="clear:both;" />
3363 Failing to transform badly formed HTML into correct XHTML
3365 <br style="clear: left;">
3366 <br style="clear: right;">
3367 <br style="clear: both;">
3369 <p><br style="clear: left;" />
3370 <br style="clear: right;" />
3371 <br style="clear: both;" />
3376 Handling html with a div self-closing tag
3385 <p><div title />
3389 <p><div title=bar />
3390 <div title=bar/>
3392 <div title="bar/"></div>
3398 Handling html with a br self-closing tag
3407 <p><br title="title" />
3408 <br title="title" />
3417 Horizontal ruler (should it add that extra space?)
3431 Horizontal ruler -- 4+ dashes render hr
3440 Horizontal ruler -- eats additional dashes on the same line
3449 Horizontal ruler -- does not collaps dashes on consecutive lines
3460 Horizontal ruler -- <4 dashes render as plain text
3469 ### Block-level elements
3492 <ol><li>Numbered list
3509 ***#Number on level 4
3511 **#Number on level 3
3512 **#Number on level 3
3516 #** Level 3, but ordered
3519 <ol><li> with numbers
3521 <ul><li> and bullets
3523 <ol><li> and numbers
3525 </li><li>bullets again
3526 <ul><li>bullet level 2
3527 <ul><li>bullet level 3
3528 <ol><li>Number on level 4
3531 </li><li>bullet level 2
3532 <ol><li>Number on level 3
3533 </li><li>Number on level 3
3536 <ol><li>number level 2
3539 <ul><li><ul><li> Level 3
3543 <ol><li><ul><li><ul><li> Level 3, but ordered
3577 Nested lists 3 (first element empty)
3590 Nested lists 4 (first element empty)
3603 Nested lists 5 (both elements empty)
3616 Nested lists 6 (both elements empty)
3629 Nested lists 7 (skip initial nesting levels)
3633 <ul><li><ul><li><ul><li> foo
3641 Nested lists 8 (multiple nesting transitions)
3649 <ul><li><ul><li> bar
3659 1. Lists with start-of-line-transparent tokens before bullets: Comments
3673 2. Lists with start-of-line-transparent tokens before bullets: Template close
3685 List items are not parsed correctly following a <pre> block (bug 785)
3691 <ul><li> <pre>foo</pre>
3692 </li><li> <pre>bar</pre>
3699 List items from template
3710 * notSOL{{inner list}}
3729 List interrupted by empty line or heading
3739 <ul><li><ul><li> bar
3742 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
3743 <ul><li> Another list item
3754 Magic Word: {{CURRENTDAY}}
3763 Magic Word: {{CURRENTDAY2}}
3772 Magic Word: {{CURRENTDAYNAME}}
3781 Magic Word: {{CURRENTDOW}}
3790 Magic Word: {{CURRENTMONTH}}
3799 Magic Word: {{CURRENTMONTHABBREV}}
3801 {{CURRENTMONTHABBREV}}
3808 Magic Word: {{CURRENTMONTHNAME}}
3810 {{CURRENTMONTHNAME}}
3817 Magic Word: {{CURRENTMONTHNAMEGEN}}
3819 {{CURRENTMONTHNAMEGEN}}
3826 Magic Word: {{CURRENTTIME}}
3835 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3844 Magic Word: {{CURRENTYEAR}}
3853 Magic Word: {{FULLPAGENAME}}
3855 title=[[User:Ævar Arnfjörð Bjarmason]]
3859 <p>User:Ævar Arnfjörð Bjarmason
3864 Magic Word: {{FULLPAGENAMEE}}
3866 title=[[User:Ævar Arnfjörð Bjarmason]]
3870 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3875 Magic Word: {{NAMESPACE}}
3877 title=[[User:Ævar Arnfjörð Bjarmason]]
3886 Magic Word: {{NAMESPACEE}}
3888 title=[[User:Ævar Arnfjörð Bjarmason]]
3897 Magic Word: {{NAMESPACENUMBER}}
3899 title=[[User:Ævar Arnfjörð Bjarmason]]
3908 Magic Word: {{NUMBEROFFILES}}
3917 Magic Word: {{PAGENAME}}
3919 title=[[User:Ævar Arnfjörð Bjarmason]]
3923 <p>Ævar Arnfjörð Bjarmason
3928 Magic Word: {{PAGENAME}} with metacharacters
3930 title=[['foo & bar = baz']]
3934 <p><i>'foo & bar = baz'</i>
3939 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3941 title=[[*RFC 1234 http://example.com/]]
3945 <p>*RFC 1234 http://example.com/
3950 Magic Word: {{PAGENAMEE}}
3952 title=[[User:Ævar Arnfjörð Bjarmason]]
3956 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3961 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3963 title=[[*RFC 1234 http://example.com/]]
3967 <p>*RFC_1234_http://example.com/
3972 Magic Word: {{REVISIONID}}
3981 Magic Word: {{SCRIPTPATH}}
3990 Magic Word: {{SERVER}}
3994 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3999 Magic Word: {{SERVERNAME}}
4008 Magic Word: {{SITENAME}}
4017 Namespace 1 {{ns:1}}
4026 Namespace 1 {{ns:01}}
4035 Namespace 0 {{ns:0}} (bug 4783)
4043 Namespace 0 {{ns:00}} (bug 4783)
4051 Namespace -1 {{ns:-1}}
4060 Namespace User {{ns:User}}
4069 Namespace User talk {{ns:User_talk}}
4078 Namespace User talk {{ns:uSeR tAlK}}
4087 Namespace File {{ns:File}}
4096 Namespace File {{ns:Image}}
4105 Namespace (lang=de) Benutzer {{ns:User}}
4116 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4122 <p>Benutzer Diskussion
4130 {{urlencode:hi world?!}}
4131 {{urlencode:hi world?!|WIKI}}
4132 {{urlencode:hi world?!|PATH}}
4133 {{urlencode:hi world?!|QUERY}}
4146 Magic links: internal link to RFC (bug 479)
4150 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4155 Magic links: RFC (bug 479)
4159 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4164 Magic links: ISBN (bug 1937)
4168 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4173 Magic links: PMID incorrectly converts space to underscore
4177 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4186 Nonexistent template
4188 {{thistemplatedoesnotexist}}
4190 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4197 This is a test template
4205 <p>This is a test template
4210 Template with explicit namespace
4214 <p>This is a test template
4222 This is a test template with parameter {{{param}}}
4228 {{paramtest|param=foo}}
4230 <p>This is a test template with parameter foo
4235 Template:paramtestnum
4241 Template unnamed parameter
4243 {{paramtestnum|Main Page|the main page}}
4245 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4250 Template:templatesimple
4256 Template:templateredirect
4258 #redirect [[Template:templatesimple]]
4262 Template:templateasargtestnum
4268 Template:templateasargtest
4270 {{template{{{templ}}}}}
4274 Template:templateasargtest2
4280 Template with template name as unnamed argument
4282 {{templateasargtestnum|templatesimple}}
4289 Template with template name as argument
4291 {{templateasargtest|templ=simple}}
4298 Template with template name as argument (2)
4300 {{templateasargtest2|templ=templatesimple}}
4307 Template:templateasargtestdefault
4309 {{{{{templ|templatesimple}}}}}
4319 Template with default value
4321 {{templateasargtestdefault}}
4328 Template with default value (value set)
4330 {{templateasargtestdefault|templ=templa}}
4339 {{templateredirect}}
4346 Template with argument in separate line
4348 {{ templateasargtest |
4356 Template with complex template as argument
4359 param ={{ templateasargtest |
4362 <p>This is a test template with parameter (test)
4367 Template with thumb image (with link in description)
4370 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4372 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
4377 Template:complextemplate
4379 {{{1}}} {{paramtest|
4380 param ={{{param}}}}}
4384 Template with complex arguments
4387 param ={{ templateasargtest |
4388 templ = simple }}|[[Template:complextemplate|link]]}}
4390 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4395 BUG 553: link with two variables in a piped link
4398 |[[{{{1}}}|{{{2}}}]]
4403 <td>[[{{{1}}}|{{{2}}}]]
4409 Magic variable as template parameter
4411 {{paramtest|param={{SITENAME}}}}
4413 <p>This is a test template with parameter MediaWiki
4420 [[{{{param}}}|link]]
4424 Template parameter as link source
4426 {{linktest|param=Main Page}}
4428 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4433 Template-generated attribute string (k='v')
4435 <span {{attr_str|id|v1}}>bar</span>
4437 <p><span id="v1">bar</span>
4444 including another template, {{paramtest|param={{{arg}}}}}
4448 Template passing argument to another template
4450 {{paramtest2|arg='hmm'}}
4452 <p>including another template, This is a test template with parameter 'hmm'
4463 Template as link source
4467 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4485 Template infinite loop
4489 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4494 Template from main namespace
4513 BUG 529: Template with table, not included at beginning of line
4532 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4552 BUG 41: Template parameters shown as broken links
4564 ''None'' of '''this''' should be
4566 but rather passed unmodified
4570 # hmm, fix this or just deprecate msgnw and document its behavior?
4576 {{msgnw:MSGNW test}}
4578 <p>''None'' of '''this''' should be
4580 but rather passed unmodified
4588 {{int:youhavenewmessages|lots of money|not!}}
4590 <p>You have lots of money (not!).
4597 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4601 <includeonly> and <noinclude> being included
4612 <onlyinclude>Foo</onlyinclude>bar
4616 <onlyinclude> being included
4628 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4632 <onlyinclude> and <includeonly> being included
4641 <includeonly> and <noinclude> on a page
4643 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4650 <onlyinclude> on a page
4652 <onlyinclude>Foo</onlyinclude>bar
4659 Template:Includeonly section
4662 ==Includeonly section==
4668 Bug 6563: Edit link generation for section shown by <includeonly>
4670 {{includeonly section}}
4672 <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>
4673 <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>
4677 # Uses same input as the contents of [[Template:Includeonly section]]
4679 Bug 6563: Section extraction for section shown by <includeonly>
4684 ==Includeonly section==
4692 Bug 6563: Edit link generation for section suppressed by <includeonly>
4695 ==Includeonly section==
4699 <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>
4704 Bug 6563: Section extraction for section suppressed by <includeonly>
4709 ==Includeonly section==
4717 ### <includeonly> and <noinclude> in attributes
4720 0. includeonly around the entire attribute
4722 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4724 <p><span id="v2">bar</span>
4729 1. includeonly in html attr key
4731 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4733 <p><span id="foo">bar</span>
4738 2. includeonly in html attr value
4740 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4741 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4743 <p><span id="v1">bar</span>
4744 <span id="v1">bar</span>
4749 3. includeonly in part of an attr value
4751 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4753 <p><span style="color:red;">bar</span>
4758 ### Testing parsing of templates where a template arg
4759 ### has the same name as the template itself.
4769 Templates: Template Name/Arg clash: 1. Use of positional param
4778 Templates: Template Name/Arg clash: 2. Use of named param
4787 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4796 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4800 Templates: 1. Simple use
4809 Templates: 2. Inside a block tag
4811 <div>{{echo|Foo}}</div>
4818 Templates: P-wrapping: 1a. Templates on consecutive lines
4829 Templates: P-wrapping: 1b. Templates on consecutive lines
4843 Templates: P-wrapping: 1c. Templates on consecutive lines
4846 {{echo|bar}} <div>baz</div>
4855 Templates: Inline Text: 1. Multiple tmeplate uses
4857 {{echo|Foo}}bar{{echo|baz}}
4864 Templates: Inline Text: 2. Back-to-back template uses
4866 {{echo|Foo}}{{echo|bar}}
4873 Templates: Block Tags: 1. Multiple template uses
4875 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4877 <div>Foo</div><div>bar</div><div>baz</div>
4882 Templates: Block Tags: 2. Back-to-back template uses
4884 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4886 <div>Foo</div><div>bar</div>
4891 Templates: Links: 1. Simple example
4893 {{echo|[[Foo|bar]]}}
4895 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4900 Templates: Links: 2. Generation of link href
4902 [[{{echo|Foo}}|bar]]
4904 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4909 Templates: Links: 3. Generation of part of a link href
4911 [[Fo{{echo|o}}|bar]]
4913 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4918 Templates: Links: 4. Multiple templates generating link href
4920 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4922 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4927 Templates: Links: 5. Generation of link text
4929 [[Foo|{{echo|bar}}]]
4931 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4936 Templates: Links: 5. Nested templates (only outermost template should be marked)
4938 {{echo|[[{{echo|Foo}}|bar]]}}
4940 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4945 Templates: HTML Tag: 1. Generation of HTML attr. key
4947 <div {{echo|style}}="color:red;">foo</div>
4949 <div style="color:red;">foo</div>
4954 Templates: HTML Tag: 2. Generation of HTML attr. value
4956 <div style={{echo|'color:red;'}}>foo</div>
4958 <div style="color:red;">foo</div>
4963 Templates: HTML Tag: 3. Generation of HTML attr key and value
4965 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4967 <div style="color:red;">foo</div>
4972 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4974 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4976 <div title="This is a long title with just one piece templated">foo</div>
4981 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4983 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4985 <div title="This is a long title with just one piece templated">foo</div>
4990 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4992 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4994 <div title="This is a long title with just one piece templated">foo</div>
4999 Templates: HTML Tables: 1. Generating start of a HTML table
5001 {{echo|<table><tr><td>foo</td>}}</tr></table>
5003 <table><tr><td>foo</td></tr></table>
5008 Templates: HTML Tables: 2a. Generating middle of a HTML table
5010 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5012 <table><tr><td>foo</td></tr></table>
5017 Templates: HTML Tables: 2b. Generating middle of a HTML table
5019 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5021 <table><tr><td>foo</td></tr></table>
5026 Templates: HTML Tables: 3. Generating end of a HTML table
5028 <table><tr>{{echo|<td>foo</td></tr></table>}}
5030 <table><tr><td>foo</td></tr></table>
5035 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5037 {{echo|<table>}}<tr><td>foo</td></tr></table>
5039 <table><tr><td>foo</td></tr></table>
5044 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5046 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5048 <table><tr><td>foo</td></tr></table>
5053 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5055 <table><tr>{{echo|<td>}}foo</td></tr></table>
5057 <table><tr><td>foo</td></tr></table>
5062 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5064 <table><tr><td>foo{{echo|</td>}}</tr></table>
5066 <table><tr><td>foo</td></tr></table>
5071 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5073 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5075 <table><tr><td>foo</td></tr></table>
5080 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5082 <table><tr><td>foo</td></tr>{{echo|</table>}}
5084 <table><tr><td>foo</td></tr></table>
5089 Templates: Wiki Tables: 1. Fostering of entire template content
5097 <tr><td></td></tr></table>
5102 Templates: Wiki Tables: 2. Fostering of partial template content
5112 <tr><td></td></tr></table>
5117 Templates: Wiki Tables: 3. td-content via multiple templates
5120 {{echo|{{pipe}}a}}{{echo|b}}
5131 Templates: Lists: Multi-line list-items via templates
5133 *{{echo|a {{nonexistent|
5135 *{{echo|b {{nonexistent|
5138 <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>
5139 </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>
5145 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5147 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5149 <p><i>ab</i>c<i>d</i>e
5154 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5155 (PHP parser generates misnested html)
5159 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5161 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5165 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5166 (PHP parser generates misnested html)
5170 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5173 <div><i>b</i>c<i>d</i></div>
5178 Templates: Ugly nesting: 4. Divs opened/closed across templates
5180 a<div>b{{echo|c</div>d}}e
5187 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5193 |{{echo|foo</table>}}
5197 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5198 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5199 bar</span><span about="#mwt1">
5204 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5214 <td>1. {{echo|foo </table>}}</td>
5216 <td>2. {{echo|baz </table>}}</td>
5229 <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">
5230 <tbody><tr data-parsoid="{"stx":"html"}">
5231 <td data-parsoid="{"stx":"html"}">
5232 <table data-parsoid="{"stx":"html"}">
5233 <tbody><tr data-parsoid="{"stx":"html"}">
5234 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5235 <td data-parsoid="{"stx":"html"}"> bar </td>
5236 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5237 </span><span about="#mwt1">
5239 abc</span><span about="#mwt1">
5240 </span><span about="#mwt1">
5241 </span><span about="#mwt1">
5242 </span><span about="#mwt1">
5243 </span><span about="#mwt1">
5245 xyz</span><span about="#mwt1">
5246 </span><span about="#mwt1">
5251 Parser Functions: 1. Simple example
5260 Parser Functions: 2. Nested use (only outermost should be marked up)
5269 ### Pre-save transform tests
5272 pre-save transform: subst:
5278 This is a test template
5282 pre-save transform: normal template
5292 pre-save transform: nonexistent template
5296 {{thistemplatedoesnotexist}}
5298 {{thistemplatedoesnotexist}}
5303 pre-save transform: subst magic variables
5312 # This is bug 89, which I fixed. -- wtm
5314 pre-save transform: subst: templates with parameters
5318 {{subst:paramtest|param="something else"}}
5320 This is a test template with parameter "something else"
5326 <nowiki>'''not wiki'''</nowiki>
5330 pre-save transform: nowiki in subst (bug 1188)
5334 {{subst:nowikitest}}
5336 <nowiki>'''not wiki'''</nowiki>
5341 Template:commenttest
5343 This template has <!-- a comment --> in it.
5347 pre-save transform: comment in subst (bug 1936)
5351 {{subst:commenttest}}
5353 This template has <!-- a comment --> in it.
5357 pre-save transform: unclosed tag
5361 <nowiki>'''not wiki'''
5363 <nowiki>'''not wiki'''
5367 pre-save transform: mixed tag case
5371 <NOwiki>'''not wiki'''</noWIKI>
5373 <NOwiki>'''not wiki'''</noWIKI>
5377 pre-save transform: unclosed comment in <nowiki>
5381 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5383 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5389 <span onmouseover="alert('crap')">Oh no</span>
5393 (confirming safety of fix for subst bug 1936)
5395 {{Template:dangerous}}
5397 <p><span>Oh no</span>
5402 pre-save transform: comment containing gallery (bug 5024)
5406 <!-- <gallery>data</gallery> -->
5408 <!-- <gallery>data</gallery> -->
5412 pre-save transform: comment containing extension
5416 <!-- <tag>data</tag> -->
5418 <!-- <tag>data</tag> -->
5422 pre-save transform: comment containing nowiki
5426 <!-- <nowiki>data</nowiki> -->
5428 <!-- <nowiki>data</nowiki> -->
5432 pre-save transform: <noinclude> in subst (bug 3298)
5442 pre-save transform: <onlyinclude> in subst (bug 3298)
5454 {{<includeonly>subst:</includeonly>Includes}}
5458 Template:SafeSubstTest
5460 {{<includeonly>safesubst:</includeonly>Includes}}
5464 bug 22297: safesubst: works during PST
5468 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5474 bug 22297: safesubst: works during normal parse
5483 subst: does not work during normal parse
5487 <p>{{subst:Includes}}
5492 pre-save transform: context links ("pipe trick")
5496 [[Article (context)|]]
5499 [[Bar:Article (context)|]]
5500 [[:Bar:Article (context)|]]
5502 [[|Article (context)]]
5506 [[Article (context)|Article]]
5507 [[Bar:Article|Article]]
5508 [[:Bar:Article|Article]]
5509 [[Bar:Article (context)|Article]]
5510 [[:Bar:Article (context)|Article]]
5512 [[Article (context)]]
5513 [[Bar:X (Y) Z|X (Y) Z]]
5514 [[:Bar:X (Y) Z|X (Y) Z]]
5518 pre-save transform: context links ("pipe trick") with interwiki prefix
5522 [[interwiki:Article|]]
5523 [[:interwiki:Article|]]
5524 [[interwiki:Bar:Article|]]
5525 [[:interwiki:Bar:Article|]]
5527 [[interwiki:Article|Article]]
5528 [[:interwiki:Article|Article]]
5529 [[interwiki:Bar:Article|Bar:Article]]
5530 [[:interwiki:Bar:Article|Bar:Article]]
5534 pre-save transform: context links ("pipe trick") with parens in title
5536 pst title=[[Somearticle (context)]]
5540 [[Article (context)|Article]]
5544 pre-save transform: context links ("pipe trick") with comma in title
5546 pst title=[[Someplace, Somewhere]]
5549 [[Otherplace, Elsewhere|]]
5550 [[Otherplace, Elsewhere, Anywhere|]]
5552 [[Otherplace, Somewhere|Otherplace]]
5553 [[Otherplace, Elsewhere|Otherplace]]
5554 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5558 pre-save transform: context links ("pipe trick") with parens and comma
5560 pst title=[[Someplace (IGNORED), Somewhere]]
5563 [[Otherplace (place), Elsewhere|]]
5565 [[Otherplace, Somewhere|Otherplace]]
5566 [[Otherplace (place), Elsewhere|Otherplace]]
5570 pre-save transform: context links ("pipe trick") with comma and parens
5572 pst title=[[Who, me? (context)]]
5575 [[Me, Myself, and I (1937 song)|]]
5577 [[Yes, you. (context)|Yes, you.]]
5578 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5582 pre-save transform: context links ("pipe trick") with namespace
5584 pst title=[[Ns:Somearticle]]
5588 [[Ns:Article|Article]]
5592 pre-save transform: context links ("pipe trick") with namespace and parens
5594 pst title=[[Ns:Somearticle (context)]]
5598 [[Ns:Article (context)|Article]]
5602 pre-save transform: context links ("pipe trick") with namespace and comma
5604 pst title=[[Ns:Somearticle, Context, Whatever]]
5608 [[Ns:Article, Context, Whatever|Article]]
5612 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5614 pst title=[[Ns:Somearticle, Context (context)]]
5618 [[Ns:Article (context)|Article]]
5622 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5624 pst title=[[Ns:Somearticle (IGNORED), Context]]
5628 [[Ns:Article, Context|Article]]
5632 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5636 [[Article(context)|]]
5637 [[Bar:Article(context)|]]
5638 [[:Bar:Article(context)|]]
5639 [[|Article(context)]]
5643 [[Article(context)|Article]]
5644 [[Bar:Article(context)|Article]]
5645 [[:Bar:Article(context)|Article]]
5646 [[Article(context)]]
5648 [[:Bar:X(Y)Z|X(Y)Z]]
5652 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5656 [[Article (context)|]]
5657 [[Bar:Article (context)|]]
5658 [[:Bar:Article (context)|]]
5659 [[|Article (context)]]
5663 [[Article (context)|Article]]
5664 [[Bar:Article (context)|Article]]
5665 [[:Bar:Article (context)|Article]]
5666 [[Article (context)]]
5667 [[Bar:X (Y) Z|X (Y) Z]]
5668 [[:Bar:X (Y) Z|X (Y) Z]]
5672 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5676 [[Article(context)|]]
5677 [[Bar:Article(context)|]]
5678 [[:Bar:Article(context)|]]
5679 [[|Article(context)]]
5683 [[Article(context)|Article]]
5684 [[Bar:Article(context)|Article]]
5685 [[:Bar:Article(context)|Article]]
5686 [[Article(context)]]
5688 [[:Bar:X(Y)Z|X(Y)Z]]
5692 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5696 [[Article (context), context|]]
5697 [[Article (context),context|]]
5698 [[Bar:Article (context), context|]]
5699 [[Bar:Article (context),context|]]
5700 [[:Bar:Article (context), context|]]
5701 [[:Bar:Article (context),context|]]
5703 [[Article (context), context|Article]]
5704 [[Article (context),context|Article]]
5705 [[Bar:Article (context), context|Article]]
5706 [[Bar:Article (context),context|Article]]
5707 [[:Bar:Article (context), context|Article]]
5708 [[:Bar:Article (context),context|Article]]
5712 pre-save transform: trim trailing empty lines
5716 Empty lines are trimmed
5722 Empty lines are trimmed
5726 pre-save transform: Signature expansion
5731 * <noinclude>~~~</noinclude>
5732 * <includeonly>~~~</includeonly>
5733 * <onlyinclude>~~~</onlyinclude>
5735 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5736 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5737 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5738 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5743 pre-save transform: Signature expansion in nowiki tags (bug 93)
5749 <nowiki>~~~~</nowiki>
5751 <includeonly><nowiki>~~~~</nowiki></includeonly>
5753 <noinclude><nowiki>~~~~</nowiki></noinclude>
5755 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5757 {{subst:Foo}} shall be converted to FOO
5759 As well as inside noinclude/onlyinclude
5760 <noinclude>{{subst:Foo}}</noinclude>
5761 <onlyinclude>{{subst:Foo}}</onlyinclude>
5763 But not inside includeonly
5764 <includeonly>{{subst:Foo}}</includeonly>
5768 <nowiki>~~~~</nowiki>
5770 <includeonly><nowiki>~~~~</nowiki></includeonly>
5772 <noinclude><nowiki>~~~~</nowiki></noinclude>
5774 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5776 FOO shall be converted to FOO
5778 As well as inside noinclude/onlyinclude
5779 <noinclude>FOO</noinclude>
5780 <onlyinclude>FOO</onlyinclude>
5782 But not inside includeonly
5783 <includeonly>{{subst:Foo}}</includeonly>
5787 ### Message transform tests
5790 message transform: magic variables
5800 message transform: should not transform wiki markup
5810 message transform: <noinclude> in transcluded template (bug 4926)
5820 message transform: <onlyinclude> in transcluded template (bug 4926)
5830 {{#special:}} page name, known
5834 {{#special:Recentchanges}}
5836 Special:RecentChanges
5840 {{#special:}} page name with subpage, known
5844 {{#special:Recentchanges/param}}
5846 Special:RecentChanges/param
5850 {{#special:}} page name, unknown
5854 {{#special:foobarnonexistent}}
5856 No such special page
5860 {{#speciale:}} page name, known
5864 {{#speciale:Recentchanges}}
5866 Special:RecentChanges
5870 {{#speciale:}} page name with subpage, known
5874 {{#speciale:Recentchanges/param}}
5876 Special:RecentChanges/param
5880 {{#speciale:}} page name, unknown
5884 {{#speciale:foobarnonexistent}}
5886 No_such_special_page
5895 [[Image:foobar.jpg]]
5897 <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>
5904 [[Image:foobar.jpg|right]]
5906 <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>
5911 Simple image (using File: namespace, now canonical)
5915 <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>
5922 [[Image:foobar.jpg|right|Caption text]]
5924 <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>
5929 Image with empty attribute
5931 [[Image:foobar.jpg|right||Caption text]]
5933 <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>
5938 Image with link tails
5940 123[[Image:foobar.jpg]]456
5941 123[[Image:foobar.jpg|right]]456
5942 123[[Image:foobar.jpg|thumb]]456
5944 <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
5946 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
5947 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
5952 Image with multiple captions -- only last one is accepted
5954 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5956 <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>
5961 Image with link parameter, wiki target
5963 [[Image:foobar.jpg|link=Target page]]
5965 <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>
5970 Image with link parameter, URL target
5972 [[Image:foobar.jpg|link=http://example.com/]]
5974 <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>
5979 Image with link parameter, wgExternalLinkTarget
5981 [[Image:foobar.jpg|link=http://example.com/]]
5983 wgExternalLinkTarget='foobar'
5985 <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>
5990 Image with link parameter, wgNoFollowLinks set to false
5992 [[Image:foobar.jpg|link=http://example.com/]]
5994 wgNoFollowLinks=false
5996 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6001 Image with link parameter, wgNoFollowDomainExceptions
6003 [[Image:foobar.jpg|link=http://example.com/]]
6005 wgNoFollowDomainExceptions='example.com'
6007 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6012 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6014 [[Image:foobar.jpg|link=http://example.com/|Title]]
6016 wgExternalLinkTarget='foobar'
6018 <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>
6023 Image with empty link parameter
6025 [[Image:foobar.jpg|link=]]
6027 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6032 Image with link parameter (wiki target) and unnamed parameter
6034 [[Image:foobar.jpg|link=Target page|Title]]
6036 <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>
6041 Image with link parameter (URL target) and unnamed parameter
6043 [[Image:foobar.jpg|link=http://example.com/|Title]]
6045 <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>
6050 Thumbnail image with link parameter
6052 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6054 <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>
6059 Image with frame and link
6061 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6063 <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>
6068 Image with frame and link and explicit alt
6070 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6072 <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>
6077 Image with wiki markup in implicit alt
6079 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6081 <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>
6086 Image with wiki markup in explicit alt
6088 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6090 <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>
6095 Link to image page- image page normally doesn't exists, hence edit link
6096 Add test with existing image page
6097 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6101 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6106 bug 18784 Link to non-existent image page with caption should use caption as link text
6108 [[:Image:test|caption]]
6110 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6115 Frameless image caption with a free URL
6117 [[Image:foobar.jpg|http://example.com]]
6119 <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>
6124 Thumbnail image caption with a free URL
6126 [[Image:foobar.jpg|thumb|http://example.com]]
6128 <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>
6133 Thumbnail image caption with a free URL and explicit alt
6135 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6137 <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>
6142 BUG 1887: A ISBN with a thumbnail
6144 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6146 <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>
6151 BUG 1887: A RFC with a thumbnail
6153 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6155 <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>
6160 BUG 1887: A mailto link with a thumbnail
6162 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6164 <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>
6168 # Pending resolution to bug 368
6170 BUG 648: Frameless image caption with a link
6172 [[Image:foobar.jpg|text with a [[link]] in it]]
6174 <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>
6179 BUG 648: Frameless image caption with a link (suffix)
6181 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6183 <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>
6188 BUG 648: Frameless image caption with an interwiki link
6190 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6192 <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>
6197 BUG 648: Frameless image caption with a piped interwiki link
6199 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6201 <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>
6206 Escape HTML special chars in image alt text
6208 [[Image:foobar.jpg|& < > "]]
6210 <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>
6215 BUG 499: Alt text should have Ӓ, not &1234;
6217 [[Image:foobar.jpg|♀]]
6219 <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>
6224 Broken image caption with link
6226 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6228 <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.
6233 Image caption containing another image
6235 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6237 <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>
6242 Image caption containing a newline
6244 [[Image:Foobar.jpg|This
6247 <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>
6253 Bug 3090: External links other than http: in image captions
6255 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6257 <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>
6264 [[Image:foobar.jpg|a|class=b]]
6266 <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>
6273 #REDIRECT [[File:Barfoo.jpg]]
6279 [[Image:Barfoo.jpg]]
6281 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6286 Missing image with uploads disabled
6290 [[Image:Foobaz.jpg]]
6292 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6301 Subpage test/subpage
6309 subpage title=[[Subpage test]]
6313 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6318 Subpage noslash link
6320 subpage title=[[Subpage test]]
6324 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6333 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6338 BUG 561: {{/Subpage}}
6340 subpage title=[[Page]]
6344 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6352 Category:MediaWiki User's Guide
6360 [[:Category:MediaWiki User's Guide]]
6362 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6371 [[Category:MediaWiki User's Guide]]
6373 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6377 PAGESINCATEGORY invalid title fatal (r33546 fix)
6379 {{PAGESINCATEGORY:<bogus>}}
6386 Category with different sort key
6390 [[Category:MediaWiki User's Guide|Foo]]
6392 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6396 Category with identical sort key
6400 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6402 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6406 Category with empty sort key
6411 [[Category:MediaWiki User's Guide|]]
6413 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6417 Category with empty sort key and parentheses
6422 [[Category:Foo (bar)|]]
6424 [[Category:Foo (bar)|Foo]]
6428 Category with link tail
6433 123[[Category:Foo]]456
6435 123[[Category:Foo]]456
6439 Category with template
6444 [[Category:{{echo|Foo}}]]
6446 [[Category:{{echo|Foo}}]]
6450 Category with template in sort key
6455 [[Category:Foo|{{echo|Bar}}]]
6457 [[Category:Foo|{{echo|Bar}}]]
6461 Category with template in sort key and title
6466 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6468 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6472 Category / paragraph interactions
6474 Foo [[Category:Baz]] Bar
6476 Foo [[Category:Baz]]
6484 [[Category:Baz]] Bar
6497 {{echo|[[Category:Baz]]}}
6512 ### Inter-language links
6515 Inter-language links
6521 [[zh:食品]]
6523 es:Alimento fr:Nourriture zh:食品
6527 Duplicate interlanguage links (bug 24502)
6543 Basic section headings
6550 ===Smaller headline===
6553 <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>
6556 <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>
6559 <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>
6565 Section headings with TOC
6568 === Subheadline 1 ===
6569 ===== Skipping a level =====
6570 ====== Skipping a level ======
6574 ===Another headline===
6576 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6578 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6580 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6582 <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>
6584 <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>
6591 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6593 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6598 <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>
6599 <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>
6600 <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>
6601 <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>
6602 <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>
6605 <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>
6609 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6611 Handling of sections up to level 6 and beyond
6614 == Level 2 Heading==
6615 === Level 3 Heading===
6616 ==== Level 4 Heading====
6617 ===== Level 5 Heading=====
6618 ====== Level 6 Heading======
6619 ======= Level 7 Heading=======
6620 ======== Level 8 Heading========
6621 ========= Level 9 Heading=========
6622 ========== Level 10 Heading==========
6624 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6626 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6628 <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>
6630 <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>
6632 <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>
6634 <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>
6636 <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>
6637 <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>
6638 <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>
6639 <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>
6640 <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>
6653 <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>
6654 <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>
6655 <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>
6656 <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>
6657 <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>
6658 <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>
6659 <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>
6660 <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>
6661 <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>
6662 <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>
6667 TOC regression (bug 9764)
6671 ==== title 1.1.1 ====
6676 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6678 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6680 <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>
6682 <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>
6685 <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>
6688 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6690 <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>
6695 <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>
6696 <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>
6697 <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>
6698 <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>
6699 <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>
6700 <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>
6705 TOC with wgMaxTocLevel=3 (bug 6204)
6711 ==== title 1.1.1 ====
6716 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6718 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6720 <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>
6721 <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>
6724 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6726 <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>
6731 <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>
6732 <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>
6733 <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>
6734 <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>
6735 <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>
6736 <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>
6741 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6747 ====Section 1.1.1====
6748 ====Section 1.1.1.1====
6751 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6753 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6755 <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>
6758 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6761 <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>
6762 <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>
6763 <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>
6764 <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>
6765 <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>
6771 Resolving duplicate section names
6776 <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>
6777 <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>
6782 Resolving duplicate section names with differing case (bug 10721)
6787 <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>
6788 <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>
6800 Template with sections, __NOTOC__
6807 <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>
6808 <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>
6809 <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>
6810 <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>
6815 __NOEDITSECTION__ keyword
6821 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6822 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6827 Link inside a section heading
6829 ==Section with a [[Main Page|link]] in it==
6831 <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>
6836 TOC regression (bug 12077)
6843 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6845 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6847 <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>
6850 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6853 <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>
6854 <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>
6855 <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>
6860 BUG 1219 URL next to image (good)
6862 http://example.com [[Image:foobar.jpg]]
6864 <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>
6869 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6872 The line above must have a trailing space!
6875 But just in case it doesn't...
6877 <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>
6878 <p>The line above must have a trailing space!
6880 <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>
6881 <p>But just in case it doesn't...
6886 Header with special characters (bug 25462)
6888 The tooltips shall not show entities to the user (ie. be double escaped)
6905 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6907 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6909 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6910 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6911 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6912 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6913 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6916 <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>
6919 <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>
6922 <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>
6925 <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>
6928 <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>
6934 Headers with excess '=' characters
6935 (Are similar tests necessary beyond the 1st level?)
6939 =''italic'' heading==
6940 ==''italic'' heading=
6942 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6944 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6945 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6946 <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>
6947 <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>
6950 <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>
6951 <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>
6952 <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>
6953 <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>
6958 BUG 1219 URL next to image (broken)
6960 http://example.com[[Image:foobar.jpg]]
6962 <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>
6967 Bug 1186 news: in the middle of text
6969 http://en.wikinews.org/wiki/Wikinews:Workplace
6971 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6977 Namespaced link must have a title
6986 Namespaced link must have a title (bad fragment version)
6988 [[Project:#fragment]]
6990 <p>[[Project:#fragment]]
6996 div with no attributes
6998 <div>HTML rocks</div>
7000 <div>HTML rocks</div>
7005 div with double-quoted attribute
7007 <div id="rock">HTML rocks</div>
7009 <div id="rock">HTML rocks</div>
7014 div with single-quoted attribute
7016 <div id='rock'>HTML rocks</div>
7018 <div id="rock">HTML rocks</div>
7023 div with unquoted attribute
7025 <div id=rock>HTML rocks</div>
7027 <div id="rock">HTML rocks</div>
7032 div with illegal double attributes
7034 <div id="a" id="b">HTML rocks</div>
7036 <div id="b">HTML rocks</div>
7041 HTML multiple attributes correction
7043 <p class="error" class="awesome">Awesome!</p>
7045 <p class="awesome">Awesome!</p>
7050 Table multiple attributes correction
7053 !+ class="error" class="awesome"| status
7058 <th class="awesome"> status
7066 <DIV ID="x">HTML ROCKS</DIV>
7068 <div id="x">HTML ROCKS</div>
7074 text with amp in the middle of nowhere
7078 <p>Remember AT&T?
7083 text with character entity: eacute
7085 I always thought é was a cute letter.
7087 <p>I always thought é was a cute letter.
7092 text with undefined character entity: xacute
7094 I always thought &xacute; was a cute letter.
7096 <p>I always thought &xacute; was a cute letter.
7108 [[Media:Foobar.jpg]]
7110 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7115 Media link with text
7117 [[Media:Foobar.jpg|A neat file to look at]]
7119 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7123 # FIXME: this is still bad HTML tag nesting
7125 Media link with nasty text
7126 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7128 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7130 <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>
7135 Media link to nonexistent file (bug 1702)
7137 [[Media:No such.jpg]]
7139 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7144 Image link to nonexistent file (bug 1850 - good)
7146 [[Image:No such.jpg]]
7148 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7153 :Image link to nonexistent file (bug 1850 - bad)
7155 [[:Image:No such.jpg]]
7157 <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>
7164 Character reference normalization in link text (bug 1938)
7166 [[Main Page|this&that]]
7168 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7175 Test for unicode normalization
7177 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7181 (bug 19451) Links should refer to the normalized form.
7189 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7190 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7191 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7192 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7193 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7198 Empty attribute crash test (bug 2067)
7200 <font color="">foo</font>
7202 <p><font color="">foo</font>
7207 Empty attribute crash test single-quotes (bug 2067)
7209 <font color=''>foo</font>
7211 <p><font color="">foo</font>
7216 Attribute test: equals, then nothing
7218 <font color=>foo</font>
7225 Attribute test: unquoted value
7227 <font color=x>foo</font>
7229 <p><font color="x">foo</font>
7234 Attribute test: unquoted but illegal value (hash)
7236 <font color=#x>foo</font>
7238 <p><font color="#x">foo</font>
7243 Attribute test: no value
7245 <font color>foo</font>
7247 <p><font color="color">foo</font>
7252 Bug 2095: link with three closing brackets
7256 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7261 Bug 2095: link with pipe and three closing brackets
7265 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7270 Bug 2095: link with pipe and three closing brackets, version 2
7272 [[Main Page|[http://example.com/]]]
7274 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7284 Template:Dangerous attribute
7286 " onmouseover="alert(document.cookie)
7290 Template:Dangerous style attribute
7292 border-size: expression(alert(document.cookie))
7298 <div style="float: right; {{{1}}}">Magic div</div>
7302 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7304 <div title="{{test}}"></div>
7306 <div title="This is a test template"></div>
7311 Bug 2304: HTML attribute safety (dangerous template; 2309)
7313 <div title="{{dangerous attribute}}"></div>
7315 <div title=""></div>
7320 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7322 <div style="{{dangerous style attribute}}"></div>
7324 <div style="/* insecure input */"></div>
7329 Bug 2304: HTML attribute safety (safe parameter; 2309)
7331 {{div style|width: 200px}}
7333 <div style="float: right; width: 200px">Magic div</div>
7338 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7340 {{div style|width: expression(alert(document.cookie))}}
7342 <div style="/* insecure input */">Magic div</div>
7347 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7349 {{div style|"><script>alert(document.cookie)</script>}}
7351 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7356 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7358 {{div style|" ><script>alert(document.cookie)</script>}}
7360 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7365 Bug 2304: HTML attribute safety (link)
7367 <div title="[[Main Page]]"></div>
7369 <div title="[[Main Page]]"></div>
7374 Bug 2304: HTML attribute safety (italics)
7376 <div title="''foobar''"></div>
7378 <div title="''foobar''"></div>
7383 Bug 2304: HTML attribute safety (bold)
7385 <div title="'''foobar'''"></div>
7387 <div title="'''foobar'''"></div>
7393 Bug 2304: HTML attribute safety (ISBN)
7395 <div title="ISBN 1234567890"></div>
7397 <div title="ISBN 1234567890"></div>
7402 Bug 2304: HTML attribute safety (RFC)
7404 <div title="RFC 1234"></div>
7406 <div title="RFC 1234"></div>
7411 Bug 2304: HTML attribute safety (PMID)
7413 <div title="PMID 1234567890"></div>
7415 <div title="PMID 1234567890"></div>
7420 Bug 2304: HTML attribute safety (web link)
7422 <div title="http://example.com/"></div>
7424 <div title="http://example.com/"></div>
7429 Bug 2304: HTML attribute safety (named web link)
7431 <div title="[http://example.com/ link]"></div>
7433 <div title="[http://example.com/ link]"></div>
7438 Bug 3244: HTML attribute safety (extension; safe)
7440 <div style="<nowiki>background:blue</nowiki>"></div>
7442 <div style="background:blue"></div>
7447 Bug 3244: HTML attribute safety (extension; unsafe)
7449 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7451 <div style="/* insecure input */"></div>
7455 # More MSIE fun discovered by Tom Gilder
7458 MSIE CSS safety test: spurious slash
7460 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7462 <div style="/* insecure input */">evil</div>
7467 MSIE CSS safety test: hex code
7469 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7471 <div style="/* insecure input */">evil</div>
7476 MSIE CSS safety test: comment in url
7478 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7480 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7485 MSIE CSS safety test: comment in expression
7487 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7489 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7495 Table attribute legitimate extension
7498 !+ style="<nowiki>color:blue</nowiki>"| status
7503 <th style="color:blue"> status
7509 Table attribute safety
7512 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7517 <th style="/* insecure input */"> status
7523 CSS line continuation 1
7525 <div style="background-image: u\ rl(test.jpg);"></div>
7527 <div style="/* insecure input */"></div>
7532 CSS line continuation 2
7534 <div style="background-image: u\ rl(test.jpg); "></div>
7536 <div style="/* insecure input */"></div>
7547 Expansion of multi-line templates in attribute values (bug 6255)
7549 <div style="background: {{identity|#00FF00}}">-</div>
7551 <div style="background: #00FF00">-</div>
7557 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7559 <div style="background:
7562 <div style="background: #00FF00">-</div>
7567 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7569 <div style="background: #00FF00">-</div>
7571 <div style="background: #00FF00">-</div>
7576 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7579 Parser hook: empty input
7592 Parser hook: empty input using terminated empty elements
7605 Parser hook: empty input using terminated empty elements (space before)
7618 Parser hook: basic input
7632 Parser hook: case insensitive
7646 Parser hook: case insensitive, redux
7659 Parser hook: nested tags
7663 <tag><tag></tag></tag>
7674 Parser hook: basic arguments
7676 <tag width=200 height = "100" depth = '50' square></tag>
7684 'square' => 'square',
7691 Parser hook: argument containing a forward slash (bug 5344)
7693 <tag filename='/tmp/bla'></tag>
7698 'filename' => '/tmp/bla',
7705 Parser hook: empty input using terminated empty elements (bug 2374)
7718 # </tag> should be output literally since there is no matching tag that begins it
7720 Parser hook: basic arguments using terminated empty elements (bug 2374)
7722 <tag width=200 height = "100" depth = '50' square/>
7732 'square' => 'square',
7741 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7745 Parser hook: static parser hook not inside a comment
7747 <statictag>hello, world</statictag>
7748 <statictag action=flush/>
7756 Parser hook: static parser hook inside a comment
7758 <!-- <statictag>hello, world</statictag> -->
7759 <statictag action=flush/>
7765 # Nested template calls; this case was broken by Parser.php rev 1.506,
7769 Template:One-parameter
7771 (My parameter is: {{{1}}})
7775 Template:Map-one-parameter
7781 Nested template calls
7783 {{Map-one-parameter|One-parameter|param}}
7785 <p>(My parameter is: param)
7794 Sanitizer: Closing of open tags
7796 <s></s><table></table>
7798 <s></s><table></table>
7803 Sanitizer: Closing of open but not closed tags
7812 Sanitizer: Closing of closed but not open tags
7821 Sanitizer: Closing of closed but not open table tags
7823 Table not started</td></tr></table>
7825 <p>Table not started</td></tr></table>
7830 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7832 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7834 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7839 Sanitizer: Validating the contents of the id attribute (bug 4515)
7845 Something, but definitely not <br id="9" />...
7849 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7853 <br id="foo" /><br id="foo" />
7855 Something need to be done. foo-2 ?
7859 Language converter: output gets cut off unexpectedly (bug 5757)
7863 this bit is safe: }-
7865 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7867 then we get cut off here: }-
7869 all additional text is vanished
7871 <p>this bit is safe: }-
7872 </p><p>but if we add a conversion instance: xxx
7873 </p><p>then we get cut off here: }-
7874 </p><p>all additional text is vanished
7879 Self closed html pairs (bug 5487)
7882 <center><font id="bug" />Centered text</center>
7883 <div><font id="bug2" />In div text</div>
7885 <center><font id="bug" />Centered text</center>
7886 <div><font id="bug2" />In div text</div>
7895 Punctuation: nbsp before exclamation
7899 <p>C'est grave !
7904 Punctuation: CSS !important (bug 11874)
7906 <div style="width:50% !important">important</div>
7908 <div style="width:50% !important">important</div>
7913 Punctuation: CSS ! important (bug 11874; with space after)
7915 <div style="width:50% ! important">important</div>
7917 <div style="width:50% ! important">important</div>
7923 HTML bullet list, closed tags (bug 5497)
7938 HTML bullet list, unclosed tags (bug 5497)
7955 HTML ordered list, closed tags (bug 5497)
7970 HTML ordered list, unclosed tags (bug 5497)
7987 HTML nested bullet list, closed tags (bug 5497)
8012 HTML nested bullet list, open tags (bug 5497)
8037 HTML nested ordered list, closed tags (bug 5497)
8062 HTML nested ordered list, open tags (bug 5497)
8087 HTML ordered list item with parameters oddity
8089 <ol><li id="fragment">One</li></ol>
8091 <ol><li id="fragment">One</li></ol>
8096 bug 5918: autonumbering
8098 [http://first/] [http://second] [ftp://ftp]
8102 [mailto:enclosed@mail.tld With target]
8104 [mailto:enclosed@mail.tld]
8106 mailto:inline@mail.tld
8108 <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>
8109 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8110 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8111 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8112 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8118 # Security and HTML correctness
8119 # From Nick Jenkins' fuzz testing
8123 Fuzz testing: Parser13
8138 Fuzz testing: Parser14
8143 <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>
8144 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8146 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8153 Fuzz testing: Parser14-table
8158 <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>
8159 <table style="__TOC__">
8165 # Known to produce bogus xml (extra </td>)
8167 Fuzz testing: Parser16
8187 Fuzz testing: Parser21
8190 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8195 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8205 Fuzz testing: Parser22
8207 http://===r:::https://b
8211 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8219 # Known to produce bad XML for now
8221 Fuzz testing: Parser24
8228 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8229 <br style="onmouseover='alert(document.cookie);' " />
8231 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8236 <u class="|">}}}} >
8237 <br style="onmouseover='alert(document.cookie);'" />
8239 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8248 # Note: the current result listed for this is not what the original one was,
8249 # but the original bug was JavaScript injection, which is fixed in any case.
8250 # It's not clear that the original result listed was any more correct than the
8251 # current one. Original result:
8254 # <li class="||">
8255 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8257 Fuzz testing: Parser25 (bug 6055)
8263 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8265 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8270 Fuzz testing: URL adjacent extension (with space, clean)
8273 http://example.com <nowiki>junk</nowiki>
8275 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8280 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8283 http://example.com<nowiki>junk</nowiki>
8285 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8290 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8293 http://example.com<pre>junk</pre>
8295 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8300 Fuzz testing: image with bogus manual thumbnail
8302 [[Image:foobar.jpg|thumbnail= ]]
8304 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8309 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8311 <pre dir=" "></pre>
8313 <pre dir=" "></pre>
8318 Parsing optional HTML elements (Bug 6171)
8323 <td> Some tabular data</td>
8324 <td> More tabular data ...
8325 <td> And yet som tabular data</td>
8331 <td> Some tabular data</td>
8332 <td> More tabular data ...
8333 </td><td> And yet som tabular data</td>
8340 Correct handling of <td>, <tr> (Bug 6171)
8345 <td> Some tabular data</td>
8346 <td> More tabular data ...</td>
8347 <td> And yet som tabular data</td>
8353 <td> Some tabular data</td>
8354 <td> More tabular data ...</td>
8355 <td> And yet som tabular data</td>
8363 Parsing crashing regression (fr:JavaScript)
8367 <p></body></x>
8372 Inline wiki vs wiki block nesting
8378 <p><b>Bold paragraph</b>
8379 </p><p>New wiki paragraph
8384 Inline HTML vs wiki block nesting
8392 <p><b>Bold paragraph</b>
8393 </p><p>New wiki paragraph
8397 # Original result was this:
8398 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8400 # While that might be marginally more intuitive, maybe, the six-apostrophe
8401 # construct is clearly pathological and the result stated here (which is what
8402 # the parser actually does) is about as reasonable as anything.
8404 Mixing markup for italics and bold
8407 '''bold''''''bold''bolditalics'''''
8409 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8417 Article for special page transclusion test
8421 Special page transclusion
8424 {{Special:Prefixindex/Xyzzyx}}
8426 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8431 Special page transclusion twice (bug 5021)
8434 {{Special:Prefixindex/Xyzzyx}}
8435 {{Special:Prefixindex/Xyzzyx}}
8437 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8438 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8443 Transclusion of default MediaWiki message
8445 {{MediaWiki:Mainpage}}
8452 Transclusion of nonexistent MediaWiki message
8454 {{MediaWiki:Mainpagexxx}}
8456 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8461 Transclusion of MediaWiki message with underscore
8463 {{MediaWiki:history_short}}
8470 Transclusion of MediaWiki message with space
8472 {{MediaWiki:history short}}
8479 Invalid header with following text
8489 Section extraction test (section 0)
8509 Section extraction test (section 1)
8531 Section extraction test (section 2)
8552 Section extraction test (section 3)
8572 Section extraction test (section 4)
8596 Section extraction test (section 5)
8616 Section extraction test (section 6)
8637 Section extraction test (section 7)
8657 Section extraction test (section 8)
8677 Section extraction test (section 9)
8698 Section extraction test (section 10)
8718 Section extraction test (nonexistent section 11)
8737 Section extraction test with bogus heading (section 1)
8742 ==bogus== not a legal section
8746 ==bogus== not a legal section
8750 Section extraction test with bogus heading (section 2)
8755 ==bogus== not a legal section
8762 Section extraction test with comment after heading (section 1)
8774 Section extraction test with comment after heading (section 2)
8786 Section extraction test with bogus <nowiki> heading (section 1)
8791 ==bogus== <nowiki>not a legal section</nowiki>
8795 ==bogus== <nowiki>not a legal section</nowiki>
8799 Section extraction test with bogus <nowiki> heading (section 2)
8804 ==bogus== <nowiki>not a legal section</nowiki>
8811 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8812 # instead of respecting commented sections
8814 Section extraction prefixed by comment (section 1)
8825 Section extraction prefixed by comment (section 2)
8836 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8837 # instead of respecting HTML-style headings
8839 Section extraction, mixed wiki and html (section 1)
8855 Section extraction, mixed wiki and html (section 2)
8871 # Formerly testing for bug 3342
8873 Section extraction, heading surrounded by <noinclude>
8877 <noinclude>==unmarked==</noinclude>
8883 # Test behaviour of bug 19910
8885 Sectiion with all-equals
8890 The line above must have a trailing space
8893 But just in case it doesn't...
8897 But just in case it doesn't...
8901 Section replacement test (section 0)
8932 Section replacement test (section 1)
8961 Section replacement test (section 2)
8991 Section replacement test (section 3)
9022 Section replacement test (section 4)
9049 Section replacement test (section 5)
9080 Section replacement test (section 6)
9110 Section replacement test (section 7)
9141 Section replacement test (section 8)
9172 Section replacement test (section 9)
9201 Section replacement test (section 10)
9231 Section replacement test with initial whitespace (bug 13728)
9235 Preformatted initial line
9239 Preformatted initial line
9246 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9258 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9271 Section extraction, <pre> around bogus header (bug 10309)
9288 Section replacement, <pre> around bogus header (bug 10309)
9290 noxml replace=2,"xxx"
9311 Handling of 
 in URLs
9315 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9322 5 quotes, code coverage +1 line
9329 Special:Search page linking.
9333 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9348 * {{SUBJECTPAGENAME}}
9349 * {{SUBJECTPAGENAMEE}}
9356 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9358 <ul><li> Parser test
9359 </li><li> Parser test
9360 </li><li> Parser test
9361 </li><li> Parser_test
9362 </li><li> Parser test
9363 </li><li> Parser_test
9364 </li><li> Talk:Parser test
9365 </li><li> Talk:Parser_test
9366 </li><li> Parser test
9367 </li><li> Parser_test
9374 </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>
9378 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9388 image4 |300px| centre
9389 image5.svg| http://///////
9394 <ul class="gallery">
9395 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9396 <div style="height: 150px;">Image1.png</div>
9397 <div class="gallerytext">
9400 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9401 <div style="height: 150px;">Image2.gif</div>
9402 <div class="gallerytext">
9407 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9408 <div style="height: 150px;">Image3</div>
9409 <div class="gallerytext">
9412 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9413 <div style="height: 150px;">Image4</div>
9414 <div class="gallerytext">
9419 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9420 <div style="height: 150px;">Image5.svg</div>
9421 <div class="gallerytext">
9422 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9426 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9427 <div style="height: 150px;">* image6</div>
9428 <div class="gallerytext">
9436 Gallery (with options)
9438 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9439 File:Nonexistant.jpg|caption
9440 File:Nonexistant.jpg
9441 image:foobar.jpg|some '''caption''' [[Main Page]]
9443 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9446 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9447 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9448 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9449 <div style="height: 70px;">Nonexistant.jpg</div>
9450 <div class="gallerytext">
9455 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9456 <div style="height: 70px;">Nonexistant.jpg</div>
9457 <div class="gallerytext">
9460 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9461 <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>
9462 <div class="gallerytext">
9463 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9467 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9468 <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>
9469 <div class="gallerytext">
9472 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9473 <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>
9474 <div class="gallerytext">
9484 Gallery with wikitext inside caption
9487 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9488 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9491 <ul class="gallery">
9492 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9493 <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>
9494 <div class="gallerytext">
9495 <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>
9499 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9500 <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>
9501 <div class="gallerytext">
9502 <p>This is a test template
9511 gallery (with showfilename option)
9513 <gallery showfilename>
9514 File:Nonexistant.jpg|caption
9515 File:Nonexistant.jpg
9516 image:foobar.jpg|some '''caption''' [[Main Page]]
9520 <ul class="gallery">
9521 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9522 <div style="height: 150px;">Nonexistant.jpg</div>
9523 <div class="gallerytext">
9524 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9529 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9530 <div style="height: 150px;">Nonexistant.jpg</div>
9531 <div class="gallerytext">
9532 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9536 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9537 <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>
9538 <div class="gallerytext">
9539 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9540 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9544 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9545 <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>
9546 <div class="gallerytext">
9547 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9556 Gallery (with namespace-less filenames)
9559 File:Nonexistant.jpg
9565 <ul class="gallery">
9566 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9567 <div style="height: 150px;">Nonexistant.jpg</div>
9568 <div class="gallerytext">
9571 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9572 <div style="height: 150px;">Nonexistant.jpg</div>
9573 <div class="gallerytext">
9576 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9577 <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>
9578 <div class="gallerytext">
9581 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9582 <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>
9583 <div class="gallerytext">
9591 HTML Hex character encoding (spells the word "JavaScript")
9593 JavaScript
9595 <p>JavaScript
9600 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9604 <p>&#xsee;&#XSEE;
9609 HTML Hex character encoding mixed case
9618 __FORCETOC__ override
9630 ISBN 978-0-1234-56 789
9632 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9637 ISBN followed by 5 spaces
9648 ISBN ISBN 1234567890
9650 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9655 Bug 22905: <abbr> followed by ISBN followed by </a>
9657 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9659 <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>
9668 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9673 Double RFC with a wiki link
9677 <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>
9686 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9691 Centre-aligned image
9693 [[Image:foobar.jpg|centre]]
9695 <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>
9702 [[Image:foobar.jpg|none]]
9704 <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>
9709 Width + Height sized image (using px) (height is ignored)
9711 [[Image:foobar.jpg|640x480px]]
9713 <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>
9718 Width-sized image (using px, no following whitespace)
9720 [[Image:foobar.jpg|640px]]
9722 <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>
9727 Width-sized image (using px, with following whitespace - test regression from r39467)
9729 [[Image:foobar.jpg|640px ]]
9731 <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>
9736 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9738 [[Image:foobar.jpg| 640px]]
9740 <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>
9745 Another italics / bold test
9753 # Note the results may be incorrect, as parserTest output included this:
9754 # XML error: Mismatched tag at byte 6120:
9755 # ...<dd> </dt></dl> </dd...
9763 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9774 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9776 Images with the "|" character in the comment
9778 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9780 <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>
9785 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9787 <html><script>alert(1);</script></html>
9789 <p><html><script>alert(1);</script></html>
9794 HTML with raw HTML ($wgRawHtml==true)
9798 <html><script>alert(1);</script></html>
9800 <p><script>alert(1);</script>
9805 Parents of subpages, one level up
9807 subpage title=[[Subpage test/L1/L2/L3]]
9811 <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>
9817 Parents of subpages, one level up, not named
9819 subpage title=[[Subpage test/L1/L2/L3]]
9823 <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>
9830 Parents of subpages, two levels up
9832 subpage title=[[Subpage test/L1/L2/L3]]
9838 <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
9839 </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>
9844 Parents of subpages, two levels up, without trailing slash or name.
9846 subpage title=[[Subpage test/L1/L2/L3]]
9855 Parents of subpages, two levels up, with lots of extra trailing slashes.
9857 subpage title=[[Subpage test/L1/L2/L3]]
9861 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9866 Definition list code coverage
9872 <dl><dt> title  </dt><dd> def
9873 </dd><dt> title </dt><dd> def
9874 </dd><dt>title</dt><dd> def
9880 Don't fall for the self-closing div
9882 <div>hello world</div/>
9884 <div>hello world</div>
9893 <p>[[:Template:Msg]]
9902 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9906 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9908 Always escape literal '>' in output, not just after '<'
9922 <p>This is a test template
9923 This is a test template
9935 Inclusion of !userCanEdit() content
9939 <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>
9945 Out-of-order TOC heading levels
9954 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9956 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9958 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9959 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9962 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9964 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9965 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9970 <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>
9971 <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>
9972 <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>
9973 <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>
9974 <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>
9975 <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>
9981 ISBN with a dummy number
9991 ISBN with space-delimited number
9995 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10001 ISBN with multiple spaces, no number
10020 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10021 </p><p>ISBN 12345678901
10027 ISBN with trailing year (bug 8110)
10029 ISBN 1-234-56789-0 - 2006
10031 ISBN 1 234 56789 0 - 2006
10033 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10034 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10042 {{anchorencode:foo bar©#%n}}
10044 <p>foo_bar.C2.A9.23.25n
10049 anchorencode trims spaces
10051 {{anchorencode: __pretty__please__}}
10058 anchorencode deals with links
10060 {{anchorencode: [[hello|world]] [[hi]]}}
10067 anchorencode deals with templates
10069 {{anchorencode: {{Foo}} }}
10076 anchorencode encodes like the TOC generator: (bug 18431)
10078 === _ +:.3A%3A&&]] ===
10079 {{anchorencode: _ +:.3A%3A&&]] }}
10082 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10083 <p>.2B:.3A.253A.26.26.5D.5D
10087 # Expected output in the following test is not necessarily expected (there
10088 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10089 # only testing for well-formedness.
10091 Bug 6200: blockquotes and paragraph formatting
10111 Bug 8293: Use of center tag ruins paragraph formatting
10133 ### Language variants related tests
10136 Self-link in language variants
10138 title=[[Dunav]] language=sr
10140 Both [[Dunav]] and [[Дунав]] are names for this river.
10142 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10148 Link to pages in language variants
10152 Main Page can be written as [[Маин Паге]]
10154 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10160 Multiple links to pages in language variants
10164 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10166 <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>.
10172 Simple template in language variants
10178 <p>This is a test template
10184 Template with explicit namespace in language variants
10190 <p>This is a test template
10196 Basic test for template parameter in language variants
10200 {{парамтест|param=foo}}
10202 <p>This is a test template with parameter foo
10208 Simple category in language variants
10212 [[Category:МедиаWики Усер'с Гуиде]]
10214 <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>
10219 Stripping -{}- tags (language variants)
10223 Latin proverb: -{Ne nuntium necare}-
10225 <p>Latin proverb: Ne nuntium necare
10231 Prevent conversion with -{}- tags (language variants)
10233 language=sr variant=sr-ec
10235 Latinski: -{Ne nuntium necare}-
10237 <p>Латински: Ne nuntium necare
10243 Prevent conversion of text with -{}- tags (language variants)
10245 language=sr variant=sr-ec
10247 Latinski: -{Ne nuntium necare}-
10249 <p>Латински: Ne nuntium necare
10255 Prevent conversion of links with -{}- tags (language variants)
10257 language=sr variant=sr-ec
10261 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10267 -{}- tags within headlines (within html for parserConvert())
10269 language=sr variant=sr-ec
10273 <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>
10279 Explicit definition of language variant alternatives
10281 language=zh variant=zh-tw
10283 -{zh:China;zh-tw:Taiwan}-, not China
10285 <p>Taiwan, not China
10291 Explicit session-wise language variant mapping (A flag and - flag)
10293 language=zh variant=zh-tw
10295 Taiwan is not China.
10296 But -{A|zh:China;zh-tw:Taiwan}- is China,
10297 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10298 and -{China}- is China.
10300 <p>Taiwan is not China.
10301 But Taiwan is Taiwan,
10302 (This should be stripped!)
10303 and China is China.
10308 Explicit session-wise language variant mapping (H flag for hide)
10310 language=zh variant=zh-tw
10312 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10315 <p>(This should be stripped!)
10321 Adding explicit conversion rule for title (T flag)
10323 language=zh variant=zh-tw showtitle
10325 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10328 <p>Should be stripped!
10333 Testing that changing the language variant here in the tests actually works
10335 language=zh variant=zh showtitle
10337 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10340 <p>Should be stripped!
10345 Bug 24072: more test on conversion rule for title
10347 language=zh variant=zh-tw showtitle
10349 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10350 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10353 <p>This should be stripped!
10354 This won't take interferes with the title rule.
10359 Raw output of variant escape tags (R flag)
10361 language=zh variant=zh-tw
10363 Raw: -{R|zh:China;zh-tw:Taiwan}-
10365 <p>Raw: zh:China;zh-tw:Taiwan
10370 Nested using of manual convert syntax
10372 language=zh variant=zh-hk
10374 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10376 <p>Nested: Hello Hong Kong!
10381 Do not convert roman numbers to language variants
10383 language=sr variant=sr-ec
10387 <p>Фридрих IV је цар.
10392 Unclosed language converter markup "-{"
10403 Don't convert raw rule "-{R|=>}-" to "=>"
10420 Bug 529: Uncovered bullet
10430 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10431 # Templates in Wikipedia rely on this behavior, as tidy has always been
10432 # enabled there. These tests are normally run *without* tidy, so specify the
10433 # full output here.
10434 # To test realistic parsing behavior, apply a tidy-like transformation to both
10435 # the expected output and your parser's output.
10437 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10439 ******* Foo {{bullet}}
10441 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10454 Bug 529: Uncovered table already at line-start
10477 Bug 529: Uncovered bullet in parser function result
10479 * Foo {{lc:{{bullet}} }}
10488 Bug 5678: Double-parsed template argument
10490 {{lc:{{{1}}}|hello}}
10497 Bug 5678: Double-parsed template invocation
10499 {{lc:{{paramtest {{!}} param = hello }} }}
10501 <p>{{paramtest | param = hello }}
10506 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10509 title=[[Main Page]]
10511 {{PRVNÍVELKÉ:ěščř}}
10512 {{prvnívelké:ěščř}}
10532 Morwen/13: Unclosed link followed by heading
10539 <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>
10544 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10551 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10556 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10563 <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>
10578 Paragraphs inside divs (no extra line breaks)
10590 Paragraphs inside divs (extra line break on open)
10605 Paragraphs inside divs (extra line break on close)
10620 Paragraphs inside divs (extra line break on open and close)
10637 Nesting tags, paragraphs on lines which begin with <div>
10641 <div></div><strong>A
10650 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10652 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10656 <blockquote>Line one
10658 Line two</blockquote>
10660 <blockquote>Line one
10661 Line two</blockquote>
10666 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10673 Line two</blockquote>
10678 Line two</blockquote>
10683 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10687 <blockquote>Line one
10692 <blockquote>Line one
10700 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10719 Paragraphs inside blockquotes/divs (no extra line breaks)
10721 <blockquote><div>Line one
10723 Line two</div></blockquote>
10725 <blockquote><div>Line one
10726 Line two</div></blockquote>
10731 Paragraphs inside blockquotes/divs (extra line break on open)
10736 Line two</div></blockquote>
10741 Line two</div></blockquote>
10746 Paragraphs inside blockquotes/divs (extra line break on close)
10748 <blockquote><div>Line one
10751 </div></blockquote>
10753 <blockquote><div>Line one
10756 </div></blockquote>
10761 Paragraphs inside blockquotes/divs (extra line break on open and close)
10767 </div></blockquote>
10773 </div></blockquote>
10778 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10780 wgLinkHolderBatchSize=0
10786 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10787 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10788 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10793 Free external link invading image caption
10795 [[Image:Foobar.jpg|thumb|http://x|hello]]
10797 <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>
10802 Bug 15196: localised external link numbers
10806 [http://en.wikipedia.org/]
10808 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10813 Multibyte character in padleft
10815 {{padleft:-Hello|7|Æ}}
10822 Multibyte character in padright
10824 {{padright:Hello-|7|Æ}}
10833 wgUseDynamicDates=1
10837 <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>
10842 formatdate parser function
10844 {{#formatdate:2009-03-24}}
10846 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10851 formatdate parser function, with default format
10853 {{#formatdate:2009-03-24|mdy}}
10855 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10860 Linked date with autoformatting disabled
10862 wgUseDynamicDates=false
10866 <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>
10871 Spacing of numbers in formatted dates
10873 {{#formatdate:January 15}}
10875 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10880 Spacing of numbers in formatted dates (linked)
10882 wgUseDynamicDates=true
10886 <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>
10891 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
10893 language=nl title=[[MediaWiki:Common.css]]
10895 {{#formatdate:2009-03-24|dmy}}
10897 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10910 Edit comment with link
10914 I like the [[Main Page]] a lot
10916 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10920 Edit comment with link and link text
10924 I like the [[Main Page|best pages]] a lot
10926 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10930 Edit comment with link and link text with suffix
10934 I like the [[Main Page|best page]]s a lot
10936 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10940 Edit comment with section link (non-local, eg in history list)
10942 comment title=[[Main Page]]
10944 /* External links */ removed bogus entries
10946 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10950 Edit comment with section link and text before it (non-local, eg in history list)
10952 comment title=[[Main Page]]
10954 pre-comment text /* External links */ removed bogus entries
10956 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>
10960 Edit comment with section link (local, eg in diff view)
10962 comment local title=[[Main Page]]
10964 /* External links */ removed bogus entries
10966 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10970 Edit comment with subpage link (bug 14080)
10974 title=[[Subpage test]]
10976 Poked at a [[/subpage]] here...
10978 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10982 Edit comment with subpage link and link text (bug 14080)
10986 title=[[Subpage test]]
10988 Poked at a [[/subpage|neat little page]] here...
10990 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10994 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10997 title=[[Subpage test]]
10999 Poked at a [[/subpage]] here...
11001 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11005 Edit comment with bare anchor link (local, as on diff)
11009 title=[[Main Page]]
11013 <a href="#section">#section</a>
11017 Edit comment with bare anchor link (non-local, as on history)
11020 title=[[Main Page]]
11024 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11028 Anchor starting with underscore
11032 <p><a href="#_ref">One</a>
11037 Id starting with underscore
11039 <div id="_ref"></div>
11041 <div id="_ref"></div>
11046 Space normalisation on autocomment (bug 22784)
11049 title=[[Main Page]]
11051 /* __hello__world__ */
11053 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11057 percent-encoding and + signs in comments (Bug 26410)
11061 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11063 <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>
11067 Bad images - basic functionality
11076 Bad images - bug 16039: text after bad image disappears
11090 Verify that displaytitle works (bug #22501) no displaytitle
11094 wgAllowDisplayTitle=true
11095 wgRestrictDisplayTitle=false
11097 this is not the the title
11100 <p>this is not the the title
11105 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11110 wgAllowDisplayTitle=true
11111 wgRestrictDisplayTitle=false
11113 this is not the the title
11114 {{DISPLAYTITLE:whatever}}
11117 <p>this is not the the title
11122 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11127 wgAllowDisplayTitle=true
11128 wgRestrictDisplayTitle=true
11130 this is not the the title
11131 {{DISPLAYTITLE:whatever}}
11134 <p>this is not the the title
11139 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11144 wgAllowDisplayTitle=true
11145 wgRestrictDisplayTitle=true
11147 this is not the the title
11148 {{DISPLAYTITLE:screen}}
11151 <p>this is not the the title
11156 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11161 wgAllowDisplayTitle=false
11163 this is not the the title
11164 {{DISPLAYTITLE:screen}}
11167 <p>this is not the the title
11168 <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>
11173 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11178 wgAllowDisplayTitle=false
11180 this is not the the title
11183 <p>this is not the the title
11188 preload: check <noinclude> and <includeonly>
11192 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11198 preload: check <onlyinclude>
11202 Goodbye <onlyinclude>Hello world</onlyinclude>
11208 preload: can pass tags through if we want to
11212 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11214 <includeonly>Hello world</includeonly>
11218 preload: check that it doesn't try to do tricks
11222 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11224 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11228 Play a bit with r67090 and bug 3158
11232 <div style="width:50% !important"> </div>
11233 <div style="width:50% !important"> </div>
11234 <div style="width:50% !important"> </div>
11235 <div style="border : solid;"> </div>
11237 <div style="width:50% !important"> </div>
11238 <div style="width:50% !important"> </div>
11239 <div style="width:50% !important"> </div>
11240 <div style="border : solid;"> </div>
11245 HTML5 data attributes
11247 <span data-foo="bar">Baz</span>
11248 <p data-abc-def_hij="">Quuz</p>
11250 <p><span data-foo="bar">Baz</span>
11252 <p data-abc-def_hij="">Quuz</p>
11257 percent-encoding and + signs in internal links (Bug 26410)
11259 [[User:+%]] [[Page+title%]]
11260 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11261 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11262 [[%33%45]] [[%33%45+]]
11264 <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>
11265 <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>
11266 <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>
11267 <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>
11272 Special characters in embedded file links (bug 27679)
11274 [[File:Contains & ampersand.jpg]]
11275 [[File:Does not exist.jpg|Title with & ampersand]]
11277 <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>
11278 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11284 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11286 Text's been normalized?
11288 <p>Text's been normalized?
11293 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11295 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11297 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11302 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11304 [http://www.example.org/ ideograms]
11306 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11311 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11313 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11315 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11339 Bug 31098 Template which includes system messages which includes the template
11343 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11344 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11349 Deprecated presentational attributes are converted to css
11352 | valign=top align=left width=100 height=25% | Asdf
11354 <ul type="disc"></ul>
11358 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11360 <ul style="list-style-type: disc;"></ul>
11365 Bug31490 Turkish: ucfirst 'blah'
11376 Bug31490 Turkish: ucfirst 'ix'
11387 Bug31490 Turkish: lcfirst 'BLAH'
11398 Bug31490 Turkish: ucfırst (with a dotless i)
11404 <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>
11409 Bug31490 ucfırst (with a dotless i) with English language
11415 <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>
11420 Bug 26375: TOC with italics
11422 title=[[Main Page]]
11425 == ''Lost'' episodes ==
11427 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11429 <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>
11432 <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>
11437 Bug 26375: TOC with bold
11439 title=[[Main Page]]
11442 == '''should be bold''' then normal text ==
11444 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11446 <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>
11449 <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>
11454 Bug 33845: Headings become cursive in TOC when they contain an image
11456 title=[[Main Page]]
11459 == Image [[Image:foobar.jpg]] ==
11461 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11463 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11466 <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>
11471 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11473 title=[[Main Page]]
11476 == <blockquote>Quote</blockquote> ==
11478 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11480 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11483 <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>
11488 Unclosed tags in TOC
11490 title=[[Main Page]]
11494 <small>Hanc marginis exiguitas non caperet.</small>
11497 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11499 <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>
11502 <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>
11503 <p><small>Hanc marginis exiguitas non caperet.</small>
11509 Multiple tags in TOC
11512 == <i>Foo</i> <b>Bar</b> ==
11514 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11516 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11518 <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>
11519 <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>
11522 <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>
11523 <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>
11528 Tags with parameters in TOC
11531 == <sup class="in-h2">Hello</sup> ==
11533 == <sup class="a > b">Evilbye</sup> ==
11535 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11537 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11538 <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>
11541 <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>
11542 <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>
11547 span tags with directionality in TOC
11550 == <span dir="ltr">C++</span> ==
11552 == <span dir="rtl">זבנג!</span> ==
11554 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11556 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11558 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11560 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11562 <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>
11563 <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>
11564 <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>
11565 <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>
11566 <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>
11569 <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>
11570 <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>
11571 <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>
11572 <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>
11573 <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>
11580 == {{int:headline_sample}} ==
11584 Bug 32057: Title needed when expanding <h> nodes.
11586 title=[[Main Page]]
11590 <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>
11595 Strip marker in urlencode
11597 {{urlencode:x<nowiki/>y}}
11598 {{urlencode:x<nowiki/>y|wiki}}
11599 {{urlencode:x<nowiki/>y|path}}
11626 Strip marker in formatNum
11628 {{formatnum:1<nowiki/>2}}
11629 {{formatnum:1<nowiki/>2|R}}
11637 Strip marker in grammar
11641 {{grammar:elative|foo<nowiki/>bar}}
11648 Strip marker in padleft
11650 {{padleft:|2|x<nowiki/>y}}
11657 Strip marker in padright
11659 {{padright:|2|x<nowiki/>y}}
11666 Strip marker in anchorencode
11668 {{anchorencode:x<nowiki/>y}}
11675 nowiki inside link inside heading (bug 18295)
11677 ==[[foo|x<nowiki>y</nowiki>z]]==
11679 <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>
11684 new support for bdi element (bug 31817)
11686 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11688 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11693 Ignore pipe between table row attributes
11697 |- id=foo | style='color: red'
11705 <tr id="foo" style="color: red">
11712 Gallery override link with WikiLink (bug 34852)
11715 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11718 <ul class="gallery">
11719 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11720 <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>
11721 <div class="gallerytext">
11731 Gallery override link with absolute external link (bug 34852)
11734 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11737 <ul class="gallery">
11738 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11739 <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>
11740 <div class="gallerytext">
11750 Gallery override link with malicious javascript (bug 34852)
11753 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11756 <ul class="gallery">
11757 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11758 <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>
11759 <div class="gallerytext">
11769 Language parser function
11778 Padleft and padright as substr
11780 {{padleft:|3|abcde}}
11781 {{padright:|3|abcde}}
11789 Bug 34939 - Case insensitive link parsing ([HttP://])
11791 [HttP://MediaWiki.Org/]
11793 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11798 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11800 [HttP://MediaWiki.Org/ MediaWiki]
11802 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11807 Bug 34939 - Case insensitive link parsing (HttP://)
11809 HttP://MediaWiki.Org/
11811 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11816 ### Parsoids-specific tests
11817 ### Parsoid-PHP parser incompatibilities
11820 1. SOL-sensitive wikitext tokens as template-args
11834 #### The following section of tests are primarily to test
11835 #### wikitext escaping capabilities of Parsoid.
11836 #### A lot of the tests are disabled for the PHP parser either
11837 #### because of minor newline diffs or other reasons.
11838 #### As Parsoid serializer can handle newlines and other HTML
11839 #### more robustly, some of these tests might get reenabled
11840 #### for the PHP parser.
11842 #### --------------- Headings ---------------
11844 #### 1. Nested inside html <h1>=foo=</h1>
11845 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11846 #### 3. Nested inside html with wikitext split by html tags
11847 #### 4. No escape needed
11848 #### 5. Empty headings <h1></h1>
11849 #### 6. Heading chars in SOL context
11850 #### ----------------------------------------
11852 Headings: 0. Unnested
11854 <nowiki>=foo=</nowiki>
11856 <nowiki>=foo</nowiki>''a''=
11859 </p><p>=foo<i>a</i>=
11864 Headings: 1. Nested inside html
11868 =<nowiki>=foo=</nowiki>=
11869 ==<nowiki>=foo=</nowiki>==
11870 ===<nowiki>=foo=</nowiki>===
11871 ====<nowiki>=foo=</nowiki>====
11872 =====<nowiki>=foo=</nowiki>=====
11873 ======<nowiki>=foo=</nowiki>======
11884 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11889 <nowiki>*bar</nowiki>
11893 <nowiki>=bar=</nowiki>
11901 Headings: 3. Nested inside html with wikitext split by html tags
11905 =<nowiki>=</nowiki>'''bold'''foo==
11907 <h1>=<b>bold</b>foo=</h1>
11911 Headings: 4. No escaping needed (testing just h1 and h2)
11926 <h1><i>=</i>foo=</h1>
11931 Headings: 5. Empty headings
11935 =<nowiki></nowiki>=
11936 ==<nowiki></nowiki>==
11937 ===<nowiki></nowiki>===
11938 ====<nowiki></nowiki>====
11939 =====<nowiki></nowiki>=====
11940 ======<nowiki></nowiki>======
11951 Headings: 6. Heading chars in SOL context
11955 <!--cmt--><nowiki>=h1=</nowiki>
11961 #### --------------- Lists ---------------
11962 #### 0. Outside nests (*foo, etc.)
11963 #### 1. Nested inside html <ul><li>*foo</li></ul>
11964 #### 2. Inside definition lists
11965 #### 3. Only bullets at start should be escaped
11966 #### 4. No escapes needed
11967 #### 5. No unnecessary escapes
11968 #### 6. Escape bullets in SOL position
11969 #### 7. Escape bullets in a multi-line context
11970 #### ----------------------------------------
11973 Lists: 0. Outside nests
11975 <nowiki>*foo</nowiki>
11977 <nowiki>#foo</nowiki>
11985 Lists: 1. Nested inside html
11987 *<nowiki>*foo</nowiki>
11989 *<nowiki>#foo</nowiki>
11991 *<nowiki>:foo</nowiki>
11993 *<nowiki>;foo</nowiki>
11995 #<nowiki>*foo</nowiki>
11997 #<nowiki>#foo</nowiki>
11999 #<nowiki>:foo</nowiki>
12001 #<nowiki>;foo</nowiki>
12023 Lists: 2. Inside definition lists
12025 ;<nowiki>;foo</nowiki>
12027 ;<nowiki>:foo</nowiki>
12029 ;<nowiki>:foo</nowiki>
12032 :<nowiki>:foo</nowiki>
12047 Lists: 3. Only bullets at start of text should be escaped
12049 *<nowiki>*foo*bar</nowiki>
12051 *<nowiki>*foo</nowiki>''it''*bar
12055 <ul><li>*foo<i>it</i>*bar
12061 Lists: 4. No escapes needed
12073 <ul><li><i>foo</i>*bar
12075 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12080 Lists: 5. No unnecessary escapes
12082 * bar <span><nowiki>[[foo]]</nowiki></span>
12084 *=bar <span><nowiki>[[foo]]</nowiki></span>
12086 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12088 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12090 *=bar <span>foo]]</span>=
12092 <ul><li> bar <span>[[foo]]</span>
12094 <ul><li>=bar <span>[[foo]]</span>
12096 <ul><li>[[bar <span>[[foo]]</span>
12098 <ul><li>]]bar <span>[[foo]]</span>
12100 <ul><li>=bar <span>foo]]</span>=
12106 Lists: 6. Escape bullets in SOL position
12110 <!--cmt--><nowiki>*foo</nowiki>
12117 Lists: 7. Escape bullets in a multi-line context
12127 #### --------------- HRs ---------------
12128 #### 1. Single line
12129 #### -----------------------------------
12132 HRs: 1. Single line
12137 <nowiki>----</nowiki>
12139 <nowiki>=foo=</nowiki>
12141 <nowiki>*foo</nowiki>
12148 #### --------------- Tables ---------------
12149 #### 1a. Simple example
12150 #### 1b. No escaping needed (!foo)
12151 #### 1c. No escaping needed (|foo)
12152 #### 1d. No escaping needed (|}foo)
12154 #### 2a. Nested in td (<td>foo|bar</td>)
12155 #### 2b. Nested in td (<td>foo||bar</td>)
12156 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12158 #### 3a. Nested in th (<th>foo!bar</th>)
12159 #### 3b. Nested in th (<th>foo!!bar</th>)
12160 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12164 #### 4c. No escaping needed
12165 #### --------------------------------------
12168 Tables: 1a. Simple example
12179 Tables: 1b. No escaping needed
12188 Tables: 1c. No escaping needed
12197 Tables: 1d. No escaping needed
12206 Tables: 2a. Nested in td
12211 |<nowiki>foo|bar</nowiki>
12221 Tables: 2b. Nested in td
12226 |<nowiki>foo||bar</nowiki>
12227 |''it''<nowiki>foo||bar</nowiki>
12232 </td><td><i>it</i>foo||bar
12238 Tables: 2c. Nested in td -- no escaping needed
12253 Tables: 3a. Nested in th
12268 Tables: 3b. Nested in th
12273 !<nowiki>foo!!bar</nowiki>
12283 Tables: 3c. Nested in th -- no escaping needed
12298 Tables: 4a. Escape -
12306 |<nowiki>-bar</nowiki>
12310 <tr><th>-bar</th></tr>
12311 <tr><td>-bar</td></tr>
12316 Tables: 4b. Escape +
12324 |<nowiki>+bar</nowiki>
12328 <tr><th>+bar</th></tr>
12329 <tr><td>+bar</td></tr>
12334 Tables: 4c. No escaping needed
12348 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12349 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12353 #### --------------- Links ---------------
12354 #### 1. Quote marks in link text
12355 #### 2. Wikilinks: Escapes needed
12356 #### 3. Wikilinks: No escapes needed
12357 #### 4. Extlinks: Escapes needed
12358 #### 5. Extlinks: No escapes needed
12359 #### --------------------------------------
12361 Links 1. Quote marks in link text
12365 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12367 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12371 Links 2. WikiLinks: Escapes needed
12375 [[Foo|<nowiki>[Foobar]</nowiki>]]
12376 [[Foo|<nowiki>Foobar]</nowiki>]]
12377 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12378 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12379 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12380 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12381 [[Foo|<nowiki>|Bar</nowiki>]]
12383 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12384 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12385 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12386 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12387 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12388 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12389 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12393 Links 3. WikiLinks: No escapes needed
12400 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12401 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12405 Links 4. ExtLinks: Escapes needed
12409 [http://google.com <nowiki>[google]</nowiki>]
12410 [http://google.com <nowiki>google]</nowiki>]
12412 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12413 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12417 Links 5. ExtLinks: No escapes needed
12421 [http://google.com [google]
12423 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12426 #### --------------- Quotes ---------------
12427 #### 1. Quotes inside <b> and <i>
12428 #### 2. Link fragments separated by <i> and <b> tags
12429 #### 3. Link fragments inside <i> and <b>
12430 #### --------------------------------------
12432 1. Quotes inside <b> and <i>
12434 ''<nowiki>'foo'</nowiki>''
12435 ''<nowiki>''foo''</nowiki>''
12436 ''<nowiki>'''foo'''</nowiki>''
12437 '''<nowiki>'foo'</nowiki>'''
12438 '''<nowiki>''foo''</nowiki>'''
12439 '''<nowiki>'''foo'''</nowiki>'''
12440 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12448 <b>foo'<i>bar'</i>baz</b>
12453 2. Link fragments separated by <i> and <b> tags
12455 [[''foo''<nowiki>hello]]</nowiki>
12457 [['''foo'''<nowiki>hello]]</nowiki>
12459 <p>[[<i>foo</i>hello]]
12460 </p><p>[[<b>foo</b>hello]]
12465 2. Link fragments inside <i> and <b>
12466 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12467 this is one of the shortcomings of this format)
12469 ''[[foo''<nowiki>]]</nowiki>
12471 '''[[foo'''<nowiki>]]</nowiki>
12474 </p><p><b>[[foo</b>]]
12478 #### --------------- Paragraphs ---------------
12479 #### 1. No unnecessary escapes
12480 #### --------------------------------------
12483 1. No unnecessary escapes
12485 bar <span><nowiki>[[foo]]</nowiki></span>
12487 =bar <span><nowiki>[[foo]]</nowiki></span>
12489 [[bar <span><nowiki>[[foo]]</nowiki></span>
12491 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12493 <nowiki>=bar </nowiki><span>foo]]</span>=
12495 <p>bar <span>[[foo]]</span>
12496 </p><p>=bar <span>[[foo]]</span>
12497 </p><p>[[bar <span>[[foo]]</span>
12498 </p><p>]]bar <span>[[foo]]</span>
12499 </p><p>=bar <span>foo]]</span>=
12503 #### --------------- PRE ------------------
12504 #### 1. Leading space in SOL context should be escaped
12505 #### --------------------------------------
12507 1. Leading space in SOL context should be escaped
12511 <nowiki> foo</nowiki>
12512 <!--cmt--><nowiki> foo</nowiki>
12519 #### --------------- HTML tags ---------------
12522 #### 3. multi-line html tag
12523 #### --------------------------------------
12529 <a href="http://google.com">google</a>
12531 <a href="http://google.com">google</a>
12537 <nowiki><div>foo</div>
12538 <div style="color:red">foo</div></nowiki>
12540 <p><div>foo</div>
12541 <div style="color:red">foo</div>
12546 3. multi-line html tag
12558 #### --------------- Others ---------------
12562 <nowiki>foo</nowiki>
12564 <p><nowiki>foo</nowiki>
12573 Try for 100% code coverage