1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
118 This is a simple paragraph.
120 <p>This is a simple paragraph.
125 Paragraphs with extra newline spacing
163 * plain''italic''plain
164 * plain''italic''plain''italic''plain
165 * plain'''bold'''plain
166 * plain'''bold'''plain'''bold'''plain
167 * plain''italic''plain'''bold'''plain
168 * plain'''bold'''plain''italic''plain
169 * plain''italic'''bold-italic'''italic''plain
170 * plain'''bold''bold-italic''bold'''plain
171 * plain'''''bold-italic'''italic''plain
172 * plain'''''bold-italic''bold'''plain
173 * plain''italic'''bold-italic'''''plain
174 * plain'''bold''bold-italic'''''plain
175 * plain l'''italic''plain
176 * plain l''''bold''' plain
179 </li><li> plain<i>italic</i>plain
180 </li><li> plain<i>italic</i>plain<i>italic</i>plain
181 </li><li> plain<b>bold</b>plain
182 </li><li> plain<b>bold</b>plain<b>bold</b>plain
183 </li><li> plain<i>italic</i>plain<b>bold</b>plain
184 </li><li> plain<b>bold</b>plain<i>italic</i>plain
185 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
186 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
187 </li><li> plain<i><b>bold-italic</b>italic</i>plain
188 </li><li> plain<b><i>bold-italic</i>bold</b>plain
189 </li><li> plain<i>italic<b>bold-italic</b></i>plain
190 </li><li> plain<b>bold<i>bold-italic</i></b>plain
191 </li><li> plain l'<i>italic</i>plain
192 </li><li> plain l'<b>bold</b> plain
198 ### 2-quote opening sequence tests
201 Italics and bold: 2-quote opening sequence: (2,2)
211 Italics and bold: 2-quote opening sequence: (2,3)
221 Italics and bold: 2-quote opening sequence: (2,4)
231 Italics and bold: 2-quote opening sequence: (2,5)
241 ### 3-quote opening sequence tests
245 Italics and bold: 3-quote opening sequence: (3,2)
255 Italics and bold: 3-quote opening sequence: (3,3)
265 Italics and bold: 3-quote opening sequence: (3,4)
275 Italics and bold: 3-quote opening sequence: (3,5)
285 ### 4-quote opening sequence tests
289 Italics and bold: 4-quote opening sequence: (4,2)
299 Italics and bold: 4-quote opening sequence: (4,3)
309 Italics and bold: 4-quote opening sequence: (4,4)
319 Italics and bold: 4-quote opening sequence: (4,5)
329 ### 5-quote opening sequence tests
333 Italics and bold: 5-quote opening sequence: (5,2)
343 Italics and bold: 5-quote opening sequence: (5,3)
353 Italics and bold: 5-quote opening sequence: (5,4)
357 <p><i><b>foo'</b></i>
363 Italics and bold: 5-quote opening sequence: (5,5)
372 ### multiple quote sequences in a line
375 Italics and bold: multiple quote sequences: (2,4,2)
379 <p><i>foo'<b>bar</b></i>
385 Italics and bold: multiple quote sequences: (2,4,3)
389 <p><i>foo'<b>bar</b></i>
395 Italics and bold: multiple quote sequences: (2,4,4)
399 <p><i>foo'<b>bar'</b></i>
405 Italics and bold: multiple quote sequences: (3,4,2)
415 Italics and bold: multiple quote sequences: (3,4,3)
424 ### other quote tests
427 Italics and bold: other quote tests: (2,3,5)
429 ''this is about '''foo's family'''''
431 <p><i>this is about <b>foo's family</b></i>
437 Italics and bold: other quote tests: (2,(3,3),2)
439 ''this is about '''foo's''' family''
441 <p><i>this is about <b>foo's</b> family</i>
447 Italics and bold: other quote tests: (3,2,3,2)
449 '''this is about ''foo'''s family''
451 <p><b>this is about <i>foo</i></b><i>s family</i>
457 Italics and bold: other quote tests: (3,2,3,3)
459 '''this is about ''foo'''s family'''
461 <p>'<i>this is about </i>foo<b>s family</b>
468 Italics and bold: other quote tests: (3,(2,2),3)
470 '''this is about ''foo's'' family'''
472 <p><b>this is about <i>foo's</i> family</b>
477 ### <nowiki> test cases
481 <nowiki> unordered list
483 <nowiki>* This is not an unordered list item.</nowiki>
485 <p>* This is not an unordered list item.
492 <nowiki>Lorem ipsum dolor
513 :There is not nowiki.
514 :There is <nowiki>nowiki</nowiki>.
516 #There is not nowiki.
517 #There is <nowiki>nowiki</nowiki>.
519 *There is not nowiki.
520 *There is <nowiki>nowiki</nowiki>.
522 <dl><dd>There is not nowiki.
523 </dd><dd>There is nowiki.
525 <ol><li>There is not nowiki.
526 </li><li>There is nowiki.
528 <ul><li>There is not nowiki.
529 </li><li>There is nowiki.
541 <!-- comment 1 --> asdf
543 <!-- comment 1 --> asdf
546 <!-- comment 1 --> asdf
547 <!-- comment 2 -->xyz
549 <!-- comment 1 --> asdf
550 <!-- comment 2 --> xyz
606 asdf<!-- comment 1 -->jkl
616 <!-- foo --> b <!-- bar -->
630 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
636 Comment semantics and delimiters
638 <!-- --><!----><!-----><!------>
644 Comment semantics and delimiters, redux
646 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
647 -- foo -- funky huh? ... -->
653 Comment semantics and delimiters: directors cut
655 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
656 everything starting with < followed by !-- until the first -- and > we see,
657 that wouldn't be valid XML however, since in XML -- has to terminate a comment
665 Comment semantics: nesting
667 <!--<!-- no, we're not going to do anything fancy here -->-->
674 Comment semantics: unclosed comment at end
676 <!--This comment will run out to the end of the document
682 Comment in template title
691 Comment on its own line post-expand
703 Comment on its own line post-expand with non-significant whitespace
715 ### paragraph wraping tests
729 Block tag on one line
741 Block tag on both lines
753 Multiple lines without block tags
771 ### Preformatted text
780 And a [[Main Page|link]]
786 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
791 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
808 Regression with preformatted in <center>
821 # Expected output in the following test is not really expected (there should be
822 # <pre> in the output) -- it's only testing for well-formedness.
824 Bug 6200: Preformatted in <blockquote>
837 <pre> with attributes (bug 3202)
839 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
841 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
846 <pre> with width attribute (bug 3202)
848 <pre width="8">Narrow screen goodies</pre>
850 <pre width="8">Narrow screen goodies</pre>
855 <pre> with forbidden attribute (bug 3202)
857 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
859 <pre width="8">Narrow screen goodies</pre>
864 <pre> with forbidden attribute values (bug 3202)
866 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
868 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
873 <nowiki> inside <pre> (bug 13238)
881 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
889 <pre><nowiki>Foo</nowiki></pre>
894 <nowiki> and <pre> preference (first one wins)
925 Templates: Pre: 1a. Templates that break a line should suppress <pre>
933 Templates: Pre: 1b. Templates that break a line should suppress <pre>
943 Templates: Pre: 1c: Wrapping should be based on expanded content
955 Templates: Pre: 1d: Wrapping should be based on expanded content
976 Templates: Pre: 1e. Wrapping should be based on expanded content
980 {{echo| foo}}{{echo| bar}}
985 {{echo|<!--cmt--> foo}}
987 <!--cmt-->{{echo| foo}}
989 {{echo|{{echo| }}bar}}
1007 Templates: Pre: 1f: Wrapping should be based on expanded content
1044 ### Parsoid-centric tests for testing RT edge cases for pre
1048 1a. Pre and Comments
1061 1b. Pre and Comments
1074 1c. Pre and Comments
1124 3a. Pre and block tags (single-line html)
1132 <pre><span> foo </span>
1137 3b. Pre and block tags (pre-content on separate line)
1189 4. Multiple spaces at start-of-line
1208 ### Definition lists
1215 <dl><dt> name </dt><dd> Definition
1221 Definition list for indentation only
1225 <dl><dd> Indented text
1231 Definition list with no space
1235 <dl><dt>name</dt><dd>Definition
1241 Definition list with URL link
1243 ; http://example.com/ : definition
1245 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1251 Definition list with bracketed URL link
1253 ;[http://www.example.com/ Example]:Something about it
1255 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1261 Definition list with wikilink containing colon
1263 ; [[Help:FAQ]]: The least-read page on Wikipedia
1265 <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
1270 # At Brion's and JeLuF's insistence... :)
1272 Definition list with news link containing colon
1274 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1276 <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!
1282 Malformed definition list with colon
1284 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1286 <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
1292 Definition lists: colon in external link text
1294 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1296 <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
1302 Definition lists: colon in HTML attribute
1304 ;<b style="display: inline">bold</b>
1306 <dl><dt><b style="display: inline">bold</b>
1312 Definition lists: self-closed tag
1314 ;one<br/>two : two-line fun
1316 <dl><dt>one<br />two </dt><dd> two-line fun
1322 Bug 11748: Literal closing tags
1326 <dd>test test test test test</dd>
1328 <dd>test test test test test</dd>
1333 <dd>test test test test test</dd>
1335 <dd>test test test test test</dd>
1341 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1344 ; term : description
1350 <dl><dt> term </dt><dd> description
1361 Definition list with empty definition and following paragraph
1366 <dl><dt> term</dt><dd>
1373 Nested definition lists using html syntax
1390 Definition Lists: No nesting: Multiple dd's
1404 Definition Lists: Indentation: Regular
1420 Definition Lists: Indentation: Missing 1st level
1434 Definition Lists: Indentation: Multi-level indent
1438 <dl><dd><dl><dd><dl><dd>i3
1446 Definition Lists: Hacky use to indent tables
1453 should be left alone
1455 <dl><dd><dl><dd><table>
1460 </td></tr></table></dd></dl></dd></dl>
1462 should be left alone
1465 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1466 ## as an empty dt item. It also ignores all but the last ";" when followed
1467 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1468 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1471 ## Ex: ";;t2 ::d2" is transformed into:
1483 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1484 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1495 ## All Parsoid only definition list tests have this difference.
1497 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1498 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1501 Definition Lists: Nesting: Multi-level (Parsoid only)
1531 Definition Lists: Nesting: Test 2 (Parsoid only)
1551 Definition Lists: Nesting: Test 3 (Parsoid only)
1579 Definition Lists: Nesting: Test 4
1584 <dl><dd><dl><dd><dl><dt>t3
1594 Definition Lists: Mixed Lists: Test 1
1600 <dl><dd><dl><dt><ul><li> foo
1612 Definition Lists: Mixed Lists: Test 2
1626 Definition Lists: Mixed Lists: Test 3
1631 <ul><li><dl><dd><dl><dd><dl><dd> d1
1642 Definition Lists: Mixed Lists: Test 4
1647 <ul><li><dl><dt>d1 </dt><dd>d2
1648 </dd><dt>d3 </dt><dd>d4
1656 Definition Lists: Mixed Lists: Test 5
1671 Definition Lists: Mixed Lists: Test 6
1676 <ol><li><ul><li><dl><dd>d1
1688 Definition Lists: Mixed Lists: Test 7
1702 Definition Lists: Mixed Lists: Test 8
1718 Definition Lists: Mixed Lists: Test 9
1722 <ul><li><dl><dt>foo </dt><dd>bar
1730 Definition Lists: Mixed Lists: Test 10
1734 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1743 Definition Lists: Mixed Lists: Test 11
1748 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1753 <dl><dt>boo </dt><dd>baz
1764 Definition Lists: Weird Ones: Test 1
1766 *#;*::;; foo : bar (who uses this?)
1768 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1784 External links: non-bracketed
1786 Non-bracketed: http://example.com
1788 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1793 External links: numbered
1795 Numbered: [http://example.com]
1796 Numbered: [http://example.net]
1797 Numbered: [http://example.com]
1799 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1800 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1801 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1806 External links: specified text
1808 Specified text: [http://example.com link]
1810 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1815 External links: trail
1817 Linktrails should not work for external links: [http://example.com link]s
1819 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1824 External links: dollar sign in URL
1826 http://example.com/1$2345
1828 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1833 External links: dollar sign in URL (named)
1835 [http://example.com/1$2345]
1837 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1842 External links: open square bracket forbidden in URL (bug 4377)
1844 http://example.com/1[2345
1846 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1851 External links: open square bracket forbidden in URL (named) (bug 4377)
1853 [http://example.com/1[2345]
1855 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1860 External links: nowiki in URL link text (bug 6230)
1862 [http://example.com/ <nowiki>''example site''</nowiki>]
1864 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1869 External links: newline forbidden in text (bug 6230 regression check)
1871 [http://example.com/ first
1874 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1880 External links: Pipe char between url and text
1882 [http://example.com | link]
1884 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1889 External links: protocol-relative URL in brackets
1891 [//example.com/ Test]
1893 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1898 External links: protocol-relative URL in brackets without text
1902 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1907 External links: protocol-relative URL in free text is left alone
1911 <p>//example.com/Foo
1916 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1918 foo//example.com/Foo
1920 <p>foo//example.com/Foo
1927 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1929 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1934 External image from https
1936 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1938 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1943 Link to non-http image, no img tag
1945 Link to non-http image, no img tag: ftp://example.com/test.jpg
1947 <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>
1952 External links: terminating separator
1954 Terminating separator: http://example.com/thing,
1956 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1961 External links: intervening separator
1963 Intervening separator: http://example.com/1,2,3
1965 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1970 External links: old bug with URL in query
1972 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1974 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1979 External links: old URL-in-URL bug, mixed protocols
1981 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1983 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1988 External links: URL in text
1990 URL in text: [http://example.com http://example.com]
1992 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1997 External links: Clickable images
1999 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2001 <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>
2006 External links: raw ampersand
2008 Old & use: http://x&y
2010 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2015 External links: encoded ampersand
2017 Old & use: http://x&y
2019 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2024 External links: encoded equals (bug 6102)
2026 http://example.com/?foo=bar
2028 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2033 External links: [raw ampersand]
2035 Old & use: [http://x&y]
2037 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2042 External links: [encoded ampersand]
2044 Old & use: [http://x&y]
2046 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2051 External links: [encoded equals] (bug 6102)
2053 [http://example.com/?foo=bar]
2055 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2060 External links: [IDN ignored character reference in hostname; strip it right off]
2062 [http://e‌xample.com/]
2064 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2068 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2069 # Where an external link could easily circumvent the sanitization of the text of
2070 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2071 # test demands a higher standard. That's a bit strange.
2075 # http://example.com -> [http://example.com|http://example.com]
2076 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2078 # The first example is sanitized, but the second is not. Any security benefits
2079 # from this production are trivial to circumvent. Either remove this test and
2080 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2081 # the test accordingly.
2086 External links: IDN ignored character reference in hostname; strip it right off
2088 http://e‌xample.com/
2090 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2095 External links: www.jpeg.org (bug 554)
2099 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2104 External links: URL within URL (original bug 2)
2106 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2108 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2113 BUG 361: URL inside bracketed URL
2115 [http://www.example.com/foo http://www.example.com/bar]
2117 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2122 BUG 361: URL within URL, not bracketed
2124 http://www.example.com/foo?=http://www.example.com/bar
2126 <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>
2131 BUG 289: ">"-token in URL-tail
2133 http://www.example.com/<hello>
2135 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2140 BUG 289: literal ">"-token in URL-tail
2142 http://www.example.com/<b>html</b>
2144 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2149 BUG 289: ">"-token in bracketed URL
2151 [http://www.example.com/<hello> stuff]
2153 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2158 BUG 289: literal ">"-token in bracketed URL
2160 [http://www.example.com/<b>html</b> stuff]
2162 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2167 BUG 289: literal double quote at end of URL
2169 http://www.example.com/"hello"
2171 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2176 BUG 289: literal double quote in bracketed URL
2178 [http://www.example.com/"hello" stuff]
2180 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2185 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2187 [http://www.example.com test]
2189 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2194 External links: wiki links within external link (Bug 3695)
2196 [http://example.com [[wikilink]] embedded in ext link]
2198 <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>
2203 BUG 787: Links with one slash after the url protocol are invalid
2207 [http:/example.com title]
2209 <p>http:/example.com
2210 </p><p>[http:/example.com title]
2215 Bracketed external links with template-generated invalid target
2217 [{{echo|http:/example.com}} title]
2219 <p>[http:/example.com title]
2224 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2226 ''[http://example.com text'']
2227 [http://example.com '''text]'''
2228 ''Something [http://example.com in italic'']
2229 ''Something [http://example.com mixed''''', even bold]'''
2230 '''''Now [http://example.com both''''']
2232 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2233 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2234 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2235 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2236 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2242 Bug 4781: %26 in URL
2244 http://www.example.com/?title=AT%26T
2246 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2250 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2251 # % is actually legal in HTML5. Any change in output would need testing though.
2253 Bug 4781, 5267: %25 in URL
2255 http://www.example.com/?title=100%25_Bran
2257 <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>
2262 Bug 4781, 5267: %28, %29 in URL
2264 http://www.example.com/?title=Ben-Hur_%281959_film%29
2266 <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>
2272 Bug 4781: %26 in autonumber URL
2274 [http://www.example.com/?title=AT%26T]
2276 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2281 Bug 4781, 5267: %26 in autonumber URL
2283 [http://www.example.com/?title=100%25_Bran]
2285 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2290 Bug 4781, 5267: %28, %29 in autonumber URL
2292 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2294 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2300 Bug 4781: %26 in bracketed URL
2302 [http://www.example.com/?title=AT%26T link]
2304 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2309 Bug 4781, 5267: %26 in bracketed URL
2311 [http://www.example.com/?title=100%25_Bran link]
2313 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2318 Bug 4781, 5267: %28, %29 in bracketed URL
2320 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2322 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2327 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2329 Some [http://example.com/ pretty ''italics'' and stuff]!
2331 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2336 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2338 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2340 <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>
2345 External link containing double-single-quotes with no space separating the url from text in italics
2347 [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]].]
2349 <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>
2354 URL-encoding in URL functions (single parameter)
2356 {{localurl:Some page|amp=&}}
2358 <p>/index.php?title=Some_page&amp=&
2363 URL-encoding in URL functions (multiple parameters)
2365 {{localurl:Some page|q=?&=&}}
2367 <p>/index.php?title=Some_page&q=?&amp=&
2374 http://example.com/index.php?foozoid%5B%5D=bar
2376 http://example.com/index.php?foozoid[]=bar
2378 <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>
2379 </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>
2384 IPv6 urls (bug 21261)
2388 http://[2404:130:0:1000::187:2]/index.php
2390 <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>
2401 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2403 Normal text. '''''Bold italic text.''''' Normal text.
2405 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2406 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2412 Unclosed and unmatched quotes
2414 '''''Bold italic text '''with bold deactivated''' in between.'''''
2416 '''''Bold italic text ''with italic deactivated'' in between.'''''
2420 ..spanning two paragraphs (should not work).'''
2422 '''Bold tag left open
2424 ''Italic tag left open
2428 <!-- Unmatching number of opening, closing tags: -->
2429 '''This year''''s election ''should'' beat '''last year''''s.
2431 ''Tom'''s car is bigger than ''Susan'''s.
2433 Plain ''italic'''s plain
2435 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2436 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2437 </p><p><b>Bold text..</b>
2438 </p><p>..spanning two paragraphs (should not work).
2439 </p><p><b>Bold tag left open</b>
2440 </p><p><i>Italic tag left open</i>
2442 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2443 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2444 </p><p>Plain <i>italic'</i>s plain
2451 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2454 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2455 # is the bare minimun required by the spec, see:
2456 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2458 A table with no data.
2464 # A table with nothing but a caption is invalid XHTML, we might want to render
2465 # this as <p>caption</p>
2467 A table with nothing but a caption
2475 </caption><tr><td></td></tr></table>
2501 Simple table but with multiple dashes for row wikitext
2519 Multiplication table
2521 {| border="1" cellpadding="2"
2522 |+Multiplication table
2524 ! × !! 1 !! 2 !! 3
2542 <table border="1" cellpadding="2">
2543 <caption>Multiplication table
2590 Allow +/- in 2nd and later cells in a row
2617 |rowspan=2| Cell 2, row 1 (and 2)
2628 <td rowspan="2"> Cell 2, row 1 (and 2)
2646 {| bgcolor=#ABCDEF border=2
2651 |the original table again
2659 <table bgcolor="#ABCDEF" border="2">
2667 <td>the original table again
2673 Invalid attributes in table cell (bug 1830)
2688 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2691 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2695 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2696 <td>]" onmouseover="alert(document.cookie)">test
2705 Indented table markup mixed with indented pre content (proposed in bug 6200)
2710 Text that should be rendered preformatted
2718 <pre>Text that should be rendered preformatted
2727 Template-generated table cell attributes and cell content
2735 <td style="color: red"> Foo
2744 Plain link, capitalized
2748 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2753 Plain link, uncapitalized
2757 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2764 [[Main Page|The Main Page]]
2766 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2775 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2780 Broken link with fragment
2782 [[Zigzagzogzagzig#zug]]
2784 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2789 Special page link with fragment
2791 [[Special:Version#anchor]]
2793 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2798 Nonexistent special page link with fragment
2800 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2802 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2809 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2811 <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>
2818 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2820 <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>!!!
2825 Link with 3 brackets
2834 Piped link with 3 brackets
2836 [[[main page|the main page]]]
2838 <p>[[[main page|the main page]]]
2843 Link with multiple pipes
2845 [[Main Page|The|Main|Page]]
2847 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2854 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2856 <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>
2861 Piped link to namespace
2863 [[Meta:Disclaimers|The disclaimers]]
2865 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2872 [[Usually caused by a typo (oops}]]
2874 <p>[[Usually caused by a typo (oops}]]
2879 Link containing % (not as a hex sequence)
2883 <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>
2888 Link containing % as a single hex sequence interpreted to char
2892 <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>
2897 Link containing % as a double hex sequence interpreted to hex sequence
2901 <p>[[7%2525 Solution]]
2906 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2907 Example for such a section: == < ==
2909 [[%23%3c]][[%23%3e]]
2911 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2916 Link containing "<#" and ">#" as a hex sequences
2918 [[%3c%23]][[%3e%23]]
2920 <p>[[%3c%23]][[%3e%23]]
2925 Link containing double-single-quotes '' (bug 4598)
2927 [[Lista d''e paise d''o munno]]
2929 <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>
2934 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2936 Some [[Link|pretty ''italics'' and stuff]]!
2938 <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>!
2943 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2945 ''Some [[Link|pretty ''italics'' and stuff]]!
2947 <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>
2952 Link with double quotes in title part (literal) and alternate part (interpreted)
2954 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2958 [[''Pentecoste''|Pentecoste]]
2960 [[''Pentecoste''|''Pentecoste'']]
2962 <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>
2963 </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>
2964 </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>
2965 </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>
2970 Broken image links with HTML captions (bug 39700)
2972 [[File:Nonexistent|<script></script>]]
2973 [[File:Nonexistent|100px|<script></script>]]
2974 [[File:Nonexistent|<]]
2975 [[File:Nonexistent|a<i>b</i>c]]
2977 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2978 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2979 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2980 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2987 [[http://www.example.com]]
2989 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2994 Plain link to URL with link text
2996 [[http://www.example.com Link text]]
2998 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3003 Plain link to protocol-relative URL
3005 [[//www.example.com]]
3007 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3012 Plain link to protocol-relative URL with link text
3014 [[//www.example.com Link text]]
3016 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3021 # I'm fairly sure the expected result here is wrong.
3022 # We want these to be URL links, not pseudo-pages with URLs for titles....
3023 # However the current output is also pretty screwy.
3026 # I'm changing it to match the current output--it arguably makes more
3027 # sense in the light of the test above. Old expected result was:
3028 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3030 # But I think this test is bordering on "garbage in, garbage out" anyway.
3035 Piped link to URL: [[http://www.example.com|an example URL]]
3037 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3042 BUG 2: [[page|http://url/]] should link to page, not http://url/
3044 [[Main Page|http://url/]]
3046 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3051 BUG 337: Escaped self-links should be bold
3055 [[Bug462]] [[Bug462]]
3057 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3062 Self-link to section should not be bold
3066 [[Main Page#section]]
3068 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3079 Self-link to numeric title
3085 <p><strong class="selflink">0</strong>
3090 Link to numeric-equivalent title
3096 <p><a href="/wiki/00" title="00">00</a>
3101 <nowiki> inside a link
3103 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3105 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3110 Non-breaking spaces in title
3112 [[ Main Page ]]
3114 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3119 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3125 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3130 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3136 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3141 Internal link with en linktrail: no apostrophes (bug 27473)
3147 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3152 Internal link with ca linktrail with apostrophes (bug 27473)
3158 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3163 Internal link with kaa linktrail with apostrophes (bug 27473)
3169 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3174 ### Interwiki links (see maintenance/interwiki.sql)
3178 Inline interwiki link
3180 [[MeatBall:SoftSecurity]]
3182 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3187 Inline interwiki link with empty title (bug 2372)
3191 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3196 Interwiki link encoding conversion (bug 1636)
3198 *[[Wikipedia:ro:Olteniţa]]
3199 *[[Wikipedia:ro:Olteniţa]]
3201 <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>
3202 </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>
3208 Interwiki link with fragment (bug 2130)
3210 [[MeatBall:SoftSecurity#foo]]
3212 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3227 Double interlanguage link
3238 Interlanguage link, with prefix links
3250 Double interlanguage link, with prefix links (bug 8897)
3263 Parsoid-specific test: Wikilinks with should RT properly
3269 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3287 Incorrecly removing closing slashes from correctly formed XHTML
3289 <br style="clear:both;" />
3291 <p><br style="clear:both;" />
3296 Failing to transform badly formed HTML into correct XHTML
3298 <br style="clear: left;">
3299 <br style="clear: right;">
3300 <br style="clear: both;">
3302 <p><br style="clear: left;" />
3303 <br style="clear: right;" />
3304 <br style="clear: both;" />
3309 Handling html with a div self-closing tag
3318 <p><div title />
3322 <p><div title=bar />
3323 <div title=bar/>
3325 <div title="bar/"></div>
3331 Handling html with a br self-closing tag
3340 <p><br title="title" />
3341 <br title="title" />
3350 Horizontal ruler (should it add that extra space?)
3364 Horizontal ruler -- 4+ dashes render hr
3373 Horizontal ruler -- eats additional dashes on the same line
3382 Horizontal ruler -- does not collaps dashes on consecutive lines
3393 Horizontal ruler -- <4 dashes render as plain text
3402 ### Block-level elements
3425 <ol><li>Numbered list
3442 ***#Number on level 4
3444 **#Number on level 3
3445 **#Number on level 3
3449 #** Level 3, but ordered
3452 <ol><li> with numbers
3454 <ul><li> and bullets
3456 <ol><li> and numbers
3458 </li><li>bullets again
3459 <ul><li>bullet level 2
3460 <ul><li>bullet level 3
3461 <ol><li>Number on level 4
3464 </li><li>bullet level 2
3465 <ol><li>Number on level 3
3466 </li><li>Number on level 3
3469 <ol><li>number level 2
3472 <ul><li><ul><li> Level 3
3476 <ol><li><ul><li><ul><li> Level 3, but ordered
3510 Nested lists 3 (first element empty)
3523 Nested lists 4 (first element empty)
3536 Nested lists 5 (both elements empty)
3549 Nested lists 6 (both elements empty)
3562 Nested lists 7 (skip initial nesting levels)
3566 <ul><li><ul><li><ul><li> foo
3574 Nested lists 8 (multiple nesting transitions)
3582 <ul><li><ul><li> bar
3592 1. Lists with start-of-line-transparent tokens before bullets: Comments
3606 2. Lists with start-of-line-transparent tokens before bullets: Template close
3618 List items are not parsed correctly following a <pre> block (bug 785)
3624 <ul><li> <pre>foo</pre>
3625 </li><li> <pre>bar</pre>
3632 List items from template
3643 * notSOL{{inner list}}
3662 List interrupted by empty line or heading
3672 <ul><li><ul><li> bar
3675 <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>
3676 <ul><li> Another list item
3687 Magic Word: {{CURRENTDAY}}
3696 Magic Word: {{CURRENTDAY2}}
3705 Magic Word: {{CURRENTDAYNAME}}
3714 Magic Word: {{CURRENTDOW}}
3723 Magic Word: {{CURRENTMONTH}}
3732 Magic Word: {{CURRENTMONTHABBREV}}
3734 {{CURRENTMONTHABBREV}}
3741 Magic Word: {{CURRENTMONTHNAME}}
3743 {{CURRENTMONTHNAME}}
3750 Magic Word: {{CURRENTMONTHNAMEGEN}}
3752 {{CURRENTMONTHNAMEGEN}}
3759 Magic Word: {{CURRENTTIME}}
3768 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3777 Magic Word: {{CURRENTYEAR}}
3786 Magic Word: {{FULLPAGENAME}}
3788 title=[[User:Ævar Arnfjörð Bjarmason]]
3792 <p>User:Ævar Arnfjörð Bjarmason
3797 Magic Word: {{FULLPAGENAMEE}}
3799 title=[[User:Ævar Arnfjörð Bjarmason]]
3803 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3808 Magic Word: {{NAMESPACE}}
3810 title=[[User:Ævar Arnfjörð Bjarmason]]
3819 Magic Word: {{NAMESPACEE}}
3821 title=[[User:Ævar Arnfjörð Bjarmason]]
3830 Magic Word: {{NAMESPACENUMBER}}
3832 title=[[User:Ævar Arnfjörð Bjarmason]]
3841 Magic Word: {{NUMBEROFFILES}}
3850 Magic Word: {{PAGENAME}}
3852 title=[[User:Ævar Arnfjörð Bjarmason]]
3856 <p>Ævar Arnfjörð Bjarmason
3861 Magic Word: {{PAGENAME}} with metacharacters
3863 title=[['foo & bar = baz']]
3867 <p><i>'foo & bar = baz'</i>
3872 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3874 title=[[*RFC 1234 http://example.com/]]
3878 <p>*RFC 1234 http://example.com/
3883 Magic Word: {{PAGENAMEE}}
3885 title=[[User:Ævar Arnfjörð Bjarmason]]
3889 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3894 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3896 title=[[*RFC 1234 http://example.com/]]
3900 <p>*RFC_1234_http://example.com/
3905 Magic Word: {{REVISIONID}}
3914 Magic Word: {{SCRIPTPATH}}
3923 Magic Word: {{SERVER}}
3927 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3932 Magic Word: {{SERVERNAME}}
3941 Magic Word: {{SITENAME}}
3950 Namespace 1 {{ns:1}}
3959 Namespace 1 {{ns:01}}
3968 Namespace 0 {{ns:0}} (bug 4783)
3976 Namespace 0 {{ns:00}} (bug 4783)
3984 Namespace -1 {{ns:-1}}
3993 Namespace User {{ns:User}}
4002 Namespace User talk {{ns:User_talk}}
4011 Namespace User talk {{ns:uSeR tAlK}}
4020 Namespace File {{ns:File}}
4029 Namespace File {{ns:Image}}
4038 Namespace (lang=de) Benutzer {{ns:User}}
4049 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4055 <p>Benutzer Diskussion
4063 {{urlencode:hi world?!}}
4064 {{urlencode:hi world?!|WIKI}}
4065 {{urlencode:hi world?!|PATH}}
4066 {{urlencode:hi world?!|QUERY}}
4079 Magic links: internal link to RFC (bug 479)
4083 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4088 Magic links: RFC (bug 479)
4092 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4097 Magic links: ISBN (bug 1937)
4101 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4106 Magic links: PMID incorrectly converts space to underscore
4110 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4119 Nonexistent template
4121 {{thistemplatedoesnotexist}}
4123 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4130 This is a test template
4138 <p>This is a test template
4143 Template with explicit namespace
4147 <p>This is a test template
4155 This is a test template with parameter {{{param}}}
4161 {{paramtest|param=foo}}
4163 <p>This is a test template with parameter foo
4168 Template:paramtestnum
4174 Template unnamed parameter
4176 {{paramtestnum|Main Page|the main page}}
4178 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4183 Template:templatesimple
4189 Template:templateredirect
4191 #redirect [[Template:templatesimple]]
4195 Template:templateasargtestnum
4201 Template:templateasargtest
4203 {{template{{{templ}}}}}
4207 Template:templateasargtest2
4213 Template with template name as unnamed argument
4215 {{templateasargtestnum|templatesimple}}
4222 Template with template name as argument
4224 {{templateasargtest|templ=simple}}
4231 Template with template name as argument (2)
4233 {{templateasargtest2|templ=templatesimple}}
4240 Template:templateasargtestdefault
4242 {{{{{templ|templatesimple}}}}}
4252 Template with default value
4254 {{templateasargtestdefault}}
4261 Template with default value (value set)
4263 {{templateasargtestdefault|templ=templa}}
4272 {{templateredirect}}
4279 Template with argument in separate line
4281 {{ templateasargtest |
4289 Template with complex template as argument
4292 param ={{ templateasargtest |
4295 <p>This is a test template with parameter (test)
4300 Template with thumb image (with link in description)
4303 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4305 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>
4310 Template:complextemplate
4312 {{{1}}} {{paramtest|
4313 param ={{{param}}}}}
4317 Template with complex arguments
4320 param ={{ templateasargtest |
4321 templ = simple }}|[[Template:complextemplate|link]]}}
4323 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4328 BUG 553: link with two variables in a piped link
4331 |[[{{{1}}}|{{{2}}}]]
4336 <td>[[{{{1}}}|{{{2}}}]]
4342 Magic variable as template parameter
4344 {{paramtest|param={{SITENAME}}}}
4346 <p>This is a test template with parameter MediaWiki
4353 [[{{{param}}}|link]]
4357 Template parameter as link source
4359 {{linktest|param=Main Page}}
4361 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4366 Template-generated attribute string (k='v')
4368 <span {{attr_str|id|v1}}>bar</span>
4370 <p><span id="v1">bar</span>
4377 including another template, {{paramtest|param={{{arg}}}}}
4381 Template passing argument to another template
4383 {{paramtest2|arg='hmm'}}
4385 <p>including another template, This is a test template with parameter 'hmm'
4396 Template as link source
4400 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4418 Template infinite loop
4422 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4427 Template from main namespace
4446 BUG 529: Template with table, not included at beginning of line
4465 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4485 BUG 41: Template parameters shown as broken links
4497 ''None'' of '''this''' should be
4499 but rather passed unmodified
4503 # hmm, fix this or just deprecate msgnw and document its behavior?
4509 {{msgnw:MSGNW test}}
4511 <p>''None'' of '''this''' should be
4513 but rather passed unmodified
4521 {{int:youhavenewmessages|lots of money|not!}}
4523 <p>You have lots of money (not!).
4530 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4534 <includeonly> and <noinclude> being included
4545 <onlyinclude>Foo</onlyinclude>bar
4549 <onlyinclude> being included
4561 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4565 <onlyinclude> and <includeonly> being included
4574 <includeonly> and <noinclude> on a page
4576 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4583 <onlyinclude> on a page
4585 <onlyinclude>Foo</onlyinclude>bar
4592 Template:Includeonly section
4595 ==Includeonly section==
4601 Bug 6563: Edit link generation for section shown by <includeonly>
4603 {{includeonly section}}
4605 <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>
4606 <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>
4610 # Uses same input as the contents of [[Template:Includeonly section]]
4612 Bug 6563: Section extraction for section shown by <includeonly>
4617 ==Includeonly section==
4625 Bug 6563: Edit link generation for section suppressed by <includeonly>
4628 ==Includeonly section==
4632 <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>
4637 Bug 6563: Section extraction for section suppressed by <includeonly>
4642 ==Includeonly section==
4650 ### <includeonly> and <noinclude> in attributes
4653 0. includeonly around the entire attribute
4655 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4657 <p><span id="v2">bar</span>
4662 1. includeonly in html attr key
4664 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4666 <p><span id="foo">bar</span>
4671 2. includeonly in html attr value
4673 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4674 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4676 <p><span id="v1">bar</span>
4677 <span id="v1">bar</span>
4682 3. includeonly in part of an attr value
4684 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4686 <p><span style="color:red;">bar</span>
4691 ### Testing parsing of templates where a template arg
4692 ### has the same name as the template itself.
4702 Templates: Template Name/Arg clash: 1. Use of positional param
4711 Templates: Template Name/Arg clash: 2. Use of named param
4720 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4729 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4733 Templates: 1. Simple use
4742 Templates: 2. Inside a block tag
4744 <div>{{echo|Foo}}</div>
4751 Templates: P-wrapping: 1a. Templates on consecutive lines
4762 Templates: P-wrapping: 1b. Templates on consecutive lines
4776 Templates: P-wrapping: 1c. Templates on consecutive lines
4779 {{echo|bar}} <div>baz</div>
4788 Templates: Inline Text: 1. Multiple tmeplate uses
4790 {{echo|Foo}}bar{{echo|baz}}
4797 Templates: Inline Text: 2. Back-to-back template uses
4799 {{echo|Foo}}{{echo|bar}}
4806 Templates: Block Tags: 1. Multiple template uses
4808 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4810 <div>Foo</div><div>bar</div><div>baz</div>
4815 Templates: Block Tags: 2. Back-to-back template uses
4817 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4819 <div>Foo</div><div>bar</div>
4824 Templates: Links: 1. Simple example
4826 {{echo|[[Foo|bar]]}}
4828 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4833 Templates: Links: 2. Generation of link href
4835 [[{{echo|Foo}}|bar]]
4837 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4842 Templates: Links: 3. Generation of part of a link href
4844 [[Fo{{echo|o}}|bar]]
4846 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4851 Templates: Links: 4. Multiple templates generating link href
4853 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4855 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4860 Templates: Links: 5. Generation of link text
4862 [[Foo|{{echo|bar}}]]
4864 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4869 Templates: Links: 5. Nested templates (only outermost template should be marked)
4871 {{echo|[[{{echo|Foo}}|bar]]}}
4873 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4878 Templates: HTML Tag: 1. Generation of HTML attr. key
4880 <div {{echo|style}}="color:red;">foo</div>
4882 <div style="color:red;">foo</div>
4887 Templates: HTML Tag: 2. Generation of HTML attr. value
4889 <div style={{echo|'color:red;'}}>foo</div>
4891 <div style="color:red;">foo</div>
4896 Templates: HTML Tag: 3. Generation of HTML attr key and value
4898 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4900 <div style="color:red;">foo</div>
4905 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4907 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4909 <div title="This is a long title with just one piece templated">foo</div>
4914 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4916 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4918 <div title="This is a long title with just one piece templated">foo</div>
4923 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4925 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4927 <div title="This is a long title with just one piece templated">foo</div>
4932 Templates: HTML Tables: 1. Generating start of a HTML table
4934 {{echo|<table><tr><td>foo</td>}}</tr></table>
4936 <table><tr><td>foo</td></tr></table>
4941 Templates: HTML Tables: 2a. Generating middle of a HTML table
4943 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4945 <table><tr><td>foo</td></tr></table>
4950 Templates: HTML Tables: 2b. Generating middle of a HTML table
4952 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4954 <table><tr><td>foo</td></tr></table>
4959 Templates: HTML Tables: 3. Generating end of a HTML table
4961 <table><tr>{{echo|<td>foo</td></tr></table>}}
4963 <table><tr><td>foo</td></tr></table>
4968 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4970 {{echo|<table>}}<tr><td>foo</td></tr></table>
4972 <table><tr><td>foo</td></tr></table>
4977 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
4979 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4981 <table><tr><td>foo</td></tr></table>
4986 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
4988 <table><tr>{{echo|<td>}}foo</td></tr></table>
4990 <table><tr><td>foo</td></tr></table>
4995 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
4997 <table><tr><td>foo{{echo|</td>}}</tr></table>
4999 <table><tr><td>foo</td></tr></table>
5004 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5006 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5008 <table><tr><td>foo</td></tr></table>
5013 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5015 <table><tr><td>foo</td></tr>{{echo|</table>}}
5017 <table><tr><td>foo</td></tr></table>
5022 Templates: Wiki Tables: 1. Fostering of entire template content
5030 <tr><td></td></tr></table>
5035 Templates: Wiki Tables: 2. Fostering of partial template content
5045 <tr><td></td></tr></table>
5050 Templates: Wiki Tables: 3. td-content via multiple templates
5053 {{echo|{{pipe}}a}}{{echo|b}}
5064 Templates: Lists: Multi-line list-items via templates
5066 *{{echo|a {{nonexistent|
5068 *{{echo|b {{nonexistent|
5071 <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>
5072 </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>
5078 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5080 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5082 <p><i>ab</i>c<i>d</i>e
5087 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5088 (PHP parser generates misnested html)
5092 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5094 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5098 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5099 (PHP parser generates misnested html)
5103 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5106 <div><i>b</i>c<i>d</i></div>
5111 Templates: Ugly nesting: 4. Divs opened/closed across templates
5113 a<div>b{{echo|c</div>d}}e
5120 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5126 |{{echo|foo</table>}}
5130 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5131 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5132 bar</span><span about="#mwt1">
5137 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5147 <td>1. {{echo|foo </table>}}</td>
5149 <td>2. {{echo|baz </table>}}</td>
5162 <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">
5163 <tbody><tr data-parsoid="{"stx":"html"}">
5164 <td data-parsoid="{"stx":"html"}">
5165 <table data-parsoid="{"stx":"html"}">
5166 <tbody><tr data-parsoid="{"stx":"html"}">
5167 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5168 <td data-parsoid="{"stx":"html"}"> bar </td>
5169 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5170 </span><span about="#mwt1">
5172 abc</span><span about="#mwt1">
5173 </span><span about="#mwt1">
5174 </span><span about="#mwt1">
5175 </span><span about="#mwt1">
5176 </span><span about="#mwt1">
5178 xyz</span><span about="#mwt1">
5179 </span><span about="#mwt1">
5184 Parser Functions: 1. Simple example
5193 Parser Functions: 2. Nested use (only outermost should be marked up)
5202 ### Pre-save transform tests
5205 pre-save transform: subst:
5211 This is a test template
5215 pre-save transform: normal template
5225 pre-save transform: nonexistent template
5229 {{thistemplatedoesnotexist}}
5231 {{thistemplatedoesnotexist}}
5236 pre-save transform: subst magic variables
5245 # This is bug 89, which I fixed. -- wtm
5247 pre-save transform: subst: templates with parameters
5251 {{subst:paramtest|param="something else"}}
5253 This is a test template with parameter "something else"
5259 <nowiki>'''not wiki'''</nowiki>
5263 pre-save transform: nowiki in subst (bug 1188)
5267 {{subst:nowikitest}}
5269 <nowiki>'''not wiki'''</nowiki>
5274 Template:commenttest
5276 This template has <!-- a comment --> in it.
5280 pre-save transform: comment in subst (bug 1936)
5284 {{subst:commenttest}}
5286 This template has <!-- a comment --> in it.
5290 pre-save transform: unclosed tag
5294 <nowiki>'''not wiki'''
5296 <nowiki>'''not wiki'''
5300 pre-save transform: mixed tag case
5304 <NOwiki>'''not wiki'''</noWIKI>
5306 <NOwiki>'''not wiki'''</noWIKI>
5310 pre-save transform: unclosed comment in <nowiki>
5314 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5316 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5322 <span onmouseover="alert('crap')">Oh no</span>
5326 (confirming safety of fix for subst bug 1936)
5328 {{Template:dangerous}}
5330 <p><span>Oh no</span>
5335 pre-save transform: comment containing gallery (bug 5024)
5339 <!-- <gallery>data</gallery> -->
5341 <!-- <gallery>data</gallery> -->
5345 pre-save transform: comment containing extension
5349 <!-- <tag>data</tag> -->
5351 <!-- <tag>data</tag> -->
5355 pre-save transform: comment containing nowiki
5359 <!-- <nowiki>data</nowiki> -->
5361 <!-- <nowiki>data</nowiki> -->
5365 pre-save transform: <noinclude> in subst (bug 3298)
5375 pre-save transform: <onlyinclude> in subst (bug 3298)
5387 {{<includeonly>subst:</includeonly>Includes}}
5391 Template:SafeSubstTest
5393 {{<includeonly>safesubst:</includeonly>Includes}}
5397 bug 22297: safesubst: works during PST
5401 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5407 bug 22297: safesubst: works during normal parse
5416 subst: does not work during normal parse
5420 <p>{{subst:Includes}}
5425 pre-save transform: context links ("pipe trick")
5429 [[Article (context)|]]
5432 [[Bar:Article (context)|]]
5433 [[:Bar:Article (context)|]]
5435 [[|Article (context)]]
5439 [[Article (context)|Article]]
5440 [[Bar:Article|Article]]
5441 [[:Bar:Article|Article]]
5442 [[Bar:Article (context)|Article]]
5443 [[:Bar:Article (context)|Article]]
5445 [[Article (context)]]
5446 [[Bar:X (Y) Z|X (Y) Z]]
5447 [[:Bar:X (Y) Z|X (Y) Z]]
5451 pre-save transform: context links ("pipe trick") with interwiki prefix
5455 [[interwiki:Article|]]
5456 [[:interwiki:Article|]]
5457 [[interwiki:Bar:Article|]]
5458 [[:interwiki:Bar:Article|]]
5460 [[interwiki:Article|Article]]
5461 [[:interwiki:Article|Article]]
5462 [[interwiki:Bar:Article|Bar:Article]]
5463 [[:interwiki:Bar:Article|Bar:Article]]
5467 pre-save transform: context links ("pipe trick") with parens in title
5469 pst title=[[Somearticle (context)]]
5473 [[Article (context)|Article]]
5477 pre-save transform: context links ("pipe trick") with comma in title
5479 pst title=[[Someplace, Somewhere]]
5482 [[Otherplace, Elsewhere|]]
5483 [[Otherplace, Elsewhere, Anywhere|]]
5485 [[Otherplace, Somewhere|Otherplace]]
5486 [[Otherplace, Elsewhere|Otherplace]]
5487 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5491 pre-save transform: context links ("pipe trick") with parens and comma
5493 pst title=[[Someplace (IGNORED), Somewhere]]
5496 [[Otherplace (place), Elsewhere|]]
5498 [[Otherplace, Somewhere|Otherplace]]
5499 [[Otherplace (place), Elsewhere|Otherplace]]
5503 pre-save transform: context links ("pipe trick") with comma and parens
5505 pst title=[[Who, me? (context)]]
5508 [[Me, Myself, and I (1937 song)|]]
5510 [[Yes, you. (context)|Yes, you.]]
5511 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5515 pre-save transform: context links ("pipe trick") with namespace
5517 pst title=[[Ns:Somearticle]]
5521 [[Ns:Article|Article]]
5525 pre-save transform: context links ("pipe trick") with namespace and parens
5527 pst title=[[Ns:Somearticle (context)]]
5531 [[Ns:Article (context)|Article]]
5535 pre-save transform: context links ("pipe trick") with namespace and comma
5537 pst title=[[Ns:Somearticle, Context, Whatever]]
5541 [[Ns:Article, Context, Whatever|Article]]
5545 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5547 pst title=[[Ns:Somearticle, Context (context)]]
5551 [[Ns:Article (context)|Article]]
5555 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5557 pst title=[[Ns:Somearticle (IGNORED), Context]]
5561 [[Ns:Article, Context|Article]]
5565 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5569 [[Article(context)|]]
5570 [[Bar:Article(context)|]]
5571 [[:Bar:Article(context)|]]
5572 [[|Article(context)]]
5576 [[Article(context)|Article]]
5577 [[Bar:Article(context)|Article]]
5578 [[:Bar:Article(context)|Article]]
5579 [[Article(context)]]
5581 [[:Bar:X(Y)Z|X(Y)Z]]
5585 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5589 [[Article (context)|]]
5590 [[Bar:Article (context)|]]
5591 [[:Bar:Article (context)|]]
5592 [[|Article (context)]]
5596 [[Article (context)|Article]]
5597 [[Bar:Article (context)|Article]]
5598 [[:Bar:Article (context)|Article]]
5599 [[Article (context)]]
5600 [[Bar:X (Y) Z|X (Y) Z]]
5601 [[:Bar:X (Y) Z|X (Y) Z]]
5605 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5609 [[Article(context)|]]
5610 [[Bar:Article(context)|]]
5611 [[:Bar:Article(context)|]]
5612 [[|Article(context)]]
5616 [[Article(context)|Article]]
5617 [[Bar:Article(context)|Article]]
5618 [[:Bar:Article(context)|Article]]
5619 [[Article(context)]]
5621 [[:Bar:X(Y)Z|X(Y)Z]]
5625 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5629 [[Article (context), context|]]
5630 [[Article (context),context|]]
5631 [[Bar:Article (context), context|]]
5632 [[Bar:Article (context),context|]]
5633 [[:Bar:Article (context), context|]]
5634 [[:Bar:Article (context),context|]]
5636 [[Article (context), context|Article]]
5637 [[Article (context),context|Article]]
5638 [[Bar:Article (context), context|Article]]
5639 [[Bar:Article (context),context|Article]]
5640 [[:Bar:Article (context), context|Article]]
5641 [[:Bar:Article (context),context|Article]]
5645 pre-save transform: trim trailing empty lines
5649 Empty lines are trimmed
5655 Empty lines are trimmed
5659 pre-save transform: Signature expansion
5664 * <noinclude>~~~</noinclude>
5665 * <includeonly>~~~</includeonly>
5666 * <onlyinclude>~~~</onlyinclude>
5668 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5669 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5670 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5671 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5676 pre-save transform: Signature expansion in nowiki tags (bug 93)
5682 <nowiki>~~~~</nowiki>
5684 <includeonly><nowiki>~~~~</nowiki></includeonly>
5686 <noinclude><nowiki>~~~~</nowiki></noinclude>
5688 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5690 {{subst:Foo}} shall be converted to FOO
5692 As well as inside noinclude/onlyinclude
5693 <noinclude>{{subst:Foo}}</noinclude>
5694 <onlyinclude>{{subst:Foo}}</onlyinclude>
5696 But not inside includeonly
5697 <includeonly>{{subst:Foo}}</includeonly>
5701 <nowiki>~~~~</nowiki>
5703 <includeonly><nowiki>~~~~</nowiki></includeonly>
5705 <noinclude><nowiki>~~~~</nowiki></noinclude>
5707 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5709 FOO shall be converted to FOO
5711 As well as inside noinclude/onlyinclude
5712 <noinclude>FOO</noinclude>
5713 <onlyinclude>FOO</onlyinclude>
5715 But not inside includeonly
5716 <includeonly>{{subst:Foo}}</includeonly>
5720 ### Message transform tests
5723 message transform: magic variables
5733 message transform: should not transform wiki markup
5743 message transform: <noinclude> in transcluded template (bug 4926)
5753 message transform: <onlyinclude> in transcluded template (bug 4926)
5763 {{#special:}} page name, known
5767 {{#special:Recentchanges}}
5769 Special:RecentChanges
5773 {{#special:}} page name with subpage, known
5777 {{#special:Recentchanges/param}}
5779 Special:RecentChanges/param
5783 {{#special:}} page name, unknown
5787 {{#special:foobarnonexistent}}
5789 No such special page
5793 {{#speciale:}} page name, known
5797 {{#speciale:Recentchanges}}
5799 Special:RecentChanges
5803 {{#speciale:}} page name with subpage, known
5807 {{#speciale:Recentchanges/param}}
5809 Special:RecentChanges/param
5813 {{#speciale:}} page name, unknown
5817 {{#speciale:foobarnonexistent}}
5819 No_such_special_page
5828 [[Image:foobar.jpg]]
5830 <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>
5837 [[Image:foobar.jpg|right]]
5839 <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>
5844 Simple image (using File: namespace, now canonical)
5848 <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>
5855 [[Image:foobar.jpg|right|Caption text]]
5857 <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>
5862 Image with empty attribute
5864 [[Image:foobar.jpg|right||Caption text]]
5866 <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>
5871 Image with link tails
5873 123[[Image:foobar.jpg]]456
5874 123[[Image:foobar.jpg|right]]456
5875 123[[Image:foobar.jpg|thumb]]456
5877 <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
5879 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
5880 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
5885 Image with multiple captions -- only last one is accepted
5887 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5889 <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>
5894 Image with link parameter, wiki target
5896 [[Image:foobar.jpg|link=Target page]]
5898 <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>
5903 Image with link parameter, URL target
5905 [[Image:foobar.jpg|link=http://example.com/]]
5907 <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>
5912 Image with link parameter, wgExternalLinkTarget
5914 [[Image:foobar.jpg|link=http://example.com/]]
5916 wgExternalLinkTarget='foobar'
5918 <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>
5923 Image with link parameter, wgNoFollowLinks set to false
5925 [[Image:foobar.jpg|link=http://example.com/]]
5927 wgNoFollowLinks=false
5929 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5934 Image with link parameter, wgNoFollowDomainExceptions
5936 [[Image:foobar.jpg|link=http://example.com/]]
5938 wgNoFollowDomainExceptions='example.com'
5940 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5945 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5947 [[Image:foobar.jpg|link=http://example.com/|Title]]
5949 wgExternalLinkTarget='foobar'
5951 <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>
5956 Image with empty link parameter
5958 [[Image:foobar.jpg|link=]]
5960 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5965 Image with link parameter (wiki target) and unnamed parameter
5967 [[Image:foobar.jpg|link=Target page|Title]]
5969 <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>
5974 Image with link parameter (URL target) and unnamed parameter
5976 [[Image:foobar.jpg|link=http://example.com/|Title]]
5978 <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>
5983 Thumbnail image with link parameter
5985 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5987 <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>
5992 Image with frame and link
5994 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5996 <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>
6001 Image with frame and link and explicit alt
6003 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6005 <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>
6010 Image with wiki markup in implicit alt
6012 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6014 <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>
6019 Image with wiki markup in explicit alt
6021 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6023 <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>
6028 Link to image page- image page normally doesn't exists, hence edit link
6029 Add test with existing image page
6030 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6034 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6039 bug 18784 Link to non-existent image page with caption should use caption as link text
6041 [[:Image:test|caption]]
6043 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6048 Frameless image caption with a free URL
6050 [[Image:foobar.jpg|http://example.com]]
6052 <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>
6057 Thumbnail image caption with a free URL
6059 [[Image:foobar.jpg|thumb|http://example.com]]
6061 <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>
6066 Thumbnail image caption with a free URL and explicit alt
6068 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6070 <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>
6075 BUG 1887: A ISBN with a thumbnail
6077 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6079 <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>
6084 BUG 1887: A RFC with a thumbnail
6086 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6088 <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>
6093 BUG 1887: A mailto link with a thumbnail
6095 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6097 <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>
6101 # Pending resolution to bug 368
6103 BUG 648: Frameless image caption with a link
6105 [[Image:foobar.jpg|text with a [[link]] in it]]
6107 <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>
6112 BUG 648: Frameless image caption with a link (suffix)
6114 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6116 <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>
6121 BUG 648: Frameless image caption with an interwiki link
6123 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6125 <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>
6130 BUG 648: Frameless image caption with a piped interwiki link
6132 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6134 <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>
6139 Escape HTML special chars in image alt text
6141 [[Image:foobar.jpg|& < > "]]
6143 <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>
6148 BUG 499: Alt text should have Ӓ, not &1234;
6150 [[Image:foobar.jpg|♀]]
6152 <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>
6157 Broken image caption with link
6159 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6161 <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.
6166 Image caption containing another image
6168 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6170 <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>
6175 Image caption containing a newline
6177 [[Image:Foobar.jpg|This
6180 <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>
6186 Bug 3090: External links other than http: in image captions
6188 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6190 <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>
6197 [[Image:foobar.jpg|a|class=b]]
6199 <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>
6206 #REDIRECT [[File:Barfoo.jpg]]
6212 [[Image:Barfoo.jpg]]
6214 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6219 Missing image with uploads disabled
6223 [[Image:Foobaz.jpg]]
6225 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6234 Subpage test/subpage
6242 subpage title=[[Subpage test]]
6246 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6251 Subpage noslash link
6253 subpage title=[[Subpage test]]
6257 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6266 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6271 BUG 561: {{/Subpage}}
6273 subpage title=[[Page]]
6277 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6285 Category:MediaWiki User's Guide
6293 [[:Category:MediaWiki User's Guide]]
6295 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6304 [[Category:MediaWiki User's Guide]]
6306 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6310 PAGESINCATEGORY invalid title fatal (r33546 fix)
6312 {{PAGESINCATEGORY:<bogus>}}
6319 Category with different sort key
6323 [[Category:MediaWiki User's Guide|Foo]]
6325 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6329 Category with identical sort key
6333 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6335 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6339 Category with empty sort key
6344 [[Category:MediaWiki User's Guide|]]
6346 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6350 Category with empty sort key and parentheses
6355 [[Category:Foo (bar)|]]
6357 [[Category:Foo (bar)|Foo]]
6361 Category with link tail
6366 123[[Category:Foo]]456
6368 123[[Category:Foo]]456
6372 Category with template
6377 [[Category:{{echo|Foo}}]]
6379 [[Category:{{echo|Foo}}]]
6383 Category with template in sort key
6388 [[Category:Foo|{{echo|Bar}}]]
6390 [[Category:Foo|{{echo|Bar}}]]
6394 Category with template in sort key and title
6399 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6401 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6405 Category / paragraph interactions
6407 Foo [[Category:Baz]] Bar
6409 Foo [[Category:Baz]]
6417 [[Category:Baz]] Bar
6430 {{echo|[[Category:Baz]]}}
6445 ### Inter-language links
6448 Inter-language links
6454 [[zh:食品]]
6456 es:Alimento fr:Nourriture zh:食品
6460 Duplicate interlanguage links (bug 24502)
6476 Basic section headings
6483 ===Smaller headline===
6486 <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>
6489 <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>
6492 <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>
6498 Section headings with TOC
6501 === Subheadline 1 ===
6502 ===== Skipping a level =====
6503 ====== Skipping a level ======
6507 ===Another headline===
6509 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6511 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6513 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6515 <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>
6517 <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>
6524 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6526 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6531 <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>
6532 <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>
6533 <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>
6534 <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>
6535 <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>
6538 <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>
6542 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6544 Handling of sections up to level 6 and beyond
6547 == Level 2 Heading==
6548 === Level 3 Heading===
6549 ==== Level 4 Heading====
6550 ===== Level 5 Heading=====
6551 ====== Level 6 Heading======
6552 ======= Level 7 Heading=======
6553 ======== Level 8 Heading========
6554 ========= Level 9 Heading=========
6555 ========== Level 10 Heading==========
6557 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6559 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6561 <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>
6563 <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>
6565 <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>
6567 <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>
6569 <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>
6570 <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>
6571 <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>
6572 <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>
6573 <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>
6586 <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>
6587 <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>
6588 <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>
6589 <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>
6590 <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>
6591 <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>
6592 <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>
6593 <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>
6594 <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>
6595 <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>
6600 TOC regression (bug 9764)
6604 ==== title 1.1.1 ====
6609 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6611 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6613 <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>
6615 <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>
6618 <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>
6621 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6623 <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>
6628 <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>
6629 <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>
6630 <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>
6631 <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>
6632 <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>
6633 <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>
6638 TOC with wgMaxTocLevel=3 (bug 6204)
6644 ==== title 1.1.1 ====
6649 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6651 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6653 <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>
6654 <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>
6657 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6659 <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>
6664 <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>
6665 <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>
6666 <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>
6667 <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>
6668 <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>
6669 <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>
6674 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6680 ====Section 1.1.1====
6681 ====Section 1.1.1.1====
6684 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6686 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6688 <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>
6691 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6694 <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>
6695 <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>
6696 <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>
6697 <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>
6698 <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>
6704 Resolving duplicate section names
6709 <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>
6710 <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>
6715 Resolving duplicate section names with differing case (bug 10721)
6720 <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>
6721 <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>
6733 Template with sections, __NOTOC__
6740 <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>
6741 <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>
6742 <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>
6743 <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>
6748 __NOEDITSECTION__ keyword
6754 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6755 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6760 Link inside a section heading
6762 ==Section with a [[Main Page|link]] in it==
6764 <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>
6769 TOC regression (bug 12077)
6776 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6778 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6780 <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>
6783 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6786 <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>
6787 <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>
6788 <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>
6793 BUG 1219 URL next to image (good)
6795 http://example.com [[Image:foobar.jpg]]
6797 <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>
6802 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6805 The line above must have a trailing space!
6808 But just in case it doesn't...
6810 <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>
6811 <p>The line above must have a trailing space!
6813 <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>
6814 <p>But just in case it doesn't...
6819 Header with special characters (bug 25462)
6821 The tooltips shall not show entities to the user (ie. be double escaped)
6838 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6840 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6842 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6843 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6844 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6845 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6846 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6849 <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>
6852 <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>
6855 <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>
6858 <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>
6861 <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>
6867 Headers with excess '=' characters
6868 (Are similar tests necessary beyond the 1st level?)
6872 =''italic'' heading==
6873 ==''italic'' heading=
6875 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6877 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6878 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6879 <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>
6880 <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>
6883 <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>
6884 <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>
6885 <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>
6886 <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>
6891 BUG 1219 URL next to image (broken)
6893 http://example.com[[Image:foobar.jpg]]
6895 <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>
6900 Bug 1186 news: in the middle of text
6902 http://en.wikinews.org/wiki/Wikinews:Workplace
6904 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6910 Namespaced link must have a title
6919 Namespaced link must have a title (bad fragment version)
6921 [[Project:#fragment]]
6923 <p>[[Project:#fragment]]
6929 div with no attributes
6931 <div>HTML rocks</div>
6933 <div>HTML rocks</div>
6938 div with double-quoted attribute
6940 <div id="rock">HTML rocks</div>
6942 <div id="rock">HTML rocks</div>
6947 div with single-quoted attribute
6949 <div id='rock'>HTML rocks</div>
6951 <div id="rock">HTML rocks</div>
6956 div with unquoted attribute
6958 <div id=rock>HTML rocks</div>
6960 <div id="rock">HTML rocks</div>
6965 div with illegal double attributes
6967 <div id="a" id="b">HTML rocks</div>
6969 <div id="b">HTML rocks</div>
6974 HTML multiple attributes correction
6976 <p class="error" class="awesome">Awesome!</p>
6978 <p class="awesome">Awesome!</p>
6983 Table multiple attributes correction
6986 !+ class="error" class="awesome"| status
6991 <th class="awesome"> status
6999 <DIV ID="x">HTML ROCKS</DIV>
7001 <div id="x">HTML ROCKS</div>
7007 text with amp in the middle of nowhere
7011 <p>Remember AT&T?
7016 text with character entity: eacute
7018 I always thought é was a cute letter.
7020 <p>I always thought é was a cute letter.
7025 text with undefined character entity: xacute
7027 I always thought &xacute; was a cute letter.
7029 <p>I always thought &xacute; was a cute letter.
7041 [[Media:Foobar.jpg]]
7043 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7048 Media link with text
7050 [[Media:Foobar.jpg|A neat file to look at]]
7052 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7056 # FIXME: this is still bad HTML tag nesting
7058 Media link with nasty text
7059 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7061 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7063 <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>
7068 Media link to nonexistent file (bug 1702)
7070 [[Media:No such.jpg]]
7072 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7077 Image link to nonexistent file (bug 1850 - good)
7079 [[Image:No such.jpg]]
7081 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7086 :Image link to nonexistent file (bug 1850 - bad)
7088 [[:Image:No such.jpg]]
7090 <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>
7097 Character reference normalization in link text (bug 1938)
7099 [[Main Page|this&that]]
7101 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7108 Test for unicode normalization
7110 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7114 (bug 19451) Links should refer to the normalized form.
7122 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7123 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7124 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7125 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7126 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7131 Empty attribute crash test (bug 2067)
7133 <font color="">foo</font>
7135 <p><font color="">foo</font>
7140 Empty attribute crash test single-quotes (bug 2067)
7142 <font color=''>foo</font>
7144 <p><font color="">foo</font>
7149 Attribute test: equals, then nothing
7151 <font color=>foo</font>
7158 Attribute test: unquoted value
7160 <font color=x>foo</font>
7162 <p><font color="x">foo</font>
7167 Attribute test: unquoted but illegal value (hash)
7169 <font color=#x>foo</font>
7171 <p><font color="#x">foo</font>
7176 Attribute test: no value
7178 <font color>foo</font>
7180 <p><font color="color">foo</font>
7185 Bug 2095: link with three closing brackets
7189 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7194 Bug 2095: link with pipe and three closing brackets
7198 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7203 Bug 2095: link with pipe and three closing brackets, version 2
7205 [[Main Page|[http://example.com/]]]
7207 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7217 Template:Dangerous attribute
7219 " onmouseover="alert(document.cookie)
7223 Template:Dangerous style attribute
7225 border-size: expression(alert(document.cookie))
7231 <div style="float: right; {{{1}}}">Magic div</div>
7235 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7237 <div title="{{test}}"></div>
7239 <div title="This is a test template"></div>
7244 Bug 2304: HTML attribute safety (dangerous template; 2309)
7246 <div title="{{dangerous attribute}}"></div>
7248 <div title=""></div>
7253 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7255 <div style="{{dangerous style attribute}}"></div>
7257 <div style="/* insecure input */"></div>
7262 Bug 2304: HTML attribute safety (safe parameter; 2309)
7264 {{div style|width: 200px}}
7266 <div style="float: right; width: 200px">Magic div</div>
7271 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7273 {{div style|width: expression(alert(document.cookie))}}
7275 <div style="/* insecure input */">Magic div</div>
7280 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7282 {{div style|"><script>alert(document.cookie)</script>}}
7284 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7289 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7291 {{div style|" ><script>alert(document.cookie)</script>}}
7293 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7298 Bug 2304: HTML attribute safety (link)
7300 <div title="[[Main Page]]"></div>
7302 <div title="[[Main Page]]"></div>
7307 Bug 2304: HTML attribute safety (italics)
7309 <div title="''foobar''"></div>
7311 <div title="''foobar''"></div>
7316 Bug 2304: HTML attribute safety (bold)
7318 <div title="'''foobar'''"></div>
7320 <div title="'''foobar'''"></div>
7326 Bug 2304: HTML attribute safety (ISBN)
7328 <div title="ISBN 1234567890"></div>
7330 <div title="ISBN 1234567890"></div>
7335 Bug 2304: HTML attribute safety (RFC)
7337 <div title="RFC 1234"></div>
7339 <div title="RFC 1234"></div>
7344 Bug 2304: HTML attribute safety (PMID)
7346 <div title="PMID 1234567890"></div>
7348 <div title="PMID 1234567890"></div>
7353 Bug 2304: HTML attribute safety (web link)
7355 <div title="http://example.com/"></div>
7357 <div title="http://example.com/"></div>
7362 Bug 2304: HTML attribute safety (named web link)
7364 <div title="[http://example.com/ link]"></div>
7366 <div title="[http://example.com/ link]"></div>
7371 Bug 3244: HTML attribute safety (extension; safe)
7373 <div style="<nowiki>background:blue</nowiki>"></div>
7375 <div style="background:blue"></div>
7380 Bug 3244: HTML attribute safety (extension; unsafe)
7382 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7384 <div style="/* insecure input */"></div>
7388 # More MSIE fun discovered by Tom Gilder
7391 MSIE CSS safety test: spurious slash
7393 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7395 <div style="/* insecure input */">evil</div>
7400 MSIE CSS safety test: hex code
7402 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7404 <div style="/* insecure input */">evil</div>
7409 MSIE CSS safety test: comment in url
7411 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7413 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7418 MSIE CSS safety test: comment in expression
7420 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7422 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7428 Table attribute legitimate extension
7431 !+ style="<nowiki>color:blue</nowiki>"| status
7436 <th style="color:blue"> status
7442 Table attribute safety
7445 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7450 <th style="/* insecure input */"> status
7456 CSS line continuation 1
7458 <div style="background-image: u\ rl(test.jpg);"></div>
7460 <div style="/* insecure input */"></div>
7465 CSS line continuation 2
7467 <div style="background-image: u\ rl(test.jpg); "></div>
7469 <div style="/* insecure input */"></div>
7480 Expansion of multi-line templates in attribute values (bug 6255)
7482 <div style="background: {{identity|#00FF00}}">-</div>
7484 <div style="background: #00FF00">-</div>
7490 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7492 <div style="background:
7495 <div style="background: #00FF00">-</div>
7500 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7502 <div style="background: #00FF00">-</div>
7504 <div style="background: #00FF00">-</div>
7509 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7512 Parser hook: empty input
7525 Parser hook: empty input using terminated empty elements
7538 Parser hook: empty input using terminated empty elements (space before)
7551 Parser hook: basic input
7565 Parser hook: case insensitive
7579 Parser hook: case insensitive, redux
7592 Parser hook: nested tags
7596 <tag><tag></tag></tag>
7607 Parser hook: basic arguments
7609 <tag width=200 height = "100" depth = '50' square></tag>
7617 'square' => 'square',
7624 Parser hook: argument containing a forward slash (bug 5344)
7626 <tag filename='/tmp/bla'></tag>
7631 'filename' => '/tmp/bla',
7638 Parser hook: empty input using terminated empty elements (bug 2374)
7651 # </tag> should be output literally since there is no matching tag that begins it
7653 Parser hook: basic arguments using terminated empty elements (bug 2374)
7655 <tag width=200 height = "100" depth = '50' square/>
7665 'square' => 'square',
7674 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7678 Parser hook: static parser hook not inside a comment
7680 <statictag>hello, world</statictag>
7681 <statictag action=flush/>
7689 Parser hook: static parser hook inside a comment
7691 <!-- <statictag>hello, world</statictag> -->
7692 <statictag action=flush/>
7698 # Nested template calls; this case was broken by Parser.php rev 1.506,
7702 Template:One-parameter
7704 (My parameter is: {{{1}}})
7708 Template:Map-one-parameter
7714 Nested template calls
7716 {{Map-one-parameter|One-parameter|param}}
7718 <p>(My parameter is: param)
7727 Sanitizer: Closing of open tags
7729 <s></s><table></table>
7731 <s></s><table></table>
7736 Sanitizer: Closing of open but not closed tags
7745 Sanitizer: Closing of closed but not open tags
7754 Sanitizer: Closing of closed but not open table tags
7756 Table not started</td></tr></table>
7758 <p>Table not started</td></tr></table>
7763 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7765 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7767 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7772 Sanitizer: Validating the contents of the id attribute (bug 4515)
7778 Something, but definitely not <br id="9" />...
7782 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7786 <br id="foo" /><br id="foo" />
7788 Something need to be done. foo-2 ?
7792 Language converter: output gets cut off unexpectedly (bug 5757)
7796 this bit is safe: }-
7798 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7800 then we get cut off here: }-
7802 all additional text is vanished
7804 <p>this bit is safe: }-
7805 </p><p>but if we add a conversion instance: xxx
7806 </p><p>then we get cut off here: }-
7807 </p><p>all additional text is vanished
7812 Self closed html pairs (bug 5487)
7815 <center><font id="bug" />Centered text</center>
7816 <div><font id="bug2" />In div text</div>
7818 <center><font id="bug" />Centered text</center>
7819 <div><font id="bug2" />In div text</div>
7828 Punctuation: nbsp before exclamation
7832 <p>C'est grave !
7837 Punctuation: CSS !important (bug 11874)
7839 <div style="width:50% !important">important</div>
7841 <div style="width:50% !important">important</div>
7846 Punctuation: CSS ! important (bug 11874; with space after)
7848 <div style="width:50% ! important">important</div>
7850 <div style="width:50% ! important">important</div>
7856 HTML bullet list, closed tags (bug 5497)
7871 HTML bullet list, unclosed tags (bug 5497)
7888 HTML ordered list, closed tags (bug 5497)
7903 HTML ordered list, unclosed tags (bug 5497)
7920 HTML nested bullet list, closed tags (bug 5497)
7945 HTML nested bullet list, open tags (bug 5497)
7970 HTML nested ordered list, closed tags (bug 5497)
7995 HTML nested ordered list, open tags (bug 5497)
8020 HTML ordered list item with parameters oddity
8022 <ol><li id="fragment">One</li></ol>
8024 <ol><li id="fragment">One</li></ol>
8029 bug 5918: autonumbering
8031 [http://first/] [http://second] [ftp://ftp]
8035 [mailto:enclosed@mail.tld With target]
8037 [mailto:enclosed@mail.tld]
8039 mailto:inline@mail.tld
8041 <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>
8042 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8043 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8044 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8045 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8051 # Security and HTML correctness
8052 # From Nick Jenkins' fuzz testing
8056 Fuzz testing: Parser13
8071 Fuzz testing: Parser14
8076 <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>
8077 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8079 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8086 Fuzz testing: Parser14-table
8091 <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>
8092 <table style="__TOC__">
8098 # Known to produce bogus xml (extra </td>)
8100 Fuzz testing: Parser16
8120 Fuzz testing: Parser21
8123 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8128 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8138 Fuzz testing: Parser22
8140 http://===r:::https://b
8144 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8152 # Known to produce bad XML for now
8154 Fuzz testing: Parser24
8161 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8162 <br style="onmouseover='alert(document.cookie);' " />
8164 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8169 <u class="|">}}}} >
8170 <br style="onmouseover='alert(document.cookie);'" />
8172 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8181 # Note: the current result listed for this is not what the original one was,
8182 # but the original bug was JavaScript injection, which is fixed in any case.
8183 # It's not clear that the original result listed was any more correct than the
8184 # current one. Original result:
8187 # <li class="||">
8188 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8190 Fuzz testing: Parser25 (bug 6055)
8196 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8198 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8203 Fuzz testing: URL adjacent extension (with space, clean)
8206 http://example.com <nowiki>junk</nowiki>
8208 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8213 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8216 http://example.com<nowiki>junk</nowiki>
8218 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8223 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8226 http://example.com<pre>junk</pre>
8228 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8233 Fuzz testing: image with bogus manual thumbnail
8235 [[Image:foobar.jpg|thumbnail= ]]
8237 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8242 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8244 <pre dir=" "></pre>
8246 <pre dir=" "></pre>
8251 Parsing optional HTML elements (Bug 6171)
8256 <td> Some tabular data</td>
8257 <td> More tabular data ...
8258 <td> And yet som tabular data</td>
8264 <td> Some tabular data</td>
8265 <td> More tabular data ...
8266 </td><td> And yet som tabular data</td>
8273 Correct handling of <td>, <tr> (Bug 6171)
8278 <td> Some tabular data</td>
8279 <td> More tabular data ...</td>
8280 <td> And yet som tabular data</td>
8286 <td> Some tabular data</td>
8287 <td> More tabular data ...</td>
8288 <td> And yet som tabular data</td>
8296 Parsing crashing regression (fr:JavaScript)
8300 <p></body></x>
8305 Inline wiki vs wiki block nesting
8311 <p><b>Bold paragraph</b>
8312 </p><p>New wiki paragraph
8317 Inline HTML vs wiki block nesting
8325 <p><b>Bold paragraph</b>
8326 </p><p>New wiki paragraph
8330 # Original result was this:
8331 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8333 # While that might be marginally more intuitive, maybe, the six-apostrophe
8334 # construct is clearly pathological and the result stated here (which is what
8335 # the parser actually does) is about as reasonable as anything.
8337 Mixing markup for italics and bold
8340 '''bold''''''bold''bolditalics'''''
8342 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8350 Article for special page transclusion test
8354 Special page transclusion
8357 {{Special:Prefixindex/Xyzzyx}}
8359 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8364 Special page transclusion twice (bug 5021)
8367 {{Special:Prefixindex/Xyzzyx}}
8368 {{Special:Prefixindex/Xyzzyx}}
8370 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8371 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8376 Transclusion of default MediaWiki message
8378 {{MediaWiki:Mainpage}}
8385 Transclusion of nonexistent MediaWiki message
8387 {{MediaWiki:Mainpagexxx}}
8389 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8394 Transclusion of MediaWiki message with underscore
8396 {{MediaWiki:history_short}}
8403 Transclusion of MediaWiki message with space
8405 {{MediaWiki:history short}}
8412 Invalid header with following text
8422 Section extraction test (section 0)
8442 Section extraction test (section 1)
8464 Section extraction test (section 2)
8485 Section extraction test (section 3)
8505 Section extraction test (section 4)
8529 Section extraction test (section 5)
8549 Section extraction test (section 6)
8570 Section extraction test (section 7)
8590 Section extraction test (section 8)
8610 Section extraction test (section 9)
8631 Section extraction test (section 10)
8651 Section extraction test (nonexistent section 11)
8670 Section extraction test with bogus heading (section 1)
8675 ==bogus== not a legal section
8679 ==bogus== not a legal section
8683 Section extraction test with bogus heading (section 2)
8688 ==bogus== not a legal section
8695 Section extraction test with comment after heading (section 1)
8707 Section extraction test with comment after heading (section 2)
8719 Section extraction test with bogus <nowiki> heading (section 1)
8724 ==bogus== <nowiki>not a legal section</nowiki>
8728 ==bogus== <nowiki>not a legal section</nowiki>
8732 Section extraction test with bogus <nowiki> heading (section 2)
8737 ==bogus== <nowiki>not a legal section</nowiki>
8744 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8745 # instead of respecting commented sections
8747 Section extraction prefixed by comment (section 1)
8758 Section extraction prefixed by comment (section 2)
8769 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8770 # instead of respecting HTML-style headings
8772 Section extraction, mixed wiki and html (section 1)
8788 Section extraction, mixed wiki and html (section 2)
8804 # Formerly testing for bug 3342
8806 Section extraction, heading surrounded by <noinclude>
8810 <noinclude>==unmarked==</noinclude>
8816 # Test behaviour of bug 19910
8818 Sectiion with all-equals
8823 The line above must have a trailing space
8826 But just in case it doesn't...
8830 But just in case it doesn't...
8834 Section replacement test (section 0)
8865 Section replacement test (section 1)
8894 Section replacement test (section 2)
8924 Section replacement test (section 3)
8955 Section replacement test (section 4)
8982 Section replacement test (section 5)
9013 Section replacement test (section 6)
9043 Section replacement test (section 7)
9074 Section replacement test (section 8)
9105 Section replacement test (section 9)
9134 Section replacement test (section 10)
9164 Section replacement test with initial whitespace (bug 13728)
9168 Preformatted initial line
9172 Preformatted initial line
9179 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9191 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9204 Section extraction, <pre> around bogus header (bug 10309)
9221 Section replacement, <pre> around bogus header (bug 10309)
9223 noxml replace=2,"xxx"
9244 Handling of 
 in URLs
9248 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9255 5 quotes, code coverage +1 line
9262 Special:Search page linking.
9266 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9281 * {{SUBJECTPAGENAME}}
9282 * {{SUBJECTPAGENAMEE}}
9289 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9291 <ul><li> Parser test
9292 </li><li> Parser test
9293 </li><li> Parser test
9294 </li><li> Parser_test
9295 </li><li> Parser test
9296 </li><li> Parser_test
9297 </li><li> Talk:Parser test
9298 </li><li> Talk:Parser_test
9299 </li><li> Parser test
9300 </li><li> Parser_test
9307 </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>
9311 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9321 image4 |300px| centre
9322 image5.svg| http://///////
9327 <ul class="gallery">
9328 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9329 <div style="height: 150px;">Image1.png</div>
9330 <div class="gallerytext">
9333 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9334 <div style="height: 150px;">Image2.gif</div>
9335 <div class="gallerytext">
9340 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9341 <div style="height: 150px;">Image3</div>
9342 <div class="gallerytext">
9345 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9346 <div style="height: 150px;">Image4</div>
9347 <div class="gallerytext">
9352 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9353 <div style="height: 150px;">Image5.svg</div>
9354 <div class="gallerytext">
9355 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9359 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9360 <div style="height: 150px;">* image6</div>
9361 <div class="gallerytext">
9369 Gallery (with options)
9371 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9372 File:Nonexistant.jpg|caption
9373 File:Nonexistant.jpg
9374 image:foobar.jpg|some '''caption''' [[Main Page]]
9376 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9379 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9380 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9381 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9382 <div style="height: 70px;">Nonexistant.jpg</div>
9383 <div class="gallerytext">
9388 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9389 <div style="height: 70px;">Nonexistant.jpg</div>
9390 <div class="gallerytext">
9393 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9394 <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>
9395 <div class="gallerytext">
9396 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9400 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9401 <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>
9402 <div class="gallerytext">
9405 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9406 <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>
9407 <div class="gallerytext">
9417 Gallery with wikitext inside caption
9420 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9421 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9424 <ul class="gallery">
9425 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9426 <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>
9427 <div class="gallerytext">
9428 <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>
9432 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9433 <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>
9434 <div class="gallerytext">
9435 <p>This is a test template
9444 gallery (with showfilename option)
9446 <gallery showfilename>
9447 File:Nonexistant.jpg|caption
9448 File:Nonexistant.jpg
9449 image:foobar.jpg|some '''caption''' [[Main Page]]
9453 <ul class="gallery">
9454 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9455 <div style="height: 150px;">Nonexistant.jpg</div>
9456 <div class="gallerytext">
9457 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9462 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9463 <div style="height: 150px;">Nonexistant.jpg</div>
9464 <div class="gallerytext">
9465 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9469 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9470 <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>
9471 <div class="gallerytext">
9472 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9473 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9477 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9478 <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>
9479 <div class="gallerytext">
9480 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9489 Gallery (with namespace-less filenames)
9492 File:Nonexistant.jpg
9498 <ul class="gallery">
9499 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9500 <div style="height: 150px;">Nonexistant.jpg</div>
9501 <div class="gallerytext">
9504 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9505 <div style="height: 150px;">Nonexistant.jpg</div>
9506 <div class="gallerytext">
9509 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9510 <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>
9511 <div class="gallerytext">
9514 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9515 <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>
9516 <div class="gallerytext">
9524 HTML Hex character encoding (spells the word "JavaScript")
9526 JavaScript
9528 <p>JavaScript
9533 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9537 <p>&#xsee;&#XSEE;
9542 HTML Hex character encoding mixed case
9551 __FORCETOC__ override
9563 ISBN 978-0-1234-56 789
9565 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9570 ISBN followed by 5 spaces
9581 ISBN ISBN 1234567890
9583 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9588 Bug 22905: <abbr> followed by ISBN followed by </a>
9590 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9592 <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>
9601 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9606 Double RFC with a wiki link
9610 <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>
9619 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9624 Centre-aligned image
9626 [[Image:foobar.jpg|centre]]
9628 <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>
9635 [[Image:foobar.jpg|none]]
9637 <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>
9642 Width + Height sized image (using px) (height is ignored)
9644 [[Image:foobar.jpg|640x480px]]
9646 <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>
9651 Width-sized image (using px, no following whitespace)
9653 [[Image:foobar.jpg|640px]]
9655 <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>
9660 Width-sized image (using px, with following whitespace - test regression from r39467)
9662 [[Image:foobar.jpg|640px ]]
9664 <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>
9669 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9671 [[Image:foobar.jpg| 640px]]
9673 <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>
9678 Another italics / bold test
9686 # Note the results may be incorrect, as parserTest output included this:
9687 # XML error: Mismatched tag at byte 6120:
9688 # ...<dd> </dt></dl> </dd...
9696 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9707 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9709 Images with the "|" character in the comment
9711 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9713 <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>
9718 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9720 <html><script>alert(1);</script></html>
9722 <p><html><script>alert(1);</script></html>
9727 HTML with raw HTML ($wgRawHtml==true)
9731 <html><script>alert(1);</script></html>
9733 <p><script>alert(1);</script>
9738 Parents of subpages, one level up
9740 subpage title=[[Subpage test/L1/L2/L3]]
9744 <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>
9750 Parents of subpages, one level up, not named
9752 subpage title=[[Subpage test/L1/L2/L3]]
9756 <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>
9763 Parents of subpages, two levels up
9765 subpage title=[[Subpage test/L1/L2/L3]]
9771 <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
9772 </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>
9777 Parents of subpages, two levels up, without trailing slash or name.
9779 subpage title=[[Subpage test/L1/L2/L3]]
9788 Parents of subpages, two levels up, with lots of extra trailing slashes.
9790 subpage title=[[Subpage test/L1/L2/L3]]
9794 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9799 Definition list code coverage
9805 <dl><dt> title  </dt><dd> def
9806 </dd><dt> title </dt><dd> def
9807 </dd><dt>title</dt><dd> def
9813 Don't fall for the self-closing div
9815 <div>hello world</div/>
9817 <div>hello world</div>
9826 <p>[[:Template:Msg]]
9835 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9839 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9841 Always escape literal '>' in output, not just after '<'
9855 <p>This is a test template
9856 This is a test template
9868 Inclusion of !userCanEdit() content
9872 <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>
9878 Out-of-order TOC heading levels
9887 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9889 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9891 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9892 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9895 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9897 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9898 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9903 <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>
9904 <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>
9905 <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>
9906 <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>
9907 <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>
9908 <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>
9914 ISBN with a dummy number
9924 ISBN with space-delimited number
9928 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9934 ISBN with multiple spaces, no number
9953 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9954 </p><p>ISBN 12345678901
9960 ISBN with trailing year (bug 8110)
9962 ISBN 1-234-56789-0 - 2006
9964 ISBN 1 234 56789 0 - 2006
9966 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9967 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9975 {{anchorencode:foo bar©#%n}}
9977 <p>foo_bar.C2.A9.23.25n
9982 anchorencode trims spaces
9984 {{anchorencode: __pretty__please__}}
9991 anchorencode deals with links
9993 {{anchorencode: [[hello|world]] [[hi]]}}
10000 anchorencode deals with templates
10002 {{anchorencode: {{Foo}} }}
10009 anchorencode encodes like the TOC generator: (bug 18431)
10011 === _ +:.3A%3A&&]] ===
10012 {{anchorencode: _ +:.3A%3A&&]] }}
10015 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10016 <p>.2B:.3A.253A.26.26.5D.5D
10020 # Expected output in the following test is not necessarily expected (there
10021 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10022 # only testing for well-formedness.
10024 Bug 6200: blockquotes and paragraph formatting
10044 Bug 8293: Use of center tag ruins paragraph formatting
10066 ### Language variants related tests
10069 Self-link in language variants
10071 title=[[Dunav]] language=sr
10073 Both [[Dunav]] and [[Дунав]] are names for this river.
10075 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10081 Link to pages in language variants
10085 Main Page can be written as [[Маин Паге]]
10087 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10093 Multiple links to pages in language variants
10097 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10099 <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>.
10105 Simple template in language variants
10111 <p>This is a test template
10117 Template with explicit namespace in language variants
10123 <p>This is a test template
10129 Basic test for template parameter in language variants
10133 {{парамтест|param=foo}}
10135 <p>This is a test template with parameter foo
10141 Simple category in language variants
10145 [[Category:МедиаWики Усер'с Гуиде]]
10147 <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>
10152 Stripping -{}- tags (language variants)
10156 Latin proverb: -{Ne nuntium necare}-
10158 <p>Latin proverb: Ne nuntium necare
10164 Prevent conversion with -{}- tags (language variants)
10166 language=sr variant=sr-ec
10168 Latinski: -{Ne nuntium necare}-
10170 <p>Латински: Ne nuntium necare
10176 Prevent conversion of text with -{}- tags (language variants)
10178 language=sr variant=sr-ec
10180 Latinski: -{Ne nuntium necare}-
10182 <p>Латински: Ne nuntium necare
10188 Prevent conversion of links with -{}- tags (language variants)
10190 language=sr variant=sr-ec
10194 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10200 -{}- tags within headlines (within html for parserConvert())
10202 language=sr variant=sr-ec
10206 <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>
10212 Explicit definition of language variant alternatives
10214 language=zh variant=zh-tw
10216 -{zh:China;zh-tw:Taiwan}-, not China
10218 <p>Taiwan, not China
10224 Explicit session-wise language variant mapping (A flag and - flag)
10226 language=zh variant=zh-tw
10228 Taiwan is not China.
10229 But -{A|zh:China;zh-tw:Taiwan}- is China,
10230 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10231 and -{China}- is China.
10233 <p>Taiwan is not China.
10234 But Taiwan is Taiwan,
10235 (This should be stripped!)
10236 and China is China.
10241 Explicit session-wise language variant mapping (H flag for hide)
10243 language=zh variant=zh-tw
10245 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10248 <p>(This should be stripped!)
10254 Adding explicit conversion rule for title (T flag)
10256 language=zh variant=zh-tw showtitle
10258 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10261 <p>Should be stripped!
10266 Testing that changing the language variant here in the tests actually works
10268 language=zh variant=zh showtitle
10270 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10273 <p>Should be stripped!
10278 Bug 24072: more test on conversion rule for title
10280 language=zh variant=zh-tw showtitle
10282 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10283 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10286 <p>This should be stripped!
10287 This won't take interferes with the title rule.
10292 Raw output of variant escape tags (R flag)
10294 language=zh variant=zh-tw
10296 Raw: -{R|zh:China;zh-tw:Taiwan}-
10298 <p>Raw: zh:China;zh-tw:Taiwan
10303 Nested using of manual convert syntax
10305 language=zh variant=zh-hk
10307 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10309 <p>Nested: Hello Hong Kong!
10314 Do not convert roman numbers to language variants
10316 language=sr variant=sr-ec
10320 <p>Фридрих IV је цар.
10325 Unclosed language converter markup "-{"
10336 Don't convert raw rule "-{R|=>}-" to "=>"
10353 Bug 529: Uncovered bullet
10363 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10364 # Templates in Wikipedia rely on this behavior, as tidy has always been
10365 # enabled there. These tests are normally run *without* tidy, so specify the
10366 # full output here.
10367 # To test realistic parsing behavior, apply a tidy-like transformation to both
10368 # the expected output and your parser's output.
10370 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10372 ******* Foo {{bullet}}
10374 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10387 Bug 529: Uncovered table already at line-start
10410 Bug 529: Uncovered bullet in parser function result
10412 * Foo {{lc:{{bullet}} }}
10421 Bug 5678: Double-parsed template argument
10423 {{lc:{{{1}}}|hello}}
10430 Bug 5678: Double-parsed template invocation
10432 {{lc:{{paramtest {{!}} param = hello }} }}
10434 <p>{{paramtest | param = hello }}
10439 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10442 title=[[Main Page]]
10444 {{PRVNÍVELKÉ:ěščř}}
10445 {{prvnívelké:ěščř}}
10465 Morwen/13: Unclosed link followed by heading
10472 <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>
10477 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10484 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10489 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10496 <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>
10511 Paragraphs inside divs (no extra line breaks)
10523 Paragraphs inside divs (extra line break on open)
10538 Paragraphs inside divs (extra line break on close)
10553 Paragraphs inside divs (extra line break on open and close)
10570 Nesting tags, paragraphs on lines which begin with <div>
10574 <div></div><strong>A
10583 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10585 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10589 <blockquote>Line one
10591 Line two</blockquote>
10593 <blockquote>Line one
10594 Line two</blockquote>
10599 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10606 Line two</blockquote>
10611 Line two</blockquote>
10616 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10620 <blockquote>Line one
10625 <blockquote>Line one
10633 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10652 Paragraphs inside blockquotes/divs (no extra line breaks)
10654 <blockquote><div>Line one
10656 Line two</div></blockquote>
10658 <blockquote><div>Line one
10659 Line two</div></blockquote>
10664 Paragraphs inside blockquotes/divs (extra line break on open)
10669 Line two</div></blockquote>
10674 Line two</div></blockquote>
10679 Paragraphs inside blockquotes/divs (extra line break on close)
10681 <blockquote><div>Line one
10684 </div></blockquote>
10686 <blockquote><div>Line one
10689 </div></blockquote>
10694 Paragraphs inside blockquotes/divs (extra line break on open and close)
10700 </div></blockquote>
10706 </div></blockquote>
10711 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10713 wgLinkHolderBatchSize=0
10719 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10720 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10721 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10726 Free external link invading image caption
10728 [[Image:Foobar.jpg|thumb|http://x|hello]]
10730 <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>
10735 Bug 15196: localised external link numbers
10739 [http://en.wikipedia.org/]
10741 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10746 Multibyte character in padleft
10748 {{padleft:-Hello|7|Æ}}
10755 Multibyte character in padright
10757 {{padright:Hello-|7|Æ}}
10766 wgUseDynamicDates=1
10770 <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>
10775 formatdate parser function
10777 {{#formatdate:2009-03-24}}
10779 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10784 formatdate parser function, with default format
10786 {{#formatdate:2009-03-24|mdy}}
10788 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10793 Linked date with autoformatting disabled
10795 wgUseDynamicDates=false
10799 <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>
10804 Spacing of numbers in formatted dates
10806 {{#formatdate:January 15}}
10808 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10813 Spacing of numbers in formatted dates (linked)
10815 wgUseDynamicDates=true
10819 <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>
10824 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
10826 language=nl title=[[MediaWiki:Common.css]]
10828 {{#formatdate:2009-03-24|dmy}}
10830 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10843 Edit comment with link
10847 I like the [[Main Page]] a lot
10849 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10853 Edit comment with link and link text
10857 I like the [[Main Page|best pages]] a lot
10859 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10863 Edit comment with link and link text with suffix
10867 I like the [[Main Page|best page]]s a lot
10869 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10873 Edit comment with section link (non-local, eg in history list)
10875 comment title=[[Main Page]]
10877 /* External links */ removed bogus entries
10879 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10883 Edit comment with section link and text before it (non-local, eg in history list)
10885 comment title=[[Main Page]]
10887 pre-comment text /* External links */ removed bogus entries
10889 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>
10893 Edit comment with section link (local, eg in diff view)
10895 comment local title=[[Main Page]]
10897 /* External links */ removed bogus entries
10899 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10903 Edit comment with subpage link (bug 14080)
10907 title=[[Subpage test]]
10909 Poked at a [[/subpage]] here...
10911 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10915 Edit comment with subpage link and link text (bug 14080)
10919 title=[[Subpage test]]
10921 Poked at a [[/subpage|neat little page]] here...
10923 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10927 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10930 title=[[Subpage test]]
10932 Poked at a [[/subpage]] here...
10934 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10938 Edit comment with bare anchor link (local, as on diff)
10942 title=[[Main Page]]
10946 <a href="#section">#section</a>
10950 Edit comment with bare anchor link (non-local, as on history)
10953 title=[[Main Page]]
10957 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10961 Anchor starting with underscore
10965 <p><a href="#_ref">One</a>
10970 Id starting with underscore
10972 <div id="_ref"></div>
10974 <div id="_ref"></div>
10979 Space normalisation on autocomment (bug 22784)
10982 title=[[Main Page]]
10984 /* __hello__world__ */
10986 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10990 percent-encoding and + signs in comments (Bug 26410)
10994 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10996 <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>
11000 Bad images - basic functionality
11009 Bad images - bug 16039: text after bad image disappears
11023 Verify that displaytitle works (bug #22501) no displaytitle
11027 wgAllowDisplayTitle=true
11028 wgRestrictDisplayTitle=false
11030 this is not the the title
11033 <p>this is not the the title
11038 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11043 wgAllowDisplayTitle=true
11044 wgRestrictDisplayTitle=false
11046 this is not the the title
11047 {{DISPLAYTITLE:whatever}}
11050 <p>this is not the the title
11055 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11060 wgAllowDisplayTitle=true
11061 wgRestrictDisplayTitle=true
11063 this is not the the title
11064 {{DISPLAYTITLE:whatever}}
11067 <p>this is not the the title
11072 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11077 wgAllowDisplayTitle=true
11078 wgRestrictDisplayTitle=true
11080 this is not the the title
11081 {{DISPLAYTITLE:screen}}
11084 <p>this is not the the title
11089 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11094 wgAllowDisplayTitle=false
11096 this is not the the title
11097 {{DISPLAYTITLE:screen}}
11100 <p>this is not the the title
11101 <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>
11106 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11111 wgAllowDisplayTitle=false
11113 this is not the the title
11116 <p>this is not the the title
11121 preload: check <noinclude> and <includeonly>
11125 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11131 preload: check <onlyinclude>
11135 Goodbye <onlyinclude>Hello world</onlyinclude>
11141 preload: can pass tags through if we want to
11145 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11147 <includeonly>Hello world</includeonly>
11151 preload: check that it doesn't try to do tricks
11155 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11157 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11161 Play a bit with r67090 and bug 3158
11165 <div style="width:50% !important"> </div>
11166 <div style="width:50% !important"> </div>
11167 <div style="width:50% !important"> </div>
11168 <div style="border : solid;"> </div>
11170 <div style="width:50% !important"> </div>
11171 <div style="width:50% !important"> </div>
11172 <div style="width:50% !important"> </div>
11173 <div style="border : solid;"> </div>
11178 HTML5 data attributes
11180 <span data-foo="bar">Baz</span>
11181 <p data-abc-def_hij="">Quuz</p>
11183 <p><span data-foo="bar">Baz</span>
11185 <p data-abc-def_hij="">Quuz</p>
11190 percent-encoding and + signs in internal links (Bug 26410)
11192 [[User:+%]] [[Page+title%]]
11193 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11194 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11195 [[%33%45]] [[%33%45+]]
11197 <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>
11198 <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>
11199 <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>
11200 <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>
11205 Special characters in embedded file links (bug 27679)
11207 [[File:Contains & ampersand.jpg]]
11208 [[File:Does not exist.jpg|Title with & ampersand]]
11210 <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>
11211 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11217 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11219 Text's been normalized?
11221 <p>Text's been normalized?
11226 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11228 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11230 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11235 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11237 [http://www.example.org/ ideograms]
11239 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11244 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11246 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11248 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11272 Bug 31098 Template which includes system messages which includes the template
11276 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11277 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11282 Deprecated presentational attributes are converted to css
11285 | valign=top align=left width=100 height=25% | Asdf
11287 <ul type="disc"></ul>
11291 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11293 <ul style="list-style-type: disc;"></ul>
11298 Bug31490 Turkish: ucfirst 'blah'
11309 Bug31490 Turkish: ucfirst 'ix'
11320 Bug31490 Turkish: lcfirst 'BLAH'
11331 Bug31490 Turkish: ucfırst (with a dotless i)
11337 <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>
11342 Bug31490 ucfırst (with a dotless i) with English language
11348 <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>
11353 Bug 26375: TOC with italics
11355 title=[[Main Page]]
11358 == ''Lost'' episodes ==
11360 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11362 <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>
11365 <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>
11370 Bug 26375: TOC with bold
11372 title=[[Main Page]]
11375 == '''should be bold''' then normal text ==
11377 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11379 <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>
11382 <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>
11387 Bug 33845: Headings become cursive in TOC when they contain an image
11389 title=[[Main Page]]
11392 == Image [[Image:foobar.jpg]] ==
11394 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11396 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11399 <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>
11404 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11406 title=[[Main Page]]
11409 == <blockquote>Quote</blockquote> ==
11411 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11413 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11416 <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>
11421 Unclosed tags in TOC
11423 title=[[Main Page]]
11427 <small>Hanc marginis exiguitas non caperet.</small>
11430 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11432 <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>
11435 <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>
11436 <p><small>Hanc marginis exiguitas non caperet.</small>
11442 Multiple tags in TOC
11445 == <i>Foo</i> <b>Bar</b> ==
11447 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11449 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11451 <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>
11452 <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>
11455 <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>
11456 <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>
11461 Tags with parameters in TOC
11464 == <sup class="in-h2">Hello</sup> ==
11466 == <sup class="a > b">Evilbye</sup> ==
11468 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11470 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11471 <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>
11474 <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>
11475 <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>
11480 span tags with directionality in TOC
11483 == <span dir="ltr">C++</span> ==
11485 == <span dir="rtl">זבנג!</span> ==
11487 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11489 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11491 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11493 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11495 <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>
11496 <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>
11497 <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>
11498 <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>
11499 <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>
11502 <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>
11503 <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>
11504 <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>
11505 <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>
11506 <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>
11513 == {{int:headline_sample}} ==
11517 Bug 32057: Title needed when expanding <h> nodes.
11519 title=[[Main Page]]
11523 <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>
11528 Strip marker in urlencode
11530 {{urlencode:x<nowiki/>y}}
11531 {{urlencode:x<nowiki/>y|wiki}}
11532 {{urlencode:x<nowiki/>y|path}}
11559 Strip marker in formatNum
11561 {{formatnum:1<nowiki/>2}}
11562 {{formatnum:1<nowiki/>2|R}}
11570 Strip marker in grammar
11574 {{grammar:elative|foo<nowiki/>bar}}
11581 Strip marker in padleft
11583 {{padleft:|2|x<nowiki/>y}}
11590 Strip marker in padright
11592 {{padright:|2|x<nowiki/>y}}
11599 Strip marker in anchorencode
11601 {{anchorencode:x<nowiki/>y}}
11608 nowiki inside link inside heading (bug 18295)
11610 ==[[foo|x<nowiki>y</nowiki>z]]==
11612 <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>
11617 new support for bdi element (bug 31817)
11619 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11621 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11626 Ignore pipe between table row attributes
11630 |- id=foo | style='color: red'
11638 <tr id="foo" style="color: red">
11645 Gallery override link with WikiLink (bug 34852)
11648 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11651 <ul class="gallery">
11652 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11653 <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>
11654 <div class="gallerytext">
11664 Gallery override link with absolute external link (bug 34852)
11667 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11670 <ul class="gallery">
11671 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11672 <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>
11673 <div class="gallerytext">
11683 Gallery override link with malicious javascript (bug 34852)
11686 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11689 <ul class="gallery">
11690 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11691 <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>
11692 <div class="gallerytext">
11702 Language parser function
11711 Padleft and padright as substr
11713 {{padleft:|3|abcde}}
11714 {{padright:|3|abcde}}
11722 Bug 34939 - Case insensitive link parsing ([HttP://])
11724 [HttP://MediaWiki.Org/]
11726 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11731 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11733 [HttP://MediaWiki.Org/ MediaWiki]
11735 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11740 Bug 34939 - Case insensitive link parsing (HttP://)
11742 HttP://MediaWiki.Org/
11744 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11749 ### Parsoids-specific tests
11750 ### Parsoid-PHP parser incompatibilities
11753 1. SOL-sensitive wikitext tokens as template-args
11767 #### The following section of tests are primarily to test
11768 #### wikitext escaping capabilities of Parsoid.
11769 #### A lot of the tests are disabled for the PHP parser either
11770 #### because of minor newline diffs or other reasons.
11771 #### As Parsoid serializer can handle newlines and other HTML
11772 #### more robustly, some of these tests might get reenabled
11773 #### for the PHP parser.
11775 #### --------------- Headings ---------------
11777 #### 1. Nested inside html <h1>=foo=</h1>
11778 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11779 #### 3. Nested inside html with wikitext split by html tags
11780 #### 4. No escape needed
11781 #### 5. Empty headings <h1></h1>
11782 #### 6. Heading chars in SOL context
11783 #### ----------------------------------------
11785 Headings: 0. Unnested
11787 <nowiki>=foo=</nowiki>
11789 <nowiki>=foo</nowiki>''a''=
11792 </p><p>=foo<i>a</i>=
11797 Headings: 1. Nested inside html
11801 =<nowiki>=foo=</nowiki>=
11802 ==<nowiki>=foo=</nowiki>==
11803 ===<nowiki>=foo=</nowiki>===
11804 ====<nowiki>=foo=</nowiki>====
11805 =====<nowiki>=foo=</nowiki>=====
11806 ======<nowiki>=foo=</nowiki>======
11817 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11822 <nowiki>*bar</nowiki>
11826 <nowiki>=bar=</nowiki>
11834 Headings: 3. Nested inside html with wikitext split by html tags
11838 =<nowiki>=</nowiki>'''bold'''foo==
11840 <h1>=<b>bold</b>foo=</h1>
11844 Headings: 4. No escaping needed (testing just h1 and h2)
11859 <h1><i>=</i>foo=</h1>
11864 Headings: 5. Empty headings
11868 =<nowiki></nowiki>=
11869 ==<nowiki></nowiki>==
11870 ===<nowiki></nowiki>===
11871 ====<nowiki></nowiki>====
11872 =====<nowiki></nowiki>=====
11873 ======<nowiki></nowiki>======
11884 Headings: 6. Heading chars in SOL context
11888 <!--cmt--><nowiki>=h1=</nowiki>
11894 #### --------------- Lists ---------------
11895 #### 0. Outside nests (*foo, etc.)
11896 #### 1. Nested inside html <ul><li>*foo</li></ul>
11897 #### 2. Inside definition lists
11898 #### 3. Only bullets at start should be escaped
11899 #### 4. No escapes needed
11900 #### 5. No unnecessary escapes
11901 #### 6. Escape bullets in SOL position
11902 #### 7. Escape bullets in a multi-line context
11903 #### ----------------------------------------
11906 Lists: 0. Outside nests
11908 <nowiki>*foo</nowiki>
11910 <nowiki>#foo</nowiki>
11918 Lists: 1. Nested inside html
11920 *<nowiki>*foo</nowiki>
11922 *<nowiki>#foo</nowiki>
11924 *<nowiki>:foo</nowiki>
11926 *<nowiki>;foo</nowiki>
11928 #<nowiki>*foo</nowiki>
11930 #<nowiki>#foo</nowiki>
11932 #<nowiki>:foo</nowiki>
11934 #<nowiki>;foo</nowiki>
11956 Lists: 2. Inside definition lists
11958 ;<nowiki>;foo</nowiki>
11960 ;<nowiki>:foo</nowiki>
11962 ;<nowiki>:foo</nowiki>
11965 :<nowiki>:foo</nowiki>
11980 Lists: 3. Only bullets at start of text should be escaped
11982 *<nowiki>*foo*bar</nowiki>
11984 *<nowiki>*foo</nowiki>''it''*bar
11988 <ul><li>*foo<i>it</i>*bar
11994 Lists: 4. No escapes needed
12006 <ul><li><i>foo</i>*bar
12008 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12013 Lists: 5. No unnecessary escapes
12015 * bar <span><nowiki>[[foo]]</nowiki></span>
12017 *=bar <span><nowiki>[[foo]]</nowiki></span>
12019 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12021 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12023 *=bar <span>foo]]</span>=
12025 <ul><li> bar <span>[[foo]]</span>
12027 <ul><li>=bar <span>[[foo]]</span>
12029 <ul><li>[[bar <span>[[foo]]</span>
12031 <ul><li>]]bar <span>[[foo]]</span>
12033 <ul><li>=bar <span>foo]]</span>=
12039 Lists: 6. Escape bullets in SOL position
12043 <!--cmt--><nowiki>*foo</nowiki>
12050 Lists: 7. Escape bullets in a multi-line context
12060 #### --------------- HRs ---------------
12061 #### 1. Single line
12062 #### -----------------------------------
12065 HRs: 1. Single line
12070 <nowiki>----</nowiki>
12072 <nowiki>=foo=</nowiki>
12074 <nowiki>*foo</nowiki>
12081 #### --------------- Tables ---------------
12082 #### 1a. Simple example
12083 #### 1b. No escaping needed (!foo)
12084 #### 1c. No escaping needed (|foo)
12085 #### 1d. No escaping needed (|}foo)
12087 #### 2a. Nested in td (<td>foo|bar</td>)
12088 #### 2b. Nested in td (<td>foo||bar</td>)
12089 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12091 #### 3a. Nested in th (<th>foo!bar</th>)
12092 #### 3b. Nested in th (<th>foo!!bar</th>)
12093 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12097 #### 4c. No escaping needed
12098 #### --------------------------------------
12101 Tables: 1a. Simple example
12112 Tables: 1b. No escaping needed
12121 Tables: 1c. No escaping needed
12130 Tables: 1d. No escaping needed
12139 Tables: 2a. Nested in td
12144 |<nowiki>foo|bar</nowiki>
12154 Tables: 2b. Nested in td
12159 |<nowiki>foo||bar</nowiki>
12160 |''it''<nowiki>foo||bar</nowiki>
12165 </td><td><i>it</i>foo||bar
12171 Tables: 2c. Nested in td -- no escaping needed
12186 Tables: 3a. Nested in th
12201 Tables: 3b. Nested in th
12206 !<nowiki>foo!!bar</nowiki>
12216 Tables: 3c. Nested in th -- no escaping needed
12231 Tables: 4a. Escape -
12239 |<nowiki>-bar</nowiki>
12243 <tr><th>-bar</th></tr>
12244 <tr><td>-bar</td></tr>
12249 Tables: 4b. Escape +
12257 |<nowiki>+bar</nowiki>
12261 <tr><th>+bar</th></tr>
12262 <tr><td>+bar</td></tr>
12267 Tables: 4c. No escaping needed
12281 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12282 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12286 #### --------------- Links ---------------
12287 #### 1. Quote marks in link text
12288 #### 2. Wikilinks: Escapes needed
12289 #### 3. Wikilinks: No escapes needed
12290 #### 4. Extlinks: Escapes needed
12291 #### 5. Extlinks: No escapes needed
12292 #### --------------------------------------
12294 Links 1. Quote marks in link text
12298 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12300 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12304 Links 2. WikiLinks: Escapes needed
12308 [[Foo|<nowiki>[Foobar]</nowiki>]]
12309 [[Foo|<nowiki>Foobar]</nowiki>]]
12310 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12311 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12312 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12313 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12314 [[Foo|<nowiki>|Bar</nowiki>]]
12316 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12317 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12318 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12319 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12320 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12321 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12322 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12326 Links 3. WikiLinks: No escapes needed
12333 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12334 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12338 Links 4. ExtLinks: Escapes needed
12342 [http://google.com <nowiki>[google]</nowiki>]
12343 [http://google.com <nowiki>google]</nowiki>]
12345 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12346 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12350 Links 5. ExtLinks: No escapes needed
12354 [http://google.com [google]
12356 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12359 #### --------------- Quotes ---------------
12360 #### 1. Quotes inside <b> and <i>
12361 #### 2. Link fragments separated by <i> and <b> tags
12362 #### 3. Link fragments inside <i> and <b>
12363 #### --------------------------------------
12365 1. Quotes inside <b> and <i>
12367 ''<nowiki>'foo'</nowiki>''
12368 ''<nowiki>''foo''</nowiki>''
12369 ''<nowiki>'''foo'''</nowiki>''
12370 '''<nowiki>'foo'</nowiki>'''
12371 '''<nowiki>''foo''</nowiki>'''
12372 '''<nowiki>'''foo'''</nowiki>'''
12373 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12381 <b>foo'<i>bar'</i>baz</b>
12386 2. Link fragments separated by <i> and <b> tags
12388 [[''foo''<nowiki>hello]]</nowiki>
12390 [['''foo'''<nowiki>hello]]</nowiki>
12392 <p>[[<i>foo</i>hello]]
12393 </p><p>[[<b>foo</b>hello]]
12398 2. Link fragments inside <i> and <b>
12399 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12400 this is one of the shortcomings of this format)
12402 ''[[foo''<nowiki>]]</nowiki>
12404 '''[[foo'''<nowiki>]]</nowiki>
12407 </p><p><b>[[foo</b>]]
12411 #### --------------- Paragraphs ---------------
12412 #### 1. No unnecessary escapes
12413 #### --------------------------------------
12416 1. No unnecessary escapes
12418 bar <span><nowiki>[[foo]]</nowiki></span>
12420 =bar <span><nowiki>[[foo]]</nowiki></span>
12422 [[bar <span><nowiki>[[foo]]</nowiki></span>
12424 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12426 <nowiki>=bar </nowiki><span>foo]]</span>=
12428 <p>bar <span>[[foo]]</span>
12429 </p><p>=bar <span>[[foo]]</span>
12430 </p><p>[[bar <span>[[foo]]</span>
12431 </p><p>]]bar <span>[[foo]]</span>
12432 </p><p>=bar <span>foo]]</span>=
12436 #### --------------- PRE ------------------
12437 #### 1. Leading space in SOL context should be escaped
12438 #### --------------------------------------
12440 1. Leading space in SOL context should be escaped
12444 <nowiki> foo</nowiki>
12445 <!--cmt--><nowiki> foo</nowiki>
12452 #### --------------- HTML tags ---------------
12455 #### 3. multi-line html tag
12456 #### --------------------------------------
12462 <a href="http://google.com">google</a>
12464 <a href="http://google.com">google</a>
12470 <nowiki><div>foo</div>
12471 <div style="color:red">foo</div></nowiki>
12473 <p><div>foo</div>
12474 <div style="color:red">foo</div>
12479 3. multi-line html tag
12491 #### --------------- Others ---------------
12495 <nowiki>foo</nowiki>
12497 <p><nowiki>foo</nowiki>
12506 Try for 100% code coverage