1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
118 This is a simple paragraph.
120 <p>This is a simple paragraph.
125 Paragraphs with extra newline spacing
163 * plain''italic''plain
164 * plain''italic''plain''italic''plain
165 * plain'''bold'''plain
166 * plain'''bold'''plain'''bold'''plain
167 * plain''italic''plain'''bold'''plain
168 * plain'''bold'''plain''italic''plain
169 * plain''italic'''bold-italic'''italic''plain
170 * plain'''bold''bold-italic''bold'''plain
171 * plain'''''bold-italic'''italic''plain
172 * plain'''''bold-italic''bold'''plain
173 * plain''italic'''bold-italic'''''plain
174 * plain'''bold''bold-italic'''''plain
175 * plain l'''italic''plain
176 * plain l''''bold''' plain
179 </li><li> plain<i>italic</i>plain
180 </li><li> plain<i>italic</i>plain<i>italic</i>plain
181 </li><li> plain<b>bold</b>plain
182 </li><li> plain<b>bold</b>plain<b>bold</b>plain
183 </li><li> plain<i>italic</i>plain<b>bold</b>plain
184 </li><li> plain<b>bold</b>plain<i>italic</i>plain
185 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
186 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
187 </li><li> plain<i><b>bold-italic</b>italic</i>plain
188 </li><li> plain<b><i>bold-italic</i>bold</b>plain
189 </li><li> plain<i>italic<b>bold-italic</b></i>plain
190 </li><li> plain<b>bold<i>bold-italic</i></b>plain
191 </li><li> plain l'<i>italic</i>plain
192 </li><li> plain l'<b>bold</b> plain
198 ### 2-quote opening sequence tests
201 Italics and bold: 2-quote opening sequence: (2,2)
211 Italics and bold: 2-quote opening sequence: (2,3)
221 Italics and bold: 2-quote opening sequence: (2,4)
231 Italics and bold: 2-quote opening sequence: (2,5)
241 ### 3-quote opening sequence tests
245 Italics and bold: 3-quote opening sequence: (3,2)
255 Italics and bold: 3-quote opening sequence: (3,3)
265 Italics and bold: 3-quote opening sequence: (3,4)
275 Italics and bold: 3-quote opening sequence: (3,5)
285 ### 4-quote opening sequence tests
289 Italics and bold: 4-quote opening sequence: (4,2)
299 Italics and bold: 4-quote opening sequence: (4,3)
309 Italics and bold: 4-quote opening sequence: (4,4)
319 Italics and bold: 4-quote opening sequence: (4,5)
329 ### 5-quote opening sequence tests
333 Italics and bold: 5-quote opening sequence: (5,2)
343 Italics and bold: 5-quote opening sequence: (5,3)
353 Italics and bold: 5-quote opening sequence: (5,4)
357 <p><i><b>foo'</b></i>
363 Italics and bold: 5-quote opening sequence: (5,5)
372 ### multiple quote sequences in a line
375 Italics and bold: multiple quote sequences: (2,4,2)
379 <p><i>foo'<b>bar</b></i>
385 Italics and bold: multiple quote sequences: (2,4,3)
389 <p><i>foo'<b>bar</b></i>
395 Italics and bold: multiple quote sequences: (2,4,4)
399 <p><i>foo'<b>bar'</b></i>
405 Italics and bold: multiple quote sequences: (3,4,2)
415 Italics and bold: multiple quote sequences: (3,4,3)
424 ### other quote tests
427 Italics and bold: other quote tests: (2,3,5)
429 ''this is about '''foo's family'''''
431 <p><i>this is about <b>foo's family</b></i>
437 Italics and bold: other quote tests: (2,(3,3),2)
439 ''this is about '''foo's''' family''
441 <p><i>this is about <b>foo's</b> family</i>
447 Italics and bold: other quote tests: (3,2,3,2)
449 '''this is about ''foo'''s family''
451 <p><b>this is about <i>foo</i></b><i>s family</i>
457 Italics and bold: other quote tests: (3,2,3,3)
459 '''this is about ''foo'''s family'''
461 <p>'<i>this is about </i>foo<b>s family</b>
468 Italics and bold: other quote tests: (3,(2,2),3)
470 '''this is about ''foo's'' family'''
472 <p><b>this is about <i>foo's</i> family</b>
477 ### <nowiki> test cases
481 <nowiki> unordered list
483 <nowiki>* This is not an unordered list item.</nowiki>
485 <p>* This is not an unordered list item.
492 <nowiki>Lorem ipsum dolor
513 :There is not nowiki.
514 :There is <nowiki>nowiki</nowiki>.
516 #There is not nowiki.
517 #There is <nowiki>nowiki</nowiki>.
519 *There is not nowiki.
520 *There is <nowiki>nowiki</nowiki>.
522 <dl><dd>There is not nowiki.
523 </dd><dd>There is nowiki.
525 <ol><li>There is not nowiki.
526 </li><li>There is nowiki.
528 <ul><li>There is not nowiki.
529 </li><li>There is nowiki.
541 <!-- comment 1 --> asdf
543 <!-- comment 1 --> asdf
546 <!-- comment 1 --> asdf
547 <!-- comment 2 -->xyz
549 <!-- comment 1 --> asdf
550 <!-- comment 2 --> xyz
606 asdf<!-- comment 1 -->jkl
616 <!-- foo --> b <!-- bar -->
630 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
636 Comment semantics and delimiters
638 <!-- --><!----><!-----><!------>
644 Comment semantics and delimiters, redux
646 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
647 -- foo -- funky huh? ... -->
653 Comment semantics and delimiters: directors cut
655 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
656 everything starting with < followed by !-- until the first -- and > we see,
657 that wouldn't be valid XML however, since in XML -- has to terminate a comment
665 Comment semantics: nesting
667 <!--<!-- no, we're not going to do anything fancy here -->-->
674 Comment semantics: unclosed comment at end
676 <!--This comment will run out to the end of the document
682 Comment in template title
691 Comment on its own line post-expand
703 Comment on its own line post-expand with non-significant whitespace
715 ### paragraph wraping tests
729 Block tag on one line
741 Block tag on both lines
753 Multiple lines without block tags
771 ### Preformatted text
780 And a [[Main Page|link]]
786 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
791 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
808 Regression with preformatted in <center>
821 # Expected output in the following test is not really expected (there should be
822 # <pre> in the output) -- it's only testing for well-formedness.
824 Bug 6200: Preformatted in <blockquote>
837 <pre> with attributes (bug 3202)
839 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
841 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
846 <pre> with width attribute (bug 3202)
848 <pre width="8">Narrow screen goodies</pre>
850 <pre width="8">Narrow screen goodies</pre>
855 <pre> with forbidden attribute (bug 3202)
857 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
859 <pre width="8">Narrow screen goodies</pre>
864 <pre> with forbidden attribute values (bug 3202)
866 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
868 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
873 <nowiki> inside <pre> (bug 13238)
881 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
889 <pre><nowiki>Foo</nowiki></pre>
894 <nowiki> and <pre> preference (first one wins)
927 <nowiki></pre></nowiki>
934 Templates: Pre: 1a. Templates that break a line should suppress <pre>
942 Templates: Pre: 1b. Templates that break a line should suppress <pre>
952 Templates: Pre: 1c: Wrapping should be based on expanded content
964 Templates: Pre: 1d: Wrapping should be based on expanded content
985 Templates: Pre: 1e. Wrapping should be based on expanded content
989 {{echo| foo}}{{echo| bar}}
994 {{echo|<!--cmt--> foo}}
996 <!--cmt-->{{echo| foo}}
998 {{echo|{{echo| }}bar}}
1016 Templates: Pre: 1f: Wrapping should be based on expanded content
1053 ### Parsoid-centric tests for testing RT edge cases for pre
1057 1a. Pre and Comments
1070 1b. Pre and Comments
1083 1c. Pre and Comments
1133 3a. Pre and block tags (single-line html)
1141 <pre><span> foo </span>
1146 3b. Pre and block tags (pre-content on separate line)
1198 4. Multiple spaces at start-of-line
1217 ### Definition lists
1224 <dl><dt> name </dt><dd> Definition
1230 Definition list for indentation only
1234 <dl><dd> Indented text
1240 Definition list with no space
1244 <dl><dt>name</dt><dd>Definition
1250 Definition list with URL link
1252 ; http://example.com/ : definition
1254 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1260 Definition list with bracketed URL link
1262 ;[http://www.example.com/ Example]:Something about it
1264 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1270 Definition list with wikilink containing colon
1272 ; [[Help:FAQ]]: The least-read page on Wikipedia
1274 <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
1279 # At Brion's and JeLuF's insistence... :)
1281 Definition list with news link containing colon
1283 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1285 <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!
1291 Malformed definition list with colon
1293 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1295 <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
1301 Definition lists: colon in external link text
1303 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1305 <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
1311 Definition lists: colon in HTML attribute
1313 ;<b style="display: inline">bold</b>
1315 <dl><dt><b style="display: inline">bold</b>
1321 Definition lists: self-closed tag
1323 ;one<br/>two : two-line fun
1325 <dl><dt>one<br />two </dt><dd> two-line fun
1331 Bug 11748: Literal closing tags
1335 <dd>test test test test test</dd>
1337 <dd>test test test test test</dd>
1342 <dd>test test test test test</dd>
1344 <dd>test test test test test</dd>
1350 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1353 ; term : description
1359 <dl><dt> term </dt><dd> description
1370 Definition list with empty definition and following paragraph
1375 <dl><dt> term</dt><dd>
1382 Nested definition lists using html syntax
1399 Definition Lists: No nesting: Multiple dd's
1413 Definition Lists: Indentation: Regular
1429 Definition Lists: Indentation: Missing 1st level
1443 Definition Lists: Indentation: Multi-level indent
1447 <dl><dd><dl><dd><dl><dd>i3
1455 Definition Lists: Hacky use to indent tables
1462 should be left alone
1464 <dl><dd><dl><dd><table>
1469 </td></tr></table></dd></dl></dd></dl>
1471 should be left alone
1474 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1475 ## as an empty dt item. It also ignores all but the last ";" when followed
1476 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1477 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1480 ## Ex: ";;t2 ::d2" is transformed into:
1492 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1493 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1504 ## All Parsoid only definition list tests have this difference.
1506 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1507 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1510 Definition Lists: Nesting: Multi-level (Parsoid only)
1540 Definition Lists: Nesting: Test 2 (Parsoid only)
1560 Definition Lists: Nesting: Test 3 (Parsoid only)
1588 Definition Lists: Nesting: Test 4
1593 <dl><dd><dl><dd><dl><dt>t3
1603 Definition Lists: Mixed Lists: Test 1
1609 <dl><dd><dl><dt><ul><li> foo
1621 Definition Lists: Mixed Lists: Test 2
1635 Definition Lists: Mixed Lists: Test 3
1640 <ul><li><dl><dd><dl><dd><dl><dd> d1
1651 Definition Lists: Mixed Lists: Test 4
1656 <ul><li><dl><dt>d1 </dt><dd>d2
1657 </dd><dt>d3 </dt><dd>d4
1665 Definition Lists: Mixed Lists: Test 5
1680 Definition Lists: Mixed Lists: Test 6
1685 <ol><li><ul><li><dl><dd>d1
1697 Definition Lists: Mixed Lists: Test 7
1711 Definition Lists: Mixed Lists: Test 8
1727 Definition Lists: Mixed Lists: Test 9
1731 <ul><li><dl><dt>foo </dt><dd>bar
1739 Definition Lists: Mixed Lists: Test 10
1743 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1752 Definition Lists: Mixed Lists: Test 11
1757 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1762 <dl><dt>boo </dt><dd>baz
1773 Definition Lists: Weird Ones: Test 1
1775 *#;*::;; foo : bar (who uses this?)
1777 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1793 External links: non-bracketed
1795 Non-bracketed: http://example.com
1797 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1802 External links: numbered
1804 Numbered: [http://example.com]
1805 Numbered: [http://example.net]
1806 Numbered: [http://example.com]
1808 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1809 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1810 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1815 External links: specified text
1817 Specified text: [http://example.com link]
1819 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1824 External links: trail
1826 Linktrails should not work for external links: [http://example.com link]s
1828 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1833 External links: dollar sign in URL
1835 http://example.com/1$2345
1837 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1842 External links: dollar sign in URL (named)
1844 [http://example.com/1$2345]
1846 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1851 External links: open square bracket forbidden in URL (bug 4377)
1853 http://example.com/1[2345
1855 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1860 External links: open square bracket forbidden in URL (named) (bug 4377)
1862 [http://example.com/1[2345]
1864 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1869 External links: nowiki in URL link text (bug 6230)
1871 [http://example.com/ <nowiki>''example site''</nowiki>]
1873 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1878 External links: newline forbidden in text (bug 6230 regression check)
1880 [http://example.com/ first
1883 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1889 External links: Pipe char between url and text
1891 [http://example.com | link]
1893 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1898 External links: protocol-relative URL in brackets
1900 [//example.com/ Test]
1902 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1907 External links: protocol-relative URL in brackets without text
1911 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1916 External links: protocol-relative URL in free text is left alone
1920 <p>//example.com/Foo
1925 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1927 foo//example.com/Foo
1929 <p>foo//example.com/Foo
1936 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1938 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1943 External image from https
1945 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1947 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1952 Link to non-http image, no img tag
1954 Link to non-http image, no img tag: ftp://example.com/test.jpg
1956 <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>
1961 External links: terminating separator
1963 Terminating separator: http://example.com/thing,
1965 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1970 External links: intervening separator
1972 Intervening separator: http://example.com/1,2,3
1974 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1979 External links: old bug with URL in query
1981 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1983 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1988 External links: old URL-in-URL bug, mixed protocols
1990 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1992 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1997 External links: URL in text
1999 URL in text: [http://example.com http://example.com]
2001 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2006 External links: Clickable images
2008 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2010 <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>
2015 External links: raw 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 ampersand
2026 Old & use: http://x&y
2028 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2033 External links: encoded equals (bug 6102)
2035 http://example.com/?foo=bar
2037 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2042 External links: [raw 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 ampersand]
2053 Old & use: [http://x&y]
2055 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2060 External links: [encoded equals] (bug 6102)
2062 [http://example.com/?foo=bar]
2064 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2069 External links: [IDN ignored character reference in hostname; strip it right off]
2071 [http://e‌xample.com/]
2073 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2077 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2078 # Where an external link could easily circumvent the sanitization of the text of
2079 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2080 # test demands a higher standard. That's a bit strange.
2084 # http://example.com -> [http://example.com|http://example.com]
2085 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2087 # The first example is sanitized, but the second is not. Any security benefits
2088 # from this production are trivial to circumvent. Either remove this test and
2089 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2090 # the test accordingly.
2095 External links: IDN ignored character reference in hostname; strip it right off
2097 http://e‌xample.com/
2099 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2104 External links: www.jpeg.org (bug 554)
2108 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2113 External links: URL within URL (original bug 2)
2115 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2117 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2122 BUG 361: URL inside bracketed URL
2124 [http://www.example.com/foo http://www.example.com/bar]
2126 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2131 BUG 361: URL within URL, not bracketed
2133 http://www.example.com/foo?=http://www.example.com/bar
2135 <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>
2140 BUG 289: ">"-token in URL-tail
2142 http://www.example.com/<hello>
2144 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2149 BUG 289: literal ">"-token in URL-tail
2151 http://www.example.com/<b>html</b>
2153 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2158 BUG 289: ">"-token in bracketed URL
2160 [http://www.example.com/<hello> stuff]
2162 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2167 BUG 289: literal ">"-token in bracketed URL
2169 [http://www.example.com/<b>html</b> stuff]
2171 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2176 BUG 289: literal double quote at end of URL
2178 http://www.example.com/"hello"
2180 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2185 BUG 289: literal double quote in bracketed URL
2187 [http://www.example.com/"hello" stuff]
2189 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2194 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2196 [http://www.example.com test]
2198 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2203 External links: wiki links within external link (Bug 3695)
2205 [http://example.com [[wikilink]] embedded in ext link]
2207 <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>
2212 BUG 787: Links with one slash after the url protocol are invalid
2216 [http:/example.com title]
2218 <p>http:/example.com
2219 </p><p>[http:/example.com title]
2224 Bracketed external links with template-generated invalid target
2226 [{{echo|http:/example.com}} title]
2228 <p>[http:/example.com title]
2233 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2235 ''[http://example.com text'']
2236 [http://example.com '''text]'''
2237 ''Something [http://example.com in italic'']
2238 ''Something [http://example.com mixed''''', even bold]'''
2239 '''''Now [http://example.com both''''']
2241 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2242 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2243 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2244 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2245 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2251 Bug 4781: %26 in URL
2253 http://www.example.com/?title=AT%26T
2255 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2259 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2260 # % is actually legal in HTML5. Any change in output would need testing though.
2262 Bug 4781, 5267: %25 in URL
2264 http://www.example.com/?title=100%25_Bran
2266 <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>
2271 Bug 4781, 5267: %28, %29 in URL
2273 http://www.example.com/?title=Ben-Hur_%281959_film%29
2275 <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>
2281 Bug 4781: %26 in autonumber URL
2283 [http://www.example.com/?title=AT%26T]
2285 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2290 Bug 4781, 5267: %26 in autonumber URL
2292 [http://www.example.com/?title=100%25_Bran]
2294 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2299 Bug 4781, 5267: %28, %29 in autonumber URL
2301 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2303 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2309 Bug 4781: %26 in bracketed URL
2311 [http://www.example.com/?title=AT%26T link]
2313 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2318 Bug 4781, 5267: %26 in bracketed URL
2320 [http://www.example.com/?title=100%25_Bran link]
2322 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2327 Bug 4781, 5267: %28, %29 in bracketed URL
2329 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2331 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2336 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2338 Some [http://example.com/ pretty ''italics'' and stuff]!
2340 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2345 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2347 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2349 <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>
2354 External link containing double-single-quotes with no space separating the url from text in italics
2356 [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]].]
2358 <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>
2363 URL-encoding in URL functions (single parameter)
2365 {{localurl:Some page|amp=&}}
2367 <p>/index.php?title=Some_page&amp=&
2372 URL-encoding in URL functions (multiple parameters)
2374 {{localurl:Some page|q=?&=&}}
2376 <p>/index.php?title=Some_page&q=?&amp=&
2383 http://example.com/index.php?foozoid%5B%5D=bar
2385 http://example.com/index.php?foozoid[]=bar
2387 <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>
2388 </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>
2393 IPv6 urls (bug 21261)
2397 http://[2404:130:0:1000::187:2]/index.php
2399 <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>
2410 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2412 Normal text. '''''Bold italic text.''''' Normal text.
2414 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2415 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2421 Unclosed and unmatched quotes
2423 '''''Bold italic text '''with bold deactivated''' in between.'''''
2425 '''''Bold italic text ''with italic deactivated'' in between.'''''
2429 ..spanning two paragraphs (should not work).'''
2431 '''Bold tag left open
2433 ''Italic tag left open
2437 <!-- Unmatching number of opening, closing tags: -->
2438 '''This year''''s election ''should'' beat '''last year''''s.
2440 ''Tom'''s car is bigger than ''Susan'''s.
2442 Plain ''italic'''s plain
2444 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2445 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2446 </p><p><b>Bold text..</b>
2447 </p><p>..spanning two paragraphs (should not work).
2448 </p><p><b>Bold tag left open</b>
2449 </p><p><i>Italic tag left open</i>
2451 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2452 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2453 </p><p>Plain <i>italic'</i>s plain
2460 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2463 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2464 # is the bare minimun required by the spec, see:
2465 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2467 A table with no data.
2473 # A table with nothing but a caption is invalid XHTML, we might want to render
2474 # this as <p>caption</p>
2476 A table with nothing but a caption
2484 </caption><tr><td></td></tr></table>
2510 Simple table but with multiple dashes for row wikitext
2528 Multiplication table
2530 {| border="1" cellpadding="2"
2531 |+Multiplication table
2533 ! × !! 1 !! 2 !! 3
2551 <table border="1" cellpadding="2">
2552 <caption>Multiplication table
2599 Allow +/- in 2nd and later cells in a row
2626 |rowspan=2| Cell 2, row 1 (and 2)
2637 <td rowspan="2"> Cell 2, row 1 (and 2)
2655 {| bgcolor=#ABCDEF border=2
2660 |the original table again
2668 <table bgcolor="#ABCDEF" border="2">
2676 <td>the original table again
2682 Invalid attributes in table cell (bug 1830)
2697 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2700 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2704 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2705 <td>]" onmouseover="alert(document.cookie)">test
2714 Indented table markup mixed with indented pre content (proposed in bug 6200)
2719 Text that should be rendered preformatted
2727 <pre>Text that should be rendered preformatted
2736 Template-generated table cell attributes and cell content
2744 <td style="color: red"> Foo
2753 Plain link, capitalized
2757 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2762 Plain link, uncapitalized
2766 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2773 [[Main Page|The Main Page]]
2775 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2784 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2789 Broken link with fragment
2791 [[Zigzagzogzagzig#zug]]
2793 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2798 Special page link with fragment
2800 [[Special:Version#anchor]]
2802 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2807 Nonexistent special page link with fragment
2809 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2811 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2818 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2820 <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>
2827 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2829 <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>!!!
2834 Link with 3 brackets
2843 Piped link with 3 brackets
2845 [[[main page|the main page]]]
2847 <p>[[[main page|the main page]]]
2852 Link with multiple pipes
2854 [[Main Page|The|Main|Page]]
2856 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2863 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2865 <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>
2870 Piped link to namespace
2872 [[Meta:Disclaimers|The disclaimers]]
2874 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2881 [[Usually caused by a typo (oops}]]
2883 <p>[[Usually caused by a typo (oops}]]
2888 Link containing % (not as a hex sequence)
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 single hex sequence interpreted to char
2901 <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>
2906 Link containing % as a double hex sequence interpreted to hex sequence
2910 <p>[[7%2525 Solution]]
2915 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2916 Example for such a section: == < ==
2918 [[%23%3c]][[%23%3e]]
2920 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2925 Link containing "<#" and ">#" as a hex sequences
2927 [[%3c%23]][[%3e%23]]
2929 <p>[[%3c%23]][[%3e%23]]
2934 Link containing double-single-quotes '' (bug 4598)
2936 [[Lista d''e paise d''o munno]]
2938 <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>
2943 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2945 Some [[Link|pretty ''italics'' and stuff]]!
2947 <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>!
2952 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2954 ''Some [[Link|pretty ''italics'' and stuff]]!
2956 <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>
2961 Link with double quotes in title part (literal) and alternate part (interpreted)
2963 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2967 [[''Pentecoste''|Pentecoste]]
2969 [[''Pentecoste''|''Pentecoste'']]
2971 <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>
2972 </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>
2973 </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>
2974 </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>
2979 Broken image links with HTML captions (bug 39700)
2981 [[File:Nonexistent|<script></script>]]
2982 [[File:Nonexistent|100px|<script></script>]]
2983 [[File:Nonexistent|<]]
2984 [[File:Nonexistent|a<i>b</i>c]]
2986 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2987 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2988 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2989 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2996 [[http://www.example.com]]
2998 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3003 Plain link to URL with link text
3005 [[http://www.example.com Link text]]
3007 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3012 Plain link to protocol-relative URL
3014 [[//www.example.com]]
3016 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3021 Plain link to protocol-relative URL with link text
3023 [[//www.example.com Link text]]
3025 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3030 # I'm fairly sure the expected result here is wrong.
3031 # We want these to be URL links, not pseudo-pages with URLs for titles....
3032 # However the current output is also pretty screwy.
3035 # I'm changing it to match the current output--it arguably makes more
3036 # sense in the light of the test above. Old expected result was:
3037 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3039 # But I think this test is bordering on "garbage in, garbage out" anyway.
3044 Piped link to URL: [[http://www.example.com|an example URL]]
3046 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3051 BUG 2: [[page|http://url/]] should link to page, not http://url/
3053 [[Main Page|http://url/]]
3055 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3060 BUG 337: Escaped self-links should be bold
3064 [[Bug462]] [[Bug462]]
3066 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3071 Self-link to section should not be bold
3075 [[Main Page#section]]
3077 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3088 Self-link to numeric title
3094 <p><strong class="selflink">0</strong>
3099 Link to numeric-equivalent title
3105 <p><a href="/wiki/00" title="00">00</a>
3110 <nowiki> inside a link
3112 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3114 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3119 Non-breaking spaces in title
3121 [[ Main Page ]]
3123 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3128 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3134 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3139 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3145 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3150 Internal link with en linktrail: no apostrophes (bug 27473)
3156 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3161 Internal link with ca linktrail with apostrophes (bug 27473)
3167 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3172 Internal link with kaa linktrail with apostrophes (bug 27473)
3178 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3183 ### Interwiki links (see maintenance/interwiki.sql)
3187 Inline interwiki link
3189 [[MeatBall:SoftSecurity]]
3191 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3196 Inline interwiki link with empty title (bug 2372)
3200 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3205 Interwiki link encoding conversion (bug 1636)
3207 *[[Wikipedia:ro:Olteniţa]]
3208 *[[Wikipedia:ro:Olteniţa]]
3210 <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>
3211 </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>
3217 Interwiki link with fragment (bug 2130)
3219 [[MeatBall:SoftSecurity#foo]]
3221 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3236 Double interlanguage link
3247 Interlanguage link, with prefix links
3259 Double interlanguage link, with prefix links (bug 8897)
3272 Parsoid-specific test: Wikilinks with should RT properly
3278 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3296 Broken br tag sanitization
3305 Incorrecly removing closing slashes from correctly formed XHTML
3307 <br style="clear:both;" />
3309 <p><br style="clear:both;" />
3314 Failing to transform badly formed HTML into correct XHTML
3316 <br style="clear: left;">
3317 <br style="clear: right;">
3318 <br style="clear: both;">
3320 <p><br style="clear: left;" />
3321 <br style="clear: right;" />
3322 <br style="clear: both;" />
3327 Handling html with a div self-closing tag
3336 <p><div title />
3340 <p><div title=bar />
3341 <div title=bar/>
3343 <div title="bar/"></div>
3349 Handling html with a br self-closing tag
3358 <p><br title="title" />
3359 <br title="title" />
3368 Horizontal ruler (should it add that extra space?)
3382 Horizontal ruler -- 4+ dashes render hr
3391 Horizontal ruler -- eats additional dashes on the same line
3400 Horizontal ruler -- does not collaps dashes on consecutive lines
3411 Horizontal ruler -- <4 dashes render as plain text
3420 ### Block-level elements
3443 <ol><li>Numbered list
3460 ***#Number on level 4
3462 **#Number on level 3
3463 **#Number on level 3
3467 #** Level 3, but ordered
3470 <ol><li> with numbers
3472 <ul><li> and bullets
3474 <ol><li> and numbers
3476 </li><li>bullets again
3477 <ul><li>bullet level 2
3478 <ul><li>bullet level 3
3479 <ol><li>Number on level 4
3482 </li><li>bullet level 2
3483 <ol><li>Number on level 3
3484 </li><li>Number on level 3
3487 <ol><li>number level 2
3490 <ul><li><ul><li> Level 3
3494 <ol><li><ul><li><ul><li> Level 3, but ordered
3528 Nested lists 3 (first element empty)
3541 Nested lists 4 (first element empty)
3554 Nested lists 5 (both elements empty)
3567 Nested lists 6 (both elements empty)
3580 Nested lists 7 (skip initial nesting levels)
3584 <ul><li><ul><li><ul><li> foo
3592 Nested lists 8 (multiple nesting transitions)
3600 <ul><li><ul><li> bar
3610 1. Lists with start-of-line-transparent tokens before bullets: Comments
3624 2. Lists with start-of-line-transparent tokens before bullets: Template close
3636 List items are not parsed correctly following a <pre> block (bug 785)
3642 <ul><li> <pre>foo</pre>
3643 </li><li> <pre>bar</pre>
3650 List items from template
3661 * notSOL{{inner list}}
3680 List interrupted by empty line or heading
3690 <ul><li><ul><li> bar
3693 <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>
3694 <ul><li> Another list item
3705 Magic Word: {{CURRENTDAY}}
3714 Magic Word: {{CURRENTDAY2}}
3723 Magic Word: {{CURRENTDAYNAME}}
3732 Magic Word: {{CURRENTDOW}}
3741 Magic Word: {{CURRENTMONTH}}
3750 Magic Word: {{CURRENTMONTHABBREV}}
3752 {{CURRENTMONTHABBREV}}
3759 Magic Word: {{CURRENTMONTHNAME}}
3761 {{CURRENTMONTHNAME}}
3768 Magic Word: {{CURRENTMONTHNAMEGEN}}
3770 {{CURRENTMONTHNAMEGEN}}
3777 Magic Word: {{CURRENTTIME}}
3786 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3795 Magic Word: {{CURRENTYEAR}}
3804 Magic Word: {{FULLPAGENAME}}
3806 title=[[User:Ævar Arnfjörð Bjarmason]]
3810 <p>User:Ævar Arnfjörð Bjarmason
3815 Magic Word: {{FULLPAGENAMEE}}
3817 title=[[User:Ævar Arnfjörð Bjarmason]]
3821 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3826 Magic Word: {{NAMESPACE}}
3828 title=[[User:Ævar Arnfjörð Bjarmason]]
3837 Magic Word: {{NAMESPACEE}}
3839 title=[[User:Ævar Arnfjörð Bjarmason]]
3848 Magic Word: {{NAMESPACENUMBER}}
3850 title=[[User:Ævar Arnfjörð Bjarmason]]
3859 Magic Word: {{NUMBEROFFILES}}
3868 Magic Word: {{PAGENAME}}
3870 title=[[User:Ævar Arnfjörð Bjarmason]]
3874 <p>Ævar Arnfjörð Bjarmason
3879 Magic Word: {{PAGENAME}} with metacharacters
3881 title=[['foo & bar = baz']]
3885 <p><i>'foo & bar = baz'</i>
3890 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3892 title=[[*RFC 1234 http://example.com/]]
3896 <p>*RFC 1234 http://example.com/
3901 Magic Word: {{PAGENAMEE}}
3903 title=[[User:Ævar Arnfjörð Bjarmason]]
3907 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3912 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3914 title=[[*RFC 1234 http://example.com/]]
3918 <p>*RFC_1234_http://example.com/
3923 Magic Word: {{REVISIONID}}
3932 Magic Word: {{SCRIPTPATH}}
3941 Magic Word: {{SERVER}}
3945 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3950 Magic Word: {{SERVERNAME}}
3959 Magic Word: {{SITENAME}}
3968 Namespace 1 {{ns:1}}
3977 Namespace 1 {{ns:01}}
3986 Namespace 0 {{ns:0}} (bug 4783)
3994 Namespace 0 {{ns:00}} (bug 4783)
4002 Namespace -1 {{ns:-1}}
4011 Namespace User {{ns:User}}
4020 Namespace User talk {{ns:User_talk}}
4029 Namespace User talk {{ns:uSeR tAlK}}
4038 Namespace File {{ns:File}}
4047 Namespace File {{ns:Image}}
4056 Namespace (lang=de) Benutzer {{ns:User}}
4067 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4073 <p>Benutzer Diskussion
4081 {{urlencode:hi world?!}}
4082 {{urlencode:hi world?!|WIKI}}
4083 {{urlencode:hi world?!|PATH}}
4084 {{urlencode:hi world?!|QUERY}}
4097 Magic links: internal link to RFC (bug 479)
4101 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4106 Magic links: RFC (bug 479)
4110 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4115 Magic links: ISBN (bug 1937)
4119 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4124 Magic links: PMID incorrectly converts space to underscore
4128 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4137 Nonexistent template
4139 {{thistemplatedoesnotexist}}
4141 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4148 This is a test template
4156 <p>This is a test template
4161 Template with explicit namespace
4165 <p>This is a test template
4173 This is a test template with parameter {{{param}}}
4179 {{paramtest|param=foo}}
4181 <p>This is a test template with parameter foo
4186 Template:paramtestnum
4192 Template unnamed parameter
4194 {{paramtestnum|Main Page|the main page}}
4196 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4201 Template:templatesimple
4207 Template:templateredirect
4209 #redirect [[Template:templatesimple]]
4213 Template:templateasargtestnum
4219 Template:templateasargtest
4221 {{template{{{templ}}}}}
4225 Template:templateasargtest2
4231 Template with template name as unnamed argument
4233 {{templateasargtestnum|templatesimple}}
4240 Template with template name as argument
4242 {{templateasargtest|templ=simple}}
4249 Template with template name as argument (2)
4251 {{templateasargtest2|templ=templatesimple}}
4258 Template:templateasargtestdefault
4260 {{{{{templ|templatesimple}}}}}
4270 Template with default value
4272 {{templateasargtestdefault}}
4279 Template with default value (value set)
4281 {{templateasargtestdefault|templ=templa}}
4290 {{templateredirect}}
4297 Template with argument in separate line
4299 {{ templateasargtest |
4307 Template with complex template as argument
4310 param ={{ templateasargtest |
4313 <p>This is a test template with parameter (test)
4318 Template with thumb image (with link in description)
4321 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4323 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>
4328 Template:complextemplate
4330 {{{1}}} {{paramtest|
4331 param ={{{param}}}}}
4335 Template with complex arguments
4338 param ={{ templateasargtest |
4339 templ = simple }}|[[Template:complextemplate|link]]}}
4341 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4346 BUG 553: link with two variables in a piped link
4349 |[[{{{1}}}|{{{2}}}]]
4354 <td>[[{{{1}}}|{{{2}}}]]
4360 Magic variable as template parameter
4362 {{paramtest|param={{SITENAME}}}}
4364 <p>This is a test template with parameter MediaWiki
4371 [[{{{param}}}|link]]
4375 Template parameter as link source
4377 {{linktest|param=Main Page}}
4379 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4384 Template-generated attribute string (k='v')
4386 <span {{attr_str|id|v1}}>bar</span>
4388 <p><span id="v1">bar</span>
4395 including another template, {{paramtest|param={{{arg}}}}}
4399 Template passing argument to another template
4401 {{paramtest2|arg='hmm'}}
4403 <p>including another template, This is a test template with parameter 'hmm'
4414 Template as link source
4418 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4436 Template infinite loop
4440 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4445 Template from main namespace
4464 BUG 529: Template with table, not included at beginning of line
4483 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4503 BUG 41: Template parameters shown as broken links
4515 ''None'' of '''this''' should be
4517 but rather passed unmodified
4521 # hmm, fix this or just deprecate msgnw and document its behavior?
4527 {{msgnw:MSGNW test}}
4529 <p>''None'' of '''this''' should be
4531 but rather passed unmodified
4539 {{int:youhavenewmessages|lots of money|not!}}
4541 <p>You have lots of money (not!).
4548 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4552 <includeonly> and <noinclude> being included
4563 <onlyinclude>Foo</onlyinclude>bar
4567 <onlyinclude> being included
4579 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4583 <onlyinclude> and <includeonly> being included
4592 <includeonly> and <noinclude> on a page
4594 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4601 <onlyinclude> on a page
4603 <onlyinclude>Foo</onlyinclude>bar
4610 Template:Includeonly section
4613 ==Includeonly section==
4619 Bug 6563: Edit link generation for section shown by <includeonly>
4621 {{includeonly section}}
4623 <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>
4624 <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>
4628 # Uses same input as the contents of [[Template:Includeonly section]]
4630 Bug 6563: Section extraction for section shown by <includeonly>
4635 ==Includeonly section==
4643 Bug 6563: Edit link generation for section suppressed by <includeonly>
4646 ==Includeonly section==
4650 <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>
4655 Bug 6563: Section extraction for section suppressed by <includeonly>
4660 ==Includeonly section==
4668 ### <includeonly> and <noinclude> in attributes
4671 0. includeonly around the entire attribute
4673 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4675 <p><span id="v2">bar</span>
4680 1. includeonly in html attr key
4682 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4684 <p><span id="foo">bar</span>
4689 2. includeonly in html attr value
4691 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4692 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4694 <p><span id="v1">bar</span>
4695 <span id="v1">bar</span>
4700 3. includeonly in part of an attr value
4702 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4704 <p><span style="color:red;">bar</span>
4709 ### Testing parsing of templates where a template arg
4710 ### has the same name as the template itself.
4720 Templates: Template Name/Arg clash: 1. Use of positional param
4729 Templates: Template Name/Arg clash: 2. Use of named param
4738 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4747 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4751 Templates: 1. Simple use
4760 Templates: 2. Inside a block tag
4762 <div>{{echo|Foo}}</div>
4769 Templates: P-wrapping: 1a. Templates on consecutive lines
4780 Templates: P-wrapping: 1b. Templates on consecutive lines
4794 Templates: P-wrapping: 1c. Templates on consecutive lines
4797 {{echo|bar}} <div>baz</div>
4806 Templates: Inline Text: 1. Multiple tmeplate uses
4808 {{echo|Foo}}bar{{echo|baz}}
4815 Templates: Inline Text: 2. Back-to-back template uses
4817 {{echo|Foo}}{{echo|bar}}
4824 Templates: Block Tags: 1. Multiple template uses
4826 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4828 <div>Foo</div><div>bar</div><div>baz</div>
4833 Templates: Block Tags: 2. Back-to-back template uses
4835 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4837 <div>Foo</div><div>bar</div>
4842 Templates: Links: 1. Simple example
4844 {{echo|[[Foo|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: 2. Generation of link href
4853 [[{{echo|Foo}}|bar]]
4855 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4860 Templates: Links: 3. Generation of part of a link href
4862 [[Fo{{echo|o}}|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: 4. Multiple templates generating link href
4871 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4873 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4878 Templates: Links: 5. Generation of link text
4880 [[Foo|{{echo|bar}}]]
4882 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4887 Templates: Links: 5. Nested templates (only outermost template should be marked)
4889 {{echo|[[{{echo|Foo}}|bar]]}}
4891 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4896 Templates: HTML Tag: 1. Generation of HTML attr. key
4898 <div {{echo|style}}="color:red;">foo</div>
4900 <div style="color:red;">foo</div>
4905 Templates: HTML Tag: 2. Generation of HTML attr. value
4907 <div style={{echo|'color:red;'}}>foo</div>
4909 <div style="color:red;">foo</div>
4914 Templates: HTML Tag: 3. Generation of HTML attr key and value
4916 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4918 <div style="color:red;">foo</div>
4923 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4925 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4927 <div title="This is a long title with just one piece templated">foo</div>
4932 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4934 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4936 <div title="This is a long title with just one piece templated">foo</div>
4941 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4943 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4945 <div title="This is a long title with just one piece templated">foo</div>
4950 Templates: HTML Tables: 1. Generating start of a HTML table
4952 {{echo|<table><tr><td>foo</td>}}</tr></table>
4954 <table><tr><td>foo</td></tr></table>
4959 Templates: HTML Tables: 2a. Generating middle 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: 2b. Generating middle of a HTML table
4970 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4972 <table><tr><td>foo</td></tr></table>
4977 Templates: HTML Tables: 3. Generating end of a HTML table
4979 <table><tr>{{echo|<td>foo</td></tr></table>}}
4981 <table><tr><td>foo</td></tr></table>
4986 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4988 {{echo|<table>}}<tr><td>foo</td></tr></table>
4990 <table><tr><td>foo</td></tr></table>
4995 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
4997 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4999 <table><tr><td>foo</td></tr></table>
5004 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5006 <table><tr>{{echo|<td>}}foo</td></tr></table>
5008 <table><tr><td>foo</td></tr></table>
5013 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5015 <table><tr><td>foo{{echo|</td>}}</tr></table>
5017 <table><tr><td>foo</td></tr></table>
5022 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5024 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5026 <table><tr><td>foo</td></tr></table>
5031 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5033 <table><tr><td>foo</td></tr>{{echo|</table>}}
5035 <table><tr><td>foo</td></tr></table>
5040 Templates: Wiki Tables: 1. Fostering of entire template content
5048 <tr><td></td></tr></table>
5053 Templates: Wiki Tables: 2. Fostering of partial template content
5063 <tr><td></td></tr></table>
5068 Templates: Wiki Tables: 3. td-content via multiple templates
5071 {{echo|{{pipe}}a}}{{echo|b}}
5082 Templates: Lists: Multi-line list-items via templates
5084 *{{echo|a {{nonexistent|
5086 *{{echo|b {{nonexistent|
5089 <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>
5090 </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>
5096 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5098 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5100 <p><i>ab</i>c<i>d</i>e
5105 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5106 (PHP parser generates misnested html)
5110 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5112 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5116 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5117 (PHP parser generates misnested html)
5121 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5124 <div><i>b</i>c<i>d</i></div>
5129 Templates: Ugly nesting: 4. Divs opened/closed across templates
5131 a<div>b{{echo|c</div>d}}e
5138 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5144 |{{echo|foo</table>}}
5148 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5149 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5150 bar</span><span about="#mwt1">
5155 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5165 <td>1. {{echo|foo </table>}}</td>
5167 <td>2. {{echo|baz </table>}}</td>
5180 <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">
5181 <tbody><tr data-parsoid="{"stx":"html"}">
5182 <td data-parsoid="{"stx":"html"}">
5183 <table data-parsoid="{"stx":"html"}">
5184 <tbody><tr data-parsoid="{"stx":"html"}">
5185 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5186 <td data-parsoid="{"stx":"html"}"> bar </td>
5187 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5188 </span><span about="#mwt1">
5190 abc</span><span about="#mwt1">
5191 </span><span about="#mwt1">
5192 </span><span about="#mwt1">
5193 </span><span about="#mwt1">
5194 </span><span about="#mwt1">
5196 xyz</span><span about="#mwt1">
5197 </span><span about="#mwt1">
5202 Parser Functions: 1. Simple example
5211 Parser Functions: 2. Nested use (only outermost should be marked up)
5220 ### Pre-save transform tests
5223 pre-save transform: subst:
5229 This is a test template
5233 pre-save transform: normal template
5243 pre-save transform: nonexistent template
5247 {{thistemplatedoesnotexist}}
5249 {{thistemplatedoesnotexist}}
5254 pre-save transform: subst magic variables
5263 # This is bug 89, which I fixed. -- wtm
5265 pre-save transform: subst: templates with parameters
5269 {{subst:paramtest|param="something else"}}
5271 This is a test template with parameter "something else"
5277 <nowiki>'''not wiki'''</nowiki>
5281 pre-save transform: nowiki in subst (bug 1188)
5285 {{subst:nowikitest}}
5287 <nowiki>'''not wiki'''</nowiki>
5292 Template:commenttest
5294 This template has <!-- a comment --> in it.
5298 pre-save transform: comment in subst (bug 1936)
5302 {{subst:commenttest}}
5304 This template has <!-- a comment --> in it.
5308 pre-save transform: unclosed tag
5312 <nowiki>'''not wiki'''
5314 <nowiki>'''not wiki'''
5318 pre-save transform: mixed tag case
5322 <NOwiki>'''not wiki'''</noWIKI>
5324 <NOwiki>'''not wiki'''</noWIKI>
5328 pre-save transform: unclosed comment in <nowiki>
5332 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5334 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5340 <span onmouseover="alert('crap')">Oh no</span>
5344 (confirming safety of fix for subst bug 1936)
5346 {{Template:dangerous}}
5348 <p><span>Oh no</span>
5353 pre-save transform: comment containing gallery (bug 5024)
5357 <!-- <gallery>data</gallery> -->
5359 <!-- <gallery>data</gallery> -->
5363 pre-save transform: comment containing extension
5367 <!-- <tag>data</tag> -->
5369 <!-- <tag>data</tag> -->
5373 pre-save transform: comment containing nowiki
5377 <!-- <nowiki>data</nowiki> -->
5379 <!-- <nowiki>data</nowiki> -->
5383 pre-save transform: <noinclude> in subst (bug 3298)
5393 pre-save transform: <onlyinclude> in subst (bug 3298)
5405 {{<includeonly>subst:</includeonly>Includes}}
5409 Template:SafeSubstTest
5411 {{<includeonly>safesubst:</includeonly>Includes}}
5415 bug 22297: safesubst: works during PST
5419 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5425 bug 22297: safesubst: works during normal parse
5434 subst: does not work during normal parse
5438 <p>{{subst:Includes}}
5443 pre-save transform: context links ("pipe trick")
5447 [[Article (context)|]]
5450 [[Bar:Article (context)|]]
5451 [[:Bar:Article (context)|]]
5453 [[|Article (context)]]
5457 [[Article (context)|Article]]
5458 [[Bar:Article|Article]]
5459 [[:Bar:Article|Article]]
5460 [[Bar:Article (context)|Article]]
5461 [[:Bar:Article (context)|Article]]
5463 [[Article (context)]]
5464 [[Bar:X (Y) Z|X (Y) Z]]
5465 [[:Bar:X (Y) Z|X (Y) Z]]
5469 pre-save transform: context links ("pipe trick") with interwiki prefix
5473 [[interwiki:Article|]]
5474 [[:interwiki:Article|]]
5475 [[interwiki:Bar:Article|]]
5476 [[:interwiki:Bar:Article|]]
5478 [[interwiki:Article|Article]]
5479 [[:interwiki:Article|Article]]
5480 [[interwiki:Bar:Article|Bar:Article]]
5481 [[:interwiki:Bar:Article|Bar:Article]]
5485 pre-save transform: context links ("pipe trick") with parens in title
5487 pst title=[[Somearticle (context)]]
5491 [[Article (context)|Article]]
5495 pre-save transform: context links ("pipe trick") with comma in title
5497 pst title=[[Someplace, Somewhere]]
5500 [[Otherplace, Elsewhere|]]
5501 [[Otherplace, Elsewhere, Anywhere|]]
5503 [[Otherplace, Somewhere|Otherplace]]
5504 [[Otherplace, Elsewhere|Otherplace]]
5505 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5509 pre-save transform: context links ("pipe trick") with parens and comma
5511 pst title=[[Someplace (IGNORED), Somewhere]]
5514 [[Otherplace (place), Elsewhere|]]
5516 [[Otherplace, Somewhere|Otherplace]]
5517 [[Otherplace (place), Elsewhere|Otherplace]]
5521 pre-save transform: context links ("pipe trick") with comma and parens
5523 pst title=[[Who, me? (context)]]
5526 [[Me, Myself, and I (1937 song)|]]
5528 [[Yes, you. (context)|Yes, you.]]
5529 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5533 pre-save transform: context links ("pipe trick") with namespace
5535 pst title=[[Ns:Somearticle]]
5539 [[Ns:Article|Article]]
5543 pre-save transform: context links ("pipe trick") with namespace and parens
5545 pst title=[[Ns:Somearticle (context)]]
5549 [[Ns:Article (context)|Article]]
5553 pre-save transform: context links ("pipe trick") with namespace and comma
5555 pst title=[[Ns:Somearticle, Context, Whatever]]
5559 [[Ns:Article, Context, Whatever|Article]]
5563 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5565 pst title=[[Ns:Somearticle, Context (context)]]
5569 [[Ns:Article (context)|Article]]
5573 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5575 pst title=[[Ns:Somearticle (IGNORED), Context]]
5579 [[Ns:Article, Context|Article]]
5583 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5587 [[Article(context)|]]
5588 [[Bar:Article(context)|]]
5589 [[:Bar:Article(context)|]]
5590 [[|Article(context)]]
5594 [[Article(context)|Article]]
5595 [[Bar:Article(context)|Article]]
5596 [[:Bar:Article(context)|Article]]
5597 [[Article(context)]]
5599 [[:Bar:X(Y)Z|X(Y)Z]]
5603 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5607 [[Article (context)|]]
5608 [[Bar:Article (context)|]]
5609 [[:Bar:Article (context)|]]
5610 [[|Article (context)]]
5614 [[Article (context)|Article]]
5615 [[Bar:Article (context)|Article]]
5616 [[:Bar:Article (context)|Article]]
5617 [[Article (context)]]
5618 [[Bar:X (Y) Z|X (Y) Z]]
5619 [[:Bar:X (Y) Z|X (Y) Z]]
5623 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5627 [[Article(context)|]]
5628 [[Bar:Article(context)|]]
5629 [[:Bar:Article(context)|]]
5630 [[|Article(context)]]
5634 [[Article(context)|Article]]
5635 [[Bar:Article(context)|Article]]
5636 [[:Bar:Article(context)|Article]]
5637 [[Article(context)]]
5639 [[:Bar:X(Y)Z|X(Y)Z]]
5643 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5647 [[Article (context), context|]]
5648 [[Article (context),context|]]
5649 [[Bar:Article (context), context|]]
5650 [[Bar:Article (context),context|]]
5651 [[:Bar:Article (context), context|]]
5652 [[:Bar:Article (context),context|]]
5654 [[Article (context), context|Article]]
5655 [[Article (context),context|Article]]
5656 [[Bar:Article (context), context|Article]]
5657 [[Bar:Article (context),context|Article]]
5658 [[:Bar:Article (context), context|Article]]
5659 [[:Bar:Article (context),context|Article]]
5663 pre-save transform: trim trailing empty lines
5667 Empty lines are trimmed
5673 Empty lines are trimmed
5677 pre-save transform: Signature expansion
5682 * <noinclude>~~~</noinclude>
5683 * <includeonly>~~~</includeonly>
5684 * <onlyinclude>~~~</onlyinclude>
5686 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5687 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5688 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5689 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5694 pre-save transform: Signature expansion in nowiki tags (bug 93)
5700 <nowiki>~~~~</nowiki>
5702 <includeonly><nowiki>~~~~</nowiki></includeonly>
5704 <noinclude><nowiki>~~~~</nowiki></noinclude>
5706 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5708 {{subst:Foo}} shall be converted to FOO
5710 As well as inside noinclude/onlyinclude
5711 <noinclude>{{subst:Foo}}</noinclude>
5712 <onlyinclude>{{subst:Foo}}</onlyinclude>
5714 But not inside includeonly
5715 <includeonly>{{subst:Foo}}</includeonly>
5719 <nowiki>~~~~</nowiki>
5721 <includeonly><nowiki>~~~~</nowiki></includeonly>
5723 <noinclude><nowiki>~~~~</nowiki></noinclude>
5725 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5727 FOO shall be converted to FOO
5729 As well as inside noinclude/onlyinclude
5730 <noinclude>FOO</noinclude>
5731 <onlyinclude>FOO</onlyinclude>
5733 But not inside includeonly
5734 <includeonly>{{subst:Foo}}</includeonly>
5738 ### Message transform tests
5741 message transform: magic variables
5751 message transform: should not transform wiki markup
5761 message transform: <noinclude> in transcluded template (bug 4926)
5771 message transform: <onlyinclude> in transcluded template (bug 4926)
5781 {{#special:}} page name, known
5785 {{#special:Recentchanges}}
5787 Special:RecentChanges
5791 {{#special:}} page name with subpage, known
5795 {{#special:Recentchanges/param}}
5797 Special:RecentChanges/param
5801 {{#special:}} page name, unknown
5805 {{#special:foobarnonexistent}}
5807 No such special page
5811 {{#speciale:}} page name, known
5815 {{#speciale:Recentchanges}}
5817 Special:RecentChanges
5821 {{#speciale:}} page name with subpage, known
5825 {{#speciale:Recentchanges/param}}
5827 Special:RecentChanges/param
5831 {{#speciale:}} page name, unknown
5835 {{#speciale:foobarnonexistent}}
5837 No_such_special_page
5846 [[Image:foobar.jpg]]
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]]
5857 <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>
5862 Simple image (using File: namespace, now canonical)
5866 <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>
5873 [[Image:foobar.jpg|right|Caption text]]
5875 <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>
5880 Image with empty attribute
5882 [[Image:foobar.jpg|right||Caption text]]
5884 <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>
5889 Image with link tails
5891 123[[Image:foobar.jpg]]456
5892 123[[Image:foobar.jpg|right]]456
5893 123[[Image:foobar.jpg|thumb]]456
5895 <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
5897 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
5898 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
5903 Image with multiple captions -- only last one is accepted
5905 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5907 <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>
5912 Image with link parameter, wiki target
5914 [[Image:foobar.jpg|link=Target page]]
5916 <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>
5921 Image with link parameter, URL target
5923 [[Image:foobar.jpg|link=http://example.com/]]
5925 <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>
5930 Image with link parameter, wgExternalLinkTarget
5932 [[Image:foobar.jpg|link=http://example.com/]]
5934 wgExternalLinkTarget='foobar'
5936 <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>
5941 Image with link parameter, wgNoFollowLinks set to false
5943 [[Image:foobar.jpg|link=http://example.com/]]
5945 wgNoFollowLinks=false
5947 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5952 Image with link parameter, wgNoFollowDomainExceptions
5954 [[Image:foobar.jpg|link=http://example.com/]]
5956 wgNoFollowDomainExceptions='example.com'
5958 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5963 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5965 [[Image:foobar.jpg|link=http://example.com/|Title]]
5967 wgExternalLinkTarget='foobar'
5969 <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>
5974 Image with empty link parameter
5976 [[Image:foobar.jpg|link=]]
5978 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5983 Image with link parameter (wiki target) and unnamed parameter
5985 [[Image:foobar.jpg|link=Target page|Title]]
5987 <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>
5992 Image with link parameter (URL target) and unnamed parameter
5994 [[Image:foobar.jpg|link=http://example.com/|Title]]
5996 <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>
6001 Thumbnail image with link parameter
6003 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6005 <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>
6010 Image with frame and link
6012 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6014 <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>
6019 Image with frame and link and explicit alt
6021 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6023 <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>
6028 Image with wiki markup in implicit alt
6030 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6032 <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>
6037 Image with wiki markup in explicit alt
6039 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6041 <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>
6046 Link to image page- image page normally doesn't exists, hence edit link
6047 Add test with existing image page
6048 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6052 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6057 bug 18784 Link to non-existent image page with caption should use caption as link text
6059 [[:Image:test|caption]]
6061 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6066 Frameless image caption with a free URL
6068 [[Image:foobar.jpg|http://example.com]]
6070 <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>
6075 Thumbnail image caption with a free URL
6077 [[Image:foobar.jpg|thumb|http://example.com]]
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 rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
6084 Thumbnail image caption with a free URL and explicit alt
6086 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6088 <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>
6093 BUG 1887: A ISBN with a thumbnail
6095 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
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><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6102 BUG 1887: A RFC with a thumbnail
6104 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6106 <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>
6111 BUG 1887: A mailto link with a thumbnail
6113 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6115 <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>
6119 # Pending resolution to bug 368
6121 BUG 648: Frameless image caption with a link
6123 [[Image:foobar.jpg|text with a [[link]] in it]]
6125 <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>
6130 BUG 648: Frameless image caption with a link (suffix)
6132 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6134 <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>
6139 BUG 648: Frameless image caption with an interwiki link
6141 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6143 <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>
6148 BUG 648: Frameless image caption with a piped interwiki link
6150 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6152 <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>
6157 Escape HTML special chars in image alt text
6159 [[Image:foobar.jpg|& < > "]]
6161 <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>
6166 BUG 499: Alt text should have Ӓ, not &1234;
6168 [[Image:foobar.jpg|♀]]
6170 <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>
6175 Broken image caption with link
6177 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6179 <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.
6184 Image caption containing another image
6186 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6188 <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>
6193 Image caption containing a newline
6195 [[Image:Foobar.jpg|This
6198 <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>
6204 Bug 3090: External links other than http: in image captions
6206 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6208 <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>
6215 [[Image:foobar.jpg|a|class=b]]
6217 <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>
6224 #REDIRECT [[File:Barfoo.jpg]]
6230 [[Image:Barfoo.jpg]]
6232 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6237 Missing image with uploads disabled
6241 [[Image:Foobaz.jpg]]
6243 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6252 Subpage test/subpage
6260 subpage title=[[Subpage test]]
6264 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6269 Subpage noslash link
6271 subpage title=[[Subpage test]]
6275 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6284 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6289 BUG 561: {{/Subpage}}
6291 subpage title=[[Page]]
6295 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6303 Category:MediaWiki User's Guide
6311 [[:Category:MediaWiki User's Guide]]
6313 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6322 [[Category:MediaWiki User's Guide]]
6324 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6328 PAGESINCATEGORY invalid title fatal (r33546 fix)
6330 {{PAGESINCATEGORY:<bogus>}}
6337 Category with different sort key
6341 [[Category:MediaWiki User's Guide|Foo]]
6343 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6347 Category with identical sort key
6351 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6353 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6357 Category with empty sort key
6362 [[Category:MediaWiki User's Guide|]]
6364 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6368 Category with empty sort key and parentheses
6373 [[Category:Foo (bar)|]]
6375 [[Category:Foo (bar)|Foo]]
6379 Category with link tail
6384 123[[Category:Foo]]456
6386 123[[Category:Foo]]456
6390 Category with template
6395 [[Category:{{echo|Foo}}]]
6397 [[Category:{{echo|Foo}}]]
6401 Category with template in sort key
6406 [[Category:Foo|{{echo|Bar}}]]
6408 [[Category:Foo|{{echo|Bar}}]]
6412 Category with template in sort key and title
6417 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6419 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6423 Category / paragraph interactions
6425 Foo [[Category:Baz]] Bar
6427 Foo [[Category:Baz]]
6435 [[Category:Baz]] Bar
6448 {{echo|[[Category:Baz]]}}
6463 ### Inter-language links
6466 Inter-language links
6472 [[zh:食品]]
6474 es:Alimento fr:Nourriture zh:食品
6478 Duplicate interlanguage links (bug 24502)
6494 Basic section headings
6501 ===Smaller headline===
6504 <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>
6507 <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>
6510 <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>
6516 Section headings with TOC
6519 === Subheadline 1 ===
6520 ===== Skipping a level =====
6521 ====== Skipping a level ======
6525 ===Another headline===
6527 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6529 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6531 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6533 <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>
6535 <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>
6542 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6544 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6549 <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>
6550 <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>
6551 <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>
6552 <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>
6553 <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>
6556 <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>
6560 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6562 Handling of sections up to level 6 and beyond
6565 == Level 2 Heading==
6566 === Level 3 Heading===
6567 ==== Level 4 Heading====
6568 ===== Level 5 Heading=====
6569 ====== Level 6 Heading======
6570 ======= Level 7 Heading=======
6571 ======== Level 8 Heading========
6572 ========= Level 9 Heading=========
6573 ========== Level 10 Heading==========
6575 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6577 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6579 <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>
6581 <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>
6583 <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>
6585 <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>
6587 <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>
6588 <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>
6589 <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>
6590 <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>
6591 <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>
6604 <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>
6605 <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>
6606 <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>
6607 <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>
6608 <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>
6609 <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>
6610 <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>
6611 <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>
6612 <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>
6613 <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>
6618 TOC regression (bug 9764)
6622 ==== title 1.1.1 ====
6627 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6629 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6631 <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>
6633 <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>
6636 <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>
6639 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6641 <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>
6646 <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>
6647 <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>
6648 <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>
6649 <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>
6650 <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>
6651 <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>
6656 TOC with wgMaxTocLevel=3 (bug 6204)
6662 ==== title 1.1.1 ====
6667 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6669 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6671 <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>
6672 <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>
6675 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6677 <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>
6682 <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>
6683 <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>
6684 <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>
6685 <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>
6686 <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>
6687 <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>
6692 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6698 ====Section 1.1.1====
6699 ====Section 1.1.1.1====
6702 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6704 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6706 <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>
6709 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6712 <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>
6713 <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>
6714 <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>
6715 <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>
6716 <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>
6722 Resolving duplicate section names
6727 <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>
6728 <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 Resolving duplicate section names with differing case (bug 10721)
6738 <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>
6739 <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>
6751 Template with sections, __NOTOC__
6758 <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>
6759 <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>
6760 <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>
6761 <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>
6766 __NOEDITSECTION__ keyword
6772 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6773 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6778 Link inside a section heading
6780 ==Section with a [[Main Page|link]] in it==
6782 <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>
6787 TOC regression (bug 12077)
6794 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6796 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6798 <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>
6801 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6804 <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>
6805 <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>
6806 <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>
6811 BUG 1219 URL next to image (good)
6813 http://example.com [[Image:foobar.jpg]]
6815 <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>
6820 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6823 The line above must have a trailing space!
6826 But just in case it doesn't...
6828 <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>
6829 <p>The line above must have a trailing space!
6831 <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>
6832 <p>But just in case it doesn't...
6837 Header with special characters (bug 25462)
6839 The tooltips shall not show entities to the user (ie. be double escaped)
6856 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6860 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6861 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6862 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6863 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6864 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6867 <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>
6870 <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>
6873 <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>
6876 <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>
6879 <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>
6885 Headers with excess '=' characters
6886 (Are similar tests necessary beyond the 1st level?)
6890 =''italic'' heading==
6891 ==''italic'' heading=
6893 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6895 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6896 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6897 <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>
6898 <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>
6901 <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>
6902 <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>
6903 <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>
6904 <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>
6909 BUG 1219 URL next to image (broken)
6911 http://example.com[[Image:foobar.jpg]]
6913 <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>
6918 Bug 1186 news: in the middle of text
6920 http://en.wikinews.org/wiki/Wikinews:Workplace
6922 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6928 Namespaced link must have a title
6937 Namespaced link must have a title (bad fragment version)
6939 [[Project:#fragment]]
6941 <p>[[Project:#fragment]]
6947 div with no attributes
6949 <div>HTML rocks</div>
6951 <div>HTML rocks</div>
6956 div with double-quoted attribute
6958 <div id="rock">HTML rocks</div>
6960 <div id="rock">HTML rocks</div>
6965 div with single-quoted attribute
6967 <div id='rock'>HTML rocks</div>
6969 <div id="rock">HTML rocks</div>
6974 div with unquoted attribute
6976 <div id=rock>HTML rocks</div>
6978 <div id="rock">HTML rocks</div>
6983 div with illegal double attributes
6985 <div id="a" id="b">HTML rocks</div>
6987 <div id="b">HTML rocks</div>
6992 HTML multiple attributes correction
6994 <p class="error" class="awesome">Awesome!</p>
6996 <p class="awesome">Awesome!</p>
7001 Table multiple attributes correction
7004 !+ class="error" class="awesome"| status
7009 <th class="awesome"> status
7017 <DIV ID="x">HTML ROCKS</DIV>
7019 <div id="x">HTML ROCKS</div>
7025 text with amp in the middle of nowhere
7029 <p>Remember AT&T?
7034 text with character entity: eacute
7036 I always thought é was a cute letter.
7038 <p>I always thought é was a cute letter.
7043 text with undefined character entity: xacute
7045 I always thought &xacute; was a cute letter.
7047 <p>I always thought &xacute; was a cute letter.
7059 [[Media:Foobar.jpg]]
7061 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7066 Media link with text
7068 [[Media:Foobar.jpg|A neat file to look at]]
7070 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7074 # FIXME: this is still bad HTML tag nesting
7076 Media link with nasty text
7077 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7079 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7081 <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>
7086 Media link to nonexistent file (bug 1702)
7088 [[Media:No such.jpg]]
7090 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7095 Image link to nonexistent file (bug 1850 - good)
7097 [[Image:No such.jpg]]
7099 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7104 :Image link to nonexistent file (bug 1850 - bad)
7106 [[:Image:No such.jpg]]
7108 <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>
7115 Character reference normalization in link text (bug 1938)
7117 [[Main Page|this&that]]
7119 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7126 Test for unicode normalization
7128 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7132 (bug 19451) Links should refer to the normalized form.
7140 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7141 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7142 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7143 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7144 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7149 Empty attribute crash test (bug 2067)
7151 <font color="">foo</font>
7153 <p><font color="">foo</font>
7158 Empty attribute crash test single-quotes (bug 2067)
7160 <font color=''>foo</font>
7162 <p><font color="">foo</font>
7167 Attribute test: equals, then nothing
7169 <font color=>foo</font>
7176 Attribute test: unquoted value
7178 <font color=x>foo</font>
7180 <p><font color="x">foo</font>
7185 Attribute test: unquoted but illegal value (hash)
7187 <font color=#x>foo</font>
7189 <p><font color="#x">foo</font>
7194 Attribute test: no value
7196 <font color>foo</font>
7198 <p><font color="color">foo</font>
7203 Bug 2095: link with three closing brackets
7207 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7212 Bug 2095: link with pipe and three closing brackets
7216 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7221 Bug 2095: link with pipe and three closing brackets, version 2
7223 [[Main Page|[http://example.com/]]]
7225 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7235 Template:Dangerous attribute
7237 " onmouseover="alert(document.cookie)
7241 Template:Dangerous style attribute
7243 border-size: expression(alert(document.cookie))
7249 <div style="float: right; {{{1}}}">Magic div</div>
7253 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7255 <div title="{{test}}"></div>
7257 <div title="This is a test template"></div>
7262 Bug 2304: HTML attribute safety (dangerous template; 2309)
7264 <div title="{{dangerous attribute}}"></div>
7266 <div title=""></div>
7271 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7273 <div style="{{dangerous style attribute}}"></div>
7275 <div style="/* insecure input */"></div>
7280 Bug 2304: HTML attribute safety (safe parameter; 2309)
7282 {{div style|width: 200px}}
7284 <div style="float: right; width: 200px">Magic div</div>
7289 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7291 {{div style|width: expression(alert(document.cookie))}}
7293 <div style="/* insecure input */">Magic div</div>
7298 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7300 {{div style|"><script>alert(document.cookie)</script>}}
7302 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7307 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7309 {{div style|" ><script>alert(document.cookie)</script>}}
7311 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7316 Bug 2304: HTML attribute safety (link)
7318 <div title="[[Main Page]]"></div>
7320 <div title="[[Main Page]]"></div>
7325 Bug 2304: HTML attribute safety (italics)
7327 <div title="''foobar''"></div>
7329 <div title="''foobar''"></div>
7334 Bug 2304: HTML attribute safety (bold)
7336 <div title="'''foobar'''"></div>
7338 <div title="'''foobar'''"></div>
7344 Bug 2304: HTML attribute safety (ISBN)
7346 <div title="ISBN 1234567890"></div>
7348 <div title="ISBN 1234567890"></div>
7353 Bug 2304: HTML attribute safety (RFC)
7355 <div title="RFC 1234"></div>
7357 <div title="RFC 1234"></div>
7362 Bug 2304: HTML attribute safety (PMID)
7364 <div title="PMID 1234567890"></div>
7366 <div title="PMID 1234567890"></div>
7371 Bug 2304: HTML attribute safety (web link)
7373 <div title="http://example.com/"></div>
7375 <div title="http://example.com/"></div>
7380 Bug 2304: HTML attribute safety (named web link)
7382 <div title="[http://example.com/ link]"></div>
7384 <div title="[http://example.com/ link]"></div>
7389 Bug 3244: HTML attribute safety (extension; safe)
7391 <div style="<nowiki>background:blue</nowiki>"></div>
7393 <div style="background:blue"></div>
7398 Bug 3244: HTML attribute safety (extension; unsafe)
7400 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7402 <div style="/* insecure input */"></div>
7406 # More MSIE fun discovered by Tom Gilder
7409 MSIE CSS safety test: spurious slash
7411 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7413 <div style="/* insecure input */">evil</div>
7418 MSIE CSS safety test: hex code
7420 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7422 <div style="/* insecure input */">evil</div>
7427 MSIE CSS safety test: comment in url
7429 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7431 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7436 MSIE CSS safety test: comment in expression
7438 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7440 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7446 Table attribute legitimate extension
7449 !+ style="<nowiki>color:blue</nowiki>"| status
7454 <th style="color:blue"> status
7460 Table attribute safety
7463 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7468 <th style="/* insecure input */"> status
7474 CSS line continuation 1
7476 <div style="background-image: u\ rl(test.jpg);"></div>
7478 <div style="/* insecure input */"></div>
7483 CSS line continuation 2
7485 <div style="background-image: u\ rl(test.jpg); "></div>
7487 <div style="/* insecure input */"></div>
7498 Expansion of multi-line templates in attribute values (bug 6255)
7500 <div style="background: {{identity|#00FF00}}">-</div>
7502 <div style="background: #00FF00">-</div>
7508 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7510 <div style="background:
7513 <div style="background: #00FF00">-</div>
7518 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7520 <div style="background: #00FF00">-</div>
7522 <div style="background: #00FF00">-</div>
7527 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7530 Parser hook: empty input
7543 Parser hook: empty input using terminated empty elements
7556 Parser hook: empty input using terminated empty elements (space before)
7569 Parser hook: basic input
7583 Parser hook: case insensitive
7597 Parser hook: case insensitive, redux
7610 Parser hook: nested tags
7614 <tag><tag></tag></tag>
7625 Parser hook: basic arguments
7627 <tag width=200 height = "100" depth = '50' square></tag>
7635 'square' => 'square',
7642 Parser hook: argument containing a forward slash (bug 5344)
7644 <tag filename='/tmp/bla'></tag>
7649 'filename' => '/tmp/bla',
7656 Parser hook: empty input using terminated empty elements (bug 2374)
7669 # </tag> should be output literally since there is no matching tag that begins it
7671 Parser hook: basic arguments using terminated empty elements (bug 2374)
7673 <tag width=200 height = "100" depth = '50' square/>
7683 'square' => 'square',
7692 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7696 Parser hook: static parser hook not inside a comment
7698 <statictag>hello, world</statictag>
7699 <statictag action=flush/>
7707 Parser hook: static parser hook inside a comment
7709 <!-- <statictag>hello, world</statictag> -->
7710 <statictag action=flush/>
7716 # Nested template calls; this case was broken by Parser.php rev 1.506,
7720 Template:One-parameter
7722 (My parameter is: {{{1}}})
7726 Template:Map-one-parameter
7732 Nested template calls
7734 {{Map-one-parameter|One-parameter|param}}
7736 <p>(My parameter is: param)
7745 Sanitizer: Closing of open tags
7747 <s></s><table></table>
7749 <s></s><table></table>
7754 Sanitizer: Closing of open but not closed tags
7763 Sanitizer: Closing of closed but not open tags
7772 Sanitizer: Closing of closed but not open table tags
7774 Table not started</td></tr></table>
7776 <p>Table not started</td></tr></table>
7781 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7783 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7785 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7790 Sanitizer: Validating the contents of the id attribute (bug 4515)
7796 Something, but definitely not <br id="9" />...
7800 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7804 <br id="foo" /><br id="foo" />
7806 Something need to be done. foo-2 ?
7810 Language converter: output gets cut off unexpectedly (bug 5757)
7814 this bit is safe: }-
7816 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7818 then we get cut off here: }-
7820 all additional text is vanished
7822 <p>this bit is safe: }-
7823 </p><p>but if we add a conversion instance: xxx
7824 </p><p>then we get cut off here: }-
7825 </p><p>all additional text is vanished
7830 Self closed html pairs (bug 5487)
7833 <center><font id="bug" />Centered text</center>
7834 <div><font id="bug2" />In div text</div>
7836 <center><font id="bug" />Centered text</center>
7837 <div><font id="bug2" />In div text</div>
7846 Punctuation: nbsp before exclamation
7850 <p>C'est grave !
7855 Punctuation: CSS !important (bug 11874)
7857 <div style="width:50% !important">important</div>
7859 <div style="width:50% !important">important</div>
7864 Punctuation: CSS ! important (bug 11874; with space after)
7866 <div style="width:50% ! important">important</div>
7868 <div style="width:50% ! important">important</div>
7874 HTML bullet list, closed tags (bug 5497)
7889 HTML bullet list, unclosed tags (bug 5497)
7906 HTML ordered list, closed tags (bug 5497)
7921 HTML ordered list, unclosed tags (bug 5497)
7938 HTML nested bullet list, closed tags (bug 5497)
7963 HTML nested bullet list, open tags (bug 5497)
7988 HTML nested ordered list, closed tags (bug 5497)
8013 HTML nested ordered list, open tags (bug 5497)
8038 HTML ordered list item with parameters oddity
8040 <ol><li id="fragment">One</li></ol>
8042 <ol><li id="fragment">One</li></ol>
8047 bug 5918: autonumbering
8049 [http://first/] [http://second] [ftp://ftp]
8053 [mailto:enclosed@mail.tld With target]
8055 [mailto:enclosed@mail.tld]
8057 mailto:inline@mail.tld
8059 <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>
8060 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8061 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8062 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8063 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8069 # Security and HTML correctness
8070 # From Nick Jenkins' fuzz testing
8074 Fuzz testing: Parser13
8089 Fuzz testing: Parser14
8094 <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>
8095 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8097 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8104 Fuzz testing: Parser14-table
8109 <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>
8110 <table style="__TOC__">
8116 # Known to produce bogus xml (extra </td>)
8118 Fuzz testing: Parser16
8138 Fuzz testing: Parser21
8141 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8146 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8156 Fuzz testing: Parser22
8158 http://===r:::https://b
8162 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8170 # Known to produce bad XML for now
8172 Fuzz testing: Parser24
8179 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8180 <br style="onmouseover='alert(document.cookie);' " />
8182 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8187 <u class="|">}}}} >
8188 <br style="onmouseover='alert(document.cookie);'" />
8190 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8199 # Note: the current result listed for this is not what the original one was,
8200 # but the original bug was JavaScript injection, which is fixed in any case.
8201 # It's not clear that the original result listed was any more correct than the
8202 # current one. Original result:
8205 # <li class="||">
8206 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8208 Fuzz testing: Parser25 (bug 6055)
8214 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8216 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8221 Fuzz testing: URL adjacent extension (with space, clean)
8224 http://example.com <nowiki>junk</nowiki>
8226 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8231 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8234 http://example.com<nowiki>junk</nowiki>
8236 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8241 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8244 http://example.com<pre>junk</pre>
8246 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8251 Fuzz testing: image with bogus manual thumbnail
8253 [[Image:foobar.jpg|thumbnail= ]]
8255 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8260 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8262 <pre dir=" "></pre>
8264 <pre dir=" "></pre>
8269 Parsing optional HTML elements (Bug 6171)
8274 <td> Some tabular data</td>
8275 <td> More tabular data ...
8276 <td> And yet som tabular data</td>
8282 <td> Some tabular data</td>
8283 <td> More tabular data ...
8284 </td><td> And yet som tabular data</td>
8291 Correct handling of <td>, <tr> (Bug 6171)
8296 <td> Some tabular data</td>
8297 <td> More tabular data ...</td>
8298 <td> And yet som tabular data</td>
8304 <td> Some tabular data</td>
8305 <td> More tabular data ...</td>
8306 <td> And yet som tabular data</td>
8314 Parsing crashing regression (fr:JavaScript)
8318 <p></body></x>
8323 Inline wiki vs wiki block nesting
8329 <p><b>Bold paragraph</b>
8330 </p><p>New wiki paragraph
8335 Inline HTML vs wiki block nesting
8343 <p><b>Bold paragraph</b>
8344 </p><p>New wiki paragraph
8348 # Original result was this:
8349 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8351 # While that might be marginally more intuitive, maybe, the six-apostrophe
8352 # construct is clearly pathological and the result stated here (which is what
8353 # the parser actually does) is about as reasonable as anything.
8355 Mixing markup for italics and bold
8358 '''bold''''''bold''bolditalics'''''
8360 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8368 Article for special page transclusion test
8372 Special page transclusion
8375 {{Special:Prefixindex/Xyzzyx}}
8377 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8382 Special page transclusion twice (bug 5021)
8385 {{Special:Prefixindex/Xyzzyx}}
8386 {{Special:Prefixindex/Xyzzyx}}
8388 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8389 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8394 Transclusion of default MediaWiki message
8396 {{MediaWiki:Mainpage}}
8403 Transclusion of nonexistent MediaWiki message
8405 {{MediaWiki:Mainpagexxx}}
8407 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8412 Transclusion of MediaWiki message with underscore
8414 {{MediaWiki:history_short}}
8421 Transclusion of MediaWiki message with space
8423 {{MediaWiki:history short}}
8430 Invalid header with following text
8440 Section extraction test (section 0)
8460 Section extraction test (section 1)
8482 Section extraction test (section 2)
8503 Section extraction test (section 3)
8523 Section extraction test (section 4)
8547 Section extraction test (section 5)
8567 Section extraction test (section 6)
8588 Section extraction test (section 7)
8608 Section extraction test (section 8)
8628 Section extraction test (section 9)
8649 Section extraction test (section 10)
8669 Section extraction test (nonexistent section 11)
8688 Section extraction test with bogus heading (section 1)
8693 ==bogus== not a legal section
8697 ==bogus== not a legal section
8701 Section extraction test with bogus heading (section 2)
8706 ==bogus== not a legal section
8713 Section extraction test with comment after heading (section 1)
8725 Section extraction test with comment after heading (section 2)
8737 Section extraction test with bogus <nowiki> heading (section 1)
8742 ==bogus== <nowiki>not a legal section</nowiki>
8746 ==bogus== <nowiki>not a legal section</nowiki>
8750 Section extraction test with bogus <nowiki> heading (section 2)
8755 ==bogus== <nowiki>not a legal section</nowiki>
8762 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8763 # instead of respecting commented sections
8765 Section extraction prefixed by comment (section 1)
8776 Section extraction prefixed by comment (section 2)
8787 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8788 # instead of respecting HTML-style headings
8790 Section extraction, mixed wiki and html (section 1)
8806 Section extraction, mixed wiki and html (section 2)
8822 # Formerly testing for bug 3342
8824 Section extraction, heading surrounded by <noinclude>
8828 <noinclude>==unmarked==</noinclude>
8834 # Test behaviour of bug 19910
8836 Sectiion with all-equals
8841 The line above must have a trailing space
8844 But just in case it doesn't...
8848 But just in case it doesn't...
8852 Section replacement test (section 0)
8883 Section replacement test (section 1)
8912 Section replacement test (section 2)
8942 Section replacement test (section 3)
8973 Section replacement test (section 4)
9000 Section replacement test (section 5)
9031 Section replacement test (section 6)
9061 Section replacement test (section 7)
9092 Section replacement test (section 8)
9123 Section replacement test (section 9)
9152 Section replacement test (section 10)
9182 Section replacement test with initial whitespace (bug 13728)
9186 Preformatted initial line
9190 Preformatted initial line
9197 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9209 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9222 Section extraction, <pre> around bogus header (bug 10309)
9239 Section replacement, <pre> around bogus header (bug 10309)
9241 noxml replace=2,"xxx"
9262 Handling of 
 in URLs
9266 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9273 5 quotes, code coverage +1 line
9280 Special:Search page linking.
9284 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9299 * {{SUBJECTPAGENAME}}
9300 * {{SUBJECTPAGENAMEE}}
9307 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9309 <ul><li> Parser test
9310 </li><li> Parser test
9311 </li><li> Parser test
9312 </li><li> Parser_test
9313 </li><li> Parser test
9314 </li><li> Parser_test
9315 </li><li> Talk:Parser test
9316 </li><li> Talk:Parser_test
9317 </li><li> Parser test
9318 </li><li> Parser_test
9325 </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>
9329 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9339 image4 |300px| centre
9340 image5.svg| http://///////
9345 <ul class="gallery">
9346 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9347 <div style="height: 150px;">Image1.png</div>
9348 <div class="gallerytext">
9351 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9352 <div style="height: 150px;">Image2.gif</div>
9353 <div class="gallerytext">
9358 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9359 <div style="height: 150px;">Image3</div>
9360 <div class="gallerytext">
9363 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9364 <div style="height: 150px;">Image4</div>
9365 <div class="gallerytext">
9370 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9371 <div style="height: 150px;">Image5.svg</div>
9372 <div class="gallerytext">
9373 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9377 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9378 <div style="height: 150px;">* image6</div>
9379 <div class="gallerytext">
9387 Gallery (with options)
9389 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9390 File:Nonexistant.jpg|caption
9391 File:Nonexistant.jpg
9392 image:foobar.jpg|some '''caption''' [[Main Page]]
9394 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9397 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9398 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9399 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9400 <div style="height: 70px;">Nonexistant.jpg</div>
9401 <div class="gallerytext">
9406 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9407 <div style="height: 70px;">Nonexistant.jpg</div>
9408 <div class="gallerytext">
9411 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9412 <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>
9413 <div class="gallerytext">
9414 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9418 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9419 <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>
9420 <div class="gallerytext">
9423 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9424 <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>
9425 <div class="gallerytext">
9435 Gallery with wikitext inside caption
9438 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9439 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9442 <ul class="gallery">
9443 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9444 <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>
9445 <div class="gallerytext">
9446 <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>
9450 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9451 <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>
9452 <div class="gallerytext">
9453 <p>This is a test template
9462 gallery (with showfilename option)
9464 <gallery showfilename>
9465 File:Nonexistant.jpg|caption
9466 File:Nonexistant.jpg
9467 image:foobar.jpg|some '''caption''' [[Main Page]]
9471 <ul class="gallery">
9472 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9473 <div style="height: 150px;">Nonexistant.jpg</div>
9474 <div class="gallerytext">
9475 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9480 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9481 <div style="height: 150px;">Nonexistant.jpg</div>
9482 <div class="gallerytext">
9483 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9487 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9488 <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>
9489 <div class="gallerytext">
9490 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9491 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9495 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9496 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9497 <div class="gallerytext">
9498 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9507 Gallery (with namespace-less filenames)
9510 File:Nonexistant.jpg
9516 <ul class="gallery">
9517 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9518 <div style="height: 150px;">Nonexistant.jpg</div>
9519 <div class="gallerytext">
9522 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9523 <div style="height: 150px;">Nonexistant.jpg</div>
9524 <div class="gallerytext">
9527 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9528 <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>
9529 <div class="gallerytext">
9532 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9533 <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>
9534 <div class="gallerytext">
9542 HTML Hex character encoding (spells the word "JavaScript")
9544 JavaScript
9546 <p>JavaScript
9551 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9555 <p>&#xsee;&#XSEE;
9560 HTML Hex character encoding mixed case
9569 __FORCETOC__ override
9581 ISBN 978-0-1234-56 789
9583 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9588 ISBN followed by 5 spaces
9599 ISBN ISBN 1234567890
9601 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9606 Bug 22905: <abbr> followed by ISBN followed by </a>
9608 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9610 <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>
9619 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9624 Double RFC with a wiki link
9628 <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>
9637 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9642 Centre-aligned image
9644 [[Image:foobar.jpg|centre]]
9646 <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>
9653 [[Image:foobar.jpg|none]]
9655 <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>
9660 Width + Height sized image (using px) (height is ignored)
9662 [[Image:foobar.jpg|640x480px]]
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, no following whitespace)
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 Width-sized image (using px, with following whitespace - test regression from r39467)
9680 [[Image:foobar.jpg|640px ]]
9682 <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>
9687 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9689 [[Image:foobar.jpg| 640px]]
9691 <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>
9696 Another italics / bold test
9704 # Note the results may be incorrect, as parserTest output included this:
9705 # XML error: Mismatched tag at byte 6120:
9706 # ...<dd> </dt></dl> </dd...
9714 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9725 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9727 Images with the "|" character in the comment
9729 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9731 <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>
9736 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9738 <html><script>alert(1);</script></html>
9740 <p><html><script>alert(1);</script></html>
9745 HTML with raw HTML ($wgRawHtml==true)
9749 <html><script>alert(1);</script></html>
9751 <p><script>alert(1);</script>
9756 Parents of subpages, one level up
9758 subpage title=[[Subpage test/L1/L2/L3]]
9762 <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>
9768 Parents of subpages, one level up, not named
9770 subpage title=[[Subpage test/L1/L2/L3]]
9774 <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>
9781 Parents of subpages, two levels up
9783 subpage title=[[Subpage test/L1/L2/L3]]
9789 <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
9790 </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>
9795 Parents of subpages, two levels up, without trailing slash or name.
9797 subpage title=[[Subpage test/L1/L2/L3]]
9806 Parents of subpages, two levels up, with lots of extra trailing slashes.
9808 subpage title=[[Subpage test/L1/L2/L3]]
9812 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9817 Definition list code coverage
9823 <dl><dt> title  </dt><dd> def
9824 </dd><dt> title </dt><dd> def
9825 </dd><dt>title</dt><dd> def
9831 Don't fall for the self-closing div
9833 <div>hello world</div/>
9835 <div>hello world</div>
9844 <p>[[:Template:Msg]]
9853 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9857 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9859 Always escape literal '>' in output, not just after '<'
9873 <p>This is a test template
9874 This is a test template
9886 Inclusion of !userCanEdit() content
9890 <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>
9896 Out-of-order TOC heading levels
9905 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9907 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9909 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9910 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9913 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9915 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9916 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9921 <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>
9922 <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>
9923 <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>
9924 <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>
9925 <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>
9926 <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>
9932 ISBN with a dummy number
9942 ISBN with space-delimited number
9946 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9952 ISBN with multiple spaces, no number
9971 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9972 </p><p>ISBN 12345678901
9978 ISBN with trailing year (bug 8110)
9980 ISBN 1-234-56789-0 - 2006
9982 ISBN 1 234 56789 0 - 2006
9984 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9985 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9993 {{anchorencode:foo bar©#%n}}
9995 <p>foo_bar.C2.A9.23.25n
10000 anchorencode trims spaces
10002 {{anchorencode: __pretty__please__}}
10009 anchorencode deals with links
10011 {{anchorencode: [[hello|world]] [[hi]]}}
10018 anchorencode deals with templates
10020 {{anchorencode: {{Foo}} }}
10027 anchorencode encodes like the TOC generator: (bug 18431)
10029 === _ +:.3A%3A&&]] ===
10030 {{anchorencode: _ +:.3A%3A&&]] }}
10033 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10034 <p>.2B:.3A.253A.26.26.5D.5D
10038 # Expected output in the following test is not necessarily expected (there
10039 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10040 # only testing for well-formedness.
10042 Bug 6200: blockquotes and paragraph formatting
10062 Bug 8293: Use of center tag ruins paragraph formatting
10084 ### Language variants related tests
10087 Self-link in language variants
10089 title=[[Dunav]] language=sr
10091 Both [[Dunav]] and [[Дунав]] are names for this river.
10093 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10099 Link to pages in language variants
10103 Main Page can be written as [[Маин Паге]]
10105 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10111 Multiple links to pages in language variants
10115 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10117 <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>.
10123 Simple template in language variants
10129 <p>This is a test template
10135 Template with explicit namespace in language variants
10141 <p>This is a test template
10147 Basic test for template parameter in language variants
10151 {{парамтест|param=foo}}
10153 <p>This is a test template with parameter foo
10159 Simple category in language variants
10163 [[Category:МедиаWики Усер'с Гуиде]]
10165 <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>
10170 Stripping -{}- tags (language variants)
10174 Latin proverb: -{Ne nuntium necare}-
10176 <p>Latin proverb: Ne nuntium necare
10182 Prevent conversion with -{}- tags (language variants)
10184 language=sr variant=sr-ec
10186 Latinski: -{Ne nuntium necare}-
10188 <p>Латински: Ne nuntium necare
10194 Prevent conversion of text with -{}- tags (language variants)
10196 language=sr variant=sr-ec
10198 Latinski: -{Ne nuntium necare}-
10200 <p>Латински: Ne nuntium necare
10206 Prevent conversion of links with -{}- tags (language variants)
10208 language=sr variant=sr-ec
10212 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10218 -{}- tags within headlines (within html for parserConvert())
10220 language=sr variant=sr-ec
10224 <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>
10230 Explicit definition of language variant alternatives
10232 language=zh variant=zh-tw
10234 -{zh:China;zh-tw:Taiwan}-, not China
10236 <p>Taiwan, not China
10242 Explicit session-wise language variant mapping (A flag and - flag)
10244 language=zh variant=zh-tw
10246 Taiwan is not China.
10247 But -{A|zh:China;zh-tw:Taiwan}- is China,
10248 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10249 and -{China}- is China.
10251 <p>Taiwan is not China.
10252 But Taiwan is Taiwan,
10253 (This should be stripped!)
10254 and China is China.
10259 Explicit session-wise language variant mapping (H flag for hide)
10261 language=zh variant=zh-tw
10263 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10266 <p>(This should be stripped!)
10272 Adding explicit conversion rule for title (T flag)
10274 language=zh variant=zh-tw showtitle
10276 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10279 <p>Should be stripped!
10284 Testing that changing the language variant here in the tests actually works
10286 language=zh variant=zh showtitle
10288 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10291 <p>Should be stripped!
10296 Bug 24072: more test on conversion rule for title
10298 language=zh variant=zh-tw showtitle
10300 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10301 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10304 <p>This should be stripped!
10305 This won't take interferes with the title rule.
10310 Raw output of variant escape tags (R flag)
10312 language=zh variant=zh-tw
10314 Raw: -{R|zh:China;zh-tw:Taiwan}-
10316 <p>Raw: zh:China;zh-tw:Taiwan
10321 Nested using of manual convert syntax
10323 language=zh variant=zh-hk
10325 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10327 <p>Nested: Hello Hong Kong!
10332 Do not convert roman numbers to language variants
10334 language=sr variant=sr-ec
10338 <p>Фридрих IV је цар.
10343 Unclosed language converter markup "-{"
10354 Don't convert raw rule "-{R|=>}-" to "=>"
10371 Bug 529: Uncovered bullet
10381 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10382 # Templates in Wikipedia rely on this behavior, as tidy has always been
10383 # enabled there. These tests are normally run *without* tidy, so specify the
10384 # full output here.
10385 # To test realistic parsing behavior, apply a tidy-like transformation to both
10386 # the expected output and your parser's output.
10388 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10390 ******* Foo {{bullet}}
10392 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10405 Bug 529: Uncovered table already at line-start
10428 Bug 529: Uncovered bullet in parser function result
10430 * Foo {{lc:{{bullet}} }}
10439 Bug 5678: Double-parsed template argument
10441 {{lc:{{{1}}}|hello}}
10448 Bug 5678: Double-parsed template invocation
10450 {{lc:{{paramtest {{!}} param = hello }} }}
10452 <p>{{paramtest | param = hello }}
10457 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10460 title=[[Main Page]]
10462 {{PRVNÍVELKÉ:ěščř}}
10463 {{prvnívelké:ěščř}}
10483 Morwen/13: Unclosed link followed by heading
10490 <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>
10495 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10502 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10507 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10514 <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>
10529 Paragraphs inside divs (no extra line breaks)
10541 Paragraphs inside divs (extra line break on open)
10556 Paragraphs inside divs (extra line break on close)
10571 Paragraphs inside divs (extra line break on open and close)
10588 Nesting tags, paragraphs on lines which begin with <div>
10592 <div></div><strong>A
10601 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10603 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10607 <blockquote>Line one
10609 Line two</blockquote>
10611 <blockquote>Line one
10612 Line two</blockquote>
10617 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10624 Line two</blockquote>
10629 Line two</blockquote>
10634 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10638 <blockquote>Line one
10643 <blockquote>Line one
10651 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10670 Paragraphs inside blockquotes/divs (no extra line breaks)
10672 <blockquote><div>Line one
10674 Line two</div></blockquote>
10676 <blockquote><div>Line one
10677 Line two</div></blockquote>
10682 Paragraphs inside blockquotes/divs (extra line break on open)
10687 Line two</div></blockquote>
10692 Line two</div></blockquote>
10697 Paragraphs inside blockquotes/divs (extra line break on close)
10699 <blockquote><div>Line one
10702 </div></blockquote>
10704 <blockquote><div>Line one
10707 </div></blockquote>
10712 Paragraphs inside blockquotes/divs (extra line break on open and close)
10718 </div></blockquote>
10724 </div></blockquote>
10729 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10731 wgLinkHolderBatchSize=0
10737 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10738 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10739 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10744 Free external link invading image caption
10746 [[Image:Foobar.jpg|thumb|http://x|hello]]
10748 <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>
10753 Bug 15196: localised external link numbers
10757 [http://en.wikipedia.org/]
10759 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10764 Multibyte character in padleft
10766 {{padleft:-Hello|7|Æ}}
10773 Multibyte character in padright
10775 {{padright:Hello-|7|Æ}}
10784 wgUseDynamicDates=1
10788 <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>
10793 formatdate parser function
10795 {{#formatdate:2009-03-24}}
10797 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10802 formatdate parser function, with default format
10804 {{#formatdate:2009-03-24|mdy}}
10806 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10811 Linked date with autoformatting disabled
10813 wgUseDynamicDates=false
10817 <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>
10822 Spacing of numbers in formatted dates
10824 {{#formatdate:January 15}}
10826 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10831 Spacing of numbers in formatted dates (linked)
10833 wgUseDynamicDates=true
10837 <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>
10842 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
10844 language=nl title=[[MediaWiki:Common.css]]
10846 {{#formatdate:2009-03-24|dmy}}
10848 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10861 Edit comment with link
10865 I like the [[Main Page]] a lot
10867 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10871 Edit comment with link and link text
10875 I like the [[Main Page|best pages]] a lot
10877 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10881 Edit comment with link and link text with suffix
10885 I like the [[Main Page|best page]]s a lot
10887 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10891 Edit comment with section link (non-local, eg in history list)
10893 comment title=[[Main Page]]
10895 /* External links */ removed bogus entries
10897 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10901 Edit comment with section link and text before it (non-local, eg in history list)
10903 comment title=[[Main Page]]
10905 pre-comment text /* External links */ removed bogus entries
10907 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>
10911 Edit comment with section link (local, eg in diff view)
10913 comment local title=[[Main Page]]
10915 /* External links */ removed bogus entries
10917 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10921 Edit comment with subpage link (bug 14080)
10925 title=[[Subpage test]]
10927 Poked at a [[/subpage]] here...
10929 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10933 Edit comment with subpage link and link text (bug 14080)
10937 title=[[Subpage test]]
10939 Poked at a [[/subpage|neat little page]] here...
10941 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10945 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10948 title=[[Subpage test]]
10950 Poked at a [[/subpage]] here...
10952 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10956 Edit comment with bare anchor link (local, as on diff)
10960 title=[[Main Page]]
10964 <a href="#section">#section</a>
10968 Edit comment with bare anchor link (non-local, as on history)
10971 title=[[Main Page]]
10975 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10979 Anchor starting with underscore
10983 <p><a href="#_ref">One</a>
10988 Id starting with underscore
10990 <div id="_ref"></div>
10992 <div id="_ref"></div>
10997 Space normalisation on autocomment (bug 22784)
11000 title=[[Main Page]]
11002 /* __hello__world__ */
11004 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11008 percent-encoding and + signs in comments (Bug 26410)
11012 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11014 <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>
11018 Bad images - basic functionality
11027 Bad images - bug 16039: text after bad image disappears
11041 Verify that displaytitle works (bug #22501) no displaytitle
11045 wgAllowDisplayTitle=true
11046 wgRestrictDisplayTitle=false
11048 this is not the the title
11051 <p>this is not the the title
11056 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11061 wgAllowDisplayTitle=true
11062 wgRestrictDisplayTitle=false
11064 this is not the the title
11065 {{DISPLAYTITLE:whatever}}
11068 <p>this is not the the title
11073 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11078 wgAllowDisplayTitle=true
11079 wgRestrictDisplayTitle=true
11081 this is not the the title
11082 {{DISPLAYTITLE:whatever}}
11085 <p>this is not the the title
11090 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11095 wgAllowDisplayTitle=true
11096 wgRestrictDisplayTitle=true
11098 this is not the the title
11099 {{DISPLAYTITLE:screen}}
11102 <p>this is not the the title
11107 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11112 wgAllowDisplayTitle=false
11114 this is not the the title
11115 {{DISPLAYTITLE:screen}}
11118 <p>this is not the the title
11119 <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>
11124 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11129 wgAllowDisplayTitle=false
11131 this is not the the title
11134 <p>this is not the the title
11139 preload: check <noinclude> and <includeonly>
11143 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11149 preload: check <onlyinclude>
11153 Goodbye <onlyinclude>Hello world</onlyinclude>
11159 preload: can pass tags through if we want to
11163 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11165 <includeonly>Hello world</includeonly>
11169 preload: check that it doesn't try to do tricks
11173 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11175 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11179 Play a bit with r67090 and bug 3158
11183 <div style="width:50% !important"> </div>
11184 <div style="width:50% !important"> </div>
11185 <div style="width:50% !important"> </div>
11186 <div style="border : solid;"> </div>
11188 <div style="width:50% !important"> </div>
11189 <div style="width:50% !important"> </div>
11190 <div style="width:50% !important"> </div>
11191 <div style="border : solid;"> </div>
11196 HTML5 data attributes
11198 <span data-foo="bar">Baz</span>
11199 <p data-abc-def_hij="">Quuz</p>
11201 <p><span data-foo="bar">Baz</span>
11203 <p data-abc-def_hij="">Quuz</p>
11208 percent-encoding and + signs in internal links (Bug 26410)
11210 [[User:+%]] [[Page+title%]]
11211 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11212 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11213 [[%33%45]] [[%33%45+]]
11215 <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>
11216 <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>
11217 <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>
11218 <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>
11223 Special characters in embedded file links (bug 27679)
11225 [[File:Contains & ampersand.jpg]]
11226 [[File:Does not exist.jpg|Title with & ampersand]]
11228 <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>
11229 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11235 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11237 Text's been normalized?
11239 <p>Text's been normalized?
11244 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11246 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11248 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11253 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11255 [http://www.example.org/ ideograms]
11257 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11262 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11264 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11266 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11290 Bug 31098 Template which includes system messages which includes the template
11294 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11295 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11300 Deprecated presentational attributes are converted to css
11303 | valign=top align=left width=100 height=25% | Asdf
11305 <ul type="disc"></ul>
11309 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11311 <ul style="list-style-type: disc;"></ul>
11316 Bug31490 Turkish: ucfirst 'blah'
11327 Bug31490 Turkish: ucfirst 'ix'
11338 Bug31490 Turkish: lcfirst 'BLAH'
11349 Bug31490 Turkish: ucfırst (with a dotless i)
11355 <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>
11360 Bug31490 ucfırst (with a dotless i) with English language
11366 <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>
11371 Bug 26375: TOC with italics
11373 title=[[Main Page]]
11376 == ''Lost'' episodes ==
11378 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11380 <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>
11383 <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>
11388 Bug 26375: TOC with bold
11390 title=[[Main Page]]
11393 == '''should be bold''' then normal text ==
11395 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11397 <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>
11400 <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>
11405 Bug 33845: Headings become cursive in TOC when they contain an image
11407 title=[[Main Page]]
11410 == Image [[Image:foobar.jpg]] ==
11412 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11414 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11417 <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>
11422 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11424 title=[[Main Page]]
11427 == <blockquote>Quote</blockquote> ==
11429 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11431 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11434 <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>
11439 Unclosed tags in TOC
11441 title=[[Main Page]]
11445 <small>Hanc marginis exiguitas non caperet.</small>
11448 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11450 <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>
11453 <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>
11454 <p><small>Hanc marginis exiguitas non caperet.</small>
11460 Multiple tags in TOC
11463 == <i>Foo</i> <b>Bar</b> ==
11465 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11467 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11469 <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>
11470 <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>
11473 <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>
11474 <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>
11479 Tags with parameters in TOC
11482 == <sup class="in-h2">Hello</sup> ==
11484 == <sup class="a > b">Evilbye</sup> ==
11486 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11488 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11489 <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>
11492 <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>
11493 <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>
11498 span tags with directionality in TOC
11501 == <span dir="ltr">C++</span> ==
11503 == <span dir="rtl">זבנג!</span> ==
11505 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11507 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11509 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11511 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11513 <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>
11514 <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>
11515 <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>
11516 <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>
11517 <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>
11520 <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>
11521 <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>
11522 <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>
11523 <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>
11524 <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>
11531 == {{int:headline_sample}} ==
11535 Bug 32057: Title needed when expanding <h> nodes.
11537 title=[[Main Page]]
11541 <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>
11546 Strip marker in urlencode
11548 {{urlencode:x<nowiki/>y}}
11549 {{urlencode:x<nowiki/>y|wiki}}
11550 {{urlencode:x<nowiki/>y|path}}
11577 Strip marker in formatNum
11579 {{formatnum:1<nowiki/>2}}
11580 {{formatnum:1<nowiki/>2|R}}
11588 Strip marker in grammar
11592 {{grammar:elative|foo<nowiki/>bar}}
11599 Strip marker in padleft
11601 {{padleft:|2|x<nowiki/>y}}
11608 Strip marker in padright
11610 {{padright:|2|x<nowiki/>y}}
11617 Strip marker in anchorencode
11619 {{anchorencode:x<nowiki/>y}}
11626 nowiki inside link inside heading (bug 18295)
11628 ==[[foo|x<nowiki>y</nowiki>z]]==
11630 <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>
11635 new support for bdi element (bug 31817)
11637 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11639 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11644 Ignore pipe between table row attributes
11648 |- id=foo | style='color: red'
11656 <tr id="foo" style="color: red">
11663 Gallery override link with WikiLink (bug 34852)
11666 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11669 <ul class="gallery">
11670 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11671 <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>
11672 <div class="gallerytext">
11682 Gallery override link with absolute external link (bug 34852)
11685 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11688 <ul class="gallery">
11689 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11690 <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>
11691 <div class="gallerytext">
11701 Gallery override link with malicious javascript (bug 34852)
11704 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11707 <ul class="gallery">
11708 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11709 <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>
11710 <div class="gallerytext">
11720 Language parser function
11729 Padleft and padright as substr
11731 {{padleft:|3|abcde}}
11732 {{padright:|3|abcde}}
11740 Bug 34939 - Case insensitive link parsing ([HttP://])
11742 [HttP://MediaWiki.Org/]
11744 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11749 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11751 [HttP://MediaWiki.Org/ MediaWiki]
11753 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11758 Bug 34939 - Case insensitive link parsing (HttP://)
11760 HttP://MediaWiki.Org/
11762 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11767 ### Parsoids-specific tests
11768 ### Parsoid-PHP parser incompatibilities
11771 1. SOL-sensitive wikitext tokens as template-args
11785 #### The following section of tests are primarily to test
11786 #### wikitext escaping capabilities of Parsoid.
11787 #### A lot of the tests are disabled for the PHP parser either
11788 #### because of minor newline diffs or other reasons.
11789 #### As Parsoid serializer can handle newlines and other HTML
11790 #### more robustly, some of these tests might get reenabled
11791 #### for the PHP parser.
11793 #### --------------- Headings ---------------
11795 #### 1. Nested inside html <h1>=foo=</h1>
11796 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11797 #### 3. Nested inside html with wikitext split by html tags
11798 #### 4. No escape needed
11799 #### 5. Empty headings <h1></h1>
11800 #### 6. Heading chars in SOL context
11801 #### ----------------------------------------
11803 Headings: 0. Unnested
11805 <nowiki>=foo=</nowiki>
11807 <nowiki>=foo</nowiki>''a''=
11810 </p><p>=foo<i>a</i>=
11815 Headings: 1. Nested inside html
11819 =<nowiki>=foo=</nowiki>=
11820 ==<nowiki>=foo=</nowiki>==
11821 ===<nowiki>=foo=</nowiki>===
11822 ====<nowiki>=foo=</nowiki>====
11823 =====<nowiki>=foo=</nowiki>=====
11824 ======<nowiki>=foo=</nowiki>======
11835 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11840 <nowiki>*bar</nowiki>
11844 <nowiki>=bar=</nowiki>
11852 Headings: 3. Nested inside html with wikitext split by html tags
11856 =<nowiki>=</nowiki>'''bold'''foo==
11858 <h1>=<b>bold</b>foo=</h1>
11862 Headings: 4. No escaping needed (testing just h1 and h2)
11877 <h1><i>=</i>foo=</h1>
11882 Headings: 5. Empty headings
11886 =<nowiki></nowiki>=
11887 ==<nowiki></nowiki>==
11888 ===<nowiki></nowiki>===
11889 ====<nowiki></nowiki>====
11890 =====<nowiki></nowiki>=====
11891 ======<nowiki></nowiki>======
11902 Headings: 6. Heading chars in SOL context
11906 <!--cmt--><nowiki>=h1=</nowiki>
11912 #### --------------- Lists ---------------
11913 #### 0. Outside nests (*foo, etc.)
11914 #### 1. Nested inside html <ul><li>*foo</li></ul>
11915 #### 2. Inside definition lists
11916 #### 3. Only bullets at start should be escaped
11917 #### 4. No escapes needed
11918 #### 5. No unnecessary escapes
11919 #### 6. Escape bullets in SOL position
11920 #### 7. Escape bullets in a multi-line context
11921 #### ----------------------------------------
11924 Lists: 0. Outside nests
11926 <nowiki>*foo</nowiki>
11928 <nowiki>#foo</nowiki>
11936 Lists: 1. Nested inside html
11938 *<nowiki>*foo</nowiki>
11940 *<nowiki>#foo</nowiki>
11942 *<nowiki>:foo</nowiki>
11944 *<nowiki>;foo</nowiki>
11946 #<nowiki>*foo</nowiki>
11948 #<nowiki>#foo</nowiki>
11950 #<nowiki>:foo</nowiki>
11952 #<nowiki>;foo</nowiki>
11974 Lists: 2. Inside definition lists
11976 ;<nowiki>;foo</nowiki>
11978 ;<nowiki>:foo</nowiki>
11980 ;<nowiki>:foo</nowiki>
11983 :<nowiki>:foo</nowiki>
11998 Lists: 3. Only bullets at start of text should be escaped
12000 *<nowiki>*foo*bar</nowiki>
12002 *<nowiki>*foo</nowiki>''it''*bar
12006 <ul><li>*foo<i>it</i>*bar
12012 Lists: 4. No escapes needed
12024 <ul><li><i>foo</i>*bar
12026 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12031 Lists: 5. No unnecessary escapes
12033 * bar <span><nowiki>[[foo]]</nowiki></span>
12035 *=bar <span><nowiki>[[foo]]</nowiki></span>
12037 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12039 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12041 *=bar <span>foo]]</span>=
12043 <ul><li> bar <span>[[foo]]</span>
12045 <ul><li>=bar <span>[[foo]]</span>
12047 <ul><li>[[bar <span>[[foo]]</span>
12049 <ul><li>]]bar <span>[[foo]]</span>
12051 <ul><li>=bar <span>foo]]</span>=
12057 Lists: 6. Escape bullets in SOL position
12061 <!--cmt--><nowiki>*foo</nowiki>
12068 Lists: 7. Escape bullets in a multi-line context
12078 #### --------------- HRs ---------------
12079 #### 1. Single line
12080 #### -----------------------------------
12083 HRs: 1. Single line
12088 <nowiki>----</nowiki>
12090 <nowiki>=foo=</nowiki>
12092 <nowiki>*foo</nowiki>
12099 #### --------------- Tables ---------------
12100 #### 1a. Simple example
12101 #### 1b. No escaping needed (!foo)
12102 #### 1c. No escaping needed (|foo)
12103 #### 1d. No escaping needed (|}foo)
12105 #### 2a. Nested in td (<td>foo|bar</td>)
12106 #### 2b. Nested in td (<td>foo||bar</td>)
12107 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12109 #### 3a. Nested in th (<th>foo!bar</th>)
12110 #### 3b. Nested in th (<th>foo!!bar</th>)
12111 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12115 #### 4c. No escaping needed
12116 #### --------------------------------------
12119 Tables: 1a. Simple example
12130 Tables: 1b. No escaping needed
12139 Tables: 1c. No escaping needed
12148 Tables: 1d. No escaping needed
12157 Tables: 2a. Nested in td
12162 |<nowiki>foo|bar</nowiki>
12172 Tables: 2b. Nested in td
12177 |<nowiki>foo||bar</nowiki>
12178 |''it''<nowiki>foo||bar</nowiki>
12183 </td><td><i>it</i>foo||bar
12189 Tables: 2c. Nested in td -- no escaping needed
12204 Tables: 3a. Nested in th
12219 Tables: 3b. Nested in th
12224 !<nowiki>foo!!bar</nowiki>
12234 Tables: 3c. Nested in th -- no escaping needed
12249 Tables: 4a. Escape -
12257 |<nowiki>-bar</nowiki>
12261 <tr><th>-bar</th></tr>
12262 <tr><td>-bar</td></tr>
12267 Tables: 4b. Escape +
12275 |<nowiki>+bar</nowiki>
12279 <tr><th>+bar</th></tr>
12280 <tr><td>+bar</td></tr>
12285 Tables: 4c. No escaping needed
12299 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12300 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12304 #### --------------- Links ---------------
12305 #### 1. Quote marks in link text
12306 #### 2. Wikilinks: Escapes needed
12307 #### 3. Wikilinks: No escapes needed
12308 #### 4. Extlinks: Escapes needed
12309 #### 5. Extlinks: No escapes needed
12310 #### --------------------------------------
12312 Links 1. Quote marks in link text
12316 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12318 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12322 Links 2. WikiLinks: Escapes needed
12326 [[Foo|<nowiki>[Foobar]</nowiki>]]
12327 [[Foo|<nowiki>Foobar]</nowiki>]]
12328 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12329 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12330 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12331 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12332 [[Foo|<nowiki>|Bar</nowiki>]]
12334 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12335 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12336 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12337 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12338 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12339 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12340 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12344 Links 3. WikiLinks: No escapes needed
12351 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12352 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12356 Links 4. ExtLinks: Escapes needed
12360 [http://google.com <nowiki>[google]</nowiki>]
12361 [http://google.com <nowiki>google]</nowiki>]
12363 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12364 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12368 Links 5. ExtLinks: No escapes needed
12372 [http://google.com [google]
12374 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12377 #### --------------- Quotes ---------------
12378 #### 1. Quotes inside <b> and <i>
12379 #### 2. Link fragments separated by <i> and <b> tags
12380 #### 3. Link fragments inside <i> and <b>
12381 #### --------------------------------------
12383 1. Quotes inside <b> and <i>
12385 ''<nowiki>'foo'</nowiki>''
12386 ''<nowiki>''foo''</nowiki>''
12387 ''<nowiki>'''foo'''</nowiki>''
12388 '''<nowiki>'foo'</nowiki>'''
12389 '''<nowiki>''foo''</nowiki>'''
12390 '''<nowiki>'''foo'''</nowiki>'''
12391 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12399 <b>foo'<i>bar'</i>baz</b>
12404 2. Link fragments separated by <i> and <b> tags
12406 [[''foo''<nowiki>hello]]</nowiki>
12408 [['''foo'''<nowiki>hello]]</nowiki>
12410 <p>[[<i>foo</i>hello]]
12411 </p><p>[[<b>foo</b>hello]]
12416 2. Link fragments inside <i> and <b>
12417 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12418 this is one of the shortcomings of this format)
12420 ''[[foo''<nowiki>]]</nowiki>
12422 '''[[foo'''<nowiki>]]</nowiki>
12425 </p><p><b>[[foo</b>]]
12429 #### --------------- Paragraphs ---------------
12430 #### 1. No unnecessary escapes
12431 #### --------------------------------------
12434 1. No unnecessary escapes
12436 bar <span><nowiki>[[foo]]</nowiki></span>
12438 =bar <span><nowiki>[[foo]]</nowiki></span>
12440 [[bar <span><nowiki>[[foo]]</nowiki></span>
12442 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12444 <nowiki>=bar </nowiki><span>foo]]</span>=
12446 <p>bar <span>[[foo]]</span>
12447 </p><p>=bar <span>[[foo]]</span>
12448 </p><p>[[bar <span>[[foo]]</span>
12449 </p><p>]]bar <span>[[foo]]</span>
12450 </p><p>=bar <span>foo]]</span>=
12454 #### --------------- PRE ------------------
12455 #### 1. Leading space in SOL context should be escaped
12456 #### --------------------------------------
12458 1. Leading space in SOL context should be escaped
12462 <nowiki> foo</nowiki>
12463 <!--cmt--><nowiki> foo</nowiki>
12470 #### --------------- HTML tags ---------------
12473 #### 3. multi-line html tag
12474 #### --------------------------------------
12480 <a href="http://google.com">google</a>
12482 <a href="http://google.com">google</a>
12488 <nowiki><div>foo</div>
12489 <div style="color:red">foo</div></nowiki>
12491 <p><div>foo</div>
12492 <div style="color:red">foo</div>
12497 3. multi-line html tag
12509 #### --------------- Others ---------------
12513 <nowiki>foo</nowiki>
12515 <p><nowiki>foo</nowiki>
12524 Try for 100% code coverage