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
111 This is a simple paragraph.
113 <p>This is a simple paragraph.
118 Paragraphs with extra newline spacing
156 * plain''italic''plain
157 * plain''italic''plain''italic''plain
158 * plain'''bold'''plain
159 * plain'''bold'''plain'''bold'''plain
160 * plain''italic''plain'''bold'''plain
161 * plain'''bold'''plain''italic''plain
162 * plain''italic'''bold-italic'''italic''plain
163 * plain'''bold''bold-italic''bold'''plain
164 * plain'''''bold-italic'''italic''plain
165 * plain'''''bold-italic''bold'''plain
166 * plain''italic'''bold-italic'''''plain
167 * plain'''bold''bold-italic'''''plain
168 * plain l'''italic''plain
169 * plain l''''bold''' plain
172 </li><li> plain<i>italic</i>plain
173 </li><li> plain<i>italic</i>plain<i>italic</i>plain
174 </li><li> plain<b>bold</b>plain
175 </li><li> plain<b>bold</b>plain<b>bold</b>plain
176 </li><li> plain<i>italic</i>plain<b>bold</b>plain
177 </li><li> plain<b>bold</b>plain<i>italic</i>plain
178 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
179 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
180 </li><li> plain<i><b>bold-italic</b>italic</i>plain
181 </li><li> plain<b><i>bold-italic</i>bold</b>plain
182 </li><li> plain<i>italic<b>bold-italic</b></i>plain
183 </li><li> plain<b>bold<i>bold-italic</i></b>plain
184 </li><li> plain l'<i>italic</i>plain
185 </li><li> plain l'<b>bold</b> plain
191 ### 2-quote opening sequence tests
194 Italics and bold: 2-quote opening sequence: (2,2)
204 Italics and bold: 2-quote opening sequence: (2,3)
214 Italics and bold: 2-quote opening sequence: (2,4)
224 Italics and bold: 2-quote opening sequence: (2,5)
234 ### 3-quote opening sequence tests
238 Italics and bold: 3-quote opening sequence: (3,2)
248 Italics and bold: 3-quote opening sequence: (3,3)
258 Italics and bold: 3-quote opening sequence: (3,4)
268 Italics and bold: 3-quote opening sequence: (3,5)
278 ### 4-quote opening sequence tests
282 Italics and bold: 4-quote opening sequence: (4,2)
292 Italics and bold: 4-quote opening sequence: (4,3)
302 Italics and bold: 4-quote opening sequence: (4,4)
312 Italics and bold: 4-quote opening sequence: (4,5)
322 ### 5-quote opening sequence tests
326 Italics and bold: 5-quote opening sequence: (5,2)
336 Italics and bold: 5-quote opening sequence: (5,3)
346 Italics and bold: 5-quote opening sequence: (5,4)
350 <p><i><b>foo'</b></i>
356 Italics and bold: 5-quote opening sequence: (5,5)
365 ### multiple quote sequences in a line
368 Italics and bold: multiple quote sequences: (2,4,2)
372 <p><i>foo'<b>bar</b></i>
378 Italics and bold: multiple quote sequences: (2,4,3)
382 <p><i>foo'<b>bar</b></i>
388 Italics and bold: multiple quote sequences: (2,4,4)
392 <p><i>foo'<b>bar'</b></i>
398 Italics and bold: multiple quote sequences: (3,4,2)
408 Italics and bold: multiple quote sequences: (3,4,3)
417 ### other quote tests
420 Italics and bold: other quote tests: (2,3,5)
422 ''this is about '''foo's family'''''
424 <p><i>this is about <b>foo's family</b></i>
430 Italics and bold: other quote tests: (2,(3,3),2)
432 ''this is about '''foo's''' family''
434 <p><i>this is about <b>foo's</b> family</i>
440 Italics and bold: other quote tests: (3,2,3,2)
442 '''this is about ''foo'''s family''
444 <p><b>this is about <i>foo</i></b><i>s family</i>
450 Italics and bold: other quote tests: (3,2,3,3)
452 '''this is about ''foo'''s family'''
454 <p>'<i>this is about </i>foo<b>s family</b>
461 Italics and bold: other quote tests: (3,(2,2),3)
463 '''this is about ''foo's'' family'''
465 <p><b>this is about <i>foo's</i> family</b>
470 ### <nowiki> test cases
474 <nowiki> unordered list
476 <nowiki>* This is not an unordered list item.</nowiki>
478 <p>* This is not an unordered list item.
485 <nowiki>Lorem ipsum dolor
506 :There is not nowiki.
507 :There is <nowiki>nowiki</nowiki>.
509 #There is not nowiki.
510 #There is <nowiki>nowiki</nowiki>.
512 *There is not nowiki.
513 *There is <nowiki>nowiki</nowiki>.
515 <dl><dd>There is not nowiki.
516 </dd><dd>There is nowiki.
518 <ol><li>There is not nowiki.
519 </li><li>There is nowiki.
521 <ul><li>There is not nowiki.
522 </li><li>There is nowiki.
534 <!-- comment 1 --> asdf
536 <!-- comment 1 --> asdf
539 <!-- comment 1 --> asdf
540 <!-- comment 2 -->xyz
542 <!-- comment 1 --> asdf
543 <!-- comment 2 --> xyz
599 asdf<!-- comment 1 -->jkl
609 <!-- foo --> b <!-- bar -->
623 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
629 Comment semantics and delimiters
631 <!-- --><!----><!-----><!------>
637 Comment semantics and delimiters, redux
639 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
640 -- foo -- funky huh? ... -->
646 Comment semantics and delimiters: directors cut
648 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
649 everything starting with < followed by !-- until the first -- and > we see,
650 that wouldn't be valid XML however, since in XML -- has to terminate a comment
658 Comment semantics: nesting
660 <!--<!-- no, we're not going to do anything fancy here -->-->
667 Comment semantics: unclosed comment at end
669 <!--This comment will run out to the end of the document
675 Comment in template title
684 Comment on its own line post-expand
696 Comment on its own line post-expand with non-significant whitespace
708 ### paragraph wraping tests
722 Block tag on one line
734 Block tag on both lines
746 Multiple lines without block tags
764 ### Preformatted text
773 And a [[Main Page|link]]
779 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
784 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
801 Regression with preformatted in <center>
814 # Expected output in the following test is not really expected (there should be
815 # <pre> in the output) -- it's only testing for well-formedness.
817 Bug 6200: Preformatted in <blockquote>
830 <pre> with attributes (bug 3202)
832 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
834 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
839 <pre> with width attribute (bug 3202)
841 <pre width="8">Narrow screen goodies</pre>
843 <pre width="8">Narrow screen goodies</pre>
848 <pre> with forbidden attribute (bug 3202)
850 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
852 <pre width="8">Narrow screen goodies</pre>
857 <pre> with forbidden attribute values (bug 3202)
859 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
861 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
866 <nowiki> inside <pre> (bug 13238)
874 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
882 <pre><nowiki>Foo</nowiki></pre>
887 <nowiki> and <pre> preference (first one wins)
920 <nowiki></pre></nowiki>
927 Templates: Pre: 1a. Templates that break a line should suppress <pre>
935 Templates: Pre: 1b. Templates that break a line should suppress <pre>
945 Templates: Pre: 1c: Wrapping should be based on expanded content
957 Templates: Pre: 1d: Wrapping should be based on expanded content
978 Templates: Pre: 1e. Wrapping should be based on expanded content
982 {{echo| foo}}{{echo| bar}}
987 {{echo|<!--cmt--> foo}}
989 <!--cmt-->{{echo| foo}}
991 {{echo|{{echo| }}bar}}
1009 Templates: Pre: 1f: Wrapping should be based on expanded content
1046 Templates: Strip whitespace from named parameters, but not positional ones
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
2761 Plain link, capitalized
2765 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2770 Plain link, uncapitalized
2774 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2781 [[Main Page|The Main Page]]
2783 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2792 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2797 Broken link with fragment
2799 [[Zigzagzogzagzig#zug]]
2801 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2806 Special page link with fragment
2808 [[Special:Version#anchor]]
2810 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2815 Nonexistent special page link with fragment
2817 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2819 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2826 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2828 <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>
2835 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2837 <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>!!!
2842 Link with 3 brackets
2851 Piped link with 3 brackets
2853 [[[main page|the main page]]]
2855 <p>[[[main page|the main page]]]
2860 Link with multiple pipes
2862 [[Main Page|The|Main|Page]]
2864 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2871 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2873 <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>
2878 Piped link to namespace
2880 [[Meta:Disclaimers|The disclaimers]]
2882 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2889 [[Usually caused by a typo (oops}]]
2891 <p>[[Usually caused by a typo (oops}]]
2896 Link containing % (not as a hex sequence)
2900 <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>
2905 Link containing % as a single hex sequence interpreted to char
2909 <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>
2914 Link containing % as a double hex sequence interpreted to hex sequence
2918 <p>[[7%2525 Solution]]
2923 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2924 Example for such a section: == < ==
2926 [[%23%3c]][[%23%3e]]
2928 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2933 Link containing "<#" and ">#" as a hex sequences
2935 [[%3c%23]][[%3e%23]]
2937 <p>[[%3c%23]][[%3e%23]]
2942 Link containing double-single-quotes '' (bug 4598)
2944 [[Lista d''e paise d''o munno]]
2946 <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>
2951 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2953 Some [[Link|pretty ''italics'' and stuff]]!
2955 <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>!
2960 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2962 ''Some [[Link|pretty ''italics'' and stuff]]!
2964 <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>
2969 Link with double quotes in title part (literal) and alternate part (interpreted)
2971 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2975 [[''Pentecoste''|Pentecoste]]
2977 [[''Pentecoste''|''Pentecoste'']]
2979 <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>
2980 </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>
2981 </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>
2982 </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>
2987 Broken image links with HTML captions (bug 39700)
2989 [[File:Nonexistent|<script></script>]]
2990 [[File:Nonexistent|100px|<script></script>]]
2991 [[File:Nonexistent|<]]
2992 [[File:Nonexistent|a<i>b</i>c]]
2994 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2995 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2996 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2997 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3004 [[http://www.example.com]]
3006 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3011 Plain link to URL with link text
3013 [[http://www.example.com Link text]]
3015 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3020 Plain link to protocol-relative URL
3022 [[//www.example.com]]
3024 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3029 Plain link to protocol-relative URL with link text
3031 [[//www.example.com Link text]]
3033 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3038 # I'm fairly sure the expected result here is wrong.
3039 # We want these to be URL links, not pseudo-pages with URLs for titles....
3040 # However the current output is also pretty screwy.
3043 # I'm changing it to match the current output--it arguably makes more
3044 # sense in the light of the test above. Old expected result was:
3045 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3047 # But I think this test is bordering on "garbage in, garbage out" anyway.
3052 Piped link to URL: [[http://www.example.com|an example URL]]
3054 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3059 BUG 2: [[page|http://url/]] should link to page, not http://url/
3061 [[Main Page|http://url/]]
3063 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3068 BUG 337: Escaped self-links should be bold
3072 [[Bug462]] [[Bug462]]
3074 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3079 Self-link to section should not be bold
3083 [[Main Page#section]]
3085 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3096 Self-link to numeric title
3102 <p><strong class="selflink">0</strong>
3107 Link to numeric-equivalent title
3113 <p><a href="/wiki/00" title="00">00</a>
3118 <nowiki> inside a link
3120 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3122 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3127 Non-breaking spaces in title
3129 [[ Main Page ]]
3131 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3136 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3142 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3147 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3153 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3158 Internal link with en linktrail: no apostrophes (bug 27473)
3164 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3169 Internal link with ca linktrail with apostrophes (bug 27473)
3175 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3180 Internal link with kaa linktrail with apostrophes (bug 27473)
3186 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3191 ### Interwiki links (see maintenance/interwiki.sql)
3195 Inline interwiki link
3197 [[MeatBall:SoftSecurity]]
3199 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3204 Inline interwiki link with empty title (bug 2372)
3208 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3213 Interwiki link encoding conversion (bug 1636)
3215 *[[Wikipedia:ro:Olteniţa]]
3216 *[[Wikipedia:ro:Olteniţa]]
3218 <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>
3219 </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>
3225 Interwiki link with fragment (bug 2130)
3227 [[MeatBall:SoftSecurity#foo]]
3229 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3244 Double interlanguage link
3255 Interlanguage link, with prefix links
3267 Double interlanguage link, with prefix links (bug 8897)
3280 Parsoid-specific test: Wikilinks with should RT properly
3286 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3304 Broken br tag sanitization
3313 Incorrecly removing closing slashes from correctly formed XHTML
3315 <br style="clear:both;" />
3317 <p><br style="clear:both;" />
3322 Failing to transform badly formed HTML into correct XHTML
3324 <br style="clear: left;">
3325 <br style="clear: right;">
3326 <br style="clear: both;">
3328 <p><br style="clear: left;" />
3329 <br style="clear: right;" />
3330 <br style="clear: both;" />
3335 Handling html with a div self-closing tag
3344 <p><div title />
3348 <p><div title=bar />
3349 <div title=bar/>
3351 <div title="bar/"></div>
3357 Handling html with a br self-closing tag
3366 <p><br title="title" />
3367 <br title="title" />
3376 Horizontal ruler (should it add that extra space?)
3390 Horizontal ruler -- 4+ dashes render hr
3399 Horizontal ruler -- eats additional dashes on the same line
3408 Horizontal ruler -- does not collaps dashes on consecutive lines
3419 Horizontal ruler -- <4 dashes render as plain text
3428 ### Block-level elements
3451 <ol><li>Numbered list
3468 ***#Number on level 4
3470 **#Number on level 3
3471 **#Number on level 3
3475 #** Level 3, but ordered
3478 <ol><li> with numbers
3480 <ul><li> and bullets
3482 <ol><li> and numbers
3484 </li><li>bullets again
3485 <ul><li>bullet level 2
3486 <ul><li>bullet level 3
3487 <ol><li>Number on level 4
3490 </li><li>bullet level 2
3491 <ol><li>Number on level 3
3492 </li><li>Number on level 3
3495 <ol><li>number level 2
3498 <ul><li><ul><li> Level 3
3502 <ol><li><ul><li><ul><li> Level 3, but ordered
3536 Nested lists 3 (first element empty)
3549 Nested lists 4 (first element empty)
3562 Nested lists 5 (both elements empty)
3575 Nested lists 6 (both elements empty)
3588 Nested lists 7 (skip initial nesting levels)
3592 <ul><li><ul><li><ul><li> foo
3600 Nested lists 8 (multiple nesting transitions)
3608 <ul><li><ul><li> bar
3618 1. Lists with start-of-line-transparent tokens before bullets: Comments
3632 2. Lists with start-of-line-transparent tokens before bullets: Template close
3644 List items are not parsed correctly following a <pre> block (bug 785)
3650 <ul><li> <pre>foo</pre>
3651 </li><li> <pre>bar</pre>
3658 List items from template
3669 * notSOL{{inner list}}
3688 List interrupted by empty line or heading
3698 <ul><li><ul><li> bar
3701 <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>
3702 <ul><li> Another list item
3713 Magic Word: {{CURRENTDAY}}
3722 Magic Word: {{CURRENTDAY2}}
3731 Magic Word: {{CURRENTDAYNAME}}
3740 Magic Word: {{CURRENTDOW}}
3749 Magic Word: {{CURRENTMONTH}}
3758 Magic Word: {{CURRENTMONTHABBREV}}
3760 {{CURRENTMONTHABBREV}}
3767 Magic Word: {{CURRENTMONTHNAME}}
3769 {{CURRENTMONTHNAME}}
3776 Magic Word: {{CURRENTMONTHNAMEGEN}}
3778 {{CURRENTMONTHNAMEGEN}}
3785 Magic Word: {{CURRENTTIME}}
3794 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3803 Magic Word: {{CURRENTYEAR}}
3812 Magic Word: {{FULLPAGENAME}}
3814 title=[[User:Ævar Arnfjörð Bjarmason]]
3818 <p>User:Ævar Arnfjörð Bjarmason
3823 Magic Word: {{FULLPAGENAMEE}}
3825 title=[[User:Ævar Arnfjörð Bjarmason]]
3829 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3834 Magic Word: {{NAMESPACE}}
3836 title=[[User:Ævar Arnfjörð Bjarmason]]
3845 Magic Word: {{NAMESPACEE}}
3847 title=[[User:Ævar Arnfjörð Bjarmason]]
3856 Magic Word: {{NAMESPACENUMBER}}
3858 title=[[User:Ævar Arnfjörð Bjarmason]]
3867 Magic Word: {{NUMBEROFFILES}}
3876 Magic Word: {{PAGENAME}}
3878 title=[[User:Ævar Arnfjörð Bjarmason]]
3882 <p>Ævar Arnfjörð Bjarmason
3887 Magic Word: {{PAGENAME}} with metacharacters
3889 title=[['foo & bar = baz']]
3893 <p><i>'foo & bar = baz'</i>
3898 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3900 title=[[*RFC 1234 http://example.com/]]
3904 <p>*RFC 1234 http://example.com/
3909 Magic Word: {{PAGENAMEE}}
3911 title=[[User:Ævar Arnfjörð Bjarmason]]
3915 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3920 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3922 title=[[*RFC 1234 http://example.com/]]
3926 <p>*RFC_1234_http://example.com/
3931 Magic Word: {{REVISIONID}}
3940 Magic Word: {{SCRIPTPATH}}
3949 Magic Word: {{SERVER}}
3953 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3958 Magic Word: {{SERVERNAME}}
3967 Magic Word: {{SITENAME}}
3976 Namespace 1 {{ns:1}}
3985 Namespace 1 {{ns:01}}
3994 Namespace 0 {{ns:0}} (bug 4783)
4002 Namespace 0 {{ns:00}} (bug 4783)
4010 Namespace -1 {{ns:-1}}
4019 Namespace User {{ns:User}}
4028 Namespace User talk {{ns:User_talk}}
4037 Namespace User talk {{ns:uSeR tAlK}}
4046 Namespace File {{ns:File}}
4055 Namespace File {{ns:Image}}
4064 Namespace (lang=de) Benutzer {{ns:User}}
4075 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4081 <p>Benutzer Diskussion
4089 {{urlencode:hi world?!}}
4090 {{urlencode:hi world?!|WIKI}}
4091 {{urlencode:hi world?!|PATH}}
4092 {{urlencode:hi world?!|QUERY}}
4105 Magic links: internal link to RFC (bug 479)
4109 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4114 Magic links: RFC (bug 479)
4118 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4123 Magic links: ISBN (bug 1937)
4127 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4132 Magic links: PMID incorrectly converts space to underscore
4136 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4145 Nonexistent template
4147 {{thistemplatedoesnotexist}}
4149 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4156 This is a test template
4164 <p>This is a test template
4169 Template with explicit namespace
4173 <p>This is a test template
4181 This is a test template with parameter {{{param}}}
4187 {{paramtest|param=foo}}
4189 <p>This is a test template with parameter foo
4194 Template:paramtestnum
4200 Template unnamed parameter
4202 {{paramtestnum|Main Page|the main page}}
4204 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4209 Template:templatesimple
4215 Template:templateredirect
4217 #redirect [[Template:templatesimple]]
4221 Template:templateasargtestnum
4227 Template:templateasargtest
4229 {{template{{{templ}}}}}
4233 Template:templateasargtest2
4239 Template with template name as unnamed argument
4241 {{templateasargtestnum|templatesimple}}
4248 Template with template name as argument
4250 {{templateasargtest|templ=simple}}
4257 Template with template name as argument (2)
4259 {{templateasargtest2|templ=templatesimple}}
4266 Template:templateasargtestdefault
4268 {{{{{templ|templatesimple}}}}}
4278 Template with default value
4280 {{templateasargtestdefault}}
4287 Template with default value (value set)
4289 {{templateasargtestdefault|templ=templa}}
4298 {{templateredirect}}
4305 Template with argument in separate line
4307 {{ templateasargtest |
4315 Template with complex template as argument
4318 param ={{ templateasargtest |
4321 <p>This is a test template with parameter (test)
4326 Template with thumb image (with link in description)
4329 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4331 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>
4336 Template:complextemplate
4338 {{{1}}} {{paramtest|
4339 param ={{{param}}}}}
4343 Template with complex arguments
4346 param ={{ templateasargtest |
4347 templ = simple }}|[[Template:complextemplate|link]]}}
4349 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4354 BUG 553: link with two variables in a piped link
4357 |[[{{{1}}}|{{{2}}}]]
4362 <td>[[{{{1}}}|{{{2}}}]]
4368 Magic variable as template parameter
4370 {{paramtest|param={{SITENAME}}}}
4372 <p>This is a test template with parameter MediaWiki
4379 [[{{{param}}}|link]]
4383 Template parameter as link source
4385 {{linktest|param=Main Page}}
4387 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4392 Template-generated attribute string (k='v')
4394 <span {{attr_str|id|v1}}>bar</span>
4396 <p><span id="v1">bar</span>
4403 including another template, {{paramtest|param={{{arg}}}}}
4407 Template passing argument to another template
4409 {{paramtest2|arg='hmm'}}
4411 <p>including another template, This is a test template with parameter 'hmm'
4422 Template as link source
4426 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4444 Template infinite loop
4448 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4453 Template from main namespace
4472 BUG 529: Template with table, not included at beginning of line
4491 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4511 BUG 41: Template parameters shown as broken links
4523 ''None'' of '''this''' should be
4525 but rather passed unmodified
4529 # hmm, fix this or just deprecate msgnw and document its behavior?
4535 {{msgnw:MSGNW test}}
4537 <p>''None'' of '''this''' should be
4539 but rather passed unmodified
4547 {{int:youhavenewmessages|lots of money|not!}}
4549 <p>You have lots of money (not!).
4556 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4560 <includeonly> and <noinclude> being included
4571 <onlyinclude>Foo</onlyinclude>bar
4575 <onlyinclude> being included
4587 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4591 <onlyinclude> and <includeonly> being included
4600 <includeonly> and <noinclude> on a page
4602 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4609 <onlyinclude> on a page
4611 <onlyinclude>Foo</onlyinclude>bar
4618 Template:Includeonly section
4621 ==Includeonly section==
4627 Bug 6563: Edit link generation for section shown by <includeonly>
4629 {{includeonly section}}
4631 <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>
4632 <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>
4636 # Uses same input as the contents of [[Template:Includeonly section]]
4638 Bug 6563: Section extraction for section shown by <includeonly>
4643 ==Includeonly section==
4651 Bug 6563: Edit link generation for section suppressed by <includeonly>
4654 ==Includeonly section==
4658 <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>
4663 Bug 6563: Section extraction for section suppressed by <includeonly>
4668 ==Includeonly section==
4676 ### <includeonly> and <noinclude> in attributes
4679 0. includeonly around the entire attribute
4681 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4683 <p><span id="v2">bar</span>
4688 1. includeonly in html attr key
4690 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4692 <p><span id="foo">bar</span>
4697 2. includeonly in html attr value
4699 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4700 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4702 <p><span id="v1">bar</span>
4703 <span id="v1">bar</span>
4708 3. includeonly in part of an attr value
4710 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4712 <p><span style="color:red;">bar</span>
4717 ### Testing parsing of templates where a template arg
4718 ### has the same name as the template itself.
4728 Templates: Template Name/Arg clash: 1. Use of positional param
4737 Templates: Template Name/Arg clash: 2. Use of named param
4746 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4755 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4759 Templates: 1. Simple use
4768 Templates: 2. Inside a block tag
4770 <div>{{echo|Foo}}</div>
4777 Templates: P-wrapping: 1a. Templates on consecutive lines
4788 Templates: P-wrapping: 1b. Templates on consecutive lines
4802 Templates: P-wrapping: 1c. Templates on consecutive lines
4805 {{echo|bar}} <div>baz</div>
4814 Templates: Inline Text: 1. Multiple tmeplate uses
4816 {{echo|Foo}}bar{{echo|baz}}
4823 Templates: Inline Text: 2. Back-to-back template uses
4825 {{echo|Foo}}{{echo|bar}}
4832 Templates: Block Tags: 1. Multiple template uses
4834 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4836 <div>Foo</div><div>bar</div><div>baz</div>
4841 Templates: Block Tags: 2. Back-to-back template uses
4843 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4845 <div>Foo</div><div>bar</div>
4850 Templates: Links: 1. Simple example
4852 {{echo|[[Foo|bar]]}}
4854 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4859 Templates: Links: 2. Generation of link href
4861 [[{{echo|Foo}}|bar]]
4863 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4868 Templates: Links: 3. Generation of part of a link href
4870 [[Fo{{echo|o}}|bar]]
4872 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4877 Templates: Links: 4. Multiple templates generating link href
4879 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4881 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4886 Templates: Links: 5. Generation of link text
4888 [[Foo|{{echo|bar}}]]
4890 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4895 Templates: Links: 5. Nested templates (only outermost template should be marked)
4897 {{echo|[[{{echo|Foo}}|bar]]}}
4899 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4904 Templates: HTML Tag: 1. Generation of HTML attr. key
4906 <div {{echo|style}}="color:red;">foo</div>
4908 <div style="color:red;">foo</div>
4913 Templates: HTML Tag: 2. Generation of HTML attr. value
4915 <div style={{echo|'color:red;'}}>foo</div>
4917 <div style="color:red;">foo</div>
4922 Templates: HTML Tag: 3. Generation of HTML attr key and value
4924 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4926 <div style="color:red;">foo</div>
4931 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4933 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4935 <div title="This is a long title with just one piece templated">foo</div>
4940 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4942 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4944 <div title="This is a long title with just one piece templated">foo</div>
4949 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4951 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4953 <div title="This is a long title with just one piece templated">foo</div>
4958 Templates: HTML Tables: 1. Generating start of a HTML table
4960 {{echo|<table><tr><td>foo</td>}}</tr></table>
4962 <table><tr><td>foo</td></tr></table>
4967 Templates: HTML Tables: 2a. Generating middle of a HTML table
4969 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4971 <table><tr><td>foo</td></tr></table>
4976 Templates: HTML Tables: 2b. Generating middle of a HTML table
4978 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4980 <table><tr><td>foo</td></tr></table>
4985 Templates: HTML Tables: 3. Generating end of a HTML table
4987 <table><tr>{{echo|<td>foo</td></tr></table>}}
4989 <table><tr><td>foo</td></tr></table>
4994 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4996 {{echo|<table>}}<tr><td>foo</td></tr></table>
4998 <table><tr><td>foo</td></tr></table>
5003 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5005 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5007 <table><tr><td>foo</td></tr></table>
5012 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5014 <table><tr>{{echo|<td>}}foo</td></tr></table>
5016 <table><tr><td>foo</td></tr></table>
5021 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5023 <table><tr><td>foo{{echo|</td>}}</tr></table>
5025 <table><tr><td>foo</td></tr></table>
5030 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5032 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5034 <table><tr><td>foo</td></tr></table>
5039 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5041 <table><tr><td>foo</td></tr>{{echo|</table>}}
5043 <table><tr><td>foo</td></tr></table>
5048 Templates: Wiki Tables: 1. Fostering of entire template content
5056 <tr><td></td></tr></table>
5061 Templates: Wiki Tables: 2. Fostering of partial template content
5071 <tr><td></td></tr></table>
5076 Templates: Wiki Tables: 3. td-content via multiple templates
5079 {{echo|{{pipe}}a}}{{echo|b}}
5090 Templates: Lists: Multi-line list-items via templates
5092 *{{echo|a {{nonexistent|
5094 *{{echo|b {{nonexistent|
5097 <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>
5098 </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>
5104 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5106 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5108 <p><i>ab</i>c<i>d</i>e
5113 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5114 (PHP parser generates misnested html)
5118 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5120 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5124 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5125 (PHP parser generates misnested html)
5129 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5132 <div><i>b</i>c<i>d</i></div>
5137 Templates: Ugly nesting: 4. Divs opened/closed across templates
5139 a<div>b{{echo|c</div>d}}e
5146 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5152 |{{echo|foo</table>}}
5156 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5157 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5158 bar</span><span about="#mwt1">
5163 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5173 <td>1. {{echo|foo </table>}}</td>
5175 <td>2. {{echo|baz </table>}}</td>
5188 <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">
5189 <tbody><tr data-parsoid="{"stx":"html"}">
5190 <td data-parsoid="{"stx":"html"}">
5191 <table data-parsoid="{"stx":"html"}">
5192 <tbody><tr data-parsoid="{"stx":"html"}">
5193 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5194 <td data-parsoid="{"stx":"html"}"> bar </td>
5195 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5196 </span><span about="#mwt1">
5198 abc</span><span about="#mwt1">
5199 </span><span about="#mwt1">
5200 </span><span about="#mwt1">
5201 </span><span about="#mwt1">
5202 </span><span about="#mwt1">
5204 xyz</span><span about="#mwt1">
5205 </span><span about="#mwt1">
5210 Parser Functions: 1. Simple example
5219 Parser Functions: 2. Nested use (only outermost should be marked up)
5228 ### Pre-save transform tests
5231 pre-save transform: subst:
5237 This is a test template
5241 pre-save transform: normal template
5251 pre-save transform: nonexistent template
5255 {{thistemplatedoesnotexist}}
5257 {{thistemplatedoesnotexist}}
5262 pre-save transform: subst magic variables
5271 # This is bug 89, which I fixed. -- wtm
5273 pre-save transform: subst: templates with parameters
5277 {{subst:paramtest|param="something else"}}
5279 This is a test template with parameter "something else"
5285 <nowiki>'''not wiki'''</nowiki>
5289 pre-save transform: nowiki in subst (bug 1188)
5293 {{subst:nowikitest}}
5295 <nowiki>'''not wiki'''</nowiki>
5300 Template:commenttest
5302 This template has <!-- a comment --> in it.
5306 pre-save transform: comment in subst (bug 1936)
5310 {{subst:commenttest}}
5312 This template has <!-- a comment --> in it.
5316 pre-save transform: unclosed tag
5320 <nowiki>'''not wiki'''
5322 <nowiki>'''not wiki'''
5326 pre-save transform: mixed tag case
5330 <NOwiki>'''not wiki'''</noWIKI>
5332 <NOwiki>'''not wiki'''</noWIKI>
5336 pre-save transform: unclosed comment in <nowiki>
5340 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5342 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5348 <span onmouseover="alert('crap')">Oh no</span>
5352 (confirming safety of fix for subst bug 1936)
5354 {{Template:dangerous}}
5356 <p><span>Oh no</span>
5361 pre-save transform: comment containing gallery (bug 5024)
5365 <!-- <gallery>data</gallery> -->
5367 <!-- <gallery>data</gallery> -->
5371 pre-save transform: comment containing extension
5375 <!-- <tag>data</tag> -->
5377 <!-- <tag>data</tag> -->
5381 pre-save transform: comment containing nowiki
5385 <!-- <nowiki>data</nowiki> -->
5387 <!-- <nowiki>data</nowiki> -->
5391 pre-save transform: <noinclude> in subst (bug 3298)
5401 pre-save transform: <onlyinclude> in subst (bug 3298)
5413 {{<includeonly>subst:</includeonly>Includes}}
5417 Template:SafeSubstTest
5419 {{<includeonly>safesubst:</includeonly>Includes}}
5423 bug 22297: safesubst: works during PST
5427 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5433 bug 22297: safesubst: works during normal parse
5442 subst: does not work during normal parse
5446 <p>{{subst:Includes}}
5451 pre-save transform: context links ("pipe trick")
5455 [[Article (context)|]]
5458 [[Bar:Article (context)|]]
5459 [[:Bar:Article (context)|]]
5461 [[|Article (context)]]
5465 [[Article (context)|Article]]
5466 [[Bar:Article|Article]]
5467 [[:Bar:Article|Article]]
5468 [[Bar:Article (context)|Article]]
5469 [[:Bar:Article (context)|Article]]
5471 [[Article (context)]]
5472 [[Bar:X (Y) Z|X (Y) Z]]
5473 [[:Bar:X (Y) Z|X (Y) Z]]
5477 pre-save transform: context links ("pipe trick") with interwiki prefix
5481 [[interwiki:Article|]]
5482 [[:interwiki:Article|]]
5483 [[interwiki:Bar:Article|]]
5484 [[:interwiki:Bar:Article|]]
5486 [[interwiki:Article|Article]]
5487 [[:interwiki:Article|Article]]
5488 [[interwiki:Bar:Article|Bar:Article]]
5489 [[:interwiki:Bar:Article|Bar:Article]]
5493 pre-save transform: context links ("pipe trick") with parens in title
5495 pst title=[[Somearticle (context)]]
5499 [[Article (context)|Article]]
5503 pre-save transform: context links ("pipe trick") with comma in title
5505 pst title=[[Someplace, Somewhere]]
5508 [[Otherplace, Elsewhere|]]
5509 [[Otherplace, Elsewhere, Anywhere|]]
5511 [[Otherplace, Somewhere|Otherplace]]
5512 [[Otherplace, Elsewhere|Otherplace]]
5513 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5517 pre-save transform: context links ("pipe trick") with parens and comma
5519 pst title=[[Someplace (IGNORED), Somewhere]]
5522 [[Otherplace (place), Elsewhere|]]
5524 [[Otherplace, Somewhere|Otherplace]]
5525 [[Otherplace (place), Elsewhere|Otherplace]]
5529 pre-save transform: context links ("pipe trick") with comma and parens
5531 pst title=[[Who, me? (context)]]
5534 [[Me, Myself, and I (1937 song)|]]
5536 [[Yes, you. (context)|Yes, you.]]
5537 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5541 pre-save transform: context links ("pipe trick") with namespace
5543 pst title=[[Ns:Somearticle]]
5547 [[Ns:Article|Article]]
5551 pre-save transform: context links ("pipe trick") with namespace and parens
5553 pst title=[[Ns:Somearticle (context)]]
5557 [[Ns:Article (context)|Article]]
5561 pre-save transform: context links ("pipe trick") with namespace and comma
5563 pst title=[[Ns:Somearticle, Context, Whatever]]
5567 [[Ns:Article, Context, Whatever|Article]]
5571 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5573 pst title=[[Ns:Somearticle, Context (context)]]
5577 [[Ns:Article (context)|Article]]
5581 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5583 pst title=[[Ns:Somearticle (IGNORED), Context]]
5587 [[Ns:Article, Context|Article]]
5591 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5595 [[Article(context)|]]
5596 [[Bar:Article(context)|]]
5597 [[:Bar:Article(context)|]]
5598 [[|Article(context)]]
5602 [[Article(context)|Article]]
5603 [[Bar:Article(context)|Article]]
5604 [[:Bar:Article(context)|Article]]
5605 [[Article(context)]]
5607 [[:Bar:X(Y)Z|X(Y)Z]]
5611 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5615 [[Article (context)|]]
5616 [[Bar:Article (context)|]]
5617 [[:Bar:Article (context)|]]
5618 [[|Article (context)]]
5622 [[Article (context)|Article]]
5623 [[Bar:Article (context)|Article]]
5624 [[:Bar:Article (context)|Article]]
5625 [[Article (context)]]
5626 [[Bar:X (Y) Z|X (Y) Z]]
5627 [[:Bar:X (Y) Z|X (Y) Z]]
5631 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5635 [[Article(context)|]]
5636 [[Bar:Article(context)|]]
5637 [[:Bar:Article(context)|]]
5638 [[|Article(context)]]
5642 [[Article(context)|Article]]
5643 [[Bar:Article(context)|Article]]
5644 [[:Bar:Article(context)|Article]]
5645 [[Article(context)]]
5647 [[:Bar:X(Y)Z|X(Y)Z]]
5651 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5655 [[Article (context), context|]]
5656 [[Article (context),context|]]
5657 [[Bar:Article (context), context|]]
5658 [[Bar:Article (context),context|]]
5659 [[:Bar:Article (context), context|]]
5660 [[:Bar:Article (context),context|]]
5662 [[Article (context), context|Article]]
5663 [[Article (context),context|Article]]
5664 [[Bar:Article (context), context|Article]]
5665 [[Bar:Article (context),context|Article]]
5666 [[:Bar:Article (context), context|Article]]
5667 [[:Bar:Article (context),context|Article]]
5671 pre-save transform: trim trailing empty lines
5675 Empty lines are trimmed
5681 Empty lines are trimmed
5685 pre-save transform: Signature expansion
5690 * <noinclude>~~~</noinclude>
5691 * <includeonly>~~~</includeonly>
5692 * <onlyinclude>~~~</onlyinclude>
5694 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5695 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5696 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5697 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5702 pre-save transform: Signature expansion in nowiki tags (bug 93)
5708 <nowiki>~~~~</nowiki>
5710 <includeonly><nowiki>~~~~</nowiki></includeonly>
5712 <noinclude><nowiki>~~~~</nowiki></noinclude>
5714 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5716 {{subst:Foo}} shall be converted to FOO
5718 As well as inside noinclude/onlyinclude
5719 <noinclude>{{subst:Foo}}</noinclude>
5720 <onlyinclude>{{subst:Foo}}</onlyinclude>
5722 But not inside includeonly
5723 <includeonly>{{subst:Foo}}</includeonly>
5727 <nowiki>~~~~</nowiki>
5729 <includeonly><nowiki>~~~~</nowiki></includeonly>
5731 <noinclude><nowiki>~~~~</nowiki></noinclude>
5733 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5735 FOO shall be converted to FOO
5737 As well as inside noinclude/onlyinclude
5738 <noinclude>FOO</noinclude>
5739 <onlyinclude>FOO</onlyinclude>
5741 But not inside includeonly
5742 <includeonly>{{subst:Foo}}</includeonly>
5746 ### Message transform tests
5749 message transform: magic variables
5759 message transform: should not transform wiki markup
5769 message transform: <noinclude> in transcluded template (bug 4926)
5779 message transform: <onlyinclude> in transcluded template (bug 4926)
5789 {{#special:}} page name, known
5793 {{#special:Recentchanges}}
5795 Special:RecentChanges
5799 {{#special:}} page name with subpage, known
5803 {{#special:Recentchanges/param}}
5805 Special:RecentChanges/param
5809 {{#special:}} page name, unknown
5813 {{#special:foobarnonexistent}}
5815 No such special page
5819 {{#speciale:}} page name, known
5823 {{#speciale:Recentchanges}}
5825 Special:RecentChanges
5829 {{#speciale:}} page name with subpage, known
5833 {{#speciale:Recentchanges/param}}
5835 Special:RecentChanges/param
5839 {{#speciale:}} page name, unknown
5843 {{#speciale:foobarnonexistent}}
5845 No_such_special_page
5854 [[Image:foobar.jpg]]
5856 <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>
5863 [[Image:foobar.jpg|right]]
5865 <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>
5870 Simple image (using File: namespace, now canonical)
5874 <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>
5881 [[Image:foobar.jpg|right|Caption text]]
5883 <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>
5888 Image with empty attribute
5890 [[Image:foobar.jpg|right||Caption text]]
5892 <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>
5897 Image with link tails
5899 123[[Image:foobar.jpg]]456
5900 123[[Image:foobar.jpg|right]]456
5901 123[[Image:foobar.jpg|thumb]]456
5903 <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
5905 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
5906 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
5911 Image with multiple captions -- only last one is accepted
5913 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5915 <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>
5920 Image with link parameter, wiki target
5922 [[Image:foobar.jpg|link=Target page]]
5924 <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>
5929 Image with link parameter, URL target
5931 [[Image:foobar.jpg|link=http://example.com/]]
5933 <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>
5938 Image with link parameter, wgExternalLinkTarget
5940 [[Image:foobar.jpg|link=http://example.com/]]
5942 wgExternalLinkTarget='foobar'
5944 <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>
5949 Image with link parameter, wgNoFollowLinks set to false
5951 [[Image:foobar.jpg|link=http://example.com/]]
5953 wgNoFollowLinks=false
5955 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5960 Image with link parameter, wgNoFollowDomainExceptions
5962 [[Image:foobar.jpg|link=http://example.com/]]
5964 wgNoFollowDomainExceptions='example.com'
5966 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5971 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5973 [[Image:foobar.jpg|link=http://example.com/|Title]]
5975 wgExternalLinkTarget='foobar'
5977 <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>
5982 Image with empty link parameter
5984 [[Image:foobar.jpg|link=]]
5986 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5991 Image with link parameter (wiki target) and unnamed parameter
5993 [[Image:foobar.jpg|link=Target page|Title]]
5995 <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>
6000 Image with link parameter (URL target) and unnamed parameter
6002 [[Image:foobar.jpg|link=http://example.com/|Title]]
6004 <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>
6009 Thumbnail image with link parameter
6011 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6013 <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>
6018 Image with frame and link
6020 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6022 <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>
6027 Image with frame and link and explicit alt
6029 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6031 <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>
6036 Image with wiki markup in implicit alt
6038 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6040 <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>
6045 Image with wiki markup in explicit alt
6047 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6049 <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>
6054 Link to image page- image page normally doesn't exists, hence edit link
6055 Add test with existing image page
6056 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6060 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6065 bug 18784 Link to non-existent image page with caption should use caption as link text
6067 [[:Image:test|caption]]
6069 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6074 Frameless image caption with a free URL
6076 [[Image:foobar.jpg|http://example.com]]
6078 <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>
6083 Thumbnail image caption with a free URL
6085 [[Image:foobar.jpg|thumb|http://example.com]]
6087 <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>
6092 Thumbnail image caption with a free URL and explicit alt
6094 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6096 <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>
6101 BUG 1887: A ISBN with a thumbnail
6103 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6105 <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>
6110 BUG 1887: A RFC with a thumbnail
6112 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6114 <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>
6119 BUG 1887: A mailto link with a thumbnail
6121 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6123 <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>
6127 # Pending resolution to bug 368
6129 BUG 648: Frameless image caption with a link
6131 [[Image:foobar.jpg|text with a [[link]] in it]]
6133 <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>
6138 BUG 648: Frameless image caption with a link (suffix)
6140 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6142 <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>
6147 BUG 648: Frameless image caption with an interwiki link
6149 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6151 <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>
6156 BUG 648: Frameless image caption with a piped interwiki link
6158 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6160 <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>
6165 Escape HTML special chars in image alt text
6167 [[Image:foobar.jpg|& < > "]]
6169 <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>
6174 BUG 499: Alt text should have Ӓ, not &1234;
6176 [[Image:foobar.jpg|♀]]
6178 <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>
6183 Broken image caption with link
6185 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6187 <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.
6192 Image caption containing another image
6194 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6196 <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>
6201 Image caption containing a newline
6203 [[Image:Foobar.jpg|This
6206 <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>
6212 Bug 3090: External links other than http: in image captions
6214 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6216 <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>
6223 [[Image:foobar.jpg|a|class=b]]
6225 <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>
6232 #REDIRECT [[File:Barfoo.jpg]]
6238 [[Image:Barfoo.jpg]]
6240 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6245 Missing image with uploads disabled
6249 [[Image:Foobaz.jpg]]
6251 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6260 Subpage test/subpage
6268 subpage title=[[Subpage test]]
6272 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6277 Subpage noslash link
6279 subpage title=[[Subpage test]]
6283 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6292 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6297 BUG 561: {{/Subpage}}
6299 subpage title=[[Page]]
6303 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6311 Category:MediaWiki User's Guide
6319 [[:Category:MediaWiki User's Guide]]
6321 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6330 [[Category:MediaWiki User's Guide]]
6332 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6336 PAGESINCATEGORY invalid title fatal (r33546 fix)
6338 {{PAGESINCATEGORY:<bogus>}}
6345 Category with different sort key
6349 [[Category:MediaWiki User's Guide|Foo]]
6351 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6355 Category with identical sort key
6359 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6361 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6365 Category with empty sort key
6370 [[Category:MediaWiki User's Guide|]]
6372 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6376 Category with empty sort key and parentheses
6381 [[Category:Foo (bar)|]]
6383 [[Category:Foo (bar)|Foo]]
6387 Category with link tail
6392 123[[Category:Foo]]456
6394 123[[Category:Foo]]456
6398 Category with template
6403 [[Category:{{echo|Foo}}]]
6405 [[Category:{{echo|Foo}}]]
6409 Category with template in sort key
6414 [[Category:Foo|{{echo|Bar}}]]
6416 [[Category:Foo|{{echo|Bar}}]]
6420 Category with template in sort key and title
6425 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6427 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6431 Category / paragraph interactions
6433 Foo [[Category:Baz]] Bar
6435 Foo [[Category:Baz]]
6443 [[Category:Baz]] Bar
6456 {{echo|[[Category:Baz]]}}
6471 ### Inter-language links
6474 Inter-language links
6480 [[zh:食品]]
6482 es:Alimento fr:Nourriture zh:食品
6486 Duplicate interlanguage links (bug 24502)
6502 Basic section headings
6509 ===Smaller headline===
6512 <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>
6515 <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>
6518 <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>
6524 Section headings with TOC
6527 === Subheadline 1 ===
6528 ===== Skipping a level =====
6529 ====== Skipping a level ======
6533 ===Another headline===
6535 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6537 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6539 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6541 <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>
6543 <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>
6550 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6552 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6557 <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>
6558 <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>
6559 <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>
6560 <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>
6561 <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>
6564 <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>
6568 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6570 Handling of sections up to level 6 and beyond
6573 == Level 2 Heading==
6574 === Level 3 Heading===
6575 ==== Level 4 Heading====
6576 ===== Level 5 Heading=====
6577 ====== Level 6 Heading======
6578 ======= Level 7 Heading=======
6579 ======== Level 8 Heading========
6580 ========= Level 9 Heading=========
6581 ========== Level 10 Heading==========
6583 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6585 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6587 <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>
6589 <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>
6591 <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>
6593 <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>
6595 <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>
6596 <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>
6597 <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>
6598 <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>
6599 <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>
6612 <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>
6613 <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>
6614 <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>
6615 <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>
6616 <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>
6617 <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>
6618 <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>
6619 <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>
6620 <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>
6621 <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>
6626 TOC regression (bug 9764)
6630 ==== title 1.1.1 ====
6635 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6637 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6639 <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>
6641 <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>
6644 <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>
6647 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6649 <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>
6654 <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>
6655 <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>
6656 <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>
6657 <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>
6658 <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>
6659 <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>
6664 TOC with wgMaxTocLevel=3 (bug 6204)
6670 ==== title 1.1.1 ====
6675 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6677 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6679 <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>
6680 <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>
6683 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6685 <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>
6690 <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>
6691 <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>
6692 <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>
6693 <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>
6694 <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>
6695 <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>
6700 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6706 ====Section 1.1.1====
6707 ====Section 1.1.1.1====
6710 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6712 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6714 <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>
6717 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6720 <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>
6721 <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>
6722 <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>
6723 <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>
6724 <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>
6730 Resolving duplicate section names
6735 <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>
6736 <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>
6741 Resolving duplicate section names with differing case (bug 10721)
6746 <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>
6747 <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>
6759 Template with sections, __NOTOC__
6766 <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>
6767 <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>
6768 <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>
6769 <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>
6774 __NOEDITSECTION__ keyword
6780 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6781 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6786 Link inside a section heading
6788 ==Section with a [[Main Page|link]] in it==
6790 <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>
6795 TOC regression (bug 12077)
6802 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6804 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6806 <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>
6809 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6812 <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>
6813 <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>
6814 <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>
6819 BUG 1219 URL next to image (good)
6821 http://example.com [[Image:foobar.jpg]]
6823 <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>
6828 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6831 The line above must have a trailing space!
6834 But just in case it doesn't...
6836 <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>
6837 <p>The line above must have a trailing space!
6839 <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>
6840 <p>But just in case it doesn't...
6845 Header with special characters (bug 25462)
6847 The tooltips shall not show entities to the user (ie. be double escaped)
6864 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6866 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6868 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6869 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6870 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6871 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6872 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6875 <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>
6878 <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>
6881 <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>
6884 <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>
6887 <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>
6893 Headers with excess '=' characters
6894 (Are similar tests necessary beyond the 1st level?)
6898 =''italic'' heading==
6899 ==''italic'' heading=
6901 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6903 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6904 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6905 <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>
6906 <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>
6909 <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>
6910 <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>
6911 <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>
6912 <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>
6917 BUG 1219 URL next to image (broken)
6919 http://example.com[[Image:foobar.jpg]]
6921 <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>
6926 Bug 1186 news: in the middle of text
6928 http://en.wikinews.org/wiki/Wikinews:Workplace
6930 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6936 Namespaced link must have a title
6945 Namespaced link must have a title (bad fragment version)
6947 [[Project:#fragment]]
6949 <p>[[Project:#fragment]]
6955 div with no attributes
6957 <div>HTML rocks</div>
6959 <div>HTML rocks</div>
6964 div with double-quoted attribute
6966 <div id="rock">HTML rocks</div>
6968 <div id="rock">HTML rocks</div>
6973 div with single-quoted attribute
6975 <div id='rock'>HTML rocks</div>
6977 <div id="rock">HTML rocks</div>
6982 div with unquoted attribute
6984 <div id=rock>HTML rocks</div>
6986 <div id="rock">HTML rocks</div>
6991 div with illegal double attributes
6993 <div id="a" id="b">HTML rocks</div>
6995 <div id="b">HTML rocks</div>
7000 HTML multiple attributes correction
7002 <p class="error" class="awesome">Awesome!</p>
7004 <p class="awesome">Awesome!</p>
7009 Table multiple attributes correction
7012 !+ class="error" class="awesome"| status
7017 <th class="awesome"> status
7025 <DIV ID="x">HTML ROCKS</DIV>
7027 <div id="x">HTML ROCKS</div>
7033 text with amp in the middle of nowhere
7037 <p>Remember AT&T?
7042 text with character entity: eacute
7044 I always thought é was a cute letter.
7046 <p>I always thought é was a cute letter.
7051 text with undefined character entity: xacute
7053 I always thought &xacute; was a cute letter.
7055 <p>I always thought &xacute; was a cute letter.
7067 [[Media:Foobar.jpg]]
7069 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7074 Media link with text
7076 [[Media:Foobar.jpg|A neat file to look at]]
7078 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7082 # FIXME: this is still bad HTML tag nesting
7084 Media link with nasty text
7085 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7087 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7089 <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>
7094 Media link to nonexistent file (bug 1702)
7096 [[Media:No such.jpg]]
7098 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7103 Image link to nonexistent file (bug 1850 - good)
7105 [[Image:No such.jpg]]
7107 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7112 :Image link to nonexistent file (bug 1850 - bad)
7114 [[:Image:No such.jpg]]
7116 <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>
7123 Character reference normalization in link text (bug 1938)
7125 [[Main Page|this&that]]
7127 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7134 Test for unicode normalization
7136 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7140 (bug 19451) Links should refer to the normalized form.
7148 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7149 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7150 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7151 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7152 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7157 Empty attribute crash test (bug 2067)
7159 <font color="">foo</font>
7161 <p><font color="">foo</font>
7166 Empty attribute crash test single-quotes (bug 2067)
7168 <font color=''>foo</font>
7170 <p><font color="">foo</font>
7175 Attribute test: equals, then nothing
7177 <font color=>foo</font>
7184 Attribute test: unquoted value
7186 <font color=x>foo</font>
7188 <p><font color="x">foo</font>
7193 Attribute test: unquoted but illegal value (hash)
7195 <font color=#x>foo</font>
7197 <p><font color="#x">foo</font>
7202 Attribute test: no value
7204 <font color>foo</font>
7206 <p><font color="color">foo</font>
7211 Bug 2095: link with three closing brackets
7215 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7220 Bug 2095: link with pipe and three closing brackets
7224 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7229 Bug 2095: link with pipe and three closing brackets, version 2
7231 [[Main Page|[http://example.com/]]]
7233 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7243 Template:Dangerous attribute
7245 " onmouseover="alert(document.cookie)
7249 Template:Dangerous style attribute
7251 border-size: expression(alert(document.cookie))
7257 <div style="float: right; {{{1}}}">Magic div</div>
7261 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7263 <div title="{{test}}"></div>
7265 <div title="This is a test template"></div>
7270 Bug 2304: HTML attribute safety (dangerous template; 2309)
7272 <div title="{{dangerous attribute}}"></div>
7274 <div title=""></div>
7279 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7281 <div style="{{dangerous style attribute}}"></div>
7283 <div style="/* insecure input */"></div>
7288 Bug 2304: HTML attribute safety (safe parameter; 2309)
7290 {{div style|width: 200px}}
7292 <div style="float: right; width: 200px">Magic div</div>
7297 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7299 {{div style|width: expression(alert(document.cookie))}}
7301 <div style="/* insecure input */">Magic div</div>
7306 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7308 {{div style|"><script>alert(document.cookie)</script>}}
7310 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7315 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7317 {{div style|" ><script>alert(document.cookie)</script>}}
7319 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7324 Bug 2304: HTML attribute safety (link)
7326 <div title="[[Main Page]]"></div>
7328 <div title="[[Main Page]]"></div>
7333 Bug 2304: HTML attribute safety (italics)
7335 <div title="''foobar''"></div>
7337 <div title="''foobar''"></div>
7342 Bug 2304: HTML attribute safety (bold)
7344 <div title="'''foobar'''"></div>
7346 <div title="'''foobar'''"></div>
7352 Bug 2304: HTML attribute safety (ISBN)
7354 <div title="ISBN 1234567890"></div>
7356 <div title="ISBN 1234567890"></div>
7361 Bug 2304: HTML attribute safety (RFC)
7363 <div title="RFC 1234"></div>
7365 <div title="RFC 1234"></div>
7370 Bug 2304: HTML attribute safety (PMID)
7372 <div title="PMID 1234567890"></div>
7374 <div title="PMID 1234567890"></div>
7379 Bug 2304: HTML attribute safety (web link)
7381 <div title="http://example.com/"></div>
7383 <div title="http://example.com/"></div>
7388 Bug 2304: HTML attribute safety (named web link)
7390 <div title="[http://example.com/ link]"></div>
7392 <div title="[http://example.com/ link]"></div>
7397 Bug 3244: HTML attribute safety (extension; safe)
7399 <div style="<nowiki>background:blue</nowiki>"></div>
7401 <div style="background:blue"></div>
7406 Bug 3244: HTML attribute safety (extension; unsafe)
7408 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7410 <div style="/* insecure input */"></div>
7414 # More MSIE fun discovered by Tom Gilder
7417 MSIE CSS safety test: spurious slash
7419 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7421 <div style="/* insecure input */">evil</div>
7426 MSIE CSS safety test: hex code
7428 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7430 <div style="/* insecure input */">evil</div>
7435 MSIE CSS safety test: comment in url
7437 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7439 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7444 MSIE CSS safety test: comment in expression
7446 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7448 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7454 Table attribute legitimate extension
7457 !+ style="<nowiki>color:blue</nowiki>"| status
7462 <th style="color:blue"> status
7468 Table attribute safety
7471 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7476 <th style="/* insecure input */"> status
7482 CSS line continuation 1
7484 <div style="background-image: u\ rl(test.jpg);"></div>
7486 <div style="/* insecure input */"></div>
7491 CSS line continuation 2
7493 <div style="background-image: u\ rl(test.jpg); "></div>
7495 <div style="/* insecure input */"></div>
7506 Expansion of multi-line templates in attribute values (bug 6255)
7508 <div style="background: {{identity|#00FF00}}">-</div>
7510 <div style="background: #00FF00">-</div>
7516 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7518 <div style="background:
7521 <div style="background: #00FF00">-</div>
7526 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7528 <div style="background: #00FF00">-</div>
7530 <div style="background: #00FF00">-</div>
7535 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7538 Parser hook: empty input
7551 Parser hook: empty input using terminated empty elements
7564 Parser hook: empty input using terminated empty elements (space before)
7577 Parser hook: basic input
7591 Parser hook: case insensitive
7605 Parser hook: case insensitive, redux
7618 Parser hook: nested tags
7622 <tag><tag></tag></tag>
7633 Parser hook: basic arguments
7635 <tag width=200 height = "100" depth = '50' square></tag>
7643 'square' => 'square',
7650 Parser hook: argument containing a forward slash (bug 5344)
7652 <tag filename='/tmp/bla'></tag>
7657 'filename' => '/tmp/bla',
7664 Parser hook: empty input using terminated empty elements (bug 2374)
7677 # </tag> should be output literally since there is no matching tag that begins it
7679 Parser hook: basic arguments using terminated empty elements (bug 2374)
7681 <tag width=200 height = "100" depth = '50' square/>
7691 'square' => 'square',
7700 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7704 Parser hook: static parser hook not inside a comment
7706 <statictag>hello, world</statictag>
7707 <statictag action=flush/>
7715 Parser hook: static parser hook inside a comment
7717 <!-- <statictag>hello, world</statictag> -->
7718 <statictag action=flush/>
7724 # Nested template calls; this case was broken by Parser.php rev 1.506,
7728 Template:One-parameter
7730 (My parameter is: {{{1}}})
7734 Template:Map-one-parameter
7740 Nested template calls
7742 {{Map-one-parameter|One-parameter|param}}
7744 <p>(My parameter is: param)
7753 Sanitizer: Closing of open tags
7755 <s></s><table></table>
7757 <s></s><table></table>
7762 Sanitizer: Closing of open but not closed tags
7771 Sanitizer: Closing of closed but not open tags
7780 Sanitizer: Closing of closed but not open table tags
7782 Table not started</td></tr></table>
7784 <p>Table not started</td></tr></table>
7789 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7791 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7793 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7798 Sanitizer: Validating the contents of the id attribute (bug 4515)
7804 Something, but definitely not <br id="9" />...
7808 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7812 <br id="foo" /><br id="foo" />
7814 Something need to be done. foo-2 ?
7818 Language converter: output gets cut off unexpectedly (bug 5757)
7822 this bit is safe: }-
7824 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7826 then we get cut off here: }-
7828 all additional text is vanished
7830 <p>this bit is safe: }-
7831 </p><p>but if we add a conversion instance: xxx
7832 </p><p>then we get cut off here: }-
7833 </p><p>all additional text is vanished
7838 Self closed html pairs (bug 5487)
7841 <center><font id="bug" />Centered text</center>
7842 <div><font id="bug2" />In div text</div>
7844 <center><font id="bug" />Centered text</center>
7845 <div><font id="bug2" />In div text</div>
7854 Punctuation: nbsp before exclamation
7858 <p>C'est grave !
7863 Punctuation: CSS !important (bug 11874)
7865 <div style="width:50% !important">important</div>
7867 <div style="width:50% !important">important</div>
7872 Punctuation: CSS ! important (bug 11874; with space after)
7874 <div style="width:50% ! important">important</div>
7876 <div style="width:50% ! important">important</div>
7882 HTML bullet list, closed tags (bug 5497)
7897 HTML bullet list, unclosed tags (bug 5497)
7914 HTML ordered list, closed tags (bug 5497)
7929 HTML ordered list, unclosed tags (bug 5497)
7946 HTML nested bullet list, closed tags (bug 5497)
7971 HTML nested bullet list, open tags (bug 5497)
7996 HTML nested ordered list, closed tags (bug 5497)
8021 HTML nested ordered list, open tags (bug 5497)
8046 HTML ordered list item with parameters oddity
8048 <ol><li id="fragment">One</li></ol>
8050 <ol><li id="fragment">One</li></ol>
8055 bug 5918: autonumbering
8057 [http://first/] [http://second] [ftp://ftp]
8061 [mailto:enclosed@mail.tld With target]
8063 [mailto:enclosed@mail.tld]
8065 mailto:inline@mail.tld
8067 <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>
8068 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8069 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8070 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8071 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8077 # Security and HTML correctness
8078 # From Nick Jenkins' fuzz testing
8082 Fuzz testing: Parser13
8097 Fuzz testing: Parser14
8102 <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>
8103 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8105 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8112 Fuzz testing: Parser14-table
8117 <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>
8118 <table style="__TOC__">
8124 # Known to produce bogus xml (extra </td>)
8126 Fuzz testing: Parser16
8146 Fuzz testing: Parser21
8149 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8154 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8164 Fuzz testing: Parser22
8166 http://===r:::https://b
8170 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8178 # Known to produce bad XML for now
8180 Fuzz testing: Parser24
8187 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8188 <br style="onmouseover='alert(document.cookie);' " />
8190 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8195 <u class="|">}}}} >
8196 <br style="onmouseover='alert(document.cookie);'" />
8198 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8207 # Note: the current result listed for this is not what the original one was,
8208 # but the original bug was JavaScript injection, which is fixed in any case.
8209 # It's not clear that the original result listed was any more correct than the
8210 # current one. Original result:
8213 # <li class="||">
8214 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8216 Fuzz testing: Parser25 (bug 6055)
8222 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8224 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8229 Fuzz testing: URL adjacent extension (with space, clean)
8232 http://example.com <nowiki>junk</nowiki>
8234 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8239 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8242 http://example.com<nowiki>junk</nowiki>
8244 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8249 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8252 http://example.com<pre>junk</pre>
8254 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8259 Fuzz testing: image with bogus manual thumbnail
8261 [[Image:foobar.jpg|thumbnail= ]]
8263 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8268 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8270 <pre dir=" "></pre>
8272 <pre dir=" "></pre>
8277 Parsing optional HTML elements (Bug 6171)
8282 <td> Some tabular data</td>
8283 <td> More tabular data ...
8284 <td> And yet som tabular data</td>
8290 <td> Some tabular data</td>
8291 <td> More tabular data ...
8292 </td><td> And yet som tabular data</td>
8299 Correct handling of <td>, <tr> (Bug 6171)
8304 <td> Some tabular data</td>
8305 <td> More tabular data ...</td>
8306 <td> And yet som tabular data</td>
8312 <td> Some tabular data</td>
8313 <td> More tabular data ...</td>
8314 <td> And yet som tabular data</td>
8322 Parsing crashing regression (fr:JavaScript)
8326 <p></body></x>
8331 Inline wiki vs wiki block nesting
8337 <p><b>Bold paragraph</b>
8338 </p><p>New wiki paragraph
8343 Inline HTML vs wiki block nesting
8351 <p><b>Bold paragraph</b>
8352 </p><p>New wiki paragraph
8356 # Original result was this:
8357 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8359 # While that might be marginally more intuitive, maybe, the six-apostrophe
8360 # construct is clearly pathological and the result stated here (which is what
8361 # the parser actually does) is about as reasonable as anything.
8363 Mixing markup for italics and bold
8366 '''bold''''''bold''bolditalics'''''
8368 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8376 Article for special page transclusion test
8380 Special page transclusion
8383 {{Special:Prefixindex/Xyzzyx}}
8385 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8390 Special page transclusion twice (bug 5021)
8393 {{Special:Prefixindex/Xyzzyx}}
8394 {{Special:Prefixindex/Xyzzyx}}
8396 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8397 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8402 Transclusion of default MediaWiki message
8404 {{MediaWiki:Mainpage}}
8411 Transclusion of nonexistent MediaWiki message
8413 {{MediaWiki:Mainpagexxx}}
8415 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8420 Transclusion of MediaWiki message with underscore
8422 {{MediaWiki:history_short}}
8429 Transclusion of MediaWiki message with space
8431 {{MediaWiki:history short}}
8438 Invalid header with following text
8448 Section extraction test (section 0)
8468 Section extraction test (section 1)
8490 Section extraction test (section 2)
8511 Section extraction test (section 3)
8531 Section extraction test (section 4)
8555 Section extraction test (section 5)
8575 Section extraction test (section 6)
8596 Section extraction test (section 7)
8616 Section extraction test (section 8)
8636 Section extraction test (section 9)
8657 Section extraction test (section 10)
8677 Section extraction test (nonexistent section 11)
8696 Section extraction test with bogus heading (section 1)
8701 ==bogus== not a legal section
8705 ==bogus== not a legal section
8709 Section extraction test with bogus heading (section 2)
8714 ==bogus== not a legal section
8721 Section extraction test with comment after heading (section 1)
8733 Section extraction test with comment after heading (section 2)
8745 Section extraction test with bogus <nowiki> heading (section 1)
8750 ==bogus== <nowiki>not a legal section</nowiki>
8754 ==bogus== <nowiki>not a legal section</nowiki>
8758 Section extraction test with bogus <nowiki> heading (section 2)
8763 ==bogus== <nowiki>not a legal section</nowiki>
8770 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8771 # instead of respecting commented sections
8773 Section extraction prefixed by comment (section 1)
8784 Section extraction prefixed by comment (section 2)
8795 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8796 # instead of respecting HTML-style headings
8798 Section extraction, mixed wiki and html (section 1)
8814 Section extraction, mixed wiki and html (section 2)
8830 # Formerly testing for bug 3342
8832 Section extraction, heading surrounded by <noinclude>
8836 <noinclude>==unmarked==</noinclude>
8842 # Test behaviour of bug 19910
8844 Sectiion with all-equals
8849 The line above must have a trailing space
8852 But just in case it doesn't...
8856 But just in case it doesn't...
8860 Section replacement test (section 0)
8891 Section replacement test (section 1)
8920 Section replacement test (section 2)
8950 Section replacement test (section 3)
8981 Section replacement test (section 4)
9008 Section replacement test (section 5)
9039 Section replacement test (section 6)
9069 Section replacement test (section 7)
9100 Section replacement test (section 8)
9131 Section replacement test (section 9)
9160 Section replacement test (section 10)
9190 Section replacement test with initial whitespace (bug 13728)
9194 Preformatted initial line
9198 Preformatted initial line
9205 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9217 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9230 Section extraction, <pre> around bogus header (bug 10309)
9247 Section replacement, <pre> around bogus header (bug 10309)
9249 noxml replace=2,"xxx"
9270 Handling of 
 in URLs
9274 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9281 5 quotes, code coverage +1 line
9288 Special:Search page linking.
9292 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9307 * {{SUBJECTPAGENAME}}
9308 * {{SUBJECTPAGENAMEE}}
9315 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9317 <ul><li> Parser test
9318 </li><li> Parser test
9319 </li><li> Parser test
9320 </li><li> Parser_test
9321 </li><li> Parser test
9322 </li><li> Parser_test
9323 </li><li> Talk:Parser test
9324 </li><li> Talk:Parser_test
9325 </li><li> Parser test
9326 </li><li> Parser_test
9333 </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>
9337 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9347 image4 |300px| centre
9348 image5.svg| http://///////
9353 <ul class="gallery">
9354 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9355 <div style="height: 150px;">Image1.png</div>
9356 <div class="gallerytext">
9359 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9360 <div style="height: 150px;">Image2.gif</div>
9361 <div class="gallerytext">
9366 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9367 <div style="height: 150px;">Image3</div>
9368 <div class="gallerytext">
9371 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9372 <div style="height: 150px;">Image4</div>
9373 <div class="gallerytext">
9378 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9379 <div style="height: 150px;">Image5.svg</div>
9380 <div class="gallerytext">
9381 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9385 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9386 <div style="height: 150px;">* image6</div>
9387 <div class="gallerytext">
9395 Gallery (with options)
9397 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9398 File:Nonexistant.jpg|caption
9399 File:Nonexistant.jpg
9400 image:foobar.jpg|some '''caption''' [[Main Page]]
9402 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9405 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9406 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9407 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9408 <div style="height: 70px;">Nonexistant.jpg</div>
9409 <div class="gallerytext">
9414 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9415 <div style="height: 70px;">Nonexistant.jpg</div>
9416 <div class="gallerytext">
9419 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9420 <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>
9421 <div class="gallerytext">
9422 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9426 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9427 <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>
9428 <div class="gallerytext">
9431 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9432 <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>
9433 <div class="gallerytext">
9443 Gallery with wikitext inside caption
9446 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9447 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9450 <ul class="gallery">
9451 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9452 <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>
9453 <div class="gallerytext">
9454 <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>
9458 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9459 <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>
9460 <div class="gallerytext">
9461 <p>This is a test template
9470 gallery (with showfilename option)
9472 <gallery showfilename>
9473 File:Nonexistant.jpg|caption
9474 File:Nonexistant.jpg
9475 image:foobar.jpg|some '''caption''' [[Main Page]]
9479 <ul class="gallery">
9480 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9481 <div style="height: 150px;">Nonexistant.jpg</div>
9482 <div class="gallerytext">
9483 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9488 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9489 <div style="height: 150px;">Nonexistant.jpg</div>
9490 <div class="gallerytext">
9491 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9495 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9496 <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>
9497 <div class="gallerytext">
9498 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9499 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9503 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9504 <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>
9505 <div class="gallerytext">
9506 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9515 Gallery (with namespace-less filenames)
9518 File:Nonexistant.jpg
9524 <ul class="gallery">
9525 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9526 <div style="height: 150px;">Nonexistant.jpg</div>
9527 <div class="gallerytext">
9530 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9531 <div style="height: 150px;">Nonexistant.jpg</div>
9532 <div class="gallerytext">
9535 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9536 <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>
9537 <div class="gallerytext">
9540 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9541 <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>
9542 <div class="gallerytext">
9550 HTML Hex character encoding (spells the word "JavaScript")
9552 JavaScript
9554 <p>JavaScript
9559 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9563 <p>&#xsee;&#XSEE;
9568 HTML Hex character encoding mixed case
9577 __FORCETOC__ override
9589 ISBN 978-0-1234-56 789
9591 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9596 ISBN followed by 5 spaces
9607 ISBN ISBN 1234567890
9609 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9614 Bug 22905: <abbr> followed by ISBN followed by </a>
9616 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9618 <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>
9627 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9632 Double RFC with a wiki link
9636 <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>
9645 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9650 Centre-aligned image
9652 [[Image:foobar.jpg|centre]]
9654 <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>
9661 [[Image:foobar.jpg|none]]
9663 <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>
9668 Width + Height sized image (using px) (height is ignored)
9670 [[Image:foobar.jpg|640x480px]]
9672 <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>
9677 Width-sized image (using px, no following whitespace)
9679 [[Image:foobar.jpg|640px]]
9681 <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>
9686 Width-sized image (using px, with following whitespace - test regression from r39467)
9688 [[Image:foobar.jpg|640px ]]
9690 <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>
9695 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9697 [[Image:foobar.jpg| 640px]]
9699 <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>
9704 Another italics / bold test
9712 # Note the results may be incorrect, as parserTest output included this:
9713 # XML error: Mismatched tag at byte 6120:
9714 # ...<dd> </dt></dl> </dd...
9722 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9733 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9735 Images with the "|" character in the comment
9737 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9739 <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>
9744 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9746 <html><script>alert(1);</script></html>
9748 <p><html><script>alert(1);</script></html>
9753 HTML with raw HTML ($wgRawHtml==true)
9757 <html><script>alert(1);</script></html>
9759 <p><script>alert(1);</script>
9764 Parents of subpages, one level up
9766 subpage title=[[Subpage test/L1/L2/L3]]
9770 <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>
9776 Parents of subpages, one level up, not named
9778 subpage title=[[Subpage test/L1/L2/L3]]
9782 <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>
9789 Parents of subpages, two levels up
9791 subpage title=[[Subpage test/L1/L2/L3]]
9797 <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
9798 </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>
9803 Parents of subpages, two levels up, without trailing slash or name.
9805 subpage title=[[Subpage test/L1/L2/L3]]
9814 Parents of subpages, two levels up, with lots of extra trailing slashes.
9816 subpage title=[[Subpage test/L1/L2/L3]]
9820 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9825 Definition list code coverage
9831 <dl><dt> title  </dt><dd> def
9832 </dd><dt> title </dt><dd> def
9833 </dd><dt>title</dt><dd> def
9839 Don't fall for the self-closing div
9841 <div>hello world</div/>
9843 <div>hello world</div>
9852 <p>[[:Template:Msg]]
9861 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9865 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9867 Always escape literal '>' in output, not just after '<'
9881 <p>This is a test template
9882 This is a test template
9894 Inclusion of !userCanEdit() content
9898 <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>
9904 Out-of-order TOC heading levels
9913 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9915 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9917 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9918 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9921 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9923 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9924 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9929 <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>
9930 <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>
9931 <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>
9932 <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>
9933 <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>
9934 <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>
9940 ISBN with a dummy number
9950 ISBN with space-delimited number
9954 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9960 ISBN with multiple spaces, no number
9979 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9980 </p><p>ISBN 12345678901
9986 ISBN with trailing year (bug 8110)
9988 ISBN 1-234-56789-0 - 2006
9990 ISBN 1 234 56789 0 - 2006
9992 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9993 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10001 {{anchorencode:foo bar©#%n}}
10003 <p>foo_bar.C2.A9.23.25n
10008 anchorencode trims spaces
10010 {{anchorencode: __pretty__please__}}
10017 anchorencode deals with links
10019 {{anchorencode: [[hello|world]] [[hi]]}}
10026 anchorencode deals with templates
10028 {{anchorencode: {{Foo}} }}
10035 anchorencode encodes like the TOC generator: (bug 18431)
10037 === _ +:.3A%3A&&]] ===
10038 {{anchorencode: _ +:.3A%3A&&]] }}
10041 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10042 <p>.2B:.3A.253A.26.26.5D.5D
10046 # Expected output in the following test is not necessarily expected (there
10047 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10048 # only testing for well-formedness.
10050 Bug 6200: blockquotes and paragraph formatting
10070 Bug 8293: Use of center tag ruins paragraph formatting
10092 ### Language variants related tests
10095 Self-link in language variants
10097 title=[[Dunav]] language=sr
10099 Both [[Dunav]] and [[Дунав]] are names for this river.
10101 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10107 Link to pages in language variants
10111 Main Page can be written as [[Маин Паге]]
10113 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10119 Multiple links to pages in language variants
10123 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10125 <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>.
10131 Simple template in language variants
10137 <p>This is a test template
10143 Template with explicit namespace in language variants
10149 <p>This is a test template
10155 Basic test for template parameter in language variants
10159 {{парамтест|param=foo}}
10161 <p>This is a test template with parameter foo
10167 Simple category in language variants
10171 [[Category:МедиаWики Усер'с Гуиде]]
10173 <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>
10178 Stripping -{}- tags (language variants)
10182 Latin proverb: -{Ne nuntium necare}-
10184 <p>Latin proverb: Ne nuntium necare
10190 Prevent conversion with -{}- tags (language variants)
10192 language=sr variant=sr-ec
10194 Latinski: -{Ne nuntium necare}-
10196 <p>Латински: Ne nuntium necare
10202 Prevent conversion of text with -{}- tags (language variants)
10204 language=sr variant=sr-ec
10206 Latinski: -{Ne nuntium necare}-
10208 <p>Латински: Ne nuntium necare
10214 Prevent conversion of links with -{}- tags (language variants)
10216 language=sr variant=sr-ec
10220 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10226 -{}- tags within headlines (within html for parserConvert())
10228 language=sr variant=sr-ec
10232 <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>
10238 Explicit definition of language variant alternatives
10240 language=zh variant=zh-tw
10242 -{zh:China;zh-tw:Taiwan}-, not China
10244 <p>Taiwan, not China
10250 Explicit session-wise language variant mapping (A flag and - flag)
10252 language=zh variant=zh-tw
10254 Taiwan is not China.
10255 But -{A|zh:China;zh-tw:Taiwan}- is China,
10256 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10257 and -{China}- is China.
10259 <p>Taiwan is not China.
10260 But Taiwan is Taiwan,
10261 (This should be stripped!)
10262 and China is China.
10267 Explicit session-wise language variant mapping (H flag for hide)
10269 language=zh variant=zh-tw
10271 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10274 <p>(This should be stripped!)
10280 Adding explicit conversion rule for title (T flag)
10282 language=zh variant=zh-tw showtitle
10284 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10287 <p>Should be stripped!
10292 Testing that changing the language variant here in the tests actually works
10294 language=zh variant=zh showtitle
10296 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10299 <p>Should be stripped!
10304 Bug 24072: more test on conversion rule for title
10306 language=zh variant=zh-tw showtitle
10308 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10309 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10312 <p>This should be stripped!
10313 This won't take interferes with the title rule.
10318 Raw output of variant escape tags (R flag)
10320 language=zh variant=zh-tw
10322 Raw: -{R|zh:China;zh-tw:Taiwan}-
10324 <p>Raw: zh:China;zh-tw:Taiwan
10329 Nested using of manual convert syntax
10331 language=zh variant=zh-hk
10333 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10335 <p>Nested: Hello Hong Kong!
10340 Do not convert roman numbers to language variants
10342 language=sr variant=sr-ec
10346 <p>Фридрих IV је цар.
10351 Unclosed language converter markup "-{"
10362 Don't convert raw rule "-{R|=>}-" to "=>"
10379 Bug 529: Uncovered bullet
10389 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10390 # Templates in Wikipedia rely on this behavior, as tidy has always been
10391 # enabled there. These tests are normally run *without* tidy, so specify the
10392 # full output here.
10393 # To test realistic parsing behavior, apply a tidy-like transformation to both
10394 # the expected output and your parser's output.
10396 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10398 ******* Foo {{bullet}}
10400 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10413 Bug 529: Uncovered table already at line-start
10436 Bug 529: Uncovered bullet in parser function result
10438 * Foo {{lc:{{bullet}} }}
10447 Bug 5678: Double-parsed template argument
10449 {{lc:{{{1}}}|hello}}
10456 Bug 5678: Double-parsed template invocation
10458 {{lc:{{paramtest {{!}} param = hello }} }}
10460 <p>{{paramtest | param = hello }}
10465 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10468 title=[[Main Page]]
10470 {{PRVNÍVELKÉ:ěščř}}
10471 {{prvnívelké:ěščř}}
10491 Morwen/13: Unclosed link followed by heading
10498 <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>
10503 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10510 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10515 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10522 <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>
10537 Paragraphs inside divs (no extra line breaks)
10549 Paragraphs inside divs (extra line break on open)
10564 Paragraphs inside divs (extra line break on close)
10579 Paragraphs inside divs (extra line break on open and close)
10596 Nesting tags, paragraphs on lines which begin with <div>
10600 <div></div><strong>A
10609 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10611 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10615 <blockquote>Line one
10617 Line two</blockquote>
10619 <blockquote>Line one
10620 Line two</blockquote>
10625 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10632 Line two</blockquote>
10637 Line two</blockquote>
10642 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10646 <blockquote>Line one
10651 <blockquote>Line one
10659 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10678 Paragraphs inside blockquotes/divs (no extra line breaks)
10680 <blockquote><div>Line one
10682 Line two</div></blockquote>
10684 <blockquote><div>Line one
10685 Line two</div></blockquote>
10690 Paragraphs inside blockquotes/divs (extra line break on open)
10695 Line two</div></blockquote>
10700 Line two</div></blockquote>
10705 Paragraphs inside blockquotes/divs (extra line break on close)
10707 <blockquote><div>Line one
10710 </div></blockquote>
10712 <blockquote><div>Line one
10715 </div></blockquote>
10720 Paragraphs inside blockquotes/divs (extra line break on open and close)
10726 </div></blockquote>
10732 </div></blockquote>
10737 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10739 wgLinkHolderBatchSize=0
10745 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10746 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10747 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10752 Free external link invading image caption
10754 [[Image:Foobar.jpg|thumb|http://x|hello]]
10756 <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>
10761 Bug 15196: localised external link numbers
10765 [http://en.wikipedia.org/]
10767 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10772 Multibyte character in padleft
10774 {{padleft:-Hello|7|Æ}}
10781 Multibyte character in padright
10783 {{padright:Hello-|7|Æ}}
10792 wgUseDynamicDates=1
10796 <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>
10801 formatdate parser function
10803 {{#formatdate:2009-03-24}}
10805 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10810 formatdate parser function, with default format
10812 {{#formatdate:2009-03-24|mdy}}
10814 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10819 Linked date with autoformatting disabled
10821 wgUseDynamicDates=false
10825 <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>
10830 Spacing of numbers in formatted dates
10832 {{#formatdate:January 15}}
10834 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10839 Spacing of numbers in formatted dates (linked)
10841 wgUseDynamicDates=true
10845 <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>
10850 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
10852 language=nl title=[[MediaWiki:Common.css]]
10854 {{#formatdate:2009-03-24|dmy}}
10856 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10869 Edit comment with link
10873 I like the [[Main Page]] a lot
10875 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10879 Edit comment with link and link text
10883 I like the [[Main Page|best pages]] a lot
10885 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10889 Edit comment with link and link text with suffix
10893 I like the [[Main Page|best page]]s a lot
10895 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10899 Edit comment with section link (non-local, eg in history list)
10901 comment title=[[Main Page]]
10903 /* External links */ removed bogus entries
10905 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10909 Edit comment with section link and text before it (non-local, eg in history list)
10911 comment title=[[Main Page]]
10913 pre-comment text /* External links */ removed bogus entries
10915 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>
10919 Edit comment with section link (local, eg in diff view)
10921 comment local title=[[Main Page]]
10923 /* External links */ removed bogus entries
10925 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10929 Edit comment with subpage link (bug 14080)
10933 title=[[Subpage test]]
10935 Poked at a [[/subpage]] here...
10937 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10941 Edit comment with subpage link and link text (bug 14080)
10945 title=[[Subpage test]]
10947 Poked at a [[/subpage|neat little page]] here...
10949 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10953 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10956 title=[[Subpage test]]
10958 Poked at a [[/subpage]] here...
10960 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10964 Edit comment with bare anchor link (local, as on diff)
10968 title=[[Main Page]]
10972 <a href="#section">#section</a>
10976 Edit comment with bare anchor link (non-local, as on history)
10979 title=[[Main Page]]
10983 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10987 Anchor starting with underscore
10991 <p><a href="#_ref">One</a>
10996 Id starting with underscore
10998 <div id="_ref"></div>
11000 <div id="_ref"></div>
11005 Space normalisation on autocomment (bug 22784)
11008 title=[[Main Page]]
11010 /* __hello__world__ */
11012 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11016 percent-encoding and + signs in comments (Bug 26410)
11020 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11022 <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>
11026 Bad images - basic functionality
11035 Bad images - bug 16039: text after bad image disappears
11049 Verify that displaytitle works (bug #22501) no displaytitle
11053 wgAllowDisplayTitle=true
11054 wgRestrictDisplayTitle=false
11056 this is not the the title
11059 <p>this is not the the title
11064 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11069 wgAllowDisplayTitle=true
11070 wgRestrictDisplayTitle=false
11072 this is not the the title
11073 {{DISPLAYTITLE:whatever}}
11076 <p>this is not the the title
11081 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11086 wgAllowDisplayTitle=true
11087 wgRestrictDisplayTitle=true
11089 this is not the the title
11090 {{DISPLAYTITLE:whatever}}
11093 <p>this is not the the title
11098 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11103 wgAllowDisplayTitle=true
11104 wgRestrictDisplayTitle=true
11106 this is not the the title
11107 {{DISPLAYTITLE:screen}}
11110 <p>this is not the the title
11115 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11120 wgAllowDisplayTitle=false
11122 this is not the the title
11123 {{DISPLAYTITLE:screen}}
11126 <p>this is not the the title
11127 <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>
11132 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11137 wgAllowDisplayTitle=false
11139 this is not the the title
11142 <p>this is not the the title
11147 preload: check <noinclude> and <includeonly>
11151 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11157 preload: check <onlyinclude>
11161 Goodbye <onlyinclude>Hello world</onlyinclude>
11167 preload: can pass tags through if we want to
11171 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11173 <includeonly>Hello world</includeonly>
11177 preload: check that it doesn't try to do tricks
11181 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11183 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11187 Play a bit with r67090 and bug 3158
11191 <div style="width:50% !important"> </div>
11192 <div style="width:50% !important"> </div>
11193 <div style="width:50% !important"> </div>
11194 <div style="border : solid;"> </div>
11196 <div style="width:50% !important"> </div>
11197 <div style="width:50% !important"> </div>
11198 <div style="width:50% !important"> </div>
11199 <div style="border : solid;"> </div>
11204 HTML5 data attributes
11206 <span data-foo="bar">Baz</span>
11207 <p data-abc-def_hij="">Quuz</p>
11209 <p><span data-foo="bar">Baz</span>
11211 <p data-abc-def_hij="">Quuz</p>
11216 percent-encoding and + signs in internal links (Bug 26410)
11218 [[User:+%]] [[Page+title%]]
11219 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11220 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11221 [[%33%45]] [[%33%45+]]
11223 <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>
11224 <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>
11225 <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>
11226 <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>
11231 Special characters in embedded file links (bug 27679)
11233 [[File:Contains & ampersand.jpg]]
11234 [[File:Does not exist.jpg|Title with & ampersand]]
11236 <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>
11237 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11243 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11245 Text's been normalized?
11247 <p>Text's been normalized?
11252 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11254 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11256 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11261 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11263 [http://www.example.org/ ideograms]
11265 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11270 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11272 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11274 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11298 Bug 31098 Template which includes system messages which includes the template
11302 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11303 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11308 Deprecated presentational attributes are converted to css
11311 | valign=top align=left width=100 height=25% | Asdf
11313 <ul type="disc"></ul>
11317 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11319 <ul style="list-style-type: disc;"></ul>
11324 Bug31490 Turkish: ucfirst 'blah'
11335 Bug31490 Turkish: ucfirst 'ix'
11346 Bug31490 Turkish: lcfirst 'BLAH'
11357 Bug31490 Turkish: ucfırst (with a dotless i)
11363 <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>
11368 Bug31490 ucfırst (with a dotless i) with English language
11374 <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>
11379 Bug 26375: TOC with italics
11381 title=[[Main Page]]
11384 == ''Lost'' episodes ==
11386 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11388 <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>
11391 <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>
11396 Bug 26375: TOC with bold
11398 title=[[Main Page]]
11401 == '''should be bold''' then normal text ==
11403 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11405 <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>
11408 <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>
11413 Bug 33845: Headings become cursive in TOC when they contain an image
11415 title=[[Main Page]]
11418 == Image [[Image:foobar.jpg]] ==
11420 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11422 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11425 <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>
11430 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11432 title=[[Main Page]]
11435 == <blockquote>Quote</blockquote> ==
11437 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11439 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11442 <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>
11447 Unclosed tags in TOC
11449 title=[[Main Page]]
11453 <small>Hanc marginis exiguitas non caperet.</small>
11456 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11458 <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>
11461 <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>
11462 <p><small>Hanc marginis exiguitas non caperet.</small>
11468 Multiple tags in TOC
11471 == <i>Foo</i> <b>Bar</b> ==
11473 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11475 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11477 <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>
11478 <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>
11481 <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>
11482 <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>
11487 Tags with parameters in TOC
11490 == <sup class="in-h2">Hello</sup> ==
11492 == <sup class="a > b">Evilbye</sup> ==
11494 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11496 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11497 <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>
11500 <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>
11501 <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>
11506 span tags with directionality in TOC
11509 == <span dir="ltr">C++</span> ==
11511 == <span dir="rtl">זבנג!</span> ==
11513 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11515 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11517 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11519 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11521 <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>
11522 <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>
11523 <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>
11524 <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>
11525 <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>
11528 <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>
11529 <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>
11530 <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>
11531 <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>
11532 <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>
11539 == {{int:headline_sample}} ==
11543 Bug 32057: Title needed when expanding <h> nodes.
11545 title=[[Main Page]]
11549 <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>
11554 Strip marker in urlencode
11556 {{urlencode:x<nowiki/>y}}
11557 {{urlencode:x<nowiki/>y|wiki}}
11558 {{urlencode:x<nowiki/>y|path}}
11585 Strip marker in formatNum
11587 {{formatnum:1<nowiki/>2}}
11588 {{formatnum:1<nowiki/>2|R}}
11596 Strip marker in grammar
11600 {{grammar:elative|foo<nowiki/>bar}}
11607 Strip marker in padleft
11609 {{padleft:|2|x<nowiki/>y}}
11616 Strip marker in padright
11618 {{padright:|2|x<nowiki/>y}}
11625 Strip marker in anchorencode
11627 {{anchorencode:x<nowiki/>y}}
11634 nowiki inside link inside heading (bug 18295)
11636 ==[[foo|x<nowiki>y</nowiki>z]]==
11638 <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>
11643 new support for bdi element (bug 31817)
11645 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11647 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11652 Ignore pipe between table row attributes
11656 |- id=foo | style='color: red'
11664 <tr id="foo" style="color: red">
11671 Gallery override link with WikiLink (bug 34852)
11674 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11677 <ul class="gallery">
11678 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11679 <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>
11680 <div class="gallerytext">
11690 Gallery override link with absolute external link (bug 34852)
11693 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11696 <ul class="gallery">
11697 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11698 <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>
11699 <div class="gallerytext">
11709 Gallery override link with malicious javascript (bug 34852)
11712 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11715 <ul class="gallery">
11716 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11717 <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>
11718 <div class="gallerytext">
11728 Language parser function
11737 Padleft and padright as substr
11739 {{padleft:|3|abcde}}
11740 {{padright:|3|abcde}}
11748 Bug 34939 - Case insensitive link parsing ([HttP://])
11750 [HttP://MediaWiki.Org/]
11752 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11757 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11759 [HttP://MediaWiki.Org/ MediaWiki]
11761 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11766 Bug 34939 - Case insensitive link parsing (HttP://)
11768 HttP://MediaWiki.Org/
11770 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11775 ### Parsoids-specific tests
11776 ### Parsoid-PHP parser incompatibilities
11779 1. SOL-sensitive wikitext tokens as template-args
11793 #### The following section of tests are primarily to test
11794 #### wikitext escaping capabilities of Parsoid.
11795 #### A lot of the tests are disabled for the PHP parser either
11796 #### because of minor newline diffs or other reasons.
11797 #### As Parsoid serializer can handle newlines and other HTML
11798 #### more robustly, some of these tests might get reenabled
11799 #### for the PHP parser.
11801 #### --------------- Headings ---------------
11803 #### 1. Nested inside html <h1>=foo=</h1>
11804 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11805 #### 3. Nested inside html with wikitext split by html tags
11806 #### 4. No escape needed
11807 #### 5. Empty headings <h1></h1>
11808 #### 6. Heading chars in SOL context
11809 #### ----------------------------------------
11811 Headings: 0. Unnested
11813 <nowiki>=foo=</nowiki>
11815 <nowiki>=foo</nowiki>''a''=
11818 </p><p>=foo<i>a</i>=
11823 Headings: 1. Nested inside html
11827 =<nowiki>=foo=</nowiki>=
11828 ==<nowiki>=foo=</nowiki>==
11829 ===<nowiki>=foo=</nowiki>===
11830 ====<nowiki>=foo=</nowiki>====
11831 =====<nowiki>=foo=</nowiki>=====
11832 ======<nowiki>=foo=</nowiki>======
11843 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11848 <nowiki>*bar</nowiki>
11852 <nowiki>=bar=</nowiki>
11860 Headings: 3. Nested inside html with wikitext split by html tags
11864 =<nowiki>=</nowiki>'''bold'''foo==
11866 <h1>=<b>bold</b>foo=</h1>
11870 Headings: 4. No escaping needed (testing just h1 and h2)
11885 <h1><i>=</i>foo=</h1>
11890 Headings: 5. Empty headings
11894 =<nowiki></nowiki>=
11895 ==<nowiki></nowiki>==
11896 ===<nowiki></nowiki>===
11897 ====<nowiki></nowiki>====
11898 =====<nowiki></nowiki>=====
11899 ======<nowiki></nowiki>======
11910 Headings: 6. Heading chars in SOL context
11914 <!--cmt--><nowiki>=h1=</nowiki>
11920 #### --------------- Lists ---------------
11921 #### 0. Outside nests (*foo, etc.)
11922 #### 1. Nested inside html <ul><li>*foo</li></ul>
11923 #### 2. Inside definition lists
11924 #### 3. Only bullets at start should be escaped
11925 #### 4. No escapes needed
11926 #### 5. No unnecessary escapes
11927 #### 6. Escape bullets in SOL position
11928 #### 7. Escape bullets in a multi-line context
11929 #### ----------------------------------------
11932 Lists: 0. Outside nests
11934 <nowiki>*foo</nowiki>
11936 <nowiki>#foo</nowiki>
11944 Lists: 1. Nested inside html
11946 *<nowiki>*foo</nowiki>
11948 *<nowiki>#foo</nowiki>
11950 *<nowiki>:foo</nowiki>
11952 *<nowiki>;foo</nowiki>
11954 #<nowiki>*foo</nowiki>
11956 #<nowiki>#foo</nowiki>
11958 #<nowiki>:foo</nowiki>
11960 #<nowiki>;foo</nowiki>
11982 Lists: 2. Inside definition lists
11984 ;<nowiki>;foo</nowiki>
11986 ;<nowiki>:foo</nowiki>
11988 ;<nowiki>:foo</nowiki>
11991 :<nowiki>:foo</nowiki>
12006 Lists: 3. Only bullets at start of text should be escaped
12008 *<nowiki>*foo*bar</nowiki>
12010 *<nowiki>*foo</nowiki>''it''*bar
12014 <ul><li>*foo<i>it</i>*bar
12020 Lists: 4. No escapes needed
12032 <ul><li><i>foo</i>*bar
12034 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12039 Lists: 5. No unnecessary escapes
12041 * bar <span><nowiki>[[foo]]</nowiki></span>
12043 *=bar <span><nowiki>[[foo]]</nowiki></span>
12045 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12047 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12049 *=bar <span>foo]]</span>=
12051 <ul><li> bar <span>[[foo]]</span>
12053 <ul><li>=bar <span>[[foo]]</span>
12055 <ul><li>[[bar <span>[[foo]]</span>
12057 <ul><li>]]bar <span>[[foo]]</span>
12059 <ul><li>=bar <span>foo]]</span>=
12065 Lists: 6. Escape bullets in SOL position
12069 <!--cmt--><nowiki>*foo</nowiki>
12076 Lists: 7. Escape bullets in a multi-line context
12086 #### --------------- HRs ---------------
12087 #### 1. Single line
12088 #### -----------------------------------
12091 HRs: 1. Single line
12096 <nowiki>----</nowiki>
12098 <nowiki>=foo=</nowiki>
12100 <nowiki>*foo</nowiki>
12107 #### --------------- Tables ---------------
12108 #### 1a. Simple example
12109 #### 1b. No escaping needed (!foo)
12110 #### 1c. No escaping needed (|foo)
12111 #### 1d. No escaping needed (|}foo)
12113 #### 2a. Nested in td (<td>foo|bar</td>)
12114 #### 2b. Nested in td (<td>foo||bar</td>)
12115 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12117 #### 3a. Nested in th (<th>foo!bar</th>)
12118 #### 3b. Nested in th (<th>foo!!bar</th>)
12119 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12123 #### 4c. No escaping needed
12124 #### --------------------------------------
12127 Tables: 1a. Simple example
12138 Tables: 1b. No escaping needed
12147 Tables: 1c. No escaping needed
12156 Tables: 1d. No escaping needed
12165 Tables: 2a. Nested in td
12170 |<nowiki>foo|bar</nowiki>
12180 Tables: 2b. Nested in td
12185 |<nowiki>foo||bar</nowiki>
12186 |''it''<nowiki>foo||bar</nowiki>
12191 </td><td><i>it</i>foo||bar
12197 Tables: 2c. Nested in td -- no escaping needed
12212 Tables: 3a. Nested in th
12227 Tables: 3b. Nested in th
12232 !<nowiki>foo!!bar</nowiki>
12242 Tables: 3c. Nested in th -- no escaping needed
12257 Tables: 4a. Escape -
12265 |<nowiki>-bar</nowiki>
12269 <tr><th>-bar</th></tr>
12270 <tr><td>-bar</td></tr>
12275 Tables: 4b. Escape +
12283 |<nowiki>+bar</nowiki>
12287 <tr><th>+bar</th></tr>
12288 <tr><td>+bar</td></tr>
12293 Tables: 4c. No escaping needed
12307 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12308 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12312 #### --------------- Links ---------------
12313 #### 1. Quote marks in link text
12314 #### 2. Wikilinks: Escapes needed
12315 #### 3. Wikilinks: No escapes needed
12316 #### 4. Extlinks: Escapes needed
12317 #### 5. Extlinks: No escapes needed
12318 #### --------------------------------------
12320 Links 1. Quote marks in link text
12324 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12326 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12330 Links 2. WikiLinks: Escapes needed
12334 [[Foo|<nowiki>[Foobar]</nowiki>]]
12335 [[Foo|<nowiki>Foobar]</nowiki>]]
12336 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12337 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12338 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12339 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12340 [[Foo|<nowiki>|Bar</nowiki>]]
12342 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12343 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12344 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12345 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12346 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12347 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12348 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12352 Links 3. WikiLinks: No escapes needed
12359 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12360 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12364 Links 4. ExtLinks: Escapes needed
12368 [http://google.com <nowiki>[google]</nowiki>]
12369 [http://google.com <nowiki>google]</nowiki>]
12371 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12372 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12376 Links 5. ExtLinks: No escapes needed
12380 [http://google.com [google]
12382 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12385 #### --------------- Quotes ---------------
12386 #### 1. Quotes inside <b> and <i>
12387 #### 2. Link fragments separated by <i> and <b> tags
12388 #### 3. Link fragments inside <i> and <b>
12389 #### --------------------------------------
12391 1. Quotes inside <b> and <i>
12393 ''<nowiki>'foo'</nowiki>''
12394 ''<nowiki>''foo''</nowiki>''
12395 ''<nowiki>'''foo'''</nowiki>''
12396 '''<nowiki>'foo'</nowiki>'''
12397 '''<nowiki>''foo''</nowiki>'''
12398 '''<nowiki>'''foo'''</nowiki>'''
12399 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12407 <b>foo'<i>bar'</i>baz</b>
12412 2. Link fragments separated by <i> and <b> tags
12414 [[''foo''<nowiki>hello]]</nowiki>
12416 [['''foo'''<nowiki>hello]]</nowiki>
12418 <p>[[<i>foo</i>hello]]
12419 </p><p>[[<b>foo</b>hello]]
12424 2. Link fragments inside <i> and <b>
12425 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12426 this is one of the shortcomings of this format)
12428 ''[[foo''<nowiki>]]</nowiki>
12430 '''[[foo'''<nowiki>]]</nowiki>
12433 </p><p><b>[[foo</b>]]
12437 #### --------------- Paragraphs ---------------
12438 #### 1. No unnecessary escapes
12439 #### --------------------------------------
12442 1. No unnecessary escapes
12444 bar <span><nowiki>[[foo]]</nowiki></span>
12446 =bar <span><nowiki>[[foo]]</nowiki></span>
12448 [[bar <span><nowiki>[[foo]]</nowiki></span>
12450 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12452 <nowiki>=bar </nowiki><span>foo]]</span>=
12454 <p>bar <span>[[foo]]</span>
12455 </p><p>=bar <span>[[foo]]</span>
12456 </p><p>[[bar <span>[[foo]]</span>
12457 </p><p>]]bar <span>[[foo]]</span>
12458 </p><p>=bar <span>foo]]</span>=
12462 #### --------------- PRE ------------------
12463 #### 1. Leading space in SOL context should be escaped
12464 #### --------------------------------------
12466 1. Leading space in SOL context should be escaped
12470 <nowiki> foo</nowiki>
12471 <!--cmt--><nowiki> foo</nowiki>
12478 #### --------------- HTML tags ---------------
12481 #### 3. multi-line html tag
12482 #### --------------------------------------
12488 <a href="http://google.com">google</a>
12490 <a href="http://google.com">google</a>
12496 <nowiki><div>foo</div>
12497 <div style="color:red">foo</div></nowiki>
12499 <p><div>foo</div>
12500 <div style="color:red">foo</div>
12505 3. multi-line html tag
12517 #### --------------- Others ---------------
12521 <nowiki>foo</nowiki>
12523 <p><nowiki>foo</nowiki>
12532 Try for 100% code coverage