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]]
93 This is a simple paragraph.
95 <p>This is a simple paragraph.
100 Paragraphs with extra newline spacing
138 * plain''italic''plain
139 * plain''italic''plain''italic''plain
140 * plain'''bold'''plain
141 * plain'''bold'''plain'''bold'''plain
142 * plain''italic''plain'''bold'''plain
143 * plain'''bold'''plain''italic''plain
144 * plain''italic'''bold-italic'''italic''plain
145 * plain'''bold''bold-italic''bold'''plain
146 * plain'''''bold-italic'''italic''plain
147 * plain'''''bold-italic''bold'''plain
148 * plain''italic'''bold-italic'''''plain
149 * plain'''bold''bold-italic'''''plain
150 * plain l'''italic''plain
151 * plain l''''bold''' plain
154 </li><li> plain<i>italic</i>plain
155 </li><li> plain<i>italic</i>plain<i>italic</i>plain
156 </li><li> plain<b>bold</b>plain
157 </li><li> plain<b>bold</b>plain<b>bold</b>plain
158 </li><li> plain<i>italic</i>plain<b>bold</b>plain
159 </li><li> plain<b>bold</b>plain<i>italic</i>plain
160 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
161 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
162 </li><li> plain<i><b>bold-italic</b>italic</i>plain
163 </li><li> plain<b><i>bold-italic</i>bold</b>plain
164 </li><li> plain<i>italic<b>bold-italic</b></i>plain
165 </li><li> plain<b>bold<i>bold-italic</i></b>plain
166 </li><li> plain l'<i>italic</i>plain
167 </li><li> plain l'<b>bold</b> plain
173 ### 2-quote opening sequence tests
176 Italics and bold: 2-quote opening sequence: (2,2)
186 Italics and bold: 2-quote opening sequence: (2,3)
196 Italics and bold: 2-quote opening sequence: (2,4)
206 Italics and bold: 2-quote opening sequence: (2,5)
216 ### 3-quote opening sequence tests
220 Italics and bold: 3-quote opening sequence: (3,2)
230 Italics and bold: 3-quote opening sequence: (3,3)
240 Italics and bold: 3-quote opening sequence: (3,4)
250 Italics and bold: 3-quote opening sequence: (3,5)
260 ### 4-quote opening sequence tests
264 Italics and bold: 4-quote opening sequence: (4,2)
274 Italics and bold: 4-quote opening sequence: (4,3)
284 Italics and bold: 4-quote opening sequence: (4,4)
294 Italics and bold: 4-quote opening sequence: (4,5)
304 ### 5-quote opening sequence tests
308 Italics and bold: 5-quote opening sequence: (5,2)
318 Italics and bold: 5-quote opening sequence: (5,3)
328 Italics and bold: 5-quote opening sequence: (5,4)
332 <p><i><b>foo'</b></i>
338 Italics and bold: 5-quote opening sequence: (5,5)
347 ### multiple quote sequences in a line
350 Italics and bold: multiple quote sequences: (2,4,2)
354 <p><i>foo'<b>bar</b></i>
360 Italics and bold: multiple quote sequences: (2,4,3)
364 <p><i>foo'<b>bar</b></i>
370 Italics and bold: multiple quote sequences: (2,4,4)
374 <p><i>foo'<b>bar'</b></i>
380 Italics and bold: multiple quote sequences: (3,4,2)
390 Italics and bold: multiple quote sequences: (3,4,3)
399 ### other quote tests
402 Italics and bold: other quote tests: (2,3,5)
404 ''this is about '''foo's family'''''
406 <p><i>this is about <b>foo's family</b></i>
412 Italics and bold: other quote tests: (2,(3,3),2)
414 ''this is about '''foo's''' family''
416 <p><i>this is about <b>foo's</b> family</i>
422 Italics and bold: other quote tests: (3,2,3,2)
424 '''this is about ''foo'''s family''
426 <p><b>this is about <i>foo</i></b><i>s family</i>
432 Italics and bold: other quote tests: (3,2,3,3)
434 '''this is about ''foo'''s family'''
436 <p>'<i>this is about </i>foo<b>s family</b>
443 Italics and bold: other quote tests: (3,(2,2),3)
445 '''this is about ''foo's'' family'''
447 <p><b>this is about <i>foo's</i> family</b>
452 ### <nowiki> test cases
456 <nowiki> unordered list
458 <nowiki>* This is not an unordered list item.</nowiki>
460 <p>* This is not an unordered list item.
467 <nowiki>Lorem ipsum dolor
488 :There is not nowiki.
489 :There is <nowiki>nowiki</nowiki>.
491 #There is not nowiki.
492 #There is <nowiki>nowiki</nowiki>.
494 *There is not nowiki.
495 *There is <nowiki>nowiki</nowiki>.
497 <dl><dd>There is not nowiki.
498 </dd><dd>There is nowiki.
500 <ol><li>There is not nowiki.
501 </li><li>There is nowiki.
503 <ul><li>There is not nowiki.
504 </li><li>There is nowiki.
516 <!-- comment 1 --> asdf
518 <!-- comment 1 --> asdf
521 <!-- comment 1 --> asdf
522 <!-- comment 2 -->xyz
524 <!-- comment 1 --> asdf
525 <!-- comment 2 --> xyz
581 asdf<!-- comment 1 -->jkl
591 <!-- foo --> b <!-- bar -->
605 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
611 Comment semantics and delimiters
613 <!-- --><!----><!-----><!------>
619 Comment semantics and delimiters, redux
621 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
622 -- foo -- funky huh? ... -->
628 Comment semantics and delimiters: directors cut
630 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
631 everything starting with < followed by !-- until the first -- and > we see,
632 that wouldn't be valid XML however, since in XML -- has to terminate a comment
640 Comment semantics: nesting
642 <!--<!-- no, we're not going to do anything fancy here -->-->
649 Comment semantics: unclosed comment at end
651 <!--This comment will run out to the end of the document
657 Comment in template title
666 Comment on its own line post-expand
678 Comment on its own line post-expand with non-significant whitespace
690 ### paragraph wraping tests
704 Block tag on one line
716 Block tag on both lines
728 Multiple lines without block tags
746 ### Preformatted text
755 And a [[Main Page|link]]
761 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
766 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
783 Regression with preformatted in <center>
796 # Expected output in the following test is not really expected (there should be
797 # <pre> in the output) -- it's only testing for well-formedness.
799 Bug 6200: Preformatted in <blockquote>
812 <pre> with attributes (bug 3202)
814 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
816 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
821 <pre> with width attribute (bug 3202)
823 <pre width="8">Narrow screen goodies</pre>
825 <pre width="8">Narrow screen goodies</pre>
830 <pre> with forbidden attribute (bug 3202)
832 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
834 <pre width="8">Narrow screen goodies</pre>
839 <pre> with forbidden attribute values (bug 3202)
841 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
843 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
848 <nowiki> inside <pre> (bug 13238)
856 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
864 <pre><nowiki>Foo</nowiki></pre>
869 <nowiki> and <pre> preference (first one wins)
900 Templates: Pre: 1a. Templates that break a line should suppress <pre>
908 Templates: Pre: 1b. Templates that break a line should suppress <pre>
918 Templates: Pre: 1c: Wrapping should be based on expanded content
930 Templates: Pre: 1d: Wrapping should be based on expanded content
951 Templates: Pre: 1e. Wrapping should be based on expanded content
958 {{echo|<!--cmt--> foo}}
960 <!--cmt-->{{echo| foo}}
962 {{echo|{{echo| }}bar}}
978 ### Parsoid-centric tests for testing RT edge cases
979 ### around comments and white-space inside pre blocks
1009 1c. Pre and Comments
1022 ### Definition lists
1029 <dl><dt> name </dt><dd> Definition
1035 Definition list for indentation only
1039 <dl><dd> Indented text
1045 Definition list with no space
1049 <dl><dt>name</dt><dd>Definition
1055 Definition list with URL link
1057 ; http://example.com/ : definition
1059 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1065 Definition list with bracketed URL link
1067 ;[http://www.example.com/ Example]:Something about it
1069 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1075 Definition list with wikilink containing colon
1077 ; [[Help:FAQ]]: The least-read page on Wikipedia
1079 <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
1084 # At Brion's and JeLuF's insistence... :)
1086 Definition list with news link containing colon
1088 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1090 <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!
1096 Malformed definition list with colon
1098 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1100 <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
1106 Definition lists: colon in external link text
1108 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1110 <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
1116 Definition lists: colon in HTML attribute
1118 ;<b style="display: inline">bold</b>
1120 <dl><dt><b style="display: inline">bold</b>
1127 Definition lists: self-closed tag
1129 ;one<br/>two : two-line fun
1131 <dl><dt>one<br />two </dt><dd> two-line fun
1137 Bug 11748: Literal closing tags
1143 <dd>test test test test test</dd>
1145 <dd>test test test test test</dd>
1150 <dd>test test test test test</dd>
1152 <dd>test test test test test</dd>
1157 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1160 ; term : description
1166 <dl><dt> term </dt><dd> description
1176 Definition list with empty definition and following paragraph
1181 <dl><dt> term</dt><dd>
1188 Definition Lists: No nesting: Multiple dd's
1202 Definition Lists: Indentation: Regular
1218 Definition Lists: Indentation: Missing 1st level
1232 Definition Lists: Indentation: Multi-level indent
1236 <dl><dd><dl><dd><dl><dd>i3
1243 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1244 ## as an empty dt item. It also ignores all but the last ";" when followed
1245 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1246 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1249 ## Ex: ";;t2 ::d2" is transformed into:
1261 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1262 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1273 ## All Parsoid only definition list tests have this difference.
1275 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1276 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1279 Definition Lists: Nesting: Multi-level (Parsoid only)
1309 Definition Lists: Nesting: Test 2 (Parsoid only)
1329 Definition Lists: Nesting: Test 3 (Parsoid only)
1357 Definition Lists: Nesting: Test 4
1362 <dl><dd><dl><dd><dl><dt>t3
1372 Definition Lists: Mixed Lists: Test 1
1378 <dl><dd><dl><dt><ul><li> foo
1390 Definition Lists: Mixed Lists: Test 2
1404 Definition Lists: Mixed Lists: Test 3
1409 <ul><li><dl><dd><dl><dd><dl><dd> d1
1420 Definition Lists: Mixed Lists: Test 4
1425 <ul><li><dl><dt>d1 </dt><dd>d2
1426 </dd><dt>d3 </dt><dd>d4
1434 Definition Lists: Mixed Lists: Test 5
1449 Definition Lists: Mixed Lists: Test 6
1454 <ol><li><ul><li><dl><dd>d1
1466 Definition Lists: Mixed Lists: Test 7
1480 Definition Lists: Mixed Lists: Test 8
1496 Definition Lists: Mixed Lists: Test 9
1500 <ul><li><dl><dt>foo </dt><dd>bar
1508 Definition Lists: Mixed Lists: Test 10
1512 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1521 Definition Lists: Mixed Lists: Test 11
1526 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1531 <dl><dt>boo </dt><dd>baz
1542 Definition Lists: Weird Ones: Test 1
1544 *#;*::;; foo : bar (who uses this?)
1546 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1562 External links: non-bracketed
1564 Non-bracketed: http://example.com
1566 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1571 External links: numbered
1573 Numbered: [http://example.com]
1574 Numbered: [http://example.net]
1575 Numbered: [http://example.com]
1577 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1578 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1579 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1584 External links: specified text
1586 Specified text: [http://example.com link]
1588 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1593 External links: trail
1595 Linktrails should not work for external links: [http://example.com link]s
1597 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1602 External links: dollar sign in URL
1604 http://example.com/1$2345
1606 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1611 External links: dollar sign in URL (named)
1613 [http://example.com/1$2345]
1615 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1620 External links: open square bracket forbidden in URL (bug 4377)
1622 http://example.com/1[2345
1624 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1629 External links: open square bracket forbidden in URL (named) (bug 4377)
1631 [http://example.com/1[2345]
1633 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1638 External links: nowiki in URL link text (bug 6230)
1640 [http://example.com/ <nowiki>''example site''</nowiki>]
1642 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1647 External links: newline forbidden in text (bug 6230 regression check)
1649 [http://example.com/ first
1652 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1658 External links: Pipe char between url and text
1660 [http://example.com | link]
1662 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1667 External links: protocol-relative URL in brackets
1669 [//example.com/ Test]
1671 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1676 External links: protocol-relative URL in brackets without text
1680 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1685 External links: protocol-relative URL in free text is left alone
1689 <p>//example.com/Foo
1694 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1696 foo//example.com/Foo
1698 <p>foo//example.com/Foo
1705 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1707 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1712 External image from https
1714 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1716 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1721 Link to non-http image, no img tag
1723 Link to non-http image, no img tag: ftp://example.com/test.jpg
1725 <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>
1730 External links: terminating separator
1732 Terminating separator: http://example.com/thing,
1734 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1739 External links: intervening separator
1741 Intervening separator: http://example.com/1,2,3
1743 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1748 External links: old bug with URL in query
1750 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1752 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1757 External links: old URL-in-URL bug, mixed protocols
1759 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1761 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1766 External links: URL in text
1768 URL in text: [http://example.com http://example.com]
1770 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1775 External links: Clickable images
1777 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1779 <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>
1784 External links: raw ampersand
1786 Old & use: http://x&y
1788 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1793 External links: encoded ampersand
1795 Old & use: http://x&y
1797 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1802 External links: encoded equals (bug 6102)
1804 http://example.com/?foo=bar
1806 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1811 External links: [raw ampersand]
1813 Old & use: [http://x&y]
1815 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1820 External links: [encoded ampersand]
1822 Old & use: [http://x&y]
1824 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1829 External links: [encoded equals] (bug 6102)
1831 [http://example.com/?foo=bar]
1833 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1838 External links: [IDN ignored character reference in hostname; strip it right off]
1840 [http://e‌xample.com/]
1842 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1846 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1847 # Where an external link could easily circumvent the sanitization of the text of
1848 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1849 # test demands a higher standard. That's a bit strange.
1853 # http://example.com -> [http://example.com|http://example.com]
1854 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1856 # The first example is sanitized, but the second is not. Any security benefits
1857 # from this production are trivial to circumvent. Either remove this test and
1858 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1859 # the test accordingly.
1864 External links: IDN ignored character reference in hostname; strip it right off
1866 http://e‌xample.com/
1868 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1873 External links: www.jpeg.org (bug 554)
1877 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1882 External links: URL within URL (original bug 2)
1884 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1886 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1891 BUG 361: URL inside bracketed URL
1893 [http://www.example.com/foo http://www.example.com/bar]
1895 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1900 BUG 361: URL within URL, not bracketed
1902 http://www.example.com/foo?=http://www.example.com/bar
1904 <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>
1909 BUG 289: ">"-token in URL-tail
1911 http://www.example.com/<hello>
1913 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1918 BUG 289: literal ">"-token in URL-tail
1920 http://www.example.com/<b>html</b>
1922 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1927 BUG 289: ">"-token in bracketed URL
1929 [http://www.example.com/<hello> stuff]
1931 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1936 BUG 289: literal ">"-token in bracketed URL
1938 [http://www.example.com/<b>html</b> stuff]
1940 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1945 BUG 289: literal double quote at end of URL
1947 http://www.example.com/"hello"
1949 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1954 BUG 289: literal double quote in bracketed URL
1956 [http://www.example.com/"hello" stuff]
1958 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1963 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1965 [http://www.example.com test]
1967 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1972 External links: wiki links within external link (Bug 3695)
1974 [http://example.com [[wikilink]] embedded in ext link]
1976 <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>
1981 BUG 787: Links with one slash after the url protocol are invalid
1985 [http:/example.com title]
1987 <p>http:/example.com
1988 </p><p>[http:/example.com title]
1993 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1995 ''[http://example.com text'']
1996 [http://example.com '''text]'''
1997 ''Something [http://example.com in italic'']
1998 ''Something [http://example.com mixed''''', even bold]'''
1999 '''''Now [http://example.com both''''']
2001 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2002 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2003 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2004 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2005 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2011 Bug 4781: %26 in URL
2013 http://www.example.com/?title=AT%26T
2015 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2019 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2020 # % is actually legal in HTML5. Any change in output would need testing though.
2022 Bug 4781, 5267: %25 in URL
2024 http://www.example.com/?title=100%25_Bran
2026 <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>
2031 Bug 4781, 5267: %28, %29 in URL
2033 http://www.example.com/?title=Ben-Hur_%281959_film%29
2035 <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>
2041 Bug 4781: %26 in autonumber URL
2043 [http://www.example.com/?title=AT%26T]
2045 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2050 Bug 4781, 5267: %26 in autonumber URL
2052 [http://www.example.com/?title=100%25_Bran]
2054 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2059 Bug 4781, 5267: %28, %29 in autonumber URL
2061 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2063 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2069 Bug 4781: %26 in bracketed URL
2071 [http://www.example.com/?title=AT%26T link]
2073 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2078 Bug 4781, 5267: %26 in bracketed URL
2080 [http://www.example.com/?title=100%25_Bran link]
2082 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2087 Bug 4781, 5267: %28, %29 in bracketed URL
2089 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2091 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2096 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2098 Some [http://example.com/ pretty ''italics'' and stuff]!
2100 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2105 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2107 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2109 <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>
2114 External link containing double-single-quotes with no space separating the url from text in italics
2116 [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]].]
2118 <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>
2123 URL-encoding in URL functions (single parameter)
2125 {{localurl:Some page|amp=&}}
2127 <p>/index.php?title=Some_page&amp=&
2132 URL-encoding in URL functions (multiple parameters)
2134 {{localurl:Some page|q=?&=&}}
2136 <p>/index.php?title=Some_page&q=?&amp=&
2143 http://example.com/index.php?foozoid%5B%5D=bar
2145 http://example.com/index.php?foozoid[]=bar
2147 <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>
2148 </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>
2153 IPv6 urls (bug 21261)
2157 http://[2404:130:0:1000::187:2]/index.php
2159 <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>
2170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2172 Normal text. '''''Bold italic text.''''' Normal text.
2174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2181 Unclosed and unmatched quotes
2183 '''''Bold italic text '''with bold deactivated''' in between.'''''
2185 '''''Bold italic text ''with italic deactivated'' in between.'''''
2189 ..spanning two paragraphs (should not work).'''
2191 '''Bold tag left open
2193 ''Italic tag left open
2197 <!-- Unmatching number of opening, closing tags: -->
2198 '''This year''''s election ''should'' beat '''last year''''s.
2200 ''Tom'''s car is bigger than ''Susan'''s.
2202 Plain ''italic'''s plain
2204 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2205 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2206 </p><p><b>Bold text..</b>
2207 </p><p>..spanning two paragraphs (should not work).
2208 </p><p><b>Bold tag left open</b>
2209 </p><p><i>Italic tag left open</i>
2211 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2212 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2213 </p><p>Plain <i>italic'</i>s plain
2220 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2223 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2224 # is the bare minimun required by the spec, see:
2225 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2227 A table with no data.
2233 # A table with nothing but a caption is invalid XHTML, we might want to render
2234 # this as <p>caption</p>
2236 A table with nothing but a caption
2244 </caption><tr><td></td></tr></table>
2270 Multiplication table
2272 {| border="1" cellpadding="2"
2273 |+Multiplication table
2275 ! × !! 1 !! 2 !! 3
2293 <table border="1" cellpadding="2">
2294 <caption>Multiplication table
2345 |rowspan=2| Cell 2, row 1 (and 2)
2356 <td rowspan="2"> Cell 2, row 1 (and 2)
2374 {| bgcolor=#ABCDEF border=2
2379 |the original table again
2387 <table bgcolor="#ABCDEF" border="2">
2395 <td>the original table again
2401 Invalid attributes in table cell (bug 1830)
2416 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2419 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2423 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2424 <td>]" onmouseover="alert(document.cookie)">test
2433 Indented table markup mixed with indented pre content (proposed in bug 6200)
2438 Text that should be rendered preformatted
2446 <pre>Text that should be rendered preformatted
2459 Plain link, capitalized
2463 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2468 Plain link, uncapitalized
2472 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2479 [[Main Page|The Main Page]]
2481 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2490 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2495 Broken link with fragment
2497 [[Zigzagzogzagzig#zug]]
2499 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2504 Special page link with fragment
2506 [[Special:Version#anchor]]
2508 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2513 Nonexistent special page link with fragment
2515 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2517 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2524 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2526 <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>
2533 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2535 <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>!!!
2540 Link with 3 brackets
2549 Piped link with 3 brackets
2551 [[[main page|the main page]]]
2553 <p>[[[main page|the main page]]]
2558 Link with multiple pipes
2560 [[Main Page|The|Main|Page]]
2562 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2569 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2571 <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>
2576 Piped link to namespace
2578 [[Meta:Disclaimers|The disclaimers]]
2580 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2587 [[Usually caused by a typo (oops}]]
2589 <p>[[Usually caused by a typo (oops}]]
2594 Link containing % (not as a hex sequence)
2598 <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>
2603 Link containing % as a single hex sequence interpreted to char
2607 <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>
2612 Link containing % as a double hex sequence interpreted to hex sequence
2616 <p>[[7%2525 Solution]]
2621 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2622 Example for such a section: == < ==
2624 [[%23%3c]][[%23%3e]]
2626 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2631 Link containing "<#" and ">#" as a hex sequences
2633 [[%3c%23]][[%3e%23]]
2635 <p>[[%3c%23]][[%3e%23]]
2640 Link containing double-single-quotes '' (bug 4598)
2642 [[Lista d''e paise d''o munno]]
2644 <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>
2649 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2651 Some [[Link|pretty ''italics'' and stuff]]!
2653 <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>!
2658 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2660 ''Some [[Link|pretty ''italics'' and stuff]]!
2662 <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>
2667 Link with double quotes in title part (literal) and alternate part (interpreted)
2669 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2673 [[''Pentecoste''|Pentecoste]]
2675 [[''Pentecoste''|''Pentecoste'']]
2677 <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>
2678 </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>
2679 </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>
2680 </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>
2685 Broken image links with HTML captions (bug 39700)
2687 [[File:Nonexistent|<script></script>]]
2688 [[File:Nonexistent|100px|<script></script>]]
2689 [[File:Nonexistent|<]]
2690 [[File:Nonexistent|a<i>b</i>c]]
2692 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2693 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2694 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2695 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2702 [[http://www.example.com]]
2704 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2709 Plain link to URL with link text
2711 [[http://www.example.com Link text]]
2713 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2718 Plain link to protocol-relative URL
2720 [[//www.example.com]]
2722 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2727 Plain link to protocol-relative URL with link text
2729 [[//www.example.com Link text]]
2731 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2736 # I'm fairly sure the expected result here is wrong.
2737 # We want these to be URL links, not pseudo-pages with URLs for titles....
2738 # However the current output is also pretty screwy.
2741 # I'm changing it to match the current output--it arguably makes more
2742 # sense in the light of the test above. Old expected result was:
2743 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2745 # But I think this test is bordering on "garbage in, garbage out" anyway.
2750 Piped link to URL: [[http://www.example.com|an example URL]]
2752 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2757 BUG 2: [[page|http://url/]] should link to page, not http://url/
2759 [[Main Page|http://url/]]
2761 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2766 BUG 337: Escaped self-links should be bold
2770 [[Bug462]] [[Bug462]]
2772 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2777 Self-link to section should not be bold
2781 [[Main Page#section]]
2783 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2794 Self-link to numeric title
2800 <p><strong class="selflink">0</strong>
2805 Link to numeric-equivalent title
2811 <p><a href="/wiki/00" title="00">00</a>
2816 <nowiki> inside a link
2818 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2820 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2825 Non-breaking spaces in title
2827 [[ Main Page ]]
2829 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2834 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2840 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2845 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2851 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2856 Internal link with en linktrail: no apostrophes (bug 27473)
2862 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2867 Internal link with ca linktrail with apostrophes (bug 27473)
2873 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2878 Internal link with kaa linktrail with apostrophes (bug 27473)
2884 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2889 ### Interwiki links (see maintenance/interwiki.sql)
2893 Inline interwiki link
2895 [[MeatBall:SoftSecurity]]
2897 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2902 Inline interwiki link with empty title (bug 2372)
2906 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2911 Interwiki link encoding conversion (bug 1636)
2913 *[[Wikipedia:ro:Olteniţa]]
2914 *[[Wikipedia:ro:Olteniţa]]
2916 <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>
2917 </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>
2923 Interwiki link with fragment (bug 2130)
2925 [[MeatBall:SoftSecurity#foo]]
2927 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2942 Double interlanguage link
2953 Interlanguage link, with prefix links
2965 Double interlanguage link, with prefix links (bug 8897)
2978 Parsoid-specific test: Wikilinks with should RT properly
2984 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3002 Incorrecly removing closing slashes from correctly formed XHTML
3004 <br style="clear:both;" />
3006 <p><br style="clear:both;" />
3011 Failing to transform badly formed HTML into correct XHTML
3013 <br style="clear: left;">
3014 <br style="clear: right;">
3015 <br style="clear: both;">
3017 <p><br style="clear: left;" />
3018 <br style="clear: right;" />
3019 <br style="clear: both;" />
3024 Handling html with a div self-closing tag
3033 <p><div title />
3037 <p><div title=bar />
3038 <div title=bar/>
3040 <div title="bar/"></div>
3046 Handling html with a br self-closing tag
3055 <p><br title="title" />
3056 <br title="title" />
3065 Horizontal ruler (should it add that extra space?)
3079 Horizontal ruler -- 4+ dashes render hr
3088 Horizontal ruler -- eats additional dashes on the same line
3097 Horizontal ruler -- does not collaps dashes on consecutive lines
3108 Horizontal ruler -- <4 dashes render as plain text
3117 ### Block-level elements
3140 <ol><li>Numbered list
3157 ***#Number on level 4
3159 **#Number on level 3
3160 **#Number on level 3
3164 #** Level 3, but ordered
3167 <ol><li> with numbers
3169 <ul><li> and bullets
3171 <ol><li> and numbers
3173 </li><li>bullets again
3174 <ul><li>bullet level 2
3175 <ul><li>bullet level 3
3176 <ol><li>Number on level 4
3179 </li><li>bullet level 2
3180 <ol><li>Number on level 3
3181 </li><li>Number on level 3
3184 <ol><li>number level 2
3187 <ul><li><ul><li> Level 3
3191 <ol><li><ul><li><ul><li> Level 3, but ordered
3225 Nested lists 3 (first element empty)
3238 Nested lists 4 (first element empty)
3251 Nested lists 5 (both elements empty)
3264 Nested lists 6 (both elements empty)
3277 Nested lists 7 (skip initial nesting levels)
3281 <ul><li><ul><li><ul><li> foo
3289 Nested lists 8 (multiple nesting transitions)
3297 <ul><li><ul><li> bar
3308 List items are not parsed correctly following a <pre> block (bug 785)
3314 <ul><li> <pre>foo</pre>
3315 </li><li> <pre>bar</pre>
3322 List items from template
3333 * notSOL{{inner list}}
3352 List interrupted by empty line or heading
3362 <ul><li><ul><li> bar
3365 <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>
3366 <ul><li> Another list item
3377 Magic Word: {{CURRENTDAY}}
3386 Magic Word: {{CURRENTDAY2}}
3395 Magic Word: {{CURRENTDAYNAME}}
3404 Magic Word: {{CURRENTDOW}}
3413 Magic Word: {{CURRENTMONTH}}
3422 Magic Word: {{CURRENTMONTHABBREV}}
3424 {{CURRENTMONTHABBREV}}
3431 Magic Word: {{CURRENTMONTHNAME}}
3433 {{CURRENTMONTHNAME}}
3440 Magic Word: {{CURRENTMONTHNAMEGEN}}
3442 {{CURRENTMONTHNAMEGEN}}
3449 Magic Word: {{CURRENTTIME}}
3458 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3467 Magic Word: {{CURRENTYEAR}}
3476 Magic Word: {{FULLPAGENAME}}
3478 title=[[User:Ævar Arnfjörð Bjarmason]]
3482 <p>User:Ævar Arnfjörð Bjarmason
3487 Magic Word: {{FULLPAGENAMEE}}
3489 title=[[User:Ævar Arnfjörð Bjarmason]]
3493 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3498 Magic Word: {{NAMESPACE}}
3500 title=[[User:Ævar Arnfjörð Bjarmason]]
3509 Magic Word: {{NAMESPACEE}}
3511 title=[[User:Ævar Arnfjörð Bjarmason]]
3520 Magic Word: {{NAMESPACENUMBER}}
3522 title=[[User:Ævar Arnfjörð Bjarmason]]
3531 Magic Word: {{NUMBEROFFILES}}
3540 Magic Word: {{PAGENAME}}
3542 title=[[User:Ævar Arnfjörð Bjarmason]]
3546 <p>Ævar Arnfjörð Bjarmason
3551 Magic Word: {{PAGENAME}} with metacharacters
3553 title=[['foo & bar = baz']]
3557 <p><i>'foo & bar = baz'</i>
3562 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3564 title=[[*RFC 1234 http://example.com/]]
3568 <p>*RFC 1234 http://example.com/
3573 Magic Word: {{PAGENAMEE}}
3575 title=[[User:Ævar Arnfjörð Bjarmason]]
3579 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3584 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3586 title=[[*RFC 1234 http://example.com/]]
3590 <p>*RFC_1234_http://example.com/
3595 Magic Word: {{REVISIONID}}
3604 Magic Word: {{SCRIPTPATH}}
3613 Magic Word: {{SERVER}}
3617 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3622 Magic Word: {{SERVERNAME}}
3631 Magic Word: {{SITENAME}}
3640 Namespace 1 {{ns:1}}
3649 Namespace 1 {{ns:01}}
3658 Namespace 0 {{ns:0}} (bug 4783)
3666 Namespace 0 {{ns:00}} (bug 4783)
3674 Namespace -1 {{ns:-1}}
3683 Namespace User {{ns:User}}
3692 Namespace User talk {{ns:User_talk}}
3701 Namespace User talk {{ns:uSeR tAlK}}
3710 Namespace File {{ns:File}}
3719 Namespace File {{ns:Image}}
3728 Namespace (lang=de) Benutzer {{ns:User}}
3739 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3745 <p>Benutzer Diskussion
3753 {{urlencode:hi world?!}}
3754 {{urlencode:hi world?!|WIKI}}
3755 {{urlencode:hi world?!|PATH}}
3756 {{urlencode:hi world?!|QUERY}}
3769 Magic links: internal link to RFC (bug 479)
3773 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3778 Magic links: RFC (bug 479)
3782 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3787 Magic links: ISBN (bug 1937)
3791 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3796 Magic links: PMID incorrectly converts space to underscore
3800 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3809 Nonexistent template
3811 {{thistemplatedoesnotexist}}
3813 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3820 This is a test template
3828 <p>This is a test template
3833 Template with explicit namespace
3837 <p>This is a test template
3845 This is a test template with parameter {{{param}}}
3851 {{paramtest|param=foo}}
3853 <p>This is a test template with parameter foo
3858 Template:paramtestnum
3864 Template unnamed parameter
3866 {{paramtestnum|Main Page|the main page}}
3868 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3873 Template:templatesimple
3879 Template:templateredirect
3881 #redirect [[Template:templatesimple]]
3885 Template:templateasargtestnum
3891 Template:templateasargtest
3893 {{template{{{templ}}}}}
3897 Template:templateasargtest2
3903 Template with template name as unnamed argument
3905 {{templateasargtestnum|templatesimple}}
3912 Template with template name as argument
3914 {{templateasargtest|templ=simple}}
3921 Template with template name as argument (2)
3923 {{templateasargtest2|templ=templatesimple}}
3930 Template:templateasargtestdefault
3932 {{{{{templ|templatesimple}}}}}
3942 Template with default value
3944 {{templateasargtestdefault}}
3951 Template with default value (value set)
3953 {{templateasargtestdefault|templ=templa}}
3962 {{templateredirect}}
3969 Template with argument in separate line
3971 {{ templateasargtest |
3979 Template with complex template as argument
3982 param ={{ templateasargtest |
3985 <p>This is a test template with parameter (test)
3990 Template with thumb image (with link in description)
3993 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3995 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>
4000 Template:complextemplate
4002 {{{1}}} {{paramtest|
4003 param ={{{param}}}}}
4007 Template with complex arguments
4010 param ={{ templateasargtest |
4011 templ = simple }}|[[Template:complextemplate|link]]}}
4013 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4018 BUG 553: link with two variables in a piped link
4021 |[[{{{1}}}|{{{2}}}]]
4026 <td>[[{{{1}}}|{{{2}}}]]
4032 Magic variable as template parameter
4034 {{paramtest|param={{SITENAME}}}}
4036 <p>This is a test template with parameter MediaWiki
4043 [[{{{param}}}|link]]
4047 Template parameter as link source
4049 {{linktest|param=Main Page}}
4051 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4056 Template-generated attribute string (k='v')
4058 <span {{attr_str|id|v1}}>bar</span>
4060 <p><span id="v1">bar</span>
4067 including another template, {{paramtest|param={{{arg}}}}}
4071 Template passing argument to another template
4073 {{paramtest2|arg='hmm'}}
4075 <p>including another template, This is a test template with parameter 'hmm'
4086 Template as link source
4090 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4108 Template infinite loop
4112 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4117 Template from main namespace
4136 BUG 529: Template with table, not included at beginning of line
4155 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4175 BUG 41: Template parameters shown as broken links
4187 ''None'' of '''this''' should be
4189 but rather passed unmodified
4193 # hmm, fix this or just deprecate msgnw and document its behavior?
4199 {{msgnw:MSGNW test}}
4201 <p>''None'' of '''this''' should be
4203 but rather passed unmodified
4211 {{int:youhavenewmessages|lots of money|not!}}
4213 <p>You have lots of money (not!).
4220 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4224 <includeonly> and <noinclude> being included
4235 <onlyinclude>Foo</onlyinclude>bar
4239 <onlyinclude> being included
4251 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4255 <onlyinclude> and <includeonly> being included
4264 <includeonly> and <noinclude> on a page
4266 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4273 <onlyinclude> on a page
4275 <onlyinclude>Foo</onlyinclude>bar
4282 Template:Includeonly section
4285 ==Includeonly section==
4291 Bug 6563: Edit link generation for section shown by <includeonly>
4293 {{includeonly section}}
4295 <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>
4296 <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>
4300 # Uses same input as the contents of [[Template:Includeonly section]]
4302 Bug 6563: Section extraction for section shown by <includeonly>
4307 ==Includeonly section==
4315 Bug 6563: Edit link generation for section suppressed by <includeonly>
4318 ==Includeonly section==
4322 <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>
4327 Bug 6563: Section extraction for section suppressed by <includeonly>
4332 ==Includeonly section==
4340 ### <includeonly> and <noinclude> in attributes
4343 0. includeonly around the entire attribute
4345 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4347 <p><span id="v2">bar</span>
4352 1. includeonly in html attr key
4354 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4356 <p><span id="foo">bar</span>
4361 2. includeonly in html attr value
4363 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4364 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4366 <p><span id="v1">bar</span>
4367 <span id="v1">bar</span>
4372 3. includeonly in part of an attr value
4374 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4376 <p><span style="color:red;">bar</span>
4381 ### Testing parsing of templates where a template arg
4382 ### has the same name as the template itself.
4392 Templates: Template Name/Arg clash: 1. Use of positional param
4401 Templates: Template Name/Arg clash: 2. Use of named param
4410 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4419 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4423 Templates: 1. Simple use
4432 Templates: 2. Inside a block tag
4434 <div>{{echo|Foo}}</div>
4441 Templates: P-wrapping: 1a. Templates on consecutive lines
4452 Templates: P-wrapping: 1b. Templates on consecutive lines
4466 Templates: P-wrapping: 1c. Templates on consecutive lines
4469 {{echo|bar}} <div>baz</div>
4478 Templates: Inline Text: 1. Multiple tmeplate uses
4480 {{echo|Foo}}bar{{echo|baz}}
4487 Templates: Inline Text: 2. Back-to-back template uses
4489 {{echo|Foo}}{{echo|bar}}
4496 Templates: Block Tags: 1. Multiple template uses
4498 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4500 <div>Foo</div><div>bar</div><div>baz</div>
4505 Templates: Block Tags: 2. Back-to-back template uses
4507 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4509 <div>Foo</div><div>bar</div>
4514 Templates: Links: 1. Simple example
4516 {{echo|[[Foo|bar]]}}
4518 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4523 Templates: Links: 2. Generation of link href
4525 [[{{echo|Foo}}|bar]]
4527 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4532 Templates: Links: 3. Generation of part of a link href
4534 [[Fo{{echo|o}}|bar]]
4536 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4541 Templates: Links: 4. Multiple templates generating link href
4543 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4545 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4550 Templates: Links: 5. Generation of link text
4552 [[Foo|{{echo|bar}}]]
4554 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4559 Templates: Links: 5. Nested templates (only outermost template should be marked)
4561 {{echo|[[{{echo|Foo}}|bar]]}}
4563 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4568 Templates: HTML Tag: 1. Generation of HTML attr. key
4570 <div {{echo|style}}="color:red;">foo</div>
4572 <div style="color:red;">foo</div>
4577 Templates: HTML Tag: 2. Generation of HTML attr. value
4579 <div style={{echo|'color:red;'}}>foo</div>
4581 <div style="color:red;">foo</div>
4586 Templates: HTML Tag: 3. Generation of HTML attr key and value
4588 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4590 <div style="color:red;">foo</div>
4595 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4597 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4599 <div title="This is a long title with just one piece templated">foo</div>
4604 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4606 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4608 <div title="This is a long title with just one piece templated">foo</div>
4613 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4615 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4617 <div title="This is a long title with just one piece templated">foo</div>
4622 Templates: Tables: 1. Generating start of a HTML table
4624 {{echo|<table><tr><td>foo</td>}}</tr></table>
4626 <table><tr><td>foo</td></tr></table>
4631 Templates: Tables: 2a. Generating middle of a HTML table
4633 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4635 <table><tr><td>foo</td></tr></table>
4640 Templates: Tables: 2b. Generating middle of a HTML table
4642 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4644 <table><tr><td>foo</td></tr></table>
4649 Templates: Tables: 3. Generating end of a HTML table
4651 <table><tr>{{echo|<td>foo</td></tr></table>}}
4653 <table><tr><td>foo</td></tr></table>
4658 Templates: Tables: 4a. Generating a single tag of a HTML table
4660 {{echo|<table>}}<tr><td>foo</td></tr></table>
4662 <table><tr><td>foo</td></tr></table>
4667 Templates: Tables: 4b. Generating a single tag of a HTML table
4669 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4671 <table><tr><td>foo</td></tr></table>
4676 Templates: Tables: 4c. Generating a single tag of a HTML table
4678 <table><tr>{{echo|<td>}}foo</td></tr></table>
4680 <table><tr><td>foo</td></tr></table>
4685 Templates: Tables: 4d. Generating a single tag of a HTML table
4687 <table><tr><td>foo{{echo|</td>}}</tr></table>
4689 <table><tr><td>foo</td></tr></table>
4694 Templates: Tables: 4e. Generating a single tag of a HTML table
4696 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4698 <table><tr><td>foo</td></tr></table>
4703 Templates: Tables: 4f. Generating a single tag of a HTML table
4705 <table><tr><td>foo</td></tr>{{echo|</table>}}
4707 <table><tr><td>foo</td></tr></table>
4712 Parser Functions: 1. Simple example
4721 Parser Functions: 2. Nested use (only outermost should be marked up)
4730 ### Pre-save transform tests
4733 pre-save transform: subst:
4739 This is a test template
4743 pre-save transform: normal template
4753 pre-save transform: nonexistent template
4757 {{thistemplatedoesnotexist}}
4759 {{thistemplatedoesnotexist}}
4764 pre-save transform: subst magic variables
4773 # This is bug 89, which I fixed. -- wtm
4775 pre-save transform: subst: templates with parameters
4779 {{subst:paramtest|param="something else"}}
4781 This is a test template with parameter "something else"
4787 <nowiki>'''not wiki'''</nowiki>
4791 pre-save transform: nowiki in subst (bug 1188)
4795 {{subst:nowikitest}}
4797 <nowiki>'''not wiki'''</nowiki>
4802 Template:commenttest
4804 This template has <!-- a comment --> in it.
4808 pre-save transform: comment in subst (bug 1936)
4812 {{subst:commenttest}}
4814 This template has <!-- a comment --> in it.
4818 pre-save transform: unclosed tag
4822 <nowiki>'''not wiki'''
4824 <nowiki>'''not wiki'''
4828 pre-save transform: mixed tag case
4832 <NOwiki>'''not wiki'''</noWIKI>
4834 <NOwiki>'''not wiki'''</noWIKI>
4838 pre-save transform: unclosed comment in <nowiki>
4842 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4844 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4850 <span onmouseover="alert('crap')">Oh no</span>
4854 (confirming safety of fix for subst bug 1936)
4856 {{Template:dangerous}}
4858 <p><span>Oh no</span>
4863 pre-save transform: comment containing gallery (bug 5024)
4867 <!-- <gallery>data</gallery> -->
4869 <!-- <gallery>data</gallery> -->
4873 pre-save transform: comment containing extension
4877 <!-- <tag>data</tag> -->
4879 <!-- <tag>data</tag> -->
4883 pre-save transform: comment containing nowiki
4887 <!-- <nowiki>data</nowiki> -->
4889 <!-- <nowiki>data</nowiki> -->
4893 pre-save transform: <noinclude> in subst (bug 3298)
4903 pre-save transform: <onlyinclude> in subst (bug 3298)
4915 {{<includeonly>subst:</includeonly>Includes}}
4919 Template:SafeSubstTest
4921 {{<includeonly>safesubst:</includeonly>Includes}}
4925 bug 22297: safesubst: works during PST
4929 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4935 bug 22297: safesubst: works during normal parse
4944 subst: does not work during normal parse
4948 <p>{{subst:Includes}}
4953 pre-save transform: context links ("pipe trick")
4957 [[Article (context)|]]
4960 [[Bar:Article (context)|]]
4961 [[:Bar:Article (context)|]]
4963 [[|Article (context)]]
4967 [[Article (context)|Article]]
4968 [[Bar:Article|Article]]
4969 [[:Bar:Article|Article]]
4970 [[Bar:Article (context)|Article]]
4971 [[:Bar:Article (context)|Article]]
4973 [[Article (context)]]
4974 [[Bar:X (Y) Z|X (Y) Z]]
4975 [[:Bar:X (Y) Z|X (Y) Z]]
4979 pre-save transform: context links ("pipe trick") with interwiki prefix
4983 [[interwiki:Article|]]
4984 [[:interwiki:Article|]]
4985 [[interwiki:Bar:Article|]]
4986 [[:interwiki:Bar:Article|]]
4988 [[interwiki:Article|Article]]
4989 [[:interwiki:Article|Article]]
4990 [[interwiki:Bar:Article|Bar:Article]]
4991 [[:interwiki:Bar:Article|Bar:Article]]
4995 pre-save transform: context links ("pipe trick") with parens in title
4997 pst title=[[Somearticle (context)]]
5001 [[Article (context)|Article]]
5005 pre-save transform: context links ("pipe trick") with comma in title
5007 pst title=[[Someplace, Somewhere]]
5010 [[Otherplace, Elsewhere|]]
5011 [[Otherplace, Elsewhere, Anywhere|]]
5013 [[Otherplace, Somewhere|Otherplace]]
5014 [[Otherplace, Elsewhere|Otherplace]]
5015 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5019 pre-save transform: context links ("pipe trick") with parens and comma
5021 pst title=[[Someplace (IGNORED), Somewhere]]
5024 [[Otherplace (place), Elsewhere|]]
5026 [[Otherplace, Somewhere|Otherplace]]
5027 [[Otherplace (place), Elsewhere|Otherplace]]
5031 pre-save transform: context links ("pipe trick") with comma and parens
5033 pst title=[[Who, me? (context)]]
5036 [[Me, Myself, and I (1937 song)|]]
5038 [[Yes, you. (context)|Yes, you.]]
5039 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5043 pre-save transform: context links ("pipe trick") with namespace
5045 pst title=[[Ns:Somearticle]]
5049 [[Ns:Article|Article]]
5053 pre-save transform: context links ("pipe trick") with namespace and parens
5055 pst title=[[Ns:Somearticle (context)]]
5059 [[Ns:Article (context)|Article]]
5063 pre-save transform: context links ("pipe trick") with namespace and comma
5065 pst title=[[Ns:Somearticle, Context, Whatever]]
5069 [[Ns:Article, Context, Whatever|Article]]
5073 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5075 pst title=[[Ns:Somearticle, Context (context)]]
5079 [[Ns:Article (context)|Article]]
5083 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5085 pst title=[[Ns:Somearticle (IGNORED), Context]]
5089 [[Ns:Article, Context|Article]]
5093 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5097 [[Article(context)|]]
5098 [[Bar:Article(context)|]]
5099 [[:Bar:Article(context)|]]
5100 [[|Article(context)]]
5104 [[Article(context)|Article]]
5105 [[Bar:Article(context)|Article]]
5106 [[:Bar:Article(context)|Article]]
5107 [[Article(context)]]
5109 [[:Bar:X(Y)Z|X(Y)Z]]
5113 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5117 [[Article (context)|]]
5118 [[Bar:Article (context)|]]
5119 [[:Bar:Article (context)|]]
5120 [[|Article (context)]]
5124 [[Article (context)|Article]]
5125 [[Bar:Article (context)|Article]]
5126 [[:Bar:Article (context)|Article]]
5127 [[Article (context)]]
5128 [[Bar:X (Y) Z|X (Y) Z]]
5129 [[:Bar:X (Y) Z|X (Y) Z]]
5133 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5137 [[Article(context)|]]
5138 [[Bar:Article(context)|]]
5139 [[:Bar:Article(context)|]]
5140 [[|Article(context)]]
5144 [[Article(context)|Article]]
5145 [[Bar:Article(context)|Article]]
5146 [[:Bar:Article(context)|Article]]
5147 [[Article(context)]]
5149 [[:Bar:X(Y)Z|X(Y)Z]]
5153 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5157 [[Article (context), context|]]
5158 [[Article (context),context|]]
5159 [[Bar:Article (context), context|]]
5160 [[Bar:Article (context),context|]]
5161 [[:Bar:Article (context), context|]]
5162 [[:Bar:Article (context),context|]]
5164 [[Article (context), context|Article]]
5165 [[Article (context),context|Article]]
5166 [[Bar:Article (context), context|Article]]
5167 [[Bar:Article (context),context|Article]]
5168 [[:Bar:Article (context), context|Article]]
5169 [[:Bar:Article (context),context|Article]]
5173 pre-save transform: trim trailing empty lines
5177 Empty lines are trimmed
5183 Empty lines are trimmed
5187 pre-save transform: Signature expansion
5192 * <noinclude>~~~</noinclude>
5193 * <includeonly>~~~</includeonly>
5194 * <onlyinclude>~~~</onlyinclude>
5196 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5197 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5198 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5199 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5204 pre-save transform: Signature expansion in nowiki tags (bug 93)
5210 <nowiki>~~~~</nowiki>
5212 <includeonly><nowiki>~~~~</nowiki></includeonly>
5214 <noinclude><nowiki>~~~~</nowiki></noinclude>
5216 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5218 {{subst:Foo}} shall be converted to FOO
5220 As well as inside noinclude/onlyinclude
5221 <noinclude>{{subst:Foo}}</noinclude>
5222 <onlyinclude>{{subst:Foo}}</onlyinclude>
5224 But not inside includeonly
5225 <includeonly>{{subst:Foo}}</includeonly>
5229 <nowiki>~~~~</nowiki>
5231 <includeonly><nowiki>~~~~</nowiki></includeonly>
5233 <noinclude><nowiki>~~~~</nowiki></noinclude>
5235 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5237 FOO shall be converted to FOO
5239 As well as inside noinclude/onlyinclude
5240 <noinclude>FOO</noinclude>
5241 <onlyinclude>FOO</onlyinclude>
5243 But not inside includeonly
5244 <includeonly>{{subst:Foo}}</includeonly>
5248 ### Message transform tests
5251 message transform: magic variables
5261 message transform: should not transform wiki markup
5271 message transform: <noinclude> in transcluded template (bug 4926)
5281 message transform: <onlyinclude> in transcluded template (bug 4926)
5291 {{#special:}} page name, known
5295 {{#special:Recentchanges}}
5297 Special:RecentChanges
5301 {{#special:}} page name with subpage, known
5305 {{#special:Recentchanges/param}}
5307 Special:RecentChanges/param
5311 {{#special:}} page name, unknown
5315 {{#special:foobarnonexistent}}
5317 No such special page
5321 {{#speciale:}} page name, known
5325 {{#speciale:Recentchanges}}
5327 Special:RecentChanges
5331 {{#speciale:}} page name with subpage, known
5335 {{#speciale:Recentchanges/param}}
5337 Special:RecentChanges/param
5341 {{#speciale:}} page name, unknown
5345 {{#speciale:foobarnonexistent}}
5347 No_such_special_page
5356 [[Image:foobar.jpg]]
5358 <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>
5365 [[Image:foobar.jpg|right]]
5367 <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>
5372 Simple image (using File: namespace, now canonical)
5376 <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>
5383 [[Image:foobar.jpg|right|Caption text]]
5385 <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>
5390 Image with empty attribute
5392 [[Image:foobar.jpg|right||Caption text]]
5394 <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>
5399 Image with link parameter, wiki target
5401 [[Image:foobar.jpg|link=Target page]]
5403 <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>
5408 Image with link parameter, URL target
5410 [[Image:foobar.jpg|link=http://example.com/]]
5412 <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>
5417 Image with link parameter, wgExternalLinkTarget
5419 [[Image:foobar.jpg|link=http://example.com/]]
5421 wgExternalLinkTarget='foobar'
5423 <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>
5428 Image with link parameter, wgNoFollowLinks set to false
5430 [[Image:foobar.jpg|link=http://example.com/]]
5432 wgNoFollowLinks=false
5434 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5439 Image with link parameter, wgNoFollowDomainExceptions
5441 [[Image:foobar.jpg|link=http://example.com/]]
5443 wgNoFollowDomainExceptions='example.com'
5445 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5450 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5452 [[Image:foobar.jpg|link=http://example.com/|Title]]
5454 wgExternalLinkTarget='foobar'
5456 <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>
5461 Image with empty link parameter
5463 [[Image:foobar.jpg|link=]]
5465 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5470 Image with link parameter (wiki target) and unnamed parameter
5472 [[Image:foobar.jpg|link=Target page|Title]]
5474 <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>
5479 Image with link parameter (URL target) and unnamed parameter
5481 [[Image:foobar.jpg|link=http://example.com/|Title]]
5483 <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>
5488 Thumbnail image with link parameter
5490 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5492 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5497 Image with frame and link
5499 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5501 <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>
5506 Image with frame and link and explicit alt
5508 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5510 <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>
5515 Image with wiki markup in implicit alt
5517 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5519 <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>
5524 Image with wiki markup in explicit alt
5526 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5528 <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>
5533 Link to image page- image page normally doesn't exists, hence edit link
5534 Add test with existing image page
5535 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5539 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5544 bug 18784 Link to non-existent image page with caption should use caption as link text
5546 [[:Image:test|caption]]
5548 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5553 Frameless image caption with a free URL
5555 [[Image:foobar.jpg|http://example.com]]
5557 <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>
5562 Thumbnail image caption with a free URL
5564 [[Image:foobar.jpg|thumb|http://example.com]]
5566 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5571 Thumbnail image caption with a free URL and explicit alt
5573 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5575 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5580 BUG 1887: A ISBN with a thumbnail
5582 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5584 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5589 BUG 1887: A RFC with a thumbnail
5591 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5593 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5598 BUG 1887: A mailto link with a thumbnail
5600 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5602 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5606 # Pending resolution to bug 368
5608 BUG 648: Frameless image caption with a link
5610 [[Image:foobar.jpg|text with a [[link]] in it]]
5612 <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>
5617 BUG 648: Frameless image caption with a link (suffix)
5619 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5621 <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>
5626 BUG 648: Frameless image caption with an interwiki link
5628 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5630 <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>
5635 BUG 648: Frameless image caption with a piped interwiki link
5637 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5639 <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>
5644 Escape HTML special chars in image alt text
5646 [[Image:foobar.jpg|& < > "]]
5648 <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>
5653 BUG 499: Alt text should have Ӓ, not &1234;
5655 [[Image:foobar.jpg|♀]]
5657 <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>
5662 Broken image caption with link
5664 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5666 <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.
5671 Image caption containing another image
5673 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5675 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
5680 Image caption containing a newline
5682 [[Image:Foobar.jpg|This
5685 <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>
5691 Bug 3090: External links other than http: in image captions
5693 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5695 <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/3/3a/Foobar.jpg" width="200" height="23" class="thumbimage" /></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>
5702 [[Image:foobar.jpg|a|class=b]]
5704 <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>
5711 #REDIRECT [[File:Barfoo.jpg]]
5717 [[Image:Barfoo.jpg]]
5719 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5724 Missing image with uploads disabled
5728 [[Image:Foobaz.jpg]]
5730 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5739 Subpage test/subpage
5747 subpage title=[[Subpage test]]
5751 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5756 Subpage noslash link
5758 subpage title=[[Subpage test]]
5762 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5771 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5776 BUG 561: {{/Subpage}}
5778 subpage title=[[Page]]
5782 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5790 Category:MediaWiki User's Guide
5798 [[:Category:MediaWiki User's Guide]]
5800 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5809 [[Category:MediaWiki User's Guide]]
5811 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5815 PAGESINCATEGORY invalid title fatal (r33546 fix)
5817 {{PAGESINCATEGORY:<bogus>}}
5824 Category with different sort key
5828 [[Category:MediaWiki User's Guide|Foo]]
5830 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5834 Category with identical sort key
5838 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5840 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5844 Category with empty sort key
5849 [[Category:MediaWiki User's Guide|]]
5851 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5855 Category with empty sort key and parentheses
5860 [[Category:Foo (bar)|]]
5862 [[Category:Foo (bar)|Foo]]
5866 Category with template
5871 [[Category:{{echo|Foo}}]]
5873 [[Category:{{echo|Foo}}]]
5877 Category with template in sort key
5882 [[Category:Foo|{{echo|Bar}}]]
5884 [[Category:Foo|{{echo|Bar}}]]
5888 Category with template in sort key and title
5893 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
5895 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
5899 ### Inter-language links
5902 Inter-language links
5908 [[zh:食品]]
5910 es:Alimento fr:Nourriture zh:食品
5914 Duplicate interlanguage links (bug 24502)
5930 Basic section headings
5937 ===Smaller headline===
5940 <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>
5943 <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>
5946 <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>
5952 Section headings with TOC
5955 === Subheadline 1 ===
5956 ===== Skipping a level =====
5957 ====== Skipping a level ======
5961 ===Another headline===
5963 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5965 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5967 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5969 <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>
5971 <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>
5978 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5980 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5985 <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>
5986 <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>
5987 <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>
5988 <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>
5989 <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>
5992 <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>
5996 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5998 Handling of sections up to level 6 and beyond
6001 == Level 2 Heading==
6002 === Level 3 Heading===
6003 ==== Level 4 Heading====
6004 ===== Level 5 Heading=====
6005 ====== Level 6 Heading======
6006 ======= Level 7 Heading=======
6007 ======== Level 8 Heading========
6008 ========= Level 9 Heading=========
6009 ========== Level 10 Heading==========
6011 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6013 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6015 <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>
6017 <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>
6019 <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>
6021 <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>
6023 <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>
6024 <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>
6025 <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>
6026 <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>
6027 <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>
6040 <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>
6041 <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>
6042 <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>
6043 <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>
6044 <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>
6045 <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>
6046 <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>
6047 <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>
6048 <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>
6049 <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>
6054 TOC regression (bug 9764)
6058 ==== title 1.1.1 ====
6063 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6065 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6067 <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>
6069 <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>
6072 <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>
6075 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6077 <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>
6082 <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>
6083 <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>
6084 <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>
6085 <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>
6086 <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>
6087 <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>
6092 TOC with wgMaxTocLevel=3 (bug 6204)
6098 ==== title 1.1.1 ====
6103 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6105 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6107 <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>
6108 <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>
6111 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6113 <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>
6118 <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>
6119 <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>
6120 <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>
6121 <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>
6122 <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>
6123 <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>
6128 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6134 ====Section 1.1.1====
6135 ====Section 1.1.1.1====
6138 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6140 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6142 <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>
6145 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6148 <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>
6149 <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>
6150 <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>
6151 <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>
6152 <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>
6158 Resolving duplicate section names
6163 <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>
6164 <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>
6169 Resolving duplicate section names with differing case (bug 10721)
6174 <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>
6175 <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>
6187 Template with sections, __NOTOC__
6194 <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>
6195 <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>
6196 <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>
6197 <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>
6202 __NOEDITSECTION__ keyword
6208 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6209 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6214 Link inside a section heading
6216 ==Section with a [[Main Page|link]] in it==
6218 <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>
6223 TOC regression (bug 12077)
6230 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6232 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6234 <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>
6237 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6240 <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>
6241 <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>
6242 <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>
6247 BUG 1219 URL next to image (good)
6249 http://example.com [[Image:foobar.jpg]]
6251 <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>
6256 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6259 The line above must have a trailing space!
6262 But just in case it doesn't...
6264 <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>
6265 <p>The line above must have a trailing space!
6267 <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>
6268 <p>But just in case it doesn't...
6273 Header with special characters (bug 25462)
6275 The tooltips shall not show entities to the user (ie. be double escaped)
6292 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6294 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6296 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6297 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6298 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6299 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6300 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6303 <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>
6306 <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>
6309 <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>
6312 <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>
6315 <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>
6321 Headers with excess '=' characters
6322 (Are similar tests necessary beyond the 1st level?)
6326 =''italic'' heading==
6327 ==''italic'' heading=
6329 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6331 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6332 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6333 <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>
6334 <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>
6337 <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>
6338 <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>
6339 <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>
6340 <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>
6345 BUG 1219 URL next to image (broken)
6347 http://example.com[[Image:foobar.jpg]]
6349 <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>
6354 Bug 1186 news: in the middle of text
6356 http://en.wikinews.org/wiki/Wikinews:Workplace
6358 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6364 Namespaced link must have a title
6373 Namespaced link must have a title (bad fragment version)
6375 [[Project:#fragment]]
6377 <p>[[Project:#fragment]]
6383 div with no attributes
6385 <div>HTML rocks</div>
6387 <div>HTML rocks</div>
6392 div with double-quoted attribute
6394 <div id="rock">HTML rocks</div>
6396 <div id="rock">HTML rocks</div>
6401 div with single-quoted attribute
6403 <div id='rock'>HTML rocks</div>
6405 <div id="rock">HTML rocks</div>
6410 div with unquoted attribute
6412 <div id=rock>HTML rocks</div>
6414 <div id="rock">HTML rocks</div>
6419 div with illegal double attributes
6421 <div id="a" id="b">HTML rocks</div>
6423 <div id="b">HTML rocks</div>
6428 HTML multiple attributes correction
6430 <p class="error" class="awesome">Awesome!</p>
6432 <p class="awesome">Awesome!</p>
6437 Table multiple attributes correction
6440 !+ class="error" class="awesome"| status
6445 <th class="awesome"> status
6453 <DIV ID="x">HTML ROCKS</DIV>
6455 <div id="x">HTML ROCKS</div>
6461 text with amp in the middle of nowhere
6465 <p>Remember AT&T?
6470 text with character entity: eacute
6472 I always thought é was a cute letter.
6474 <p>I always thought é was a cute letter.
6479 text with undefined character entity: xacute
6481 I always thought &xacute; was a cute letter.
6483 <p>I always thought &xacute; was a cute letter.
6495 [[Media:Foobar.jpg]]
6497 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6502 Media link with text
6504 [[Media:Foobar.jpg|A neat file to look at]]
6506 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6510 # FIXME: this is still bad HTML tag nesting
6512 Media link with nasty text
6513 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6515 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6517 <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>
6522 Media link to nonexistent file (bug 1702)
6524 [[Media:No such.jpg]]
6526 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6531 Image link to nonexistent file (bug 1850 - good)
6533 [[Image:No such.jpg]]
6535 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6540 :Image link to nonexistent file (bug 1850 - bad)
6542 [[:Image:No such.jpg]]
6544 <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>
6551 Character reference normalization in link text (bug 1938)
6553 [[Main Page|this&that]]
6555 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6562 Test for unicode normalization
6564 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6568 (bug 19451) Links should refer to the normalized form.
6576 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6577 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6578 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6579 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6580 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6585 Empty attribute crash test (bug 2067)
6587 <font color="">foo</font>
6589 <p><font color="">foo</font>
6594 Empty attribute crash test single-quotes (bug 2067)
6596 <font color=''>foo</font>
6598 <p><font color="">foo</font>
6603 Attribute test: equals, then nothing
6605 <font color=>foo</font>
6612 Attribute test: unquoted value
6614 <font color=x>foo</font>
6616 <p><font color="x">foo</font>
6621 Attribute test: unquoted but illegal value (hash)
6623 <font color=#x>foo</font>
6625 <p><font color="#x">foo</font>
6630 Attribute test: no value
6632 <font color>foo</font>
6634 <p><font color="color">foo</font>
6639 Bug 2095: link with three closing brackets
6643 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6648 Bug 2095: link with pipe and three closing brackets
6652 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6657 Bug 2095: link with pipe and three closing brackets, version 2
6659 [[Main Page|[http://example.com/]]]
6661 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6671 Template:Dangerous attribute
6673 " onmouseover="alert(document.cookie)
6677 Template:Dangerous style attribute
6679 border-size: expression(alert(document.cookie))
6685 <div style="float: right; {{{1}}}">Magic div</div>
6689 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6691 <div title="{{test}}"></div>
6693 <div title="This is a test template"></div>
6698 Bug 2304: HTML attribute safety (dangerous template; 2309)
6700 <div title="{{dangerous attribute}}"></div>
6702 <div title=""></div>
6707 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6709 <div style="{{dangerous style attribute}}"></div>
6711 <div style="/* insecure input */"></div>
6716 Bug 2304: HTML attribute safety (safe parameter; 2309)
6718 {{div style|width: 200px}}
6720 <div style="float: right; width: 200px">Magic div</div>
6725 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6727 {{div style|width: expression(alert(document.cookie))}}
6729 <div style="/* insecure input */">Magic div</div>
6734 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6736 {{div style|"><script>alert(document.cookie)</script>}}
6738 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6743 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6745 {{div style|" ><script>alert(document.cookie)</script>}}
6747 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6752 Bug 2304: HTML attribute safety (link)
6754 <div title="[[Main Page]]"></div>
6756 <div title="[[Main Page]]"></div>
6761 Bug 2304: HTML attribute safety (italics)
6763 <div title="''foobar''"></div>
6765 <div title="''foobar''"></div>
6770 Bug 2304: HTML attribute safety (bold)
6772 <div title="'''foobar'''"></div>
6774 <div title="'''foobar'''"></div>
6780 Bug 2304: HTML attribute safety (ISBN)
6782 <div title="ISBN 1234567890"></div>
6784 <div title="ISBN 1234567890"></div>
6789 Bug 2304: HTML attribute safety (RFC)
6791 <div title="RFC 1234"></div>
6793 <div title="RFC 1234"></div>
6798 Bug 2304: HTML attribute safety (PMID)
6800 <div title="PMID 1234567890"></div>
6802 <div title="PMID 1234567890"></div>
6807 Bug 2304: HTML attribute safety (web link)
6809 <div title="http://example.com/"></div>
6811 <div title="http://example.com/"></div>
6816 Bug 2304: HTML attribute safety (named web link)
6818 <div title="[http://example.com/ link]"></div>
6820 <div title="[http://example.com/ link]"></div>
6825 Bug 3244: HTML attribute safety (extension; safe)
6827 <div style="<nowiki>background:blue</nowiki>"></div>
6829 <div style="background:blue"></div>
6834 Bug 3244: HTML attribute safety (extension; unsafe)
6836 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6838 <div style="/* insecure input */"></div>
6842 # More MSIE fun discovered by Tom Gilder
6845 MSIE CSS safety test: spurious slash
6847 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6849 <div style="/* insecure input */">evil</div>
6854 MSIE CSS safety test: hex code
6856 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6858 <div style="/* insecure input */">evil</div>
6863 MSIE CSS safety test: comment in url
6865 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6867 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6872 MSIE CSS safety test: comment in expression
6874 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6876 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6882 Table attribute legitimate extension
6885 !+ style="<nowiki>color:blue</nowiki>"| status
6890 <th style="color:blue"> status
6896 Table attribute safety
6899 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6904 <th style="/* insecure input */"> status
6910 CSS line continuation 1
6912 <div style="background-image: u\ rl(test.jpg);"></div>
6914 <div style="/* insecure input */"></div>
6919 CSS line continuation 2
6921 <div style="background-image: u\ rl(test.jpg); "></div>
6923 <div style="/* insecure input */"></div>
6934 Expansion of multi-line templates in attribute values (bug 6255)
6936 <div style="background: {{identity|#00FF00}}">-</div>
6938 <div style="background: #00FF00">-</div>
6944 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6946 <div style="background:
6949 <div style="background: #00FF00">-</div>
6954 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6956 <div style="background: #00FF00">-</div>
6958 <div style="background: #00FF00">-</div>
6963 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6966 Parser hook: empty input
6979 Parser hook: empty input using terminated empty elements
6992 Parser hook: empty input using terminated empty elements (space before)
7005 Parser hook: basic input
7019 Parser hook: case insensitive
7033 Parser hook: case insensitive, redux
7046 Parser hook: nested tags
7050 <tag><tag></tag></tag>
7061 Parser hook: basic arguments
7063 <tag width=200 height = "100" depth = '50' square></tag>
7082 Parser hook: argument containing a forward slash (bug 5344)
7084 <tag filename='/tmp/bla'></tag>
7090 string(8) "/tmp/bla"
7097 Parser hook: empty input using terminated empty elements (bug 2374)
7111 # </tag> should be output literally since there is no matching tag that begins it
7113 Parser hook: basic arguments using terminated empty elements (bug 2374)
7115 <tag width=200 height = "100" depth = '50' square/>
7138 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7142 Parser hook: static parser hook not inside a comment
7144 <statictag>hello, world</statictag>
7145 <statictag action=flush/>
7153 Parser hook: static parser hook inside a comment
7155 <!-- <statictag>hello, world</statictag> -->
7156 <statictag action=flush/>
7162 # Nested template calls; this case was broken by Parser.php rev 1.506,
7166 Template:One-parameter
7168 (My parameter is: {{{1}}})
7172 Template:Map-one-parameter
7178 Nested template calls
7180 {{Map-one-parameter|One-parameter|param}}
7182 <p>(My parameter is: param)
7191 Sanitizer: Closing of open tags
7193 <s></s><table></table>
7195 <s></s><table></table>
7200 Sanitizer: Closing of open but not closed tags
7209 Sanitizer: Closing of closed but not open tags
7218 Sanitizer: Closing of closed but not open table tags
7220 Table not started</td></tr></table>
7222 <p>Table not started</td></tr></table>
7227 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7229 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7231 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7236 Sanitizer: Validating the contents of the id attribute (bug 4515)
7242 Something, but definitely not <br id="9" />...
7246 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7250 <br id="foo" /><br id="foo" />
7252 Something need to be done. foo-2 ?
7256 Language converter: output gets cut off unexpectedly (bug 5757)
7260 this bit is safe: }-
7262 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7264 then we get cut off here: }-
7266 all additional text is vanished
7268 <p>this bit is safe: }-
7269 </p><p>but if we add a conversion instance: xxx
7270 </p><p>then we get cut off here: }-
7271 </p><p>all additional text is vanished
7276 Self closed html pairs (bug 5487)
7279 <center><font id="bug" />Centered text</center>
7280 <div><font id="bug2" />In div text</div>
7282 <center><font id="bug" />Centered text</center>
7283 <div><font id="bug2" />In div text</div>
7292 Punctuation: nbsp before exclamation
7296 <p>C'est grave !
7301 Punctuation: CSS !important (bug 11874)
7303 <div style="width:50% !important">important</div>
7305 <div style="width:50% !important">important</div>
7310 Punctuation: CSS ! important (bug 11874; with space after)
7312 <div style="width:50% ! important">important</div>
7314 <div style="width:50% ! important">important</div>
7320 HTML bullet list, closed tags (bug 5497)
7335 HTML bullet list, unclosed tags (bug 5497)
7352 HTML ordered list, closed tags (bug 5497)
7367 HTML ordered list, unclosed tags (bug 5497)
7384 HTML nested bullet list, closed tags (bug 5497)
7409 HTML nested bullet list, open tags (bug 5497)
7434 HTML nested ordered list, closed tags (bug 5497)
7459 HTML nested ordered list, open tags (bug 5497)
7484 HTML ordered list item with parameters oddity
7486 <ol><li id="fragment">One</li></ol>
7488 <ol><li id="fragment">One</li></ol>
7493 bug 5918: autonumbering
7495 [http://first/] [http://second] [ftp://ftp]
7499 [mailto:enclosed@mail.tld With target]
7501 [mailto:enclosed@mail.tld]
7503 mailto:inline@mail.tld
7505 <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>
7506 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7507 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7508 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7509 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7515 # Security and HTML correctness
7516 # From Nick Jenkins' fuzz testing
7520 Fuzz testing: Parser13
7535 Fuzz testing: Parser14
7540 <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>
7541 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7543 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7550 Fuzz testing: Parser14-table
7555 <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>
7556 <table style="__TOC__">
7562 # Known to produce bogus xml (extra </td>)
7564 Fuzz testing: Parser16
7584 Fuzz testing: Parser21
7587 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7592 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7602 Fuzz testing: Parser22
7604 http://===r:::https://b
7608 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7616 # Known to produce bad XML for now
7618 Fuzz testing: Parser24
7625 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7626 <br style="onmouseover='alert(document.cookie);' " />
7628 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7633 <u class="|">}}}} >
7634 <br style="onmouseover='alert(document.cookie);'" />
7636 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7645 # Note: the current result listed for this is not what the original one was,
7646 # but the original bug was JavaScript injection, which is fixed in any case.
7647 # It's not clear that the original result listed was any more correct than the
7648 # current one. Original result:
7651 # <li class="||">
7652 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7654 Fuzz testing: Parser25 (bug 6055)
7660 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7662 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7667 Fuzz testing: URL adjacent extension (with space, clean)
7670 http://example.com <nowiki>junk</nowiki>
7672 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7677 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7680 http://example.com<nowiki>junk</nowiki>
7682 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7687 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7690 http://example.com<pre>junk</pre>
7692 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7697 Fuzz testing: image with bogus manual thumbnail
7699 [[Image:foobar.jpg|thumbnail= ]]
7701 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7706 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7708 <pre dir=" "></pre>
7710 <pre dir=" "></pre>
7715 Parsing optional HTML elements (Bug 6171)
7720 <td> Some tabular data</td>
7721 <td> More tabular data ...
7722 <td> And yet som tabular data</td>
7728 <td> Some tabular data</td>
7729 <td> More tabular data ...
7730 </td><td> And yet som tabular data</td>
7737 Correct handling of <td>, <tr> (Bug 6171)
7742 <td> Some tabular data</td>
7743 <td> More tabular data ...</td>
7744 <td> And yet som tabular data</td>
7750 <td> Some tabular data</td>
7751 <td> More tabular data ...</td>
7752 <td> And yet som tabular data</td>
7760 Parsing crashing regression (fr:JavaScript)
7764 <p></body></x>
7769 Inline wiki vs wiki block nesting
7775 <p><b>Bold paragraph</b>
7776 </p><p>New wiki paragraph
7781 Inline HTML vs wiki block nesting
7789 <p><b>Bold paragraph</b>
7790 </p><p>New wiki paragraph
7794 # Original result was this:
7795 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7797 # While that might be marginally more intuitive, maybe, the six-apostrophe
7798 # construct is clearly pathological and the result stated here (which is what
7799 # the parser actually does) is about as reasonable as anything.
7801 Mixing markup for italics and bold
7804 '''bold''''''bold''bolditalics'''''
7806 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7814 Article for special page transclusion test
7818 Special page transclusion
7821 {{Special:Prefixindex/Xyzzyx}}
7823 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7828 Special page transclusion twice (bug 5021)
7831 {{Special:Prefixindex/Xyzzyx}}
7832 {{Special:Prefixindex/Xyzzyx}}
7834 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7835 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7840 Transclusion of default MediaWiki message
7842 {{MediaWiki:Mainpage}}
7849 Transclusion of nonexistent MediaWiki message
7851 {{MediaWiki:Mainpagexxx}}
7853 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7858 Transclusion of MediaWiki message with underscore
7860 {{MediaWiki:history_short}}
7867 Transclusion of MediaWiki message with space
7869 {{MediaWiki:history short}}
7876 Invalid header with following text
7886 Section extraction test (section 0)
7906 Section extraction test (section 1)
7928 Section extraction test (section 2)
7949 Section extraction test (section 3)
7969 Section extraction test (section 4)
7993 Section extraction test (section 5)
8013 Section extraction test (section 6)
8034 Section extraction test (section 7)
8054 Section extraction test (section 8)
8074 Section extraction test (section 9)
8095 Section extraction test (section 10)
8115 Section extraction test (nonexistent section 11)
8134 Section extraction test with bogus heading (section 1)
8139 ==bogus== not a legal section
8143 ==bogus== not a legal section
8147 Section extraction test with bogus heading (section 2)
8152 ==bogus== not a legal section
8159 Section extraction test with comment after heading (section 1)
8171 Section extraction test with comment after heading (section 2)
8183 Section extraction test with bogus <nowiki> heading (section 1)
8188 ==bogus== <nowiki>not a legal section</nowiki>
8192 ==bogus== <nowiki>not a legal section</nowiki>
8196 Section extraction test with bogus <nowiki> heading (section 2)
8201 ==bogus== <nowiki>not a legal section</nowiki>
8208 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8209 # instead of respecting commented sections
8211 Section extraction prefixed by comment (section 1)
8222 Section extraction prefixed by comment (section 2)
8233 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8234 # instead of respecting HTML-style headings
8236 Section extraction, mixed wiki and html (section 1)
8252 Section extraction, mixed wiki and html (section 2)
8268 # Formerly testing for bug 3342
8270 Section extraction, heading surrounded by <noinclude>
8274 <noinclude>==unmarked==</noinclude>
8280 # Test behaviour of bug 19910
8282 Sectiion with all-equals
8287 The line above must have a trailing space
8290 But just in case it doesn't...
8294 But just in case it doesn't...
8298 Section replacement test (section 0)
8329 Section replacement test (section 1)
8358 Section replacement test (section 2)
8388 Section replacement test (section 3)
8419 Section replacement test (section 4)
8446 Section replacement test (section 5)
8477 Section replacement test (section 6)
8507 Section replacement test (section 7)
8538 Section replacement test (section 8)
8569 Section replacement test (section 9)
8598 Section replacement test (section 10)
8628 Section replacement test with initial whitespace (bug 13728)
8632 Preformatted initial line
8636 Preformatted initial line
8643 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8655 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8668 Section extraction, <pre> around bogus header (bug 10309)
8685 Section replacement, <pre> around bogus header (bug 10309)
8687 noxml replace=2,"xxx"
8708 Handling of 
 in URLs
8712 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8719 5 quotes, code coverage +1 line
8726 Special:Search page linking.
8730 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8745 * {{SUBJECTPAGENAME}}
8746 * {{SUBJECTPAGENAMEE}}
8753 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8755 <ul><li> Parser test
8756 </li><li> Parser test
8757 </li><li> Parser test
8758 </li><li> Parser_test
8759 </li><li> Parser test
8760 </li><li> Parser_test
8761 </li><li> Talk:Parser test
8762 </li><li> Talk:Parser_test
8763 </li><li> Parser test
8764 </li><li> Parser_test
8771 </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>
8775 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8785 image4 |300px| centre
8786 image5.svg| http://///////
8791 <ul class="gallery">
8792 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8793 <div style="height: 150px;">Image1.png</div>
8794 <div class="gallerytext">
8797 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8798 <div style="height: 150px;">Image2.gif</div>
8799 <div class="gallerytext">
8804 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8805 <div style="height: 150px;">Image3</div>
8806 <div class="gallerytext">
8809 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8810 <div style="height: 150px;">Image4</div>
8811 <div class="gallerytext">
8816 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8817 <div style="height: 150px;">Image5.svg</div>
8818 <div class="gallerytext">
8819 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8823 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8824 <div style="height: 150px;">* image6</div>
8825 <div class="gallerytext">
8833 Gallery (with options)
8835 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8836 File:Nonexistant.jpg|caption
8837 File:Nonexistant.jpg
8838 image:foobar.jpg|some '''caption''' [[Main Page]]
8840 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8843 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8844 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8845 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8846 <div style="height: 70px;">Nonexistant.jpg</div>
8847 <div class="gallerytext">
8852 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8853 <div style="height: 70px;">Nonexistant.jpg</div>
8854 <div class="gallerytext">
8857 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8858 <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/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
8859 <div class="gallerytext">
8860 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8864 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8865 <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/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
8866 <div class="gallerytext">
8869 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8870 <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/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
8871 <div class="gallerytext">
8881 Gallery with wikitext inside caption
8884 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8885 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8888 <ul class="gallery">
8889 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8890 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8891 <div class="gallerytext">
8892 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/3/3a/Foobar.jpg" width="20" height="2" /></a>
8896 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8897 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8898 <div class="gallerytext">
8899 <p>This is a test template
8908 gallery (with showfilename option)
8910 <gallery showfilename>
8911 File:Nonexistant.jpg|caption
8912 File:Nonexistant.jpg
8913 image:foobar.jpg|some '''caption''' [[Main Page]]
8917 <ul class="gallery">
8918 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8919 <div style="height: 150px;">Nonexistant.jpg</div>
8920 <div class="gallerytext">
8921 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8926 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8927 <div style="height: 150px;">Nonexistant.jpg</div>
8928 <div class="gallerytext">
8929 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8933 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8934 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8935 <div class="gallerytext">
8936 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8937 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8941 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8942 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8943 <div class="gallerytext">
8944 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8953 Gallery (with namespace-less filenames)
8956 File:Nonexistant.jpg
8962 <ul class="gallery">
8963 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8964 <div style="height: 150px;">Nonexistant.jpg</div>
8965 <div class="gallerytext">
8968 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8969 <div style="height: 150px;">Nonexistant.jpg</div>
8970 <div class="gallerytext">
8973 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8974 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8975 <div class="gallerytext">
8978 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8979 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8980 <div class="gallerytext">
8988 HTML Hex character encoding (spells the word "JavaScript")
8990 JavaScript
8992 <p>JavaScript
8997 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9001 <p>&#xsee;&#XSEE;
9006 HTML Hex character encoding mixed case
9015 __FORCETOC__ override
9027 ISBN 978-0-1234-56 789
9029 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9034 ISBN followed by 5 spaces
9045 ISBN ISBN 1234567890
9047 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9052 Bug 22905: <abbr> followed by ISBN followed by </a>
9054 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9056 <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>
9065 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9070 Double RFC with a wiki link
9074 <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>
9083 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9088 Centre-aligned image
9090 [[Image:foobar.jpg|centre]]
9092 <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>
9099 [[Image:foobar.jpg|none]]
9101 <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>
9106 Width + Height sized image (using px) (height is ignored)
9108 [[Image:foobar.jpg|640x480px]]
9110 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9115 Width-sized image (using px, no following whitespace)
9117 [[Image:foobar.jpg|640px]]
9119 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9124 Width-sized image (using px, with following whitespace - test regression from r39467)
9126 [[Image:foobar.jpg|640px ]]
9128 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9133 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9135 [[Image:foobar.jpg| 640px]]
9137 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9142 Another italics / bold test
9150 # Note the results may be incorrect, as parserTest output included this:
9151 # XML error: Mismatched tag at byte 6120:
9152 # ...<dd> </dt></dl> </dd...
9160 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9171 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9173 Images with the "|" character in the comment
9175 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9177 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
9182 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9184 <html><script>alert(1);</script></html>
9186 <p><html><script>alert(1);</script></html>
9191 HTML with raw HTML ($wgRawHtml==true)
9195 <html><script>alert(1);</script></html>
9197 <p><script>alert(1);</script>
9202 Parents of subpages, one level up
9204 subpage title=[[Subpage test/L1/L2/L3]]
9208 <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>
9214 Parents of subpages, one level up, not named
9216 subpage title=[[Subpage test/L1/L2/L3]]
9220 <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>
9227 Parents of subpages, two levels up
9229 subpage title=[[Subpage test/L1/L2/L3]]
9235 <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
9236 </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>
9241 Parents of subpages, two levels up, without trailing slash or name.
9243 subpage title=[[Subpage test/L1/L2/L3]]
9252 Parents of subpages, two levels up, with lots of extra trailing slashes.
9254 subpage title=[[Subpage test/L1/L2/L3]]
9258 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9263 Definition list code coverage
9269 <dl><dt> title  </dt><dd> def
9270 </dd><dt> title </dt><dd> def
9271 </dd><dt>title</dt><dd> def
9277 Don't fall for the self-closing div
9279 <div>hello world</div/>
9281 <div>hello world</div>
9290 <p>[[:Template:Msg]]
9299 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9303 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9305 Always escape literal '>' in output, not just after '<'
9319 <p>This is a test template
9320 This is a test template
9332 Inclusion of !userCanEdit() content
9336 <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>
9342 Out-of-order TOC heading levels
9351 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9353 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9355 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9356 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9359 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9361 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9362 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9367 <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>
9368 <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>
9369 <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>
9370 <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>
9371 <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>
9372 <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>
9378 ISBN with a dummy number
9388 ISBN with space-delimited number
9392 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9398 ISBN with multiple spaces, no number
9417 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9418 </p><p>ISBN 12345678901
9424 ISBN with trailing year (bug 8110)
9426 ISBN 1-234-56789-0 - 2006
9428 ISBN 1 234 56789 0 - 2006
9430 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9431 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9439 {{anchorencode:foo bar©#%n}}
9441 <p>foo_bar.C2.A9.23.25n
9446 anchorencode trims spaces
9448 {{anchorencode: __pretty__please__}}
9455 anchorencode deals with links
9457 {{anchorencode: [[hello|world]] [[hi]]}}
9464 anchorencode deals with templates
9466 {{anchorencode: {{Foo}} }}
9473 anchorencode encodes like the TOC generator: (bug 18431)
9475 === _ +:.3A%3A&&]] ===
9476 {{anchorencode: _ +:.3A%3A&&]] }}
9479 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9480 <p>.2B:.3A.253A.26.26.5D.5D
9484 # Expected output in the following test is not necessarily expected (there
9485 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9486 # only testing for well-formedness.
9488 Bug 6200: blockquotes and paragraph formatting
9508 Bug 8293: Use of center tag ruins paragraph formatting
9530 ### Language variants related tests
9533 Self-link in language variants
9535 title=[[Dunav]] language=sr
9537 Both [[Dunav]] and [[Дунав]] are names for this river.
9539 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9545 Link to pages in language variants
9549 Main Page can be written as [[Маин Паге]]
9551 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9557 Multiple links to pages in language variants
9561 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9563 <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>.
9569 Simple template in language variants
9575 <p>This is a test template
9581 Template with explicit namespace in language variants
9587 <p>This is a test template
9593 Basic test for template parameter in language variants
9597 {{парамтест|param=foo}}
9599 <p>This is a test template with parameter foo
9605 Simple category in language variants
9609 [[Category:МедиаWики Усер'с Гуиде]]
9611 <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>
9616 Stripping -{}- tags (language variants)
9620 Latin proverb: -{Ne nuntium necare}-
9622 <p>Latin proverb: Ne nuntium necare
9628 Prevent conversion with -{}- tags (language variants)
9630 language=sr variant=sr-ec
9632 Latinski: -{Ne nuntium necare}-
9634 <p>Латински: Ne nuntium necare
9640 Prevent conversion of text with -{}- tags (language variants)
9642 language=sr variant=sr-ec
9644 Latinski: -{Ne nuntium necare}-
9646 <p>Латински: Ne nuntium necare
9652 Prevent conversion of links with -{}- tags (language variants)
9654 language=sr variant=sr-ec
9658 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9664 -{}- tags within headlines (within html for parserConvert())
9666 language=sr variant=sr-ec
9670 <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>
9676 Explicit definition of language variant alternatives
9678 language=zh variant=zh-tw
9680 -{zh:China;zh-tw:Taiwan}-, not China
9682 <p>Taiwan, not China
9688 Explicit session-wise language variant mapping (A flag and - flag)
9690 language=zh variant=zh-tw
9692 Taiwan is not China.
9693 But -{A|zh:China;zh-tw:Taiwan}- is China,
9694 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9695 and -{China}- is China.
9697 <p>Taiwan is not China.
9698 But Taiwan is Taiwan,
9699 (This should be stripped!)
9705 Explicit session-wise language variant mapping (H flag for hide)
9707 language=zh variant=zh-tw
9709 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9712 <p>(This should be stripped!)
9718 Adding explicit conversion rule for title (T flag)
9720 language=zh variant=zh-tw showtitle
9722 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9725 <p>Should be stripped!
9730 Testing that changing the language variant here in the tests actually works
9732 language=zh variant=zh showtitle
9734 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9737 <p>Should be stripped!
9742 Bug 24072: more test on conversion rule for title
9744 language=zh variant=zh-tw showtitle
9746 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9747 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9750 <p>This should be stripped!
9751 This won't take interferes with the title rule.
9756 Raw output of variant escape tags (R flag)
9758 language=zh variant=zh-tw
9760 Raw: -{R|zh:China;zh-tw:Taiwan}-
9762 <p>Raw: zh:China;zh-tw:Taiwan
9767 Nested using of manual convert syntax
9769 language=zh variant=zh-hk
9771 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9773 <p>Nested: Hello Hong Kong!
9778 Do not convert roman numbers to language variants
9780 language=sr variant=sr-ec
9784 <p>Фридрих IV је цар.
9789 Unclosed language converter markup "-{"
9800 Don't convert raw rule "-{R|=>}-" to "=>"
9817 Bug 529: Uncovered bullet
9828 Bug 529: Uncovered table already at line-start
9851 Bug 529: Uncovered bullet in parser function result
9853 * Foo {{lc:{{bullet}} }}
9862 Bug 5678: Double-parsed template argument
9864 {{lc:{{{1}}}|hello}}
9871 Bug 5678: Double-parsed template invocation
9873 {{lc:{{paramtest {{!}} param = hello }} }}
9875 <p>{{paramtest | param = hello }}
9880 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9906 Morwen/13: Unclosed link followed by heading
9913 <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>
9918 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9925 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9930 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9937 <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>
9952 Paragraphs inside divs (no extra line breaks)
9964 Paragraphs inside divs (extra line break on open)
9979 Paragraphs inside divs (extra line break on close)
9994 Paragraphs inside divs (extra line break on open and close)
10011 Nesting tags, paragraphs on lines which begin with <div>
10015 <div></div><strong>A
10024 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10026 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10030 <blockquote>Line one
10032 Line two</blockquote>
10034 <blockquote>Line one
10035 Line two</blockquote>
10040 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10047 Line two</blockquote>
10052 Line two</blockquote>
10057 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10061 <blockquote>Line one
10066 <blockquote>Line one
10074 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10093 Paragraphs inside blockquotes/divs (no extra line breaks)
10095 <blockquote><div>Line one
10097 Line two</div></blockquote>
10099 <blockquote><div>Line one
10100 Line two</div></blockquote>
10105 Paragraphs inside blockquotes/divs (extra line break on open)
10110 Line two</div></blockquote>
10115 Line two</div></blockquote>
10120 Paragraphs inside blockquotes/divs (extra line break on close)
10122 <blockquote><div>Line one
10125 </div></blockquote>
10127 <blockquote><div>Line one
10130 </div></blockquote>
10135 Paragraphs inside blockquotes/divs (extra line break on open and close)
10141 </div></blockquote>
10147 </div></blockquote>
10152 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10154 wgLinkHolderBatchSize=0
10160 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10161 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10162 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10167 Free external link invading image caption
10169 [[Image:Foobar.jpg|thumb|http://x|hello]]
10171 <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/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></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>
10176 Bug 15196: localised external link numbers
10180 [http://en.wikipedia.org/]
10182 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10187 Multibyte character in padleft
10189 {{padleft:-Hello|7|Æ}}
10196 Multibyte character in padright
10198 {{padright:Hello-|7|Æ}}
10207 wgUseDynamicDates=1
10211 <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>
10216 formatdate parser function
10218 {{#formatdate:2009-03-24}}
10220 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10225 formatdate parser function, with default format
10227 {{#formatdate:2009-03-24|mdy}}
10229 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10234 Linked date with autoformatting disabled
10236 wgUseDynamicDates=false
10240 <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>
10245 Spacing of numbers in formatted dates
10247 {{#formatdate:January 15}}
10249 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10254 Spacing of numbers in formatted dates (linked)
10256 wgUseDynamicDates=true
10260 <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>
10265 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
10267 language=nl title=[[MediaWiki:Common.css]]
10269 {{#formatdate:2009-03-24|dmy}}
10271 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10284 Edit comment with link
10288 I like the [[Main Page]] a lot
10290 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10294 Edit comment with link and link text
10298 I like the [[Main Page|best pages]] a lot
10300 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10304 Edit comment with link and link text with suffix
10308 I like the [[Main Page|best page]]s a lot
10310 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10314 Edit comment with section link (non-local, eg in history list)
10316 comment title=[[Main Page]]
10318 /* External links */ removed bogus entries
10320 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10324 Edit comment with section link and text before it (non-local, eg in history list)
10326 comment title=[[Main Page]]
10328 pre-comment text /* External links */ removed bogus entries
10330 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>
10334 Edit comment with section link (local, eg in diff view)
10336 comment local title=[[Main Page]]
10338 /* External links */ removed bogus entries
10340 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10344 Edit comment with subpage link (bug 14080)
10348 title=[[Subpage test]]
10350 Poked at a [[/subpage]] here...
10352 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10356 Edit comment with subpage link and link text (bug 14080)
10360 title=[[Subpage test]]
10362 Poked at a [[/subpage|neat little page]] here...
10364 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10368 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10371 title=[[Subpage test]]
10373 Poked at a [[/subpage]] here...
10375 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10379 Edit comment with bare anchor link (local, as on diff)
10383 title=[[Main Page]]
10387 <a href="#section">#section</a>
10391 Edit comment with bare anchor link (non-local, as on history)
10394 title=[[Main Page]]
10398 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10402 Anchor starting with underscore
10406 <p><a href="#_ref">One</a>
10411 Id starting with underscore
10413 <div id="_ref"></div>
10415 <div id="_ref"></div>
10420 Space normalisation on autocomment (bug 22784)
10423 title=[[Main Page]]
10425 /* __hello__world__ */
10427 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10431 percent-encoding and + signs in comments (Bug 26410)
10435 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10437 <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>
10441 Bad images - basic functionality
10450 Bad images - bug 16039: text after bad image disappears
10464 Verify that displaytitle works (bug #22501) no displaytitle
10468 wgAllowDisplayTitle=true
10469 wgRestrictDisplayTitle=false
10471 this is not the the title
10474 <p>this is not the the title
10479 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10484 wgAllowDisplayTitle=true
10485 wgRestrictDisplayTitle=false
10487 this is not the the title
10488 {{DISPLAYTITLE:whatever}}
10491 <p>this is not the the title
10496 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10501 wgAllowDisplayTitle=true
10502 wgRestrictDisplayTitle=true
10504 this is not the the title
10505 {{DISPLAYTITLE:whatever}}
10508 <p>this is not the the title
10513 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10518 wgAllowDisplayTitle=true
10519 wgRestrictDisplayTitle=true
10521 this is not the the title
10522 {{DISPLAYTITLE:screen}}
10525 <p>this is not the the title
10530 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10535 wgAllowDisplayTitle=false
10537 this is not the the title
10538 {{DISPLAYTITLE:screen}}
10541 <p>this is not the the title
10542 <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>
10547 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10552 wgAllowDisplayTitle=false
10554 this is not the the title
10557 <p>this is not the the title
10562 preload: check <noinclude> and <includeonly>
10566 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10572 preload: check <onlyinclude>
10576 Goodbye <onlyinclude>Hello world</onlyinclude>
10582 preload: can pass tags through if we want to
10586 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10588 <includeonly>Hello world</includeonly>
10592 preload: check that it doesn't try to do tricks
10596 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10598 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10602 Play a bit with r67090 and bug 3158
10606 <div style="width:50% !important"> </div>
10607 <div style="width:50% !important"> </div>
10608 <div style="width:50% !important"> </div>
10609 <div style="border : solid;"> </div>
10611 <div style="width:50% !important"> </div>
10612 <div style="width:50% !important"> </div>
10613 <div style="width:50% !important"> </div>
10614 <div style="border : solid;"> </div>
10619 HTML5 data attributes
10621 <span data-foo="bar">Baz</span>
10622 <p data-abc-def_hij="">Quuz</p>
10624 <p><span data-foo="bar">Baz</span>
10626 <p data-abc-def_hij="">Quuz</p>
10631 percent-encoding and + signs in internal links (Bug 26410)
10633 [[User:+%]] [[Page+title%]]
10634 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10635 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10636 [[%33%45]] [[%33%45+]]
10638 <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>
10639 <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>
10640 <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>
10641 <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>
10646 Special characters in embedded file links (bug 27679)
10648 [[File:Contains & ampersand.jpg]]
10649 [[File:Does not exist.jpg|Title with & ampersand]]
10651 <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>
10652 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10658 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10660 Text's been normalized?
10662 <p>Text's been normalized?
10667 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10669 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10671 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10676 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10678 [http://www.example.org/ ideograms]
10680 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10685 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10687 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10689 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10713 Bug 31098 Template which includes system messages which includes the template
10717 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10718 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10723 Deprecated presentational attributes are converted to css
10726 | valign=top align=left width=100 height=25% | Asdf
10728 <ul type="disc"></ul>
10732 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10734 <ul style="list-style-type: disc;"></ul>
10739 Bug31490 Turkish: ucfirst 'blah'
10750 Bug31490 Turkish: ucfirst 'ix'
10761 Bug31490 Turkish: lcfirst 'BLAH'
10772 Bug31490 Turkish: ucfırst (with a dotless i)
10778 <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>
10783 Bug31490 ucfırst (with a dotless i) with English language
10789 <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>
10794 Bug 26375: TOC with italics
10796 title=[[Main Page]]
10799 == ''Lost'' episodes ==
10801 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10803 <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>
10806 <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>
10811 Bug 26375: TOC with bold
10813 title=[[Main Page]]
10816 == '''should be bold''' then normal text ==
10818 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10820 <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>
10823 <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>
10828 Bug 33845: Headings become cursive in TOC when they contain an image
10830 title=[[Main Page]]
10833 == Image [[Image:foobar.jpg]] ==
10835 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10837 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10840 <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>
10845 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10847 title=[[Main Page]]
10850 == <blockquote>Quote</blockquote> ==
10852 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10854 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10857 <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>
10862 Unclosed tags in TOC
10864 title=[[Main Page]]
10868 <small>Hanc marginis exiguitas non caperet.</small>
10871 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10873 <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>
10876 <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>
10877 <p><small>Hanc marginis exiguitas non caperet.</small>
10883 Multiple tags in TOC
10886 == <i>Foo</i> <b>Bar</b> ==
10888 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10890 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10892 <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>
10893 <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>
10896 <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>
10897 <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>
10902 Tags with parameters in TOC
10905 == <sup class="in-h2">Hello</sup> ==
10907 == <sup class="a > b">Evilbye</sup> ==
10909 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10911 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10912 <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>
10915 <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>
10916 <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>
10921 span tags with directionality in TOC
10924 == <span dir="ltr">C++</span> ==
10926 == <span dir="rtl">זבנג!</span> ==
10928 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10930 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10932 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10934 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10936 <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>
10937 <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>
10938 <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>
10939 <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>
10940 <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>
10943 <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>
10944 <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>
10945 <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>
10946 <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>
10947 <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>
10954 == {{int:headline_sample}} ==
10958 Bug 32057: Title needed when expanding <h> nodes.
10960 title=[[Main Page]]
10964 <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>
10969 Strip marker in urlencode
10971 {{urlencode:x<nowiki/>y}}
10972 {{urlencode:x<nowiki/>y|wiki}}
10973 {{urlencode:x<nowiki/>y|path}}
11000 Strip marker in formatNum
11002 {{formatnum:1<nowiki/>2}}
11003 {{formatnum:1<nowiki/>2|R}}
11011 Strip marker in grammar
11015 {{grammar:elative|foo<nowiki/>bar}}
11022 Strip marker in padleft
11024 {{padleft:|2|x<nowiki/>y}}
11031 Strip marker in padright
11033 {{padright:|2|x<nowiki/>y}}
11040 Strip marker in anchorencode
11042 {{anchorencode:x<nowiki/>y}}
11049 nowiki inside link inside heading (bug 18295)
11051 ==[[foo|x<nowiki>y</nowiki>z]]==
11053 <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>
11058 new support for bdi element (bug 31817)
11060 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11062 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11067 Ignore pipe between table row attributes
11071 |- id=foo | style='color: red'
11079 <tr id="foo" style="color: red">
11086 Gallery override link with WikiLink (bug 34852)
11089 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11092 <ul class="gallery">
11093 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11094 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
11095 <div class="gallerytext">
11105 Gallery override link with absolute external link (bug 34852)
11108 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11111 <ul class="gallery">
11112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11113 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
11114 <div class="gallerytext">
11124 Gallery override link with malicious javascript (bug 34852)
11127 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11130 <ul class="gallery">
11131 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11132 <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/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
11133 <div class="gallerytext">
11143 Language parser function
11152 Padleft and padright as substr
11154 {{padleft:|3|abcde}}
11155 {{padright:|3|abcde}}
11163 Bug 34939 - Case insensitive link parsing ([HttP://])
11165 [HttP://MediaWiki.Org/]
11167 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11172 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11174 [HttP://MediaWiki.Org/ MediaWiki]
11176 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11181 Bug 34939 - Case insensitive link parsing (HttP://)
11183 HttP://MediaWiki.Org/
11185 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11190 ### Parsoids-specific tests
11191 ### Parsoid-PHP parser incompatibilities
11194 1. SOL-sensitive wikitext tokens as template-args
11213 Try for 100% code coverage