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 ### Parsoid-centric tests for testing RT edge cases for pre
1078 1a. Pre and Comments
1091 1b. Pre and Comments
1104 1c. Pre and Comments
1154 3a. Pre and block tags (single-line html)
1162 <pre><span> foo </span>
1167 3b. Pre and block tags (pre-content on separate line)
1219 4. Multiple spaces at start-of-line
1238 ### Definition lists
1245 <dl><dt> name </dt><dd> Definition
1251 Definition list for indentation only
1255 <dl><dd> Indented text
1261 Definition list with no space
1265 <dl><dt>name</dt><dd>Definition
1271 Definition list with URL link
1273 ; http://example.com/ : definition
1275 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1281 Definition list with bracketed URL link
1283 ;[http://www.example.com/ Example]:Something about it
1285 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1291 Definition list with wikilink containing colon
1293 ; [[Help:FAQ]]: The least-read page on Wikipedia
1295 <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
1300 # At Brion's and JeLuF's insistence... :)
1302 Definition list with news link containing colon
1304 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1306 <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!
1312 Malformed definition list with colon
1314 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1316 <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
1322 Definition lists: colon in external link text
1324 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1326 <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
1332 Definition lists: colon in HTML attribute
1334 ;<b style="display: inline">bold</b>
1336 <dl><dt><b style="display: inline">bold</b>
1342 Definition lists: self-closed tag
1344 ;one<br/>two : two-line fun
1346 <dl><dt>one<br />two </dt><dd> two-line fun
1352 Bug 11748: Literal closing tags
1356 <dd>test test test test test</dd>
1358 <dd>test test test test test</dd>
1363 <dd>test test test test test</dd>
1365 <dd>test test test test test</dd>
1371 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1374 ; term : description
1380 <dl><dt> term </dt><dd> description
1391 Definition list with empty definition and following paragraph
1396 <dl><dt> term</dt><dd>
1403 Nested definition lists using html syntax
1420 Definition Lists: No nesting: Multiple dd's
1434 Definition Lists: Indentation: Regular
1450 Definition Lists: Indentation: Missing 1st level
1464 Definition Lists: Indentation: Multi-level indent
1468 <dl><dd><dl><dd><dl><dd>i3
1476 Definition Lists: Hacky use to indent tables
1483 should be left alone
1485 <dl><dd><dl><dd><table>
1490 </td></tr></table></dd></dl></dd></dl>
1492 should be left alone
1495 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1496 ## as an empty dt item. It also ignores all but the last ";" when followed
1497 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1498 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1501 ## Ex: ";;t2 ::d2" is transformed into:
1513 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1514 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1525 ## All Parsoid only definition list tests have this difference.
1527 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1528 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1531 Definition Lists: Nesting: Multi-level (Parsoid only)
1561 Definition Lists: Nesting: Test 2 (Parsoid only)
1581 Definition Lists: Nesting: Test 3 (Parsoid only)
1609 Definition Lists: Nesting: Test 4
1614 <dl><dd><dl><dd><dl><dt>t3
1624 Definition Lists: Mixed Lists: Test 1
1630 <dl><dd><dl><dt><ul><li> foo
1642 Definition Lists: Mixed Lists: Test 2
1656 Definition Lists: Mixed Lists: Test 3
1661 <ul><li><dl><dd><dl><dd><dl><dd> d1
1672 Definition Lists: Mixed Lists: Test 4
1677 <ul><li><dl><dt>d1 </dt><dd>d2
1678 </dd><dt>d3 </dt><dd>d4
1686 Definition Lists: Mixed Lists: Test 5
1701 Definition Lists: Mixed Lists: Test 6
1706 <ol><li><ul><li><dl><dd>d1
1718 Definition Lists: Mixed Lists: Test 7
1732 Definition Lists: Mixed Lists: Test 8
1748 Definition Lists: Mixed Lists: Test 9
1752 <ul><li><dl><dt>foo </dt><dd>bar
1760 Definition Lists: Mixed Lists: Test 10
1764 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1773 Definition Lists: Mixed Lists: Test 11
1778 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1783 <dl><dt>boo </dt><dd>baz
1794 Definition Lists: Weird Ones: Test 1
1796 *#;*::;; foo : bar (who uses this?)
1798 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1814 External links: non-bracketed
1816 Non-bracketed: http://example.com
1818 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1823 External links: numbered
1825 Numbered: [http://example.com]
1826 Numbered: [http://example.net]
1827 Numbered: [http://example.com]
1829 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1830 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1831 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1836 External links: specified text
1838 Specified text: [http://example.com link]
1840 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1845 External links: trail
1847 Linktrails should not work for external links: [http://example.com link]s
1849 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1854 External links: dollar sign in URL
1856 http://example.com/1$2345
1858 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1863 External links: dollar sign in URL (named)
1865 [http://example.com/1$2345]
1867 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1872 External links: open square bracket forbidden in URL (bug 4377)
1874 http://example.com/1[2345
1876 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1881 External links: open square bracket forbidden in URL (named) (bug 4377)
1883 [http://example.com/1[2345]
1885 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1890 External links: nowiki in URL link text (bug 6230)
1892 [http://example.com/ <nowiki>''example site''</nowiki>]
1894 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1899 External links: newline forbidden in text (bug 6230 regression check)
1901 [http://example.com/ first
1904 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1910 External links: Pipe char between url and text
1912 [http://example.com | link]
1914 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1919 External links: protocol-relative URL in brackets
1921 [//example.com/ Test]
1923 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1928 External links: protocol-relative URL in brackets without text
1932 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1937 External links: protocol-relative URL in free text is left alone
1941 <p>//example.com/Foo
1946 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1948 foo//example.com/Foo
1950 <p>foo//example.com/Foo
1957 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1959 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1964 External image from https
1966 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1968 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1973 Link to non-http image, no img tag
1975 Link to non-http image, no img tag: ftp://example.com/test.jpg
1977 <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>
1982 External links: terminating separator
1984 Terminating separator: http://example.com/thing,
1986 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1991 External links: intervening separator
1993 Intervening separator: http://example.com/1,2,3
1995 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2000 External links: old bug with URL in query
2002 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2004 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2009 External links: old URL-in-URL bug, mixed protocols
2011 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2013 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2018 External links: URL in text
2020 URL in text: [http://example.com http://example.com]
2022 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2027 External links: Clickable images
2029 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2031 <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>
2036 External links: raw ampersand
2038 Old & use: http://x&y
2040 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2045 External links: encoded ampersand
2047 Old & use: http://x&y
2049 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2054 External links: encoded equals (bug 6102)
2056 http://example.com/?foo=bar
2058 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2063 External links: [raw ampersand]
2065 Old & use: [http://x&y]
2067 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2072 External links: [encoded ampersand]
2074 Old & use: [http://x&y]
2076 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2081 External links: [encoded equals] (bug 6102)
2083 [http://example.com/?foo=bar]
2085 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2090 External links: [IDN ignored character reference in hostname; strip it right off]
2092 [http://e‌xample.com/]
2094 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2098 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2099 # Where an external link could easily circumvent the sanitization of the text of
2100 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2101 # test demands a higher standard. That's a bit strange.
2105 # http://example.com -> [http://example.com|http://example.com]
2106 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2108 # The first example is sanitized, but the second is not. Any security benefits
2109 # from this production are trivial to circumvent. Either remove this test and
2110 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2111 # the test accordingly.
2116 External links: IDN ignored character reference in hostname; strip it right off
2118 http://e‌xample.com/
2120 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2125 External links: www.jpeg.org (bug 554)
2129 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2134 External links: URL within URL (original bug 2)
2136 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2138 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2143 BUG 361: URL inside bracketed URL
2145 [http://www.example.com/foo http://www.example.com/bar]
2147 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2152 BUG 361: URL within URL, not bracketed
2154 http://www.example.com/foo?=http://www.example.com/bar
2156 <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>
2161 BUG 289: ">"-token in URL-tail
2163 http://www.example.com/<hello>
2165 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2170 BUG 289: literal ">"-token in URL-tail
2172 http://www.example.com/<b>html</b>
2174 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2179 BUG 289: ">"-token in bracketed URL
2181 [http://www.example.com/<hello> stuff]
2183 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2188 BUG 289: literal ">"-token in bracketed URL
2190 [http://www.example.com/<b>html</b> stuff]
2192 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2197 BUG 289: literal double quote at end of URL
2199 http://www.example.com/"hello"
2201 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2206 BUG 289: literal double quote in bracketed URL
2208 [http://www.example.com/"hello" stuff]
2210 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2215 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2217 [http://www.example.com test]
2219 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2224 External links: wiki links within external link (Bug 3695)
2226 [http://example.com [[wikilink]] embedded in ext link]
2228 <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>
2233 BUG 787: Links with one slash after the url protocol are invalid
2237 [http:/example.com title]
2239 <p>http:/example.com
2240 </p><p>[http:/example.com title]
2245 Bracketed external links with template-generated invalid target
2247 [{{echo|http:/example.com}} title]
2249 <p>[http:/example.com title]
2254 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2256 ''[http://example.com text'']
2257 [http://example.com '''text]'''
2258 ''Something [http://example.com in italic'']
2259 ''Something [http://example.com mixed''''', even bold]'''
2260 '''''Now [http://example.com both''''']
2262 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2263 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2264 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2265 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2266 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2272 Bug 4781: %26 in URL
2274 http://www.example.com/?title=AT%26T
2276 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2280 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2281 # % is actually legal in HTML5. Any change in output would need testing though.
2283 Bug 4781, 5267: %25 in URL
2285 http://www.example.com/?title=100%25_Bran
2287 <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>
2292 Bug 4781, 5267: %28, %29 in URL
2294 http://www.example.com/?title=Ben-Hur_%281959_film%29
2296 <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>
2302 Bug 4781: %26 in autonumber URL
2304 [http://www.example.com/?title=AT%26T]
2306 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2311 Bug 4781, 5267: %26 in autonumber URL
2313 [http://www.example.com/?title=100%25_Bran]
2315 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2320 Bug 4781, 5267: %28, %29 in autonumber URL
2322 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2324 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2330 Bug 4781: %26 in bracketed URL
2332 [http://www.example.com/?title=AT%26T link]
2334 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2339 Bug 4781, 5267: %26 in bracketed URL
2341 [http://www.example.com/?title=100%25_Bran link]
2343 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2348 Bug 4781, 5267: %28, %29 in bracketed URL
2350 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2352 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2357 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2359 Some [http://example.com/ pretty ''italics'' and stuff]!
2361 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2366 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2368 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2370 <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>
2375 External link containing double-single-quotes with no space separating the url from text in italics
2377 [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]].]
2379 <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>
2384 URL-encoding in URL functions (single parameter)
2386 {{localurl:Some page|amp=&}}
2388 <p>/index.php?title=Some_page&amp=&
2393 URL-encoding in URL functions (multiple parameters)
2395 {{localurl:Some page|q=?&=&}}
2397 <p>/index.php?title=Some_page&q=?&amp=&
2404 http://example.com/index.php?foozoid%5B%5D=bar
2406 http://example.com/index.php?foozoid[]=bar
2408 <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>
2409 </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>
2414 IPv6 urls (bug 21261)
2418 http://[2404:130:0:1000::187:2]/index.php
2420 <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>
2431 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2433 Normal text. '''''Bold italic text.''''' Normal text.
2435 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2436 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2442 Unclosed and unmatched quotes
2444 '''''Bold italic text '''with bold deactivated''' in between.'''''
2446 '''''Bold italic text ''with italic deactivated'' in between.'''''
2450 ..spanning two paragraphs (should not work).'''
2452 '''Bold tag left open
2454 ''Italic tag left open
2458 <!-- Unmatching number of opening, closing tags: -->
2459 '''This year''''s election ''should'' beat '''last year''''s.
2461 ''Tom'''s car is bigger than ''Susan'''s.
2463 Plain ''italic'''s plain
2465 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2466 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2467 </p><p><b>Bold text..</b>
2468 </p><p>..spanning two paragraphs (should not work).
2469 </p><p><b>Bold tag left open</b>
2470 </p><p><i>Italic tag left open</i>
2472 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2473 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2474 </p><p>Plain <i>italic'</i>s plain
2481 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2484 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2485 # is the bare minimun required by the spec, see:
2486 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2488 A table with no data.
2494 # A table with nothing but a caption is invalid XHTML, we might want to render
2495 # this as <p>caption</p>
2497 A table with nothing but a caption
2505 </caption><tr><td></td></tr></table>
2531 Simple table but with multiple dashes for row wikitext
2549 Multiplication table
2551 {| border="1" cellpadding="2"
2552 |+Multiplication table
2554 ! × !! 1 !! 2 !! 3
2572 <table border="1" cellpadding="2">
2573 <caption>Multiplication table
2620 Allow +/- in 2nd and later cells in a row
2647 |rowspan=2| Cell 2, row 1 (and 2)
2658 <td rowspan="2"> Cell 2, row 1 (and 2)
2676 {| bgcolor=#ABCDEF border=2
2681 |the original table again
2689 <table bgcolor="#ABCDEF" border="2">
2697 <td>the original table again
2703 Invalid attributes in table cell (bug 1830)
2718 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2721 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2725 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2726 <td>]" onmouseover="alert(document.cookie)">test
2735 Indented table markup mixed with indented pre content (proposed in bug 6200)
2740 Text that should be rendered preformatted
2748 <pre>Text that should be rendered preformatted
2757 Template-generated table cell attributes and cell content
2765 <td style="color: red"> Foo
2774 Plain link, capitalized
2778 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2783 Plain link, uncapitalized
2787 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2794 [[Main Page|The Main Page]]
2796 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2805 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2810 Broken link with fragment
2812 [[Zigzagzogzagzig#zug]]
2814 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2819 Special page link with fragment
2821 [[Special:Version#anchor]]
2823 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2828 Nonexistent special page link with fragment
2830 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2832 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2839 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2841 <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>
2848 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2850 <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>!!!
2855 Link with 3 brackets
2864 Piped link with 3 brackets
2866 [[[main page|the main page]]]
2868 <p>[[[main page|the main page]]]
2873 Link with multiple pipes
2875 [[Main Page|The|Main|Page]]
2877 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2884 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2886 <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>
2891 Piped link to namespace
2893 [[Meta:Disclaimers|The disclaimers]]
2895 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2902 [[Usually caused by a typo (oops}]]
2904 <p>[[Usually caused by a typo (oops}]]
2909 Link containing % (not as a hex sequence)
2913 <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>
2918 Link containing % as a single hex sequence interpreted to char
2922 <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>
2927 Link containing % as a double hex sequence interpreted to hex sequence
2931 <p>[[7%2525 Solution]]
2936 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2937 Example for such a section: == < ==
2939 [[%23%3c]][[%23%3e]]
2941 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2946 Link containing "<#" and ">#" as a hex sequences
2948 [[%3c%23]][[%3e%23]]
2950 <p>[[%3c%23]][[%3e%23]]
2955 Link containing double-single-quotes '' (bug 4598)
2957 [[Lista d''e paise d''o munno]]
2959 <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>
2964 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2966 Some [[Link|pretty ''italics'' and stuff]]!
2968 <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>!
2973 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2975 ''Some [[Link|pretty ''italics'' and stuff]]!
2977 <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>
2982 Link with double quotes in title part (literal) and alternate part (interpreted)
2984 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2988 [[''Pentecoste''|Pentecoste]]
2990 [[''Pentecoste''|''Pentecoste'']]
2992 <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>
2993 </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>
2994 </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>
2995 </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>
3000 Broken image links with HTML captions (bug 39700)
3002 [[File:Nonexistent|<script></script>]]
3003 [[File:Nonexistent|100px|<script></script>]]
3004 [[File:Nonexistent|<]]
3005 [[File:Nonexistent|a<i>b</i>c]]
3007 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3008 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3009 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3010 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3017 [[http://www.example.com]]
3019 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3024 Plain link to URL with link text
3026 [[http://www.example.com Link text]]
3028 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3033 Plain link to protocol-relative URL
3035 [[//www.example.com]]
3037 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3042 Plain link to protocol-relative URL with link text
3044 [[//www.example.com Link text]]
3046 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3051 # I'm fairly sure the expected result here is wrong.
3052 # We want these to be URL links, not pseudo-pages with URLs for titles....
3053 # However the current output is also pretty screwy.
3056 # I'm changing it to match the current output--it arguably makes more
3057 # sense in the light of the test above. Old expected result was:
3058 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3060 # But I think this test is bordering on "garbage in, garbage out" anyway.
3065 Piped link to URL: [[http://www.example.com|an example URL]]
3067 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3072 BUG 2: [[page|http://url/]] should link to page, not http://url/
3074 [[Main Page|http://url/]]
3076 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3081 BUG 337: Escaped self-links should be bold
3085 [[Bug462]] [[Bug462]]
3087 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3092 Self-link to section should not be bold
3096 [[Main Page#section]]
3098 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3109 Self-link to numeric title
3115 <p><strong class="selflink">0</strong>
3120 Link to numeric-equivalent title
3126 <p><a href="/wiki/00" title="00">00</a>
3131 <nowiki> inside a link
3133 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3135 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3140 Non-breaking spaces in title
3142 [[ Main Page ]]
3144 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3149 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3155 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3160 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3166 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3171 Internal link with en linktrail: no apostrophes (bug 27473)
3177 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3182 Internal link with ca linktrail with apostrophes (bug 27473)
3188 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3193 Internal link with kaa linktrail with apostrophes (bug 27473)
3199 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3204 ### Interwiki links (see maintenance/interwiki.sql)
3208 Inline interwiki link
3210 [[MeatBall:SoftSecurity]]
3212 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3217 Inline interwiki link with empty title (bug 2372)
3221 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3226 Interwiki link encoding conversion (bug 1636)
3228 *[[Wikipedia:ro:Olteniţa]]
3229 *[[Wikipedia:ro:Olteniţa]]
3231 <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>
3232 </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>
3238 Interwiki link with fragment (bug 2130)
3240 [[MeatBall:SoftSecurity#foo]]
3242 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3257 Double interlanguage link
3268 Interlanguage link, with prefix links
3280 Double interlanguage link, with prefix links (bug 8897)
3293 Parsoid-specific test: Wikilinks with should RT properly
3299 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3317 Broken br tag sanitization
3326 Incorrecly removing closing slashes from correctly formed XHTML
3328 <br style="clear:both;" />
3330 <p><br style="clear:both;" />
3335 Failing to transform badly formed HTML into correct XHTML
3337 <br style="clear: left;">
3338 <br style="clear: right;">
3339 <br style="clear: both;">
3341 <p><br style="clear: left;" />
3342 <br style="clear: right;" />
3343 <br style="clear: both;" />
3348 Handling html with a div self-closing tag
3357 <p><div title />
3361 <p><div title=bar />
3362 <div title=bar/>
3364 <div title="bar/"></div>
3370 Handling html with a br self-closing tag
3379 <p><br title="title" />
3380 <br title="title" />
3389 Horizontal ruler (should it add that extra space?)
3403 Horizontal ruler -- 4+ dashes render hr
3412 Horizontal ruler -- eats additional dashes on the same line
3421 Horizontal ruler -- does not collaps dashes on consecutive lines
3432 Horizontal ruler -- <4 dashes render as plain text
3441 ### Block-level elements
3464 <ol><li>Numbered list
3481 ***#Number on level 4
3483 **#Number on level 3
3484 **#Number on level 3
3488 #** Level 3, but ordered
3491 <ol><li> with numbers
3493 <ul><li> and bullets
3495 <ol><li> and numbers
3497 </li><li>bullets again
3498 <ul><li>bullet level 2
3499 <ul><li>bullet level 3
3500 <ol><li>Number on level 4
3503 </li><li>bullet level 2
3504 <ol><li>Number on level 3
3505 </li><li>Number on level 3
3508 <ol><li>number level 2
3511 <ul><li><ul><li> Level 3
3515 <ol><li><ul><li><ul><li> Level 3, but ordered
3549 Nested lists 3 (first element empty)
3562 Nested lists 4 (first element empty)
3575 Nested lists 5 (both elements empty)
3588 Nested lists 6 (both elements empty)
3601 Nested lists 7 (skip initial nesting levels)
3605 <ul><li><ul><li><ul><li> foo
3613 Nested lists 8 (multiple nesting transitions)
3621 <ul><li><ul><li> bar
3631 1. Lists with start-of-line-transparent tokens before bullets: Comments
3645 2. Lists with start-of-line-transparent tokens before bullets: Template close
3657 List items are not parsed correctly following a <pre> block (bug 785)
3663 <ul><li> <pre>foo</pre>
3664 </li><li> <pre>bar</pre>
3671 List items from template
3682 * notSOL{{inner list}}
3701 List interrupted by empty line or heading
3711 <ul><li><ul><li> bar
3714 <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>
3715 <ul><li> Another list item
3726 Magic Word: {{CURRENTDAY}}
3735 Magic Word: {{CURRENTDAY2}}
3744 Magic Word: {{CURRENTDAYNAME}}
3753 Magic Word: {{CURRENTDOW}}
3762 Magic Word: {{CURRENTMONTH}}
3771 Magic Word: {{CURRENTMONTHABBREV}}
3773 {{CURRENTMONTHABBREV}}
3780 Magic Word: {{CURRENTMONTHNAME}}
3782 {{CURRENTMONTHNAME}}
3789 Magic Word: {{CURRENTMONTHNAMEGEN}}
3791 {{CURRENTMONTHNAMEGEN}}
3798 Magic Word: {{CURRENTTIME}}
3807 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3816 Magic Word: {{CURRENTYEAR}}
3825 Magic Word: {{FULLPAGENAME}}
3827 title=[[User:Ævar Arnfjörð Bjarmason]]
3831 <p>User:Ævar Arnfjörð Bjarmason
3836 Magic Word: {{FULLPAGENAMEE}}
3838 title=[[User:Ævar Arnfjörð Bjarmason]]
3842 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3847 Magic Word: {{NAMESPACE}}
3849 title=[[User:Ævar Arnfjörð Bjarmason]]
3858 Magic Word: {{NAMESPACEE}}
3860 title=[[User:Ævar Arnfjörð Bjarmason]]
3869 Magic Word: {{NAMESPACENUMBER}}
3871 title=[[User:Ævar Arnfjörð Bjarmason]]
3880 Magic Word: {{NUMBEROFFILES}}
3889 Magic Word: {{PAGENAME}}
3891 title=[[User:Ævar Arnfjörð Bjarmason]]
3895 <p>Ævar Arnfjörð Bjarmason
3900 Magic Word: {{PAGENAME}} with metacharacters
3902 title=[['foo & bar = baz']]
3906 <p><i>'foo & bar = baz'</i>
3911 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3913 title=[[*RFC 1234 http://example.com/]]
3917 <p>*RFC 1234 http://example.com/
3922 Magic Word: {{PAGENAMEE}}
3924 title=[[User:Ævar Arnfjörð Bjarmason]]
3928 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3933 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3935 title=[[*RFC 1234 http://example.com/]]
3939 <p>*RFC_1234_http://example.com/
3944 Magic Word: {{REVISIONID}}
3953 Magic Word: {{SCRIPTPATH}}
3962 Magic Word: {{SERVER}}
3966 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3971 Magic Word: {{SERVERNAME}}
3980 Magic Word: {{SITENAME}}
3989 Namespace 1 {{ns:1}}
3998 Namespace 1 {{ns:01}}
4007 Namespace 0 {{ns:0}} (bug 4783)
4015 Namespace 0 {{ns:00}} (bug 4783)
4023 Namespace -1 {{ns:-1}}
4032 Namespace User {{ns:User}}
4041 Namespace User talk {{ns:User_talk}}
4050 Namespace User talk {{ns:uSeR tAlK}}
4059 Namespace File {{ns:File}}
4068 Namespace File {{ns:Image}}
4077 Namespace (lang=de) Benutzer {{ns:User}}
4088 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4094 <p>Benutzer Diskussion
4102 {{urlencode:hi world?!}}
4103 {{urlencode:hi world?!|WIKI}}
4104 {{urlencode:hi world?!|PATH}}
4105 {{urlencode:hi world?!|QUERY}}
4118 Magic links: internal link to RFC (bug 479)
4122 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4127 Magic links: RFC (bug 479)
4131 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4136 Magic links: ISBN (bug 1937)
4140 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4145 Magic links: PMID incorrectly converts space to underscore
4149 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4158 Nonexistent template
4160 {{thistemplatedoesnotexist}}
4162 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4169 This is a test template
4177 <p>This is a test template
4182 Template with explicit namespace
4186 <p>This is a test template
4194 This is a test template with parameter {{{param}}}
4200 {{paramtest|param=foo}}
4202 <p>This is a test template with parameter foo
4207 Template:paramtestnum
4213 Template unnamed parameter
4215 {{paramtestnum|Main Page|the main page}}
4217 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4222 Template:templatesimple
4228 Template:templateredirect
4230 #redirect [[Template:templatesimple]]
4234 Template:templateasargtestnum
4240 Template:templateasargtest
4242 {{template{{{templ}}}}}
4246 Template:templateasargtest2
4252 Template with template name as unnamed argument
4254 {{templateasargtestnum|templatesimple}}
4261 Template with template name as argument
4263 {{templateasargtest|templ=simple}}
4270 Template with template name as argument (2)
4272 {{templateasargtest2|templ=templatesimple}}
4279 Template:templateasargtestdefault
4281 {{{{{templ|templatesimple}}}}}
4291 Template with default value
4293 {{templateasargtestdefault}}
4300 Template with default value (value set)
4302 {{templateasargtestdefault|templ=templa}}
4311 {{templateredirect}}
4318 Template with argument in separate line
4320 {{ templateasargtest |
4328 Template with complex template as argument
4331 param ={{ templateasargtest |
4334 <p>This is a test template with parameter (test)
4339 Template with thumb image (with link in description)
4342 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4344 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>
4349 Template:complextemplate
4351 {{{1}}} {{paramtest|
4352 param ={{{param}}}}}
4356 Template with complex arguments
4359 param ={{ templateasargtest |
4360 templ = simple }}|[[Template:complextemplate|link]]}}
4362 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4367 BUG 553: link with two variables in a piped link
4370 |[[{{{1}}}|{{{2}}}]]
4375 <td>[[{{{1}}}|{{{2}}}]]
4381 Magic variable as template parameter
4383 {{paramtest|param={{SITENAME}}}}
4385 <p>This is a test template with parameter MediaWiki
4392 [[{{{param}}}|link]]
4396 Template parameter as link source
4398 {{linktest|param=Main Page}}
4400 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4405 Template-generated attribute string (k='v')
4407 <span {{attr_str|id|v1}}>bar</span>
4409 <p><span id="v1">bar</span>
4416 including another template, {{paramtest|param={{{arg}}}}}
4420 Template passing argument to another template
4422 {{paramtest2|arg='hmm'}}
4424 <p>including another template, This is a test template with parameter 'hmm'
4435 Template as link source
4439 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4457 Template infinite loop
4461 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4466 Template from main namespace
4485 BUG 529: Template with table, not included at beginning of line
4504 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4524 BUG 41: Template parameters shown as broken links
4536 ''None'' of '''this''' should be
4538 but rather passed unmodified
4542 # hmm, fix this or just deprecate msgnw and document its behavior?
4548 {{msgnw:MSGNW test}}
4550 <p>''None'' of '''this''' should be
4552 but rather passed unmodified
4560 {{int:youhavenewmessages|lots of money|not!}}
4562 <p>You have lots of money (not!).
4569 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4573 <includeonly> and <noinclude> being included
4584 <onlyinclude>Foo</onlyinclude>bar
4588 <onlyinclude> being included
4600 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4604 <onlyinclude> and <includeonly> being included
4613 <includeonly> and <noinclude> on a page
4615 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4622 <onlyinclude> on a page
4624 <onlyinclude>Foo</onlyinclude>bar
4631 Template:Includeonly section
4634 ==Includeonly section==
4640 Bug 6563: Edit link generation for section shown by <includeonly>
4642 {{includeonly section}}
4644 <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>
4645 <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>
4649 # Uses same input as the contents of [[Template:Includeonly section]]
4651 Bug 6563: Section extraction for section shown by <includeonly>
4656 ==Includeonly section==
4664 Bug 6563: Edit link generation for section suppressed by <includeonly>
4667 ==Includeonly section==
4671 <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>
4676 Bug 6563: Section extraction for section suppressed by <includeonly>
4681 ==Includeonly section==
4689 ### <includeonly> and <noinclude> in attributes
4692 0. includeonly around the entire attribute
4694 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4696 <p><span id="v2">bar</span>
4701 1. includeonly in html attr key
4703 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4705 <p><span id="foo">bar</span>
4710 2. includeonly in html attr value
4712 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4713 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4715 <p><span id="v1">bar</span>
4716 <span id="v1">bar</span>
4721 3. includeonly in part of an attr value
4723 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4725 <p><span style="color:red;">bar</span>
4730 ### Testing parsing of templates where a template arg
4731 ### has the same name as the template itself.
4741 Templates: Template Name/Arg clash: 1. Use of positional param
4750 Templates: Template Name/Arg clash: 2. Use of named param
4759 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4768 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4772 Templates: 1. Simple use
4781 Templates: 2. Inside a block tag
4783 <div>{{echo|Foo}}</div>
4790 Templates: P-wrapping: 1a. Templates on consecutive lines
4801 Templates: P-wrapping: 1b. Templates on consecutive lines
4815 Templates: P-wrapping: 1c. Templates on consecutive lines
4818 {{echo|bar}} <div>baz</div>
4827 Templates: Inline Text: 1. Multiple tmeplate uses
4829 {{echo|Foo}}bar{{echo|baz}}
4836 Templates: Inline Text: 2. Back-to-back template uses
4838 {{echo|Foo}}{{echo|bar}}
4845 Templates: Block Tags: 1. Multiple template uses
4847 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4849 <div>Foo</div><div>bar</div><div>baz</div>
4854 Templates: Block Tags: 2. Back-to-back template uses
4856 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4858 <div>Foo</div><div>bar</div>
4863 Templates: Links: 1. Simple example
4865 {{echo|[[Foo|bar]]}}
4867 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4872 Templates: Links: 2. Generation of link href
4874 [[{{echo|Foo}}|bar]]
4876 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4881 Templates: Links: 3. Generation of part of a link href
4883 [[Fo{{echo|o}}|bar]]
4885 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4890 Templates: Links: 4. Multiple templates generating link href
4892 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4894 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4899 Templates: Links: 5. Generation of link text
4901 [[Foo|{{echo|bar}}]]
4903 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4908 Templates: Links: 5. Nested templates (only outermost template should be marked)
4910 {{echo|[[{{echo|Foo}}|bar]]}}
4912 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4917 Templates: HTML Tag: 1. Generation of HTML attr. key
4919 <div {{echo|style}}="color:red;">foo</div>
4921 <div style="color:red;">foo</div>
4926 Templates: HTML Tag: 2. Generation of HTML attr. value
4928 <div style={{echo|'color:red;'}}>foo</div>
4930 <div style="color:red;">foo</div>
4935 Templates: HTML Tag: 3. Generation of HTML attr key and value
4937 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4939 <div style="color:red;">foo</div>
4944 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4946 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4948 <div title="This is a long title with just one piece templated">foo</div>
4953 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4955 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4957 <div title="This is a long title with just one piece templated">foo</div>
4962 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4964 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4966 <div title="This is a long title with just one piece templated">foo</div>
4971 Templates: HTML Tables: 1. Generating start of a HTML table
4973 {{echo|<table><tr><td>foo</td>}}</tr></table>
4975 <table><tr><td>foo</td></tr></table>
4980 Templates: HTML Tables: 2a. Generating middle of a HTML table
4982 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4984 <table><tr><td>foo</td></tr></table>
4989 Templates: HTML Tables: 2b. Generating middle of a HTML table
4991 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4993 <table><tr><td>foo</td></tr></table>
4998 Templates: HTML Tables: 3. Generating end of a HTML table
5000 <table><tr>{{echo|<td>foo</td></tr></table>}}
5002 <table><tr><td>foo</td></tr></table>
5007 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5009 {{echo|<table>}}<tr><td>foo</td></tr></table>
5011 <table><tr><td>foo</td></tr></table>
5016 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5018 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5020 <table><tr><td>foo</td></tr></table>
5025 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5027 <table><tr>{{echo|<td>}}foo</td></tr></table>
5029 <table><tr><td>foo</td></tr></table>
5034 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5036 <table><tr><td>foo{{echo|</td>}}</tr></table>
5038 <table><tr><td>foo</td></tr></table>
5043 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5045 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5047 <table><tr><td>foo</td></tr></table>
5052 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5054 <table><tr><td>foo</td></tr>{{echo|</table>}}
5056 <table><tr><td>foo</td></tr></table>
5061 Templates: Wiki Tables: 1. Fostering of entire template content
5069 <tr><td></td></tr></table>
5074 Templates: Wiki Tables: 2. Fostering of partial template content
5084 <tr><td></td></tr></table>
5089 Templates: Wiki Tables: 3. td-content via multiple templates
5092 {{echo|{{pipe}}a}}{{echo|b}}
5103 Templates: Lists: Multi-line list-items via templates
5105 *{{echo|a {{nonexistent|
5107 *{{echo|b {{nonexistent|
5110 <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>
5111 </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>
5117 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5119 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5121 <p><i>ab</i>c<i>d</i>e
5126 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5127 (PHP parser generates misnested html)
5131 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5133 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5137 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5138 (PHP parser generates misnested html)
5142 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5145 <div><i>b</i>c<i>d</i></div>
5150 Templates: Ugly nesting: 4. Divs opened/closed across templates
5152 a<div>b{{echo|c</div>d}}e
5159 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5165 |{{echo|foo</table>}}
5169 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5170 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5171 bar</span><span about="#mwt1">
5176 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5186 <td>1. {{echo|foo </table>}}</td>
5188 <td>2. {{echo|baz </table>}}</td>
5201 <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">
5202 <tbody><tr data-parsoid="{"stx":"html"}">
5203 <td data-parsoid="{"stx":"html"}">
5204 <table data-parsoid="{"stx":"html"}">
5205 <tbody><tr data-parsoid="{"stx":"html"}">
5206 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5207 <td data-parsoid="{"stx":"html"}"> bar </td>
5208 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5209 </span><span about="#mwt1">
5211 abc</span><span about="#mwt1">
5212 </span><span about="#mwt1">
5213 </span><span about="#mwt1">
5214 </span><span about="#mwt1">
5215 </span><span about="#mwt1">
5217 xyz</span><span about="#mwt1">
5218 </span><span about="#mwt1">
5223 Parser Functions: 1. Simple example
5232 Parser Functions: 2. Nested use (only outermost should be marked up)
5241 ### Pre-save transform tests
5244 pre-save transform: subst:
5250 This is a test template
5254 pre-save transform: normal template
5264 pre-save transform: nonexistent template
5268 {{thistemplatedoesnotexist}}
5270 {{thistemplatedoesnotexist}}
5275 pre-save transform: subst magic variables
5284 # This is bug 89, which I fixed. -- wtm
5286 pre-save transform: subst: templates with parameters
5290 {{subst:paramtest|param="something else"}}
5292 This is a test template with parameter "something else"
5298 <nowiki>'''not wiki'''</nowiki>
5302 pre-save transform: nowiki in subst (bug 1188)
5306 {{subst:nowikitest}}
5308 <nowiki>'''not wiki'''</nowiki>
5313 Template:commenttest
5315 This template has <!-- a comment --> in it.
5319 pre-save transform: comment in subst (bug 1936)
5323 {{subst:commenttest}}
5325 This template has <!-- a comment --> in it.
5329 pre-save transform: unclosed tag
5333 <nowiki>'''not wiki'''
5335 <nowiki>'''not wiki'''
5339 pre-save transform: mixed tag case
5343 <NOwiki>'''not wiki'''</noWIKI>
5345 <NOwiki>'''not wiki'''</noWIKI>
5349 pre-save transform: unclosed comment in <nowiki>
5353 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5355 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5361 <span onmouseover="alert('crap')">Oh no</span>
5365 (confirming safety of fix for subst bug 1936)
5367 {{Template:dangerous}}
5369 <p><span>Oh no</span>
5374 pre-save transform: comment containing gallery (bug 5024)
5378 <!-- <gallery>data</gallery> -->
5380 <!-- <gallery>data</gallery> -->
5384 pre-save transform: comment containing extension
5388 <!-- <tag>data</tag> -->
5390 <!-- <tag>data</tag> -->
5394 pre-save transform: comment containing nowiki
5398 <!-- <nowiki>data</nowiki> -->
5400 <!-- <nowiki>data</nowiki> -->
5404 pre-save transform: <noinclude> in subst (bug 3298)
5414 pre-save transform: <onlyinclude> in subst (bug 3298)
5426 {{<includeonly>subst:</includeonly>Includes}}
5430 Template:SafeSubstTest
5432 {{<includeonly>safesubst:</includeonly>Includes}}
5436 bug 22297: safesubst: works during PST
5440 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5446 bug 22297: safesubst: works during normal parse
5455 subst: does not work during normal parse
5459 <p>{{subst:Includes}}
5464 pre-save transform: context links ("pipe trick")
5468 [[Article (context)|]]
5471 [[Bar:Article (context)|]]
5472 [[:Bar:Article (context)|]]
5474 [[|Article (context)]]
5478 [[Article (context)|Article]]
5479 [[Bar:Article|Article]]
5480 [[:Bar:Article|Article]]
5481 [[Bar:Article (context)|Article]]
5482 [[:Bar:Article (context)|Article]]
5484 [[Article (context)]]
5485 [[Bar:X (Y) Z|X (Y) Z]]
5486 [[:Bar:X (Y) Z|X (Y) Z]]
5490 pre-save transform: context links ("pipe trick") with interwiki prefix
5494 [[interwiki:Article|]]
5495 [[:interwiki:Article|]]
5496 [[interwiki:Bar:Article|]]
5497 [[:interwiki:Bar:Article|]]
5499 [[interwiki:Article|Article]]
5500 [[:interwiki:Article|Article]]
5501 [[interwiki:Bar:Article|Bar:Article]]
5502 [[:interwiki:Bar:Article|Bar:Article]]
5506 pre-save transform: context links ("pipe trick") with parens in title
5508 pst title=[[Somearticle (context)]]
5512 [[Article (context)|Article]]
5516 pre-save transform: context links ("pipe trick") with comma in title
5518 pst title=[[Someplace, Somewhere]]
5521 [[Otherplace, Elsewhere|]]
5522 [[Otherplace, Elsewhere, Anywhere|]]
5524 [[Otherplace, Somewhere|Otherplace]]
5525 [[Otherplace, Elsewhere|Otherplace]]
5526 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5530 pre-save transform: context links ("pipe trick") with parens and comma
5532 pst title=[[Someplace (IGNORED), Somewhere]]
5535 [[Otherplace (place), Elsewhere|]]
5537 [[Otherplace, Somewhere|Otherplace]]
5538 [[Otherplace (place), Elsewhere|Otherplace]]
5542 pre-save transform: context links ("pipe trick") with comma and parens
5544 pst title=[[Who, me? (context)]]
5547 [[Me, Myself, and I (1937 song)|]]
5549 [[Yes, you. (context)|Yes, you.]]
5550 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5554 pre-save transform: context links ("pipe trick") with namespace
5556 pst title=[[Ns:Somearticle]]
5560 [[Ns:Article|Article]]
5564 pre-save transform: context links ("pipe trick") with namespace and parens
5566 pst title=[[Ns:Somearticle (context)]]
5570 [[Ns:Article (context)|Article]]
5574 pre-save transform: context links ("pipe trick") with namespace and comma
5576 pst title=[[Ns:Somearticle, Context, Whatever]]
5580 [[Ns:Article, Context, Whatever|Article]]
5584 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5586 pst title=[[Ns:Somearticle, Context (context)]]
5590 [[Ns:Article (context)|Article]]
5594 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5596 pst title=[[Ns:Somearticle (IGNORED), Context]]
5600 [[Ns:Article, Context|Article]]
5604 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5608 [[Article(context)|]]
5609 [[Bar:Article(context)|]]
5610 [[:Bar:Article(context)|]]
5611 [[|Article(context)]]
5615 [[Article(context)|Article]]
5616 [[Bar:Article(context)|Article]]
5617 [[:Bar:Article(context)|Article]]
5618 [[Article(context)]]
5620 [[:Bar:X(Y)Z|X(Y)Z]]
5624 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5628 [[Article (context)|]]
5629 [[Bar:Article (context)|]]
5630 [[:Bar:Article (context)|]]
5631 [[|Article (context)]]
5635 [[Article (context)|Article]]
5636 [[Bar:Article (context)|Article]]
5637 [[:Bar:Article (context)|Article]]
5638 [[Article (context)]]
5639 [[Bar:X (Y) Z|X (Y) Z]]
5640 [[:Bar:X (Y) Z|X (Y) Z]]
5644 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5648 [[Article(context)|]]
5649 [[Bar:Article(context)|]]
5650 [[:Bar:Article(context)|]]
5651 [[|Article(context)]]
5655 [[Article(context)|Article]]
5656 [[Bar:Article(context)|Article]]
5657 [[:Bar:Article(context)|Article]]
5658 [[Article(context)]]
5660 [[:Bar:X(Y)Z|X(Y)Z]]
5664 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5668 [[Article (context), context|]]
5669 [[Article (context),context|]]
5670 [[Bar:Article (context), context|]]
5671 [[Bar:Article (context),context|]]
5672 [[:Bar:Article (context), context|]]
5673 [[:Bar:Article (context),context|]]
5675 [[Article (context), context|Article]]
5676 [[Article (context),context|Article]]
5677 [[Bar:Article (context), context|Article]]
5678 [[Bar:Article (context),context|Article]]
5679 [[:Bar:Article (context), context|Article]]
5680 [[:Bar:Article (context),context|Article]]
5684 pre-save transform: trim trailing empty lines
5688 Empty lines are trimmed
5694 Empty lines are trimmed
5698 pre-save transform: Signature expansion
5703 * <noinclude>~~~</noinclude>
5704 * <includeonly>~~~</includeonly>
5705 * <onlyinclude>~~~</onlyinclude>
5707 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5708 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5709 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5710 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5715 pre-save transform: Signature expansion in nowiki tags (bug 93)
5721 <nowiki>~~~~</nowiki>
5723 <includeonly><nowiki>~~~~</nowiki></includeonly>
5725 <noinclude><nowiki>~~~~</nowiki></noinclude>
5727 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5729 {{subst:Foo}} shall be converted to FOO
5731 As well as inside noinclude/onlyinclude
5732 <noinclude>{{subst:Foo}}</noinclude>
5733 <onlyinclude>{{subst:Foo}}</onlyinclude>
5735 But not inside includeonly
5736 <includeonly>{{subst:Foo}}</includeonly>
5740 <nowiki>~~~~</nowiki>
5742 <includeonly><nowiki>~~~~</nowiki></includeonly>
5744 <noinclude><nowiki>~~~~</nowiki></noinclude>
5746 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5748 FOO shall be converted to FOO
5750 As well as inside noinclude/onlyinclude
5751 <noinclude>FOO</noinclude>
5752 <onlyinclude>FOO</onlyinclude>
5754 But not inside includeonly
5755 <includeonly>{{subst:Foo}}</includeonly>
5759 ### Message transform tests
5762 message transform: magic variables
5772 message transform: should not transform wiki markup
5782 message transform: <noinclude> in transcluded template (bug 4926)
5792 message transform: <onlyinclude> in transcluded template (bug 4926)
5802 {{#special:}} page name, known
5806 {{#special:Recentchanges}}
5808 Special:RecentChanges
5812 {{#special:}} page name with subpage, known
5816 {{#special:Recentchanges/param}}
5818 Special:RecentChanges/param
5822 {{#special:}} page name, unknown
5826 {{#special:foobarnonexistent}}
5828 No such special page
5832 {{#speciale:}} page name, known
5836 {{#speciale:Recentchanges}}
5838 Special:RecentChanges
5842 {{#speciale:}} page name with subpage, known
5846 {{#speciale:Recentchanges/param}}
5848 Special:RecentChanges/param
5852 {{#speciale:}} page name, unknown
5856 {{#speciale:foobarnonexistent}}
5858 No_such_special_page
5867 [[Image:foobar.jpg]]
5869 <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>
5876 [[Image:foobar.jpg|right]]
5878 <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>
5883 Simple image (using File: namespace, now canonical)
5887 <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>
5894 [[Image:foobar.jpg|right|Caption text]]
5896 <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>
5901 Image with empty attribute
5903 [[Image:foobar.jpg|right||Caption text]]
5905 <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>
5910 Image with link tails
5912 123[[Image:foobar.jpg]]456
5913 123[[Image:foobar.jpg|right]]456
5914 123[[Image:foobar.jpg|thumb]]456
5916 <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
5918 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
5919 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
5924 Image with multiple captions -- only last one is accepted
5926 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5928 <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>
5933 Image with link parameter, wiki target
5935 [[Image:foobar.jpg|link=Target page]]
5937 <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>
5942 Image with link parameter, URL target
5944 [[Image:foobar.jpg|link=http://example.com/]]
5946 <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>
5951 Image with link parameter, wgExternalLinkTarget
5953 [[Image:foobar.jpg|link=http://example.com/]]
5955 wgExternalLinkTarget='foobar'
5957 <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>
5962 Image with link parameter, wgNoFollowLinks set to false
5964 [[Image:foobar.jpg|link=http://example.com/]]
5966 wgNoFollowLinks=false
5968 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5973 Image with link parameter, wgNoFollowDomainExceptions
5975 [[Image:foobar.jpg|link=http://example.com/]]
5977 wgNoFollowDomainExceptions='example.com'
5979 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5984 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5986 [[Image:foobar.jpg|link=http://example.com/|Title]]
5988 wgExternalLinkTarget='foobar'
5990 <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>
5995 Image with empty link parameter
5997 [[Image:foobar.jpg|link=]]
5999 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6004 Image with link parameter (wiki target) and unnamed parameter
6006 [[Image:foobar.jpg|link=Target page|Title]]
6008 <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>
6013 Image with link parameter (URL target) and unnamed parameter
6015 [[Image:foobar.jpg|link=http://example.com/|Title]]
6017 <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>
6022 Thumbnail image with link parameter
6024 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6026 <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>
6031 Image with frame and link
6033 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6035 <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>
6040 Image with frame and link and explicit alt
6042 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6044 <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>
6049 Image with wiki markup in implicit alt
6051 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6053 <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>
6058 Image with wiki markup in explicit alt
6060 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6062 <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>
6067 Link to image page- image page normally doesn't exists, hence edit link
6068 Add test with existing image page
6069 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6073 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6078 bug 18784 Link to non-existent image page with caption should use caption as link text
6080 [[:Image:test|caption]]
6082 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6087 Frameless image caption with a free URL
6089 [[Image:foobar.jpg|http://example.com]]
6091 <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>
6096 Thumbnail image caption with a free URL
6098 [[Image:foobar.jpg|thumb|http://example.com]]
6100 <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>
6105 Thumbnail image caption with a free URL and explicit alt
6107 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6109 <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>
6114 BUG 1887: A ISBN with a thumbnail
6116 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6118 <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>
6123 BUG 1887: A RFC with a thumbnail
6125 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6127 <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>
6132 BUG 1887: A mailto link with a thumbnail
6134 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6136 <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>
6140 # Pending resolution to bug 368
6142 BUG 648: Frameless image caption with a link
6144 [[Image:foobar.jpg|text with a [[link]] in it]]
6146 <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>
6151 BUG 648: Frameless image caption with a link (suffix)
6153 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6155 <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>
6160 BUG 648: Frameless image caption with an interwiki link
6162 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6164 <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>
6169 BUG 648: Frameless image caption with a piped interwiki link
6171 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6173 <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>
6178 Escape HTML special chars in image alt text
6180 [[Image:foobar.jpg|& < > "]]
6182 <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>
6187 BUG 499: Alt text should have Ӓ, not &1234;
6189 [[Image:foobar.jpg|♀]]
6191 <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>
6196 Broken image caption with link
6198 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6200 <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.
6205 Image caption containing another image
6207 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6209 <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>
6214 Image caption containing a newline
6216 [[Image:Foobar.jpg|This
6219 <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>
6225 Bug 3090: External links other than http: in image captions
6227 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6229 <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>
6236 [[Image:foobar.jpg|a|class=b]]
6238 <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>
6245 #REDIRECT [[File:Barfoo.jpg]]
6251 [[Image:Barfoo.jpg]]
6253 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6258 Missing image with uploads disabled
6262 [[Image:Foobaz.jpg]]
6264 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6273 Subpage test/subpage
6281 subpage title=[[Subpage test]]
6285 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6290 Subpage noslash link
6292 subpage title=[[Subpage test]]
6296 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6305 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6310 BUG 561: {{/Subpage}}
6312 subpage title=[[Page]]
6316 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6324 Category:MediaWiki User's Guide
6332 [[:Category:MediaWiki User's Guide]]
6334 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6343 [[Category:MediaWiki User's Guide]]
6345 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6349 PAGESINCATEGORY invalid title fatal (r33546 fix)
6351 {{PAGESINCATEGORY:<bogus>}}
6358 Category with different sort key
6362 [[Category:MediaWiki User's Guide|Foo]]
6364 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6368 Category with identical sort key
6372 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6374 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6378 Category with empty sort key
6383 [[Category:MediaWiki User's Guide|]]
6385 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6389 Category with empty sort key and parentheses
6394 [[Category:Foo (bar)|]]
6396 [[Category:Foo (bar)|Foo]]
6400 Category with link tail
6405 123[[Category:Foo]]456
6407 123[[Category:Foo]]456
6411 Category with template
6416 [[Category:{{echo|Foo}}]]
6418 [[Category:{{echo|Foo}}]]
6422 Category with template in sort key
6427 [[Category:Foo|{{echo|Bar}}]]
6429 [[Category:Foo|{{echo|Bar}}]]
6433 Category with template in sort key and title
6438 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6440 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6444 Category / paragraph interactions
6446 Foo [[Category:Baz]] Bar
6448 Foo [[Category:Baz]]
6456 [[Category:Baz]] Bar
6469 {{echo|[[Category:Baz]]}}
6484 ### Inter-language links
6487 Inter-language links
6493 [[zh:食品]]
6495 es:Alimento fr:Nourriture zh:食品
6499 Duplicate interlanguage links (bug 24502)
6515 Basic section headings
6522 ===Smaller headline===
6525 <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>
6528 <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>
6531 <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>
6537 Section headings with TOC
6540 === Subheadline 1 ===
6541 ===== Skipping a level =====
6542 ====== Skipping a level ======
6546 ===Another headline===
6548 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6550 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6552 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6554 <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>
6556 <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>
6563 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6565 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6570 <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>
6571 <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>
6572 <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>
6573 <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>
6574 <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>
6577 <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>
6581 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6583 Handling of sections up to level 6 and beyond
6586 == Level 2 Heading==
6587 === Level 3 Heading===
6588 ==== Level 4 Heading====
6589 ===== Level 5 Heading=====
6590 ====== Level 6 Heading======
6591 ======= Level 7 Heading=======
6592 ======== Level 8 Heading========
6593 ========= Level 9 Heading=========
6594 ========== Level 10 Heading==========
6596 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6598 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6600 <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>
6602 <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>
6604 <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>
6606 <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>
6608 <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>
6609 <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>
6610 <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>
6611 <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>
6612 <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>
6625 <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>
6626 <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>
6627 <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>
6628 <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>
6629 <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>
6630 <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>
6631 <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>
6632 <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>
6633 <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>
6634 <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>
6639 TOC regression (bug 9764)
6643 ==== title 1.1.1 ====
6648 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6650 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6652 <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>
6654 <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>
6657 <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>
6660 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6662 <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>
6667 <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>
6668 <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>
6669 <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>
6670 <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>
6671 <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>
6672 <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>
6677 TOC with wgMaxTocLevel=3 (bug 6204)
6683 ==== title 1.1.1 ====
6688 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6690 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6692 <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>
6693 <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>
6696 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6698 <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>
6703 <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>
6704 <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>
6705 <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>
6706 <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>
6707 <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>
6708 <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>
6713 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6719 ====Section 1.1.1====
6720 ====Section 1.1.1.1====
6723 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6725 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6727 <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>
6730 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6733 <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>
6734 <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>
6735 <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>
6736 <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>
6737 <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>
6743 Resolving duplicate section names
6748 <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>
6749 <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>
6754 Resolving duplicate section names with differing case (bug 10721)
6759 <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>
6760 <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>
6772 Template with sections, __NOTOC__
6779 <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>
6780 <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>
6781 <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>
6782 <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>
6787 __NOEDITSECTION__ keyword
6793 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6794 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6799 Link inside a section heading
6801 ==Section with a [[Main Page|link]] in it==
6803 <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>
6808 TOC regression (bug 12077)
6815 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6817 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6819 <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>
6822 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6825 <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>
6826 <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>
6827 <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>
6832 BUG 1219 URL next to image (good)
6834 http://example.com [[Image:foobar.jpg]]
6836 <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>
6841 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6844 The line above must have a trailing space!
6847 But just in case it doesn't...
6849 <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>
6850 <p>The line above must have a trailing space!
6852 <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>
6853 <p>But just in case it doesn't...
6858 Header with special characters (bug 25462)
6860 The tooltips shall not show entities to the user (ie. be double escaped)
6877 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6879 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6881 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6882 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6883 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6884 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6885 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6888 <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>
6891 <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>
6894 <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>
6897 <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>
6900 <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>
6906 Headers with excess '=' characters
6907 (Are similar tests necessary beyond the 1st level?)
6911 =''italic'' heading==
6912 ==''italic'' heading=
6914 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6916 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6917 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6918 <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>
6919 <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>
6922 <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>
6923 <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>
6924 <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>
6925 <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>
6930 BUG 1219 URL next to image (broken)
6932 http://example.com[[Image:foobar.jpg]]
6934 <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>
6939 Bug 1186 news: in the middle of text
6941 http://en.wikinews.org/wiki/Wikinews:Workplace
6943 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6949 Namespaced link must have a title
6958 Namespaced link must have a title (bad fragment version)
6960 [[Project:#fragment]]
6962 <p>[[Project:#fragment]]
6968 div with no attributes
6970 <div>HTML rocks</div>
6972 <div>HTML rocks</div>
6977 div with double-quoted attribute
6979 <div id="rock">HTML rocks</div>
6981 <div id="rock">HTML rocks</div>
6986 div with single-quoted attribute
6988 <div id='rock'>HTML rocks</div>
6990 <div id="rock">HTML rocks</div>
6995 div with unquoted attribute
6997 <div id=rock>HTML rocks</div>
6999 <div id="rock">HTML rocks</div>
7004 div with illegal double attributes
7006 <div id="a" id="b">HTML rocks</div>
7008 <div id="b">HTML rocks</div>
7013 HTML multiple attributes correction
7015 <p class="error" class="awesome">Awesome!</p>
7017 <p class="awesome">Awesome!</p>
7022 Table multiple attributes correction
7025 !+ class="error" class="awesome"| status
7030 <th class="awesome"> status
7038 <DIV ID="x">HTML ROCKS</DIV>
7040 <div id="x">HTML ROCKS</div>
7046 text with amp in the middle of nowhere
7050 <p>Remember AT&T?
7055 text with character entity: eacute
7057 I always thought é was a cute letter.
7059 <p>I always thought é was a cute letter.
7064 text with undefined character entity: xacute
7066 I always thought &xacute; was a cute letter.
7068 <p>I always thought &xacute; was a cute letter.
7080 [[Media:Foobar.jpg]]
7082 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7087 Media link with text
7089 [[Media:Foobar.jpg|A neat file to look at]]
7091 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7095 # FIXME: this is still bad HTML tag nesting
7097 Media link with nasty text
7098 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7100 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7102 <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>
7107 Media link to nonexistent file (bug 1702)
7109 [[Media:No such.jpg]]
7111 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7116 Image link to nonexistent file (bug 1850 - good)
7118 [[Image:No such.jpg]]
7120 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7125 :Image link to nonexistent file (bug 1850 - bad)
7127 [[:Image:No such.jpg]]
7129 <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>
7136 Character reference normalization in link text (bug 1938)
7138 [[Main Page|this&that]]
7140 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7147 Test for unicode normalization
7149 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7153 (bug 19451) Links should refer to the normalized form.
7161 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7162 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7163 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7164 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7165 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7170 Empty attribute crash test (bug 2067)
7172 <font color="">foo</font>
7174 <p><font color="">foo</font>
7179 Empty attribute crash test single-quotes (bug 2067)
7181 <font color=''>foo</font>
7183 <p><font color="">foo</font>
7188 Attribute test: equals, then nothing
7190 <font color=>foo</font>
7197 Attribute test: unquoted value
7199 <font color=x>foo</font>
7201 <p><font color="x">foo</font>
7206 Attribute test: unquoted but illegal value (hash)
7208 <font color=#x>foo</font>
7210 <p><font color="#x">foo</font>
7215 Attribute test: no value
7217 <font color>foo</font>
7219 <p><font color="color">foo</font>
7224 Bug 2095: link with three closing brackets
7228 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7233 Bug 2095: link with pipe and three closing brackets
7237 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7242 Bug 2095: link with pipe and three closing brackets, version 2
7244 [[Main Page|[http://example.com/]]]
7246 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7256 Template:Dangerous attribute
7258 " onmouseover="alert(document.cookie)
7262 Template:Dangerous style attribute
7264 border-size: expression(alert(document.cookie))
7270 <div style="float: right; {{{1}}}">Magic div</div>
7274 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7276 <div title="{{test}}"></div>
7278 <div title="This is a test template"></div>
7283 Bug 2304: HTML attribute safety (dangerous template; 2309)
7285 <div title="{{dangerous attribute}}"></div>
7287 <div title=""></div>
7292 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7294 <div style="{{dangerous style attribute}}"></div>
7296 <div style="/* insecure input */"></div>
7301 Bug 2304: HTML attribute safety (safe parameter; 2309)
7303 {{div style|width: 200px}}
7305 <div style="float: right; width: 200px">Magic div</div>
7310 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7312 {{div style|width: expression(alert(document.cookie))}}
7314 <div style="/* insecure input */">Magic div</div>
7319 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7321 {{div style|"><script>alert(document.cookie)</script>}}
7323 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7328 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7330 {{div style|" ><script>alert(document.cookie)</script>}}
7332 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7337 Bug 2304: HTML attribute safety (link)
7339 <div title="[[Main Page]]"></div>
7341 <div title="[[Main Page]]"></div>
7346 Bug 2304: HTML attribute safety (italics)
7348 <div title="''foobar''"></div>
7350 <div title="''foobar''"></div>
7355 Bug 2304: HTML attribute safety (bold)
7357 <div title="'''foobar'''"></div>
7359 <div title="'''foobar'''"></div>
7365 Bug 2304: HTML attribute safety (ISBN)
7367 <div title="ISBN 1234567890"></div>
7369 <div title="ISBN 1234567890"></div>
7374 Bug 2304: HTML attribute safety (RFC)
7376 <div title="RFC 1234"></div>
7378 <div title="RFC 1234"></div>
7383 Bug 2304: HTML attribute safety (PMID)
7385 <div title="PMID 1234567890"></div>
7387 <div title="PMID 1234567890"></div>
7392 Bug 2304: HTML attribute safety (web link)
7394 <div title="http://example.com/"></div>
7396 <div title="http://example.com/"></div>
7401 Bug 2304: HTML attribute safety (named web link)
7403 <div title="[http://example.com/ link]"></div>
7405 <div title="[http://example.com/ link]"></div>
7410 Bug 3244: HTML attribute safety (extension; safe)
7412 <div style="<nowiki>background:blue</nowiki>"></div>
7414 <div style="background:blue"></div>
7419 Bug 3244: HTML attribute safety (extension; unsafe)
7421 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7423 <div style="/* insecure input */"></div>
7427 # More MSIE fun discovered by Tom Gilder
7430 MSIE CSS safety test: spurious slash
7432 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7434 <div style="/* insecure input */">evil</div>
7439 MSIE CSS safety test: hex code
7441 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7443 <div style="/* insecure input */">evil</div>
7448 MSIE CSS safety test: comment in url
7450 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7452 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7457 MSIE CSS safety test: comment in expression
7459 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7461 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7467 Table attribute legitimate extension
7470 !+ style="<nowiki>color:blue</nowiki>"| status
7475 <th style="color:blue"> status
7481 Table attribute safety
7484 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7489 <th style="/* insecure input */"> status
7495 CSS line continuation 1
7497 <div style="background-image: u\ rl(test.jpg);"></div>
7499 <div style="/* insecure input */"></div>
7504 CSS line continuation 2
7506 <div style="background-image: u\ rl(test.jpg); "></div>
7508 <div style="/* insecure input */"></div>
7519 Expansion of multi-line templates in attribute values (bug 6255)
7521 <div style="background: {{identity|#00FF00}}">-</div>
7523 <div style="background: #00FF00">-</div>
7529 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7531 <div style="background:
7534 <div style="background: #00FF00">-</div>
7539 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7541 <div style="background: #00FF00">-</div>
7543 <div style="background: #00FF00">-</div>
7548 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7551 Parser hook: empty input
7564 Parser hook: empty input using terminated empty elements
7577 Parser hook: empty input using terminated empty elements (space before)
7590 Parser hook: basic input
7604 Parser hook: case insensitive
7618 Parser hook: case insensitive, redux
7631 Parser hook: nested tags
7635 <tag><tag></tag></tag>
7646 Parser hook: basic arguments
7648 <tag width=200 height = "100" depth = '50' square></tag>
7656 'square' => 'square',
7663 Parser hook: argument containing a forward slash (bug 5344)
7665 <tag filename='/tmp/bla'></tag>
7670 'filename' => '/tmp/bla',
7677 Parser hook: empty input using terminated empty elements (bug 2374)
7690 # </tag> should be output literally since there is no matching tag that begins it
7692 Parser hook: basic arguments using terminated empty elements (bug 2374)
7694 <tag width=200 height = "100" depth = '50' square/>
7704 'square' => 'square',
7713 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7717 Parser hook: static parser hook not inside a comment
7719 <statictag>hello, world</statictag>
7720 <statictag action=flush/>
7728 Parser hook: static parser hook inside a comment
7730 <!-- <statictag>hello, world</statictag> -->
7731 <statictag action=flush/>
7737 # Nested template calls; this case was broken by Parser.php rev 1.506,
7741 Template:One-parameter
7743 (My parameter is: {{{1}}})
7747 Template:Map-one-parameter
7753 Nested template calls
7755 {{Map-one-parameter|One-parameter|param}}
7757 <p>(My parameter is: param)
7766 Sanitizer: Closing of open tags
7768 <s></s><table></table>
7770 <s></s><table></table>
7775 Sanitizer: Closing of open but not closed tags
7784 Sanitizer: Closing of closed but not open tags
7793 Sanitizer: Closing of closed but not open table tags
7795 Table not started</td></tr></table>
7797 <p>Table not started</td></tr></table>
7802 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7804 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7806 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7811 Sanitizer: Validating the contents of the id attribute (bug 4515)
7817 Something, but definitely not <br id="9" />...
7821 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7825 <br id="foo" /><br id="foo" />
7827 Something need to be done. foo-2 ?
7831 Language converter: output gets cut off unexpectedly (bug 5757)
7835 this bit is safe: }-
7837 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7839 then we get cut off here: }-
7841 all additional text is vanished
7843 <p>this bit is safe: }-
7844 </p><p>but if we add a conversion instance: xxx
7845 </p><p>then we get cut off here: }-
7846 </p><p>all additional text is vanished
7851 Self closed html pairs (bug 5487)
7854 <center><font id="bug" />Centered text</center>
7855 <div><font id="bug2" />In div text</div>
7857 <center><font id="bug" />Centered text</center>
7858 <div><font id="bug2" />In div text</div>
7867 Punctuation: nbsp before exclamation
7871 <p>C'est grave !
7876 Punctuation: CSS !important (bug 11874)
7878 <div style="width:50% !important">important</div>
7880 <div style="width:50% !important">important</div>
7885 Punctuation: CSS ! important (bug 11874; with space after)
7887 <div style="width:50% ! important">important</div>
7889 <div style="width:50% ! important">important</div>
7895 HTML bullet list, closed tags (bug 5497)
7910 HTML bullet list, unclosed tags (bug 5497)
7927 HTML ordered list, closed tags (bug 5497)
7942 HTML ordered list, unclosed tags (bug 5497)
7959 HTML nested bullet list, closed tags (bug 5497)
7984 HTML nested bullet list, open tags (bug 5497)
8009 HTML nested ordered list, closed tags (bug 5497)
8034 HTML nested ordered list, open tags (bug 5497)
8059 HTML ordered list item with parameters oddity
8061 <ol><li id="fragment">One</li></ol>
8063 <ol><li id="fragment">One</li></ol>
8068 bug 5918: autonumbering
8070 [http://first/] [http://second] [ftp://ftp]
8074 [mailto:enclosed@mail.tld With target]
8076 [mailto:enclosed@mail.tld]
8078 mailto:inline@mail.tld
8080 <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>
8081 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8082 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8083 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8084 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8090 # Security and HTML correctness
8091 # From Nick Jenkins' fuzz testing
8095 Fuzz testing: Parser13
8110 Fuzz testing: Parser14
8115 <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>
8116 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8118 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8125 Fuzz testing: Parser14-table
8130 <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>
8131 <table style="__TOC__">
8137 # Known to produce bogus xml (extra </td>)
8139 Fuzz testing: Parser16
8159 Fuzz testing: Parser21
8162 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8167 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8177 Fuzz testing: Parser22
8179 http://===r:::https://b
8183 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8191 # Known to produce bad XML for now
8193 Fuzz testing: Parser24
8200 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8201 <br style="onmouseover='alert(document.cookie);' " />
8203 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8208 <u class="|">}}}} >
8209 <br style="onmouseover='alert(document.cookie);'" />
8211 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8220 # Note: the current result listed for this is not what the original one was,
8221 # but the original bug was JavaScript injection, which is fixed in any case.
8222 # It's not clear that the original result listed was any more correct than the
8223 # current one. Original result:
8226 # <li class="||">
8227 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8229 Fuzz testing: Parser25 (bug 6055)
8235 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8237 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8242 Fuzz testing: URL adjacent extension (with space, clean)
8245 http://example.com <nowiki>junk</nowiki>
8247 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8252 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8255 http://example.com<nowiki>junk</nowiki>
8257 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8262 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8265 http://example.com<pre>junk</pre>
8267 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8272 Fuzz testing: image with bogus manual thumbnail
8274 [[Image:foobar.jpg|thumbnail= ]]
8276 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8281 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8283 <pre dir=" "></pre>
8285 <pre dir=" "></pre>
8290 Parsing optional HTML elements (Bug 6171)
8295 <td> Some tabular data</td>
8296 <td> More tabular data ...
8297 <td> And yet som tabular data</td>
8303 <td> Some tabular data</td>
8304 <td> More tabular data ...
8305 </td><td> And yet som tabular data</td>
8312 Correct handling of <td>, <tr> (Bug 6171)
8317 <td> Some tabular data</td>
8318 <td> More tabular data ...</td>
8319 <td> And yet som tabular data</td>
8325 <td> Some tabular data</td>
8326 <td> More tabular data ...</td>
8327 <td> And yet som tabular data</td>
8335 Parsing crashing regression (fr:JavaScript)
8339 <p></body></x>
8344 Inline wiki vs wiki block nesting
8350 <p><b>Bold paragraph</b>
8351 </p><p>New wiki paragraph
8356 Inline HTML vs wiki block nesting
8364 <p><b>Bold paragraph</b>
8365 </p><p>New wiki paragraph
8369 # Original result was this:
8370 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8372 # While that might be marginally more intuitive, maybe, the six-apostrophe
8373 # construct is clearly pathological and the result stated here (which is what
8374 # the parser actually does) is about as reasonable as anything.
8376 Mixing markup for italics and bold
8379 '''bold''''''bold''bolditalics'''''
8381 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8389 Article for special page transclusion test
8393 Special page transclusion
8396 {{Special:Prefixindex/Xyzzyx}}
8398 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8403 Special page transclusion twice (bug 5021)
8406 {{Special:Prefixindex/Xyzzyx}}
8407 {{Special:Prefixindex/Xyzzyx}}
8409 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8410 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8415 Transclusion of default MediaWiki message
8417 {{MediaWiki:Mainpage}}
8424 Transclusion of nonexistent MediaWiki message
8426 {{MediaWiki:Mainpagexxx}}
8428 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8433 Transclusion of MediaWiki message with underscore
8435 {{MediaWiki:history_short}}
8442 Transclusion of MediaWiki message with space
8444 {{MediaWiki:history short}}
8451 Invalid header with following text
8461 Section extraction test (section 0)
8481 Section extraction test (section 1)
8503 Section extraction test (section 2)
8524 Section extraction test (section 3)
8544 Section extraction test (section 4)
8568 Section extraction test (section 5)
8588 Section extraction test (section 6)
8609 Section extraction test (section 7)
8629 Section extraction test (section 8)
8649 Section extraction test (section 9)
8670 Section extraction test (section 10)
8690 Section extraction test (nonexistent section 11)
8709 Section extraction test with bogus heading (section 1)
8714 ==bogus== not a legal section
8718 ==bogus== not a legal section
8722 Section extraction test with bogus heading (section 2)
8727 ==bogus== not a legal section
8734 Section extraction test with comment after heading (section 1)
8746 Section extraction test with comment after heading (section 2)
8758 Section extraction test with bogus <nowiki> heading (section 1)
8763 ==bogus== <nowiki>not a legal section</nowiki>
8767 ==bogus== <nowiki>not a legal section</nowiki>
8771 Section extraction test with bogus <nowiki> heading (section 2)
8776 ==bogus== <nowiki>not a legal section</nowiki>
8783 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8784 # instead of respecting commented sections
8786 Section extraction prefixed by comment (section 1)
8797 Section extraction prefixed by comment (section 2)
8808 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8809 # instead of respecting HTML-style headings
8811 Section extraction, mixed wiki and html (section 1)
8827 Section extraction, mixed wiki and html (section 2)
8843 # Formerly testing for bug 3342
8845 Section extraction, heading surrounded by <noinclude>
8849 <noinclude>==unmarked==</noinclude>
8855 # Test behaviour of bug 19910
8857 Sectiion with all-equals
8862 The line above must have a trailing space
8865 But just in case it doesn't...
8869 But just in case it doesn't...
8873 Section replacement test (section 0)
8904 Section replacement test (section 1)
8933 Section replacement test (section 2)
8963 Section replacement test (section 3)
8994 Section replacement test (section 4)
9021 Section replacement test (section 5)
9052 Section replacement test (section 6)
9082 Section replacement test (section 7)
9113 Section replacement test (section 8)
9144 Section replacement test (section 9)
9173 Section replacement test (section 10)
9203 Section replacement test with initial whitespace (bug 13728)
9207 Preformatted initial line
9211 Preformatted initial line
9218 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9230 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9243 Section extraction, <pre> around bogus header (bug 10309)
9260 Section replacement, <pre> around bogus header (bug 10309)
9262 noxml replace=2,"xxx"
9283 Handling of 
 in URLs
9287 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9294 5 quotes, code coverage +1 line
9301 Special:Search page linking.
9305 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9320 * {{SUBJECTPAGENAME}}
9321 * {{SUBJECTPAGENAMEE}}
9328 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9330 <ul><li> Parser test
9331 </li><li> Parser test
9332 </li><li> Parser test
9333 </li><li> Parser_test
9334 </li><li> Parser test
9335 </li><li> Parser_test
9336 </li><li> Talk:Parser test
9337 </li><li> Talk:Parser_test
9338 </li><li> Parser test
9339 </li><li> Parser_test
9346 </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>
9350 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9360 image4 |300px| centre
9361 image5.svg| http://///////
9366 <ul class="gallery">
9367 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9368 <div style="height: 150px;">Image1.png</div>
9369 <div class="gallerytext">
9372 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9373 <div style="height: 150px;">Image2.gif</div>
9374 <div class="gallerytext">
9379 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9380 <div style="height: 150px;">Image3</div>
9381 <div class="gallerytext">
9384 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9385 <div style="height: 150px;">Image4</div>
9386 <div class="gallerytext">
9391 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9392 <div style="height: 150px;">Image5.svg</div>
9393 <div class="gallerytext">
9394 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9398 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9399 <div style="height: 150px;">* image6</div>
9400 <div class="gallerytext">
9408 Gallery (with options)
9410 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9411 File:Nonexistant.jpg|caption
9412 File:Nonexistant.jpg
9413 image:foobar.jpg|some '''caption''' [[Main Page]]
9415 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9418 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9419 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9420 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9421 <div style="height: 70px;">Nonexistant.jpg</div>
9422 <div class="gallerytext">
9427 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9428 <div style="height: 70px;">Nonexistant.jpg</div>
9429 <div class="gallerytext">
9432 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9433 <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>
9434 <div class="gallerytext">
9435 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9439 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9440 <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>
9441 <div class="gallerytext">
9444 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9445 <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>
9446 <div class="gallerytext">
9456 Gallery with wikitext inside caption
9459 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9460 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9463 <ul class="gallery">
9464 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9465 <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>
9466 <div class="gallerytext">
9467 <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>
9471 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9472 <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>
9473 <div class="gallerytext">
9474 <p>This is a test template
9483 gallery (with showfilename option)
9485 <gallery showfilename>
9486 File:Nonexistant.jpg|caption
9487 File:Nonexistant.jpg
9488 image:foobar.jpg|some '''caption''' [[Main Page]]
9492 <ul class="gallery">
9493 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9494 <div style="height: 150px;">Nonexistant.jpg</div>
9495 <div class="gallerytext">
9496 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9501 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9502 <div style="height: 150px;">Nonexistant.jpg</div>
9503 <div class="gallerytext">
9504 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9508 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9509 <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>
9510 <div class="gallerytext">
9511 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9512 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9516 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9517 <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>
9518 <div class="gallerytext">
9519 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9528 Gallery (with namespace-less filenames)
9531 File:Nonexistant.jpg
9537 <ul class="gallery">
9538 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9539 <div style="height: 150px;">Nonexistant.jpg</div>
9540 <div class="gallerytext">
9543 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9544 <div style="height: 150px;">Nonexistant.jpg</div>
9545 <div class="gallerytext">
9548 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9549 <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>
9550 <div class="gallerytext">
9553 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9554 <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>
9555 <div class="gallerytext">
9563 HTML Hex character encoding (spells the word "JavaScript")
9565 JavaScript
9567 <p>JavaScript
9572 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9576 <p>&#xsee;&#XSEE;
9581 HTML Hex character encoding mixed case
9590 __FORCETOC__ override
9602 ISBN 978-0-1234-56 789
9604 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9609 ISBN followed by 5 spaces
9620 ISBN ISBN 1234567890
9622 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9627 Bug 22905: <abbr> followed by ISBN followed by </a>
9629 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9631 <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>
9640 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9645 Double RFC with a wiki link
9649 <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>
9658 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9663 Centre-aligned image
9665 [[Image:foobar.jpg|centre]]
9667 <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>
9674 [[Image:foobar.jpg|none]]
9676 <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>
9681 Width + Height sized image (using px) (height is ignored)
9683 [[Image:foobar.jpg|640x480px]]
9685 <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>
9690 Width-sized image (using px, no following whitespace)
9692 [[Image:foobar.jpg|640px]]
9694 <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>
9699 Width-sized image (using px, with following whitespace - test regression from r39467)
9701 [[Image:foobar.jpg|640px ]]
9703 <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>
9708 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9710 [[Image:foobar.jpg| 640px]]
9712 <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>
9717 Another italics / bold test
9725 # Note the results may be incorrect, as parserTest output included this:
9726 # XML error: Mismatched tag at byte 6120:
9727 # ...<dd> </dt></dl> </dd...
9735 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9746 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9748 Images with the "|" character in the comment
9750 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9752 <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>
9757 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9759 <html><script>alert(1);</script></html>
9761 <p><html><script>alert(1);</script></html>
9766 HTML with raw HTML ($wgRawHtml==true)
9770 <html><script>alert(1);</script></html>
9772 <p><script>alert(1);</script>
9777 Parents of subpages, one level up
9779 subpage title=[[Subpage test/L1/L2/L3]]
9783 <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>
9789 Parents of subpages, one level up, not named
9791 subpage title=[[Subpage test/L1/L2/L3]]
9795 <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>
9802 Parents of subpages, two levels up
9804 subpage title=[[Subpage test/L1/L2/L3]]
9810 <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
9811 </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>
9816 Parents of subpages, two levels up, without trailing slash or name.
9818 subpage title=[[Subpage test/L1/L2/L3]]
9827 Parents of subpages, two levels up, with lots of extra trailing slashes.
9829 subpage title=[[Subpage test/L1/L2/L3]]
9833 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9838 Definition list code coverage
9844 <dl><dt> title  </dt><dd> def
9845 </dd><dt> title </dt><dd> def
9846 </dd><dt>title</dt><dd> def
9852 Don't fall for the self-closing div
9854 <div>hello world</div/>
9856 <div>hello world</div>
9865 <p>[[:Template:Msg]]
9874 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9878 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9880 Always escape literal '>' in output, not just after '<'
9894 <p>This is a test template
9895 This is a test template
9907 Inclusion of !userCanEdit() content
9911 <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>
9917 Out-of-order TOC heading levels
9926 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9928 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9930 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9931 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9934 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9936 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9937 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9942 <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>
9943 <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>
9944 <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>
9945 <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>
9946 <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>
9947 <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>
9953 ISBN with a dummy number
9963 ISBN with space-delimited number
9967 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9973 ISBN with multiple spaces, no number
9992 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9993 </p><p>ISBN 12345678901
9999 ISBN with trailing year (bug 8110)
10001 ISBN 1-234-56789-0 - 2006
10003 ISBN 1 234 56789 0 - 2006
10005 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10006 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10014 {{anchorencode:foo bar©#%n}}
10016 <p>foo_bar.C2.A9.23.25n
10021 anchorencode trims spaces
10023 {{anchorencode: __pretty__please__}}
10030 anchorencode deals with links
10032 {{anchorencode: [[hello|world]] [[hi]]}}
10039 anchorencode deals with templates
10041 {{anchorencode: {{Foo}} }}
10048 anchorencode encodes like the TOC generator: (bug 18431)
10050 === _ +:.3A%3A&&]] ===
10051 {{anchorencode: _ +:.3A%3A&&]] }}
10054 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10055 <p>.2B:.3A.253A.26.26.5D.5D
10059 # Expected output in the following test is not necessarily expected (there
10060 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10061 # only testing for well-formedness.
10063 Bug 6200: blockquotes and paragraph formatting
10083 Bug 8293: Use of center tag ruins paragraph formatting
10105 ### Language variants related tests
10108 Self-link in language variants
10110 title=[[Dunav]] language=sr
10112 Both [[Dunav]] and [[Дунав]] are names for this river.
10114 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10120 Link to pages in language variants
10124 Main Page can be written as [[Маин Паге]]
10126 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10132 Multiple links to pages in language variants
10136 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10138 <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>.
10144 Simple template in language variants
10150 <p>This is a test template
10156 Template with explicit namespace in language variants
10162 <p>This is a test template
10168 Basic test for template parameter in language variants
10172 {{парамтест|param=foo}}
10174 <p>This is a test template with parameter foo
10180 Simple category in language variants
10184 [[Category:МедиаWики Усер'с Гуиде]]
10186 <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>
10191 Stripping -{}- tags (language variants)
10195 Latin proverb: -{Ne nuntium necare}-
10197 <p>Latin proverb: Ne nuntium necare
10203 Prevent conversion with -{}- tags (language variants)
10205 language=sr variant=sr-ec
10207 Latinski: -{Ne nuntium necare}-
10209 <p>Латински: Ne nuntium necare
10215 Prevent conversion of text with -{}- tags (language variants)
10217 language=sr variant=sr-ec
10219 Latinski: -{Ne nuntium necare}-
10221 <p>Латински: Ne nuntium necare
10227 Prevent conversion of links with -{}- tags (language variants)
10229 language=sr variant=sr-ec
10233 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10239 -{}- tags within headlines (within html for parserConvert())
10241 language=sr variant=sr-ec
10245 <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>
10251 Explicit definition of language variant alternatives
10253 language=zh variant=zh-tw
10255 -{zh:China;zh-tw:Taiwan}-, not China
10257 <p>Taiwan, not China
10263 Explicit session-wise language variant mapping (A flag and - flag)
10265 language=zh variant=zh-tw
10267 Taiwan is not China.
10268 But -{A|zh:China;zh-tw:Taiwan}- is China,
10269 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10270 and -{China}- is China.
10272 <p>Taiwan is not China.
10273 But Taiwan is Taiwan,
10274 (This should be stripped!)
10275 and China is China.
10280 Explicit session-wise language variant mapping (H flag for hide)
10282 language=zh variant=zh-tw
10284 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10287 <p>(This should be stripped!)
10293 Adding explicit conversion rule for title (T flag)
10295 language=zh variant=zh-tw showtitle
10297 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10300 <p>Should be stripped!
10305 Testing that changing the language variant here in the tests actually works
10307 language=zh variant=zh showtitle
10309 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10312 <p>Should be stripped!
10317 Bug 24072: more test on conversion rule for title
10319 language=zh variant=zh-tw showtitle
10321 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10322 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10325 <p>This should be stripped!
10326 This won't take interferes with the title rule.
10331 Raw output of variant escape tags (R flag)
10333 language=zh variant=zh-tw
10335 Raw: -{R|zh:China;zh-tw:Taiwan}-
10337 <p>Raw: zh:China;zh-tw:Taiwan
10342 Nested using of manual convert syntax
10344 language=zh variant=zh-hk
10346 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10348 <p>Nested: Hello Hong Kong!
10353 Do not convert roman numbers to language variants
10355 language=sr variant=sr-ec
10359 <p>Фридрих IV је цар.
10364 Unclosed language converter markup "-{"
10375 Don't convert raw rule "-{R|=>}-" to "=>"
10392 Bug 529: Uncovered bullet
10402 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10403 # Templates in Wikipedia rely on this behavior, as tidy has always been
10404 # enabled there. These tests are normally run *without* tidy, so specify the
10405 # full output here.
10406 # To test realistic parsing behavior, apply a tidy-like transformation to both
10407 # the expected output and your parser's output.
10409 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10411 ******* Foo {{bullet}}
10413 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10426 Bug 529: Uncovered table already at line-start
10449 Bug 529: Uncovered bullet in parser function result
10451 * Foo {{lc:{{bullet}} }}
10460 Bug 5678: Double-parsed template argument
10462 {{lc:{{{1}}}|hello}}
10469 Bug 5678: Double-parsed template invocation
10471 {{lc:{{paramtest {{!}} param = hello }} }}
10473 <p>{{paramtest | param = hello }}
10478 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10481 title=[[Main Page]]
10483 {{PRVNÍVELKÉ:ěščř}}
10484 {{prvnívelké:ěščř}}
10504 Morwen/13: Unclosed link followed by heading
10511 <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>
10516 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10523 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10528 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10535 <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>
10550 Paragraphs inside divs (no extra line breaks)
10562 Paragraphs inside divs (extra line break on open)
10577 Paragraphs inside divs (extra line break on close)
10592 Paragraphs inside divs (extra line break on open and close)
10609 Nesting tags, paragraphs on lines which begin with <div>
10613 <div></div><strong>A
10622 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10624 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10628 <blockquote>Line one
10630 Line two</blockquote>
10632 <blockquote>Line one
10633 Line two</blockquote>
10638 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10645 Line two</blockquote>
10650 Line two</blockquote>
10655 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10659 <blockquote>Line one
10664 <blockquote>Line one
10672 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10691 Paragraphs inside blockquotes/divs (no extra line breaks)
10693 <blockquote><div>Line one
10695 Line two</div></blockquote>
10697 <blockquote><div>Line one
10698 Line two</div></blockquote>
10703 Paragraphs inside blockquotes/divs (extra line break on open)
10708 Line two</div></blockquote>
10713 Line two</div></blockquote>
10718 Paragraphs inside blockquotes/divs (extra line break on close)
10720 <blockquote><div>Line one
10723 </div></blockquote>
10725 <blockquote><div>Line one
10728 </div></blockquote>
10733 Paragraphs inside blockquotes/divs (extra line break on open and close)
10739 </div></blockquote>
10745 </div></blockquote>
10750 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10752 wgLinkHolderBatchSize=0
10758 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10759 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10760 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10765 Free external link invading image caption
10767 [[Image:Foobar.jpg|thumb|http://x|hello]]
10769 <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>
10774 Bug 15196: localised external link numbers
10778 [http://en.wikipedia.org/]
10780 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10785 Multibyte character in padleft
10787 {{padleft:-Hello|7|Æ}}
10794 Multibyte character in padright
10796 {{padright:Hello-|7|Æ}}
10805 wgUseDynamicDates=1
10809 <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>
10814 formatdate parser function
10816 {{#formatdate:2009-03-24}}
10818 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10823 formatdate parser function, with default format
10825 {{#formatdate:2009-03-24|mdy}}
10827 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10832 Linked date with autoformatting disabled
10834 wgUseDynamicDates=false
10838 <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>
10843 Spacing of numbers in formatted dates
10845 {{#formatdate:January 15}}
10847 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10852 Spacing of numbers in formatted dates (linked)
10854 wgUseDynamicDates=true
10858 <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>
10863 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
10865 language=nl title=[[MediaWiki:Common.css]]
10867 {{#formatdate:2009-03-24|dmy}}
10869 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10882 Edit comment with link
10886 I like the [[Main Page]] a lot
10888 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10892 Edit comment with link and link text
10896 I like the [[Main Page|best pages]] a lot
10898 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10902 Edit comment with link and link text with suffix
10906 I like the [[Main Page|best page]]s a lot
10908 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10912 Edit comment with section link (non-local, eg in history list)
10914 comment title=[[Main Page]]
10916 /* External links */ removed bogus entries
10918 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10922 Edit comment with section link and text before it (non-local, eg in history list)
10924 comment title=[[Main Page]]
10926 pre-comment text /* External links */ removed bogus entries
10928 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>
10932 Edit comment with section link (local, eg in diff view)
10934 comment local title=[[Main Page]]
10936 /* External links */ removed bogus entries
10938 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10942 Edit comment with subpage link (bug 14080)
10946 title=[[Subpage test]]
10948 Poked at a [[/subpage]] here...
10950 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10954 Edit comment with subpage link and link text (bug 14080)
10958 title=[[Subpage test]]
10960 Poked at a [[/subpage|neat little page]] here...
10962 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10966 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10969 title=[[Subpage test]]
10971 Poked at a [[/subpage]] here...
10973 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10977 Edit comment with bare anchor link (local, as on diff)
10981 title=[[Main Page]]
10985 <a href="#section">#section</a>
10989 Edit comment with bare anchor link (non-local, as on history)
10992 title=[[Main Page]]
10996 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11000 Anchor starting with underscore
11004 <p><a href="#_ref">One</a>
11009 Id starting with underscore
11011 <div id="_ref"></div>
11013 <div id="_ref"></div>
11018 Space normalisation on autocomment (bug 22784)
11021 title=[[Main Page]]
11023 /* __hello__world__ */
11025 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11029 percent-encoding and + signs in comments (Bug 26410)
11033 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11035 <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>
11039 Bad images - basic functionality
11048 Bad images - bug 16039: text after bad image disappears
11062 Verify that displaytitle works (bug #22501) no displaytitle
11066 wgAllowDisplayTitle=true
11067 wgRestrictDisplayTitle=false
11069 this is not the the title
11072 <p>this is not the the title
11077 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11082 wgAllowDisplayTitle=true
11083 wgRestrictDisplayTitle=false
11085 this is not the the title
11086 {{DISPLAYTITLE:whatever}}
11089 <p>this is not the the title
11094 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11099 wgAllowDisplayTitle=true
11100 wgRestrictDisplayTitle=true
11102 this is not the the title
11103 {{DISPLAYTITLE:whatever}}
11106 <p>this is not the the title
11111 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11116 wgAllowDisplayTitle=true
11117 wgRestrictDisplayTitle=true
11119 this is not the the title
11120 {{DISPLAYTITLE:screen}}
11123 <p>this is not the the title
11128 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11133 wgAllowDisplayTitle=false
11135 this is not the the title
11136 {{DISPLAYTITLE:screen}}
11139 <p>this is not the the title
11140 <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>
11145 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11150 wgAllowDisplayTitle=false
11152 this is not the the title
11155 <p>this is not the the title
11160 preload: check <noinclude> and <includeonly>
11164 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11170 preload: check <onlyinclude>
11174 Goodbye <onlyinclude>Hello world</onlyinclude>
11180 preload: can pass tags through if we want to
11184 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11186 <includeonly>Hello world</includeonly>
11190 preload: check that it doesn't try to do tricks
11194 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11196 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11200 Play a bit with r67090 and bug 3158
11204 <div style="width:50% !important"> </div>
11205 <div style="width:50% !important"> </div>
11206 <div style="width:50% !important"> </div>
11207 <div style="border : solid;"> </div>
11209 <div style="width:50% !important"> </div>
11210 <div style="width:50% !important"> </div>
11211 <div style="width:50% !important"> </div>
11212 <div style="border : solid;"> </div>
11217 HTML5 data attributes
11219 <span data-foo="bar">Baz</span>
11220 <p data-abc-def_hij="">Quuz</p>
11222 <p><span data-foo="bar">Baz</span>
11224 <p data-abc-def_hij="">Quuz</p>
11229 percent-encoding and + signs in internal links (Bug 26410)
11231 [[User:+%]] [[Page+title%]]
11232 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11233 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11234 [[%33%45]] [[%33%45+]]
11236 <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>
11237 <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>
11238 <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>
11239 <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>
11244 Special characters in embedded file links (bug 27679)
11246 [[File:Contains & ampersand.jpg]]
11247 [[File:Does not exist.jpg|Title with & ampersand]]
11249 <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>
11250 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11256 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11258 Text's been normalized?
11260 <p>Text's been normalized?
11265 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11267 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11269 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11274 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11276 [http://www.example.org/ ideograms]
11278 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11283 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11285 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11287 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11311 Bug 31098 Template which includes system messages which includes the template
11315 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11316 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11321 Deprecated presentational attributes are converted to css
11324 | valign=top align=left width=100 height=25% | Asdf
11326 <ul type="disc"></ul>
11330 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11332 <ul style="list-style-type: disc;"></ul>
11337 Bug31490 Turkish: ucfirst 'blah'
11348 Bug31490 Turkish: ucfirst 'ix'
11359 Bug31490 Turkish: lcfirst 'BLAH'
11370 Bug31490 Turkish: ucfırst (with a dotless i)
11376 <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>
11381 Bug31490 ucfırst (with a dotless i) with English language
11387 <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>
11392 Bug 26375: TOC with italics
11394 title=[[Main Page]]
11397 == ''Lost'' episodes ==
11399 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11401 <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>
11404 <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>
11409 Bug 26375: TOC with bold
11411 title=[[Main Page]]
11414 == '''should be bold''' then normal text ==
11416 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11418 <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>
11421 <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>
11426 Bug 33845: Headings become cursive in TOC when they contain an image
11428 title=[[Main Page]]
11431 == Image [[Image:foobar.jpg]] ==
11433 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11435 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11438 <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>
11443 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11445 title=[[Main Page]]
11448 == <blockquote>Quote</blockquote> ==
11450 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11452 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11455 <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>
11460 Unclosed tags in TOC
11462 title=[[Main Page]]
11466 <small>Hanc marginis exiguitas non caperet.</small>
11469 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11471 <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>
11474 <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>
11475 <p><small>Hanc marginis exiguitas non caperet.</small>
11481 Multiple tags in TOC
11484 == <i>Foo</i> <b>Bar</b> ==
11486 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11488 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11490 <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>
11491 <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>
11494 <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>
11495 <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>
11500 Tags with parameters in TOC
11503 == <sup class="in-h2">Hello</sup> ==
11505 == <sup class="a > b">Evilbye</sup> ==
11507 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11509 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11510 <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>
11513 <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>
11514 <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>
11519 span tags with directionality in TOC
11522 == <span dir="ltr">C++</span> ==
11524 == <span dir="rtl">זבנג!</span> ==
11526 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11528 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11530 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11532 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11534 <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>
11535 <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>
11536 <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>
11537 <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>
11538 <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>
11541 <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>
11542 <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>
11543 <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>
11544 <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>
11545 <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>
11552 == {{int:headline_sample}} ==
11556 Bug 32057: Title needed when expanding <h> nodes.
11558 title=[[Main Page]]
11562 <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>
11567 Strip marker in urlencode
11569 {{urlencode:x<nowiki/>y}}
11570 {{urlencode:x<nowiki/>y|wiki}}
11571 {{urlencode:x<nowiki/>y|path}}
11598 Strip marker in formatNum
11600 {{formatnum:1<nowiki/>2}}
11601 {{formatnum:1<nowiki/>2|R}}
11609 Strip marker in grammar
11613 {{grammar:elative|foo<nowiki/>bar}}
11620 Strip marker in padleft
11622 {{padleft:|2|x<nowiki/>y}}
11629 Strip marker in padright
11631 {{padright:|2|x<nowiki/>y}}
11638 Strip marker in anchorencode
11640 {{anchorencode:x<nowiki/>y}}
11647 nowiki inside link inside heading (bug 18295)
11649 ==[[foo|x<nowiki>y</nowiki>z]]==
11651 <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>
11656 new support for bdi element (bug 31817)
11658 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11660 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11665 Ignore pipe between table row attributes
11669 |- id=foo | style='color: red'
11677 <tr id="foo" style="color: red">
11684 Gallery override link with WikiLink (bug 34852)
11687 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11690 <ul class="gallery">
11691 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11692 <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>
11693 <div class="gallerytext">
11703 Gallery override link with absolute external link (bug 34852)
11706 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11709 <ul class="gallery">
11710 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11711 <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>
11712 <div class="gallerytext">
11722 Gallery override link with malicious javascript (bug 34852)
11725 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11728 <ul class="gallery">
11729 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11730 <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>
11731 <div class="gallerytext">
11741 Language parser function
11750 Padleft and padright as substr
11752 {{padleft:|3|abcde}}
11753 {{padright:|3|abcde}}
11761 Bug 34939 - Case insensitive link parsing ([HttP://])
11763 [HttP://MediaWiki.Org/]
11765 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11770 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11772 [HttP://MediaWiki.Org/ MediaWiki]
11774 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11779 Bug 34939 - Case insensitive link parsing (HttP://)
11781 HttP://MediaWiki.Org/
11783 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11788 ### Parsoids-specific tests
11789 ### Parsoid-PHP parser incompatibilities
11792 1. SOL-sensitive wikitext tokens as template-args
11806 #### The following section of tests are primarily to test
11807 #### wikitext escaping capabilities of Parsoid.
11808 #### A lot of the tests are disabled for the PHP parser either
11809 #### because of minor newline diffs or other reasons.
11810 #### As Parsoid serializer can handle newlines and other HTML
11811 #### more robustly, some of these tests might get reenabled
11812 #### for the PHP parser.
11814 #### --------------- Headings ---------------
11816 #### 1. Nested inside html <h1>=foo=</h1>
11817 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11818 #### 3. Nested inside html with wikitext split by html tags
11819 #### 4. No escape needed
11820 #### 5. Empty headings <h1></h1>
11821 #### 6. Heading chars in SOL context
11822 #### ----------------------------------------
11824 Headings: 0. Unnested
11826 <nowiki>=foo=</nowiki>
11828 <nowiki>=foo</nowiki>''a''=
11831 </p><p>=foo<i>a</i>=
11836 Headings: 1. Nested inside html
11840 =<nowiki>=foo=</nowiki>=
11841 ==<nowiki>=foo=</nowiki>==
11842 ===<nowiki>=foo=</nowiki>===
11843 ====<nowiki>=foo=</nowiki>====
11844 =====<nowiki>=foo=</nowiki>=====
11845 ======<nowiki>=foo=</nowiki>======
11856 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11861 <nowiki>*bar</nowiki>
11865 <nowiki>=bar=</nowiki>
11873 Headings: 3. Nested inside html with wikitext split by html tags
11877 =<nowiki>=</nowiki>'''bold'''foo==
11879 <h1>=<b>bold</b>foo=</h1>
11883 Headings: 4. No escaping needed (testing just h1 and h2)
11898 <h1><i>=</i>foo=</h1>
11903 Headings: 5. Empty headings
11907 =<nowiki></nowiki>=
11908 ==<nowiki></nowiki>==
11909 ===<nowiki></nowiki>===
11910 ====<nowiki></nowiki>====
11911 =====<nowiki></nowiki>=====
11912 ======<nowiki></nowiki>======
11923 Headings: 6. Heading chars in SOL context
11927 <!--cmt--><nowiki>=h1=</nowiki>
11933 #### --------------- Lists ---------------
11934 #### 0. Outside nests (*foo, etc.)
11935 #### 1. Nested inside html <ul><li>*foo</li></ul>
11936 #### 2. Inside definition lists
11937 #### 3. Only bullets at start should be escaped
11938 #### 4. No escapes needed
11939 #### 5. No unnecessary escapes
11940 #### 6. Escape bullets in SOL position
11941 #### 7. Escape bullets in a multi-line context
11942 #### ----------------------------------------
11945 Lists: 0. Outside nests
11947 <nowiki>*foo</nowiki>
11949 <nowiki>#foo</nowiki>
11957 Lists: 1. Nested inside html
11959 *<nowiki>*foo</nowiki>
11961 *<nowiki>#foo</nowiki>
11963 *<nowiki>:foo</nowiki>
11965 *<nowiki>;foo</nowiki>
11967 #<nowiki>*foo</nowiki>
11969 #<nowiki>#foo</nowiki>
11971 #<nowiki>:foo</nowiki>
11973 #<nowiki>;foo</nowiki>
11995 Lists: 2. Inside definition lists
11997 ;<nowiki>;foo</nowiki>
11999 ;<nowiki>:foo</nowiki>
12001 ;<nowiki>:foo</nowiki>
12004 :<nowiki>:foo</nowiki>
12019 Lists: 3. Only bullets at start of text should be escaped
12021 *<nowiki>*foo*bar</nowiki>
12023 *<nowiki>*foo</nowiki>''it''*bar
12027 <ul><li>*foo<i>it</i>*bar
12033 Lists: 4. No escapes needed
12045 <ul><li><i>foo</i>*bar
12047 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12052 Lists: 5. No unnecessary escapes
12054 * bar <span><nowiki>[[foo]]</nowiki></span>
12056 *=bar <span><nowiki>[[foo]]</nowiki></span>
12058 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12060 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12062 *=bar <span>foo]]</span>=
12064 <ul><li> bar <span>[[foo]]</span>
12066 <ul><li>=bar <span>[[foo]]</span>
12068 <ul><li>[[bar <span>[[foo]]</span>
12070 <ul><li>]]bar <span>[[foo]]</span>
12072 <ul><li>=bar <span>foo]]</span>=
12078 Lists: 6. Escape bullets in SOL position
12082 <!--cmt--><nowiki>*foo</nowiki>
12089 Lists: 7. Escape bullets in a multi-line context
12099 #### --------------- HRs ---------------
12100 #### 1. Single line
12101 #### -----------------------------------
12104 HRs: 1. Single line
12109 <nowiki>----</nowiki>
12111 <nowiki>=foo=</nowiki>
12113 <nowiki>*foo</nowiki>
12120 #### --------------- Tables ---------------
12121 #### 1a. Simple example
12122 #### 1b. No escaping needed (!foo)
12123 #### 1c. No escaping needed (|foo)
12124 #### 1d. No escaping needed (|}foo)
12126 #### 2a. Nested in td (<td>foo|bar</td>)
12127 #### 2b. Nested in td (<td>foo||bar</td>)
12128 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12130 #### 3a. Nested in th (<th>foo!bar</th>)
12131 #### 3b. Nested in th (<th>foo!!bar</th>)
12132 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12136 #### 4c. No escaping needed
12137 #### --------------------------------------
12140 Tables: 1a. Simple example
12151 Tables: 1b. No escaping needed
12160 Tables: 1c. No escaping needed
12169 Tables: 1d. No escaping needed
12178 Tables: 2a. Nested in td
12183 |<nowiki>foo|bar</nowiki>
12193 Tables: 2b. Nested in td
12198 |<nowiki>foo||bar</nowiki>
12199 |''it''<nowiki>foo||bar</nowiki>
12204 </td><td><i>it</i>foo||bar
12210 Tables: 2c. Nested in td -- no escaping needed
12225 Tables: 3a. Nested in th
12240 Tables: 3b. Nested in th
12245 !<nowiki>foo!!bar</nowiki>
12255 Tables: 3c. Nested in th -- no escaping needed
12270 Tables: 4a. Escape -
12278 |<nowiki>-bar</nowiki>
12282 <tr><th>-bar</th></tr>
12283 <tr><td>-bar</td></tr>
12288 Tables: 4b. Escape +
12296 |<nowiki>+bar</nowiki>
12300 <tr><th>+bar</th></tr>
12301 <tr><td>+bar</td></tr>
12306 Tables: 4c. No escaping needed
12320 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12321 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12325 #### --------------- Links ---------------
12326 #### 1. Quote marks in link text
12327 #### 2. Wikilinks: Escapes needed
12328 #### 3. Wikilinks: No escapes needed
12329 #### 4. Extlinks: Escapes needed
12330 #### 5. Extlinks: No escapes needed
12331 #### --------------------------------------
12333 Links 1. Quote marks in link text
12337 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12339 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12343 Links 2. WikiLinks: Escapes needed
12347 [[Foo|<nowiki>[Foobar]</nowiki>]]
12348 [[Foo|<nowiki>Foobar]</nowiki>]]
12349 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12350 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12351 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12352 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12353 [[Foo|<nowiki>|Bar</nowiki>]]
12355 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12356 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12357 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12358 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12359 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12360 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12361 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12365 Links 3. WikiLinks: No escapes needed
12372 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12373 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12377 Links 4. ExtLinks: Escapes needed
12381 [http://google.com <nowiki>[google]</nowiki>]
12382 [http://google.com <nowiki>google]</nowiki>]
12384 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12385 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12389 Links 5. ExtLinks: No escapes needed
12393 [http://google.com [google]
12395 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12398 #### --------------- Quotes ---------------
12399 #### 1. Quotes inside <b> and <i>
12400 #### 2. Link fragments separated by <i> and <b> tags
12401 #### 3. Link fragments inside <i> and <b>
12402 #### --------------------------------------
12404 1. Quotes inside <b> and <i>
12406 ''<nowiki>'foo'</nowiki>''
12407 ''<nowiki>''foo''</nowiki>''
12408 ''<nowiki>'''foo'''</nowiki>''
12409 '''<nowiki>'foo'</nowiki>'''
12410 '''<nowiki>''foo''</nowiki>'''
12411 '''<nowiki>'''foo'''</nowiki>'''
12412 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12420 <b>foo'<i>bar'</i>baz</b>
12425 2. Link fragments separated by <i> and <b> tags
12427 [[''foo''<nowiki>hello]]</nowiki>
12429 [['''foo'''<nowiki>hello]]</nowiki>
12431 <p>[[<i>foo</i>hello]]
12432 </p><p>[[<b>foo</b>hello]]
12437 2. Link fragments inside <i> and <b>
12438 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12439 this is one of the shortcomings of this format)
12441 ''[[foo''<nowiki>]]</nowiki>
12443 '''[[foo'''<nowiki>]]</nowiki>
12446 </p><p><b>[[foo</b>]]
12450 #### --------------- Paragraphs ---------------
12451 #### 1. No unnecessary escapes
12452 #### --------------------------------------
12455 1. No unnecessary escapes
12457 bar <span><nowiki>[[foo]]</nowiki></span>
12459 =bar <span><nowiki>[[foo]]</nowiki></span>
12461 [[bar <span><nowiki>[[foo]]</nowiki></span>
12463 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12465 <nowiki>=bar </nowiki><span>foo]]</span>=
12467 <p>bar <span>[[foo]]</span>
12468 </p><p>=bar <span>[[foo]]</span>
12469 </p><p>[[bar <span>[[foo]]</span>
12470 </p><p>]]bar <span>[[foo]]</span>
12471 </p><p>=bar <span>foo]]</span>=
12475 #### --------------- PRE ------------------
12476 #### 1. Leading space in SOL context should be escaped
12477 #### --------------------------------------
12479 1. Leading space in SOL context should be escaped
12483 <nowiki> foo</nowiki>
12484 <!--cmt--><nowiki> foo</nowiki>
12491 #### --------------- HTML tags ---------------
12494 #### 3. multi-line html tag
12495 #### --------------------------------------
12501 <a href="http://google.com">google</a>
12503 <a href="http://google.com">google</a>
12509 <nowiki><div>foo</div>
12510 <div style="color:red">foo</div></nowiki>
12512 <p><div>foo</div>
12513 <div style="color:red">foo</div>
12518 3. multi-line html tag
12530 #### --------------- Others ---------------
12534 <nowiki>foo</nowiki>
12536 <p><nowiki>foo</nowiki>
12545 Try for 100% code coverage