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]]
87 This is a simple paragraph.
89 <p>This is a simple paragraph.
94 Paragraphs with extra newline spacing
132 * plain''italic''plain
133 * plain''italic''plain''italic''plain
134 * plain'''bold'''plain
135 * plain'''bold'''plain'''bold'''plain
136 * plain''italic''plain'''bold'''plain
137 * plain'''bold'''plain''italic''plain
138 * plain''italic'''bold-italic'''italic''plain
139 * plain'''bold''bold-italic''bold'''plain
140 * plain'''''bold-italic'''italic''plain
141 * plain'''''bold-italic''bold'''plain
142 * plain''italic'''bold-italic'''''plain
143 * plain'''bold''bold-italic'''''plain
144 * plain l'''italic''plain
145 * plain l''''bold''' plain
148 </li><li> plain<i>italic</i>plain
149 </li><li> plain<i>italic</i>plain<i>italic</i>plain
150 </li><li> plain<b>bold</b>plain
151 </li><li> plain<b>bold</b>plain<b>bold</b>plain
152 </li><li> plain<i>italic</i>plain<b>bold</b>plain
153 </li><li> plain<b>bold</b>plain<i>italic</i>plain
154 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
155 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
156 </li><li> plain<i><b>bold-italic</b>italic</i>plain
157 </li><li> plain<b><i>bold-italic</i>bold</b>plain
158 </li><li> plain<i>italic<b>bold-italic</b></i>plain
159 </li><li> plain<b>bold<i>bold-italic</i></b>plain
160 </li><li> plain l'<i>italic</i>plain
161 </li><li> plain l'<b>bold</b> plain
167 ### 2-quote opening sequence tests
170 Italics and bold: 2-quote opening sequence: (2,2)
180 Italics and bold: 2-quote opening sequence: (2,3)
190 Italics and bold: 2-quote opening sequence: (2,4)
200 Italics and bold: 2-quote opening sequence: (2,5)
210 ### 3-quote opening sequence tests
214 Italics and bold: 3-quote opening sequence: (3,2)
224 Italics and bold: 3-quote opening sequence: (3,3)
234 Italics and bold: 3-quote opening sequence: (3,4)
244 Italics and bold: 3-quote opening sequence: (3,5)
254 ### 4-quote opening sequence tests
258 Italics and bold: 4-quote opening sequence: (4,2)
268 Italics and bold: 4-quote opening sequence: (4,3)
278 Italics and bold: 4-quote opening sequence: (4,4)
288 Italics and bold: 4-quote opening sequence: (4,5)
298 ### 5-quote opening sequence tests
302 Italics and bold: 5-quote opening sequence: (5,2)
312 Italics and bold: 5-quote opening sequence: (5,3)
322 Italics and bold: 5-quote opening sequence: (5,4)
326 <p><i><b>foo'</b></i>
332 Italics and bold: 5-quote opening sequence: (5,5)
341 ### multiple quote sequences in a line
344 Italics and bold: multiple quote sequences: (2,4,2)
348 <p><i>foo'<b>bar</b></i>
354 Italics and bold: multiple quote sequences: (2,4,3)
358 <p><i>foo'<b>bar</b></i>
364 Italics and bold: multiple quote sequences: (2,4,4)
368 <p><i>foo'<b>bar'</b></i>
374 Italics and bold: multiple quote sequences: (3,4,2)
384 Italics and bold: multiple quote sequences: (3,4,3)
393 ### other quote tests
396 Italics and bold: other quote tests: (2,3,5)
398 ''this is about '''foo's family'''''
400 <p><i>this is about <b>foo's family</b></i>
406 Italics and bold: other quote tests: (2,(3,3),2)
408 ''this is about '''foo's''' family''
410 <p><i>this is about <b>foo's</b> family</i>
416 Italics and bold: other quote tests: (3,2,3,2)
418 '''this is about ''foo'''s family''
420 <p><b>this is about <i>foo</i></b><i>s family</i>
426 Italics and bold: other quote tests: (3,2,3,3)
428 '''this is about ''foo'''s family'''
430 <p>'<i>this is about </i>foo<b>s family</b>
437 Italics and bold: other quote tests: (3,(2,2),3)
439 '''this is about ''foo's'' family'''
441 <p><b>this is about <i>foo's</i> family</b>
446 ### <nowiki> test cases
450 <nowiki> unordered list
452 <nowiki>* This is not an unordered list item.</nowiki>
454 <p>* This is not an unordered list item.
461 <nowiki>Lorem ipsum dolor
482 :There is not nowiki.
483 :There is <nowiki>nowiki</nowiki>.
485 #There is not nowiki.
486 #There is <nowiki>nowiki</nowiki>.
488 *There is not nowiki.
489 *There is <nowiki>nowiki</nowiki>.
491 <dl><dd>There is not nowiki.
492 </dd><dd>There is nowiki.
494 <ol><li>There is not nowiki.
495 </li><li>There is nowiki.
497 <ul><li>There is not nowiki.
498 </li><li>There is nowiki.
510 <!-- comment 1 --> asdf
512 <!-- comment 1 --> asdf
515 <!-- comment 1 --> asdf
516 <!-- comment 2 -->xyz
518 <!-- comment 1 --> asdf
519 <!-- comment 2 --> xyz
575 asdf<!-- comment 1 -->jkl
585 <!-- foo --> b <!-- bar -->
599 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
605 Comment semantics and delimiters
607 <!-- --><!----><!-----><!------>
613 Comment semantics and delimiters, redux
615 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
616 -- foo -- funky huh? ... -->
622 Comment semantics and delimiters: directors cut
624 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
625 everything starting with < followed by !-- until the first -- and > we see,
626 that wouldn't be valid XML however, since in XML -- has to terminate a comment
634 Comment semantics: nesting
636 <!--<!-- no, we're not going to do anything fancy here -->-->
643 Comment semantics: unclosed comment at end
645 <!--This comment will run out to the end of the document
651 Comment in template title
660 Comment on its own line post-expand
672 Comment on its own line post-expand with non-significant whitespace
684 ### paragraph wraping tests
698 Block tag on one line
710 Block tag on both lines
722 Multiple lines without block tags
740 ### Preformatted text
749 And a [[Main Page|link]]
755 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
760 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
777 Regression with preformatted in <center>
790 # Expected output in the following test is not really expected (there should be
791 # <pre> in the output) -- it's only testing for well-formedness.
793 Bug 6200: Preformatted in <blockquote>
806 <pre> with attributes (bug 3202)
808 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
810 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
815 <pre> with width attribute (bug 3202)
817 <pre width="8">Narrow screen goodies</pre>
819 <pre width="8">Narrow screen goodies</pre>
824 <pre> with forbidden attribute (bug 3202)
826 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
828 <pre width="8">Narrow screen goodies</pre>
833 <pre> with forbidden attribute values (bug 3202)
835 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
837 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
842 <nowiki> inside <pre> (bug 13238)
850 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
858 <pre><nowiki>Foo</nowiki></pre>
863 <nowiki> and <pre> preference (first one wins)
894 Templates: Pre: 1a. Templates that break a line should suppress <pre>
902 Templates: Pre: 1b. Templates that break a line should suppress <pre>
912 Templates: Pre: 1c: Wrapping should be based on expanded content
924 Templates: Pre: 1d: Wrapping should be based on expanded content
945 Templates: Pre: 1e. Wrapping should be based on expanded content
952 {{echo|<!--cmt--> foo}}
954 <!--cmt-->{{echo| foo}}
956 {{echo|{{echo| }}bar}}
972 ### Parsoid-centric tests for testing RT edge cases
973 ### around comments and white-space inside pre blocks
1003 1c. Pre and Comments
1016 ### Definition lists
1023 <dl><dt> name </dt><dd> Definition
1029 Definition list for indentation only
1033 <dl><dd> Indented text
1039 Definition list with no space
1043 <dl><dt>name</dt><dd>Definition
1049 Definition list with URL link
1051 ; http://example.com/ : definition
1053 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1059 Definition list with bracketed URL link
1061 ;[http://www.example.com/ Example]:Something about it
1063 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1069 Definition list with wikilink containing colon
1071 ; [[Help:FAQ]]: The least-read page on Wikipedia
1073 <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
1078 # At Brion's and JeLuF's insistence... :)
1080 Definition list with news link containing colon
1082 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1084 <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!
1090 Malformed definition list with colon
1092 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1094 <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
1100 Definition lists: colon in external link text
1102 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1104 <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
1110 Definition lists: colon in HTML attribute
1112 ;<b style="display: inline">bold</b>
1114 <dl><dt><b style="display: inline">bold</b>
1121 Definition lists: self-closed tag
1123 ;one<br/>two : two-line fun
1125 <dl><dt>one<br />two </dt><dd> two-line fun
1131 Bug 11748: Literal closing tags
1137 <dd>test test test test test</dd>
1139 <dd>test test test test test</dd>
1144 <dd>test test test test test</dd>
1146 <dd>test test test test test</dd>
1151 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1154 ; term : description
1160 <dl><dt> term </dt><dd> description
1170 Definition list with empty definition and following paragraph
1175 <dl><dt> term</dt><dd>
1182 Definition Lists: No nesting: Multiple dd's
1196 Definition Lists: Indentation: Regular
1212 Definition Lists: Indentation: Missing 1st level
1226 Definition Lists: Indentation: Multi-level indent
1230 <dl><dd><dl><dd><dl><dd>i3
1237 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1238 ## as an empty dt item. It also ignores all but the last ";" when followed
1239 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1240 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1243 ## Ex: ";;t2 ::d2" is transformed into:
1255 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1256 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1267 ## All Parsoid only definition list tests have this difference.
1269 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1270 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1273 Definition Lists: Nesting: Multi-level (Parsoid only)
1303 Definition Lists: Nesting: Test 2 (Parsoid only)
1323 Definition Lists: Nesting: Test 3 (Parsoid only)
1351 Definition Lists: Nesting: Test 4
1356 <dl><dd><dl><dd><dl><dt>t3
1366 Definition Lists: Mixed Lists: Test 1
1372 <dl><dd><dl><dt><ul><li> foo
1384 Definition Lists: Mixed Lists: Test 2
1398 Definition Lists: Mixed Lists: Test 3
1403 <ul><li><dl><dd><dl><dd><dl><dd> d1
1414 Definition Lists: Mixed Lists: Test 4
1419 <ul><li><dl><dt>d1 </dt><dd>d2
1420 </dd><dt>d3 </dt><dd>d4
1428 Definition Lists: Mixed Lists: Test 5
1443 Definition Lists: Mixed Lists: Test 6
1448 <ol><li><ul><li><dl><dd>d1
1460 Definition Lists: Mixed Lists: Test 7
1474 Definition Lists: Mixed Lists: Test 8
1490 Definition Lists: Mixed Lists: Test 9
1494 <ul><li><dl><dt>foo </dt><dd>bar
1502 Definition Lists: Mixed Lists: Test 10
1506 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1515 Definition Lists: Mixed Lists: Test 11
1520 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1525 <dl><dt>boo </dt><dd>baz
1536 Definition Lists: Weird Ones: Test 1
1538 *#;*::;; foo : bar (who uses this?)
1540 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1556 External links: non-bracketed
1558 Non-bracketed: http://example.com
1560 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1565 External links: numbered
1567 Numbered: [http://example.com]
1568 Numbered: [http://example.net]
1569 Numbered: [http://example.com]
1571 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1572 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1573 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1578 External links: specified text
1580 Specified text: [http://example.com link]
1582 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1587 External links: trail
1589 Linktrails should not work for external links: [http://example.com link]s
1591 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1596 External links: dollar sign in URL
1598 http://example.com/1$2345
1600 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1605 External links: dollar sign in URL (named)
1607 [http://example.com/1$2345]
1609 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1614 External links: open square bracket forbidden in URL (bug 4377)
1616 http://example.com/1[2345
1618 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1623 External links: open square bracket forbidden in URL (named) (bug 4377)
1625 [http://example.com/1[2345]
1627 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1632 External links: nowiki in URL link text (bug 6230)
1634 [http://example.com/ <nowiki>''example site''</nowiki>]
1636 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1641 External links: newline forbidden in text (bug 6230 regression check)
1643 [http://example.com/ first
1646 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1652 External links: Pipe char between url and text
1654 [http://example.com | link]
1656 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1661 External links: protocol-relative URL in brackets
1663 [//example.com/ Test]
1665 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1670 External links: protocol-relative URL in brackets without text
1674 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1679 External links: protocol-relative URL in free text is left alone
1683 <p>//example.com/Foo
1688 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1690 foo//example.com/Foo
1692 <p>foo//example.com/Foo
1699 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1701 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1706 External image from https
1708 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1710 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1715 Link to non-http image, no img tag
1717 Link to non-http image, no img tag: ftp://example.com/test.jpg
1719 <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>
1724 External links: terminating separator
1726 Terminating separator: http://example.com/thing,
1728 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1733 External links: intervening separator
1735 Intervening separator: http://example.com/1,2,3
1737 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1742 External links: old bug with URL in query
1744 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1746 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1751 External links: old URL-in-URL bug, mixed protocols
1753 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1755 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1760 External links: URL in text
1762 URL in text: [http://example.com http://example.com]
1764 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1769 External links: Clickable images
1771 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1773 <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>
1778 External links: raw ampersand
1780 Old & use: http://x&y
1782 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1787 External links: encoded ampersand
1789 Old & use: http://x&y
1791 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1796 External links: encoded equals (bug 6102)
1798 http://example.com/?foo=bar
1800 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1805 External links: [raw ampersand]
1807 Old & use: [http://x&y]
1809 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1814 External links: [encoded ampersand]
1816 Old & use: [http://x&y]
1818 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1823 External links: [encoded equals] (bug 6102)
1825 [http://example.com/?foo=bar]
1827 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1832 External links: [IDN ignored character reference in hostname; strip it right off]
1834 [http://e‌xample.com/]
1836 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1840 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1841 # Where an external link could easily circumvent the sanitization of the text of
1842 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1843 # test demands a higher standard. That's a bit strange.
1847 # http://example.com -> [http://example.com|http://example.com]
1848 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1850 # The first example is sanitized, but the second is not. Any security benefits
1851 # from this production are trivial to circumvent. Either remove this test and
1852 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1853 # the test accordingly.
1858 External links: IDN ignored character reference in hostname; strip it right off
1860 http://e‌xample.com/
1862 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1867 External links: www.jpeg.org (bug 554)
1871 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1876 External links: URL within URL (original bug 2)
1878 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1880 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1885 BUG 361: URL inside bracketed URL
1887 [http://www.example.com/foo http://www.example.com/bar]
1889 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1894 BUG 361: URL within URL, not bracketed
1896 http://www.example.com/foo?=http://www.example.com/bar
1898 <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>
1903 BUG 289: ">"-token in URL-tail
1905 http://www.example.com/<hello>
1907 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1912 BUG 289: literal ">"-token in URL-tail
1914 http://www.example.com/<b>html</b>
1916 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1921 BUG 289: ">"-token in bracketed URL
1923 [http://www.example.com/<hello> stuff]
1925 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1930 BUG 289: literal ">"-token in bracketed URL
1932 [http://www.example.com/<b>html</b> stuff]
1934 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1939 BUG 289: literal double quote at end of URL
1941 http://www.example.com/"hello"
1943 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1948 BUG 289: literal double quote in bracketed URL
1950 [http://www.example.com/"hello" stuff]
1952 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1957 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1959 [http://www.example.com test]
1961 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1966 External links: wiki links within external link (Bug 3695)
1968 [http://example.com [[wikilink]] embedded in ext link]
1970 <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>
1975 BUG 787: Links with one slash after the url protocol are invalid
1979 [http:/example.com title]
1981 <p>http:/example.com
1982 </p><p>[http:/example.com title]
1987 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1989 ''[http://example.com text'']
1990 [http://example.com '''text]'''
1991 ''Something [http://example.com in italic'']
1992 ''Something [http://example.com mixed''''', even bold]'''
1993 '''''Now [http://example.com both''''']
1995 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1996 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1997 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1998 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1999 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2005 Bug 4781: %26 in URL
2007 http://www.example.com/?title=AT%26T
2009 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2013 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2014 # % is actually legal in HTML5. Any change in output would need testing though.
2016 Bug 4781, 5267: %25 in URL
2018 http://www.example.com/?title=100%25_Bran
2020 <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>
2025 Bug 4781, 5267: %28, %29 in URL
2027 http://www.example.com/?title=Ben-Hur_%281959_film%29
2029 <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>
2035 Bug 4781: %26 in autonumber URL
2037 [http://www.example.com/?title=AT%26T]
2039 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2044 Bug 4781, 5267: %26 in autonumber URL
2046 [http://www.example.com/?title=100%25_Bran]
2048 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2053 Bug 4781, 5267: %28, %29 in autonumber URL
2055 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2057 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2063 Bug 4781: %26 in bracketed URL
2065 [http://www.example.com/?title=AT%26T link]
2067 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2072 Bug 4781, 5267: %26 in bracketed URL
2074 [http://www.example.com/?title=100%25_Bran link]
2076 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2081 Bug 4781, 5267: %28, %29 in bracketed URL
2083 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2085 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2090 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2092 Some [http://example.com/ pretty ''italics'' and stuff]!
2094 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2099 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2101 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2103 <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>
2108 External link containing double-single-quotes with no space separating the url from text in italics
2110 [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]].]
2112 <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>
2117 URL-encoding in URL functions (single parameter)
2119 {{localurl:Some page|amp=&}}
2121 <p>/index.php?title=Some_page&amp=&
2126 URL-encoding in URL functions (multiple parameters)
2128 {{localurl:Some page|q=?&=&}}
2130 <p>/index.php?title=Some_page&q=?&amp=&
2137 http://example.com/index.php?foozoid%5B%5D=bar
2139 http://example.com/index.php?foozoid[]=bar
2141 <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>
2142 </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>
2147 IPv6 urls (bug 21261)
2151 http://[2404:130:0:1000::187:2]/index.php
2153 <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>
2164 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2166 Normal text. '''''Bold italic text.''''' Normal text.
2168 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2169 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2175 Unclosed and unmatched quotes
2177 '''''Bold italic text '''with bold deactivated''' in between.'''''
2179 '''''Bold italic text ''with italic deactivated'' in between.'''''
2183 ..spanning two paragraphs (should not work).'''
2185 '''Bold tag left open
2187 ''Italic tag left open
2191 <!-- Unmatching number of opening, closing tags: -->
2192 '''This year''''s election ''should'' beat '''last year''''s.
2194 ''Tom'''s car is bigger than ''Susan'''s.
2196 Plain ''italic'''s plain
2198 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2199 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2200 </p><p><b>Bold text..</b>
2201 </p><p>..spanning two paragraphs (should not work).
2202 </p><p><b>Bold tag left open</b>
2203 </p><p><i>Italic tag left open</i>
2205 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2206 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2207 </p><p>Plain <i>italic'</i>s plain
2214 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2217 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2218 # is the bare minimun required by the spec, see:
2219 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2221 A table with no data.
2227 # A table with nothing but a caption is invalid XHTML, we might want to render
2228 # this as <p>caption</p>
2230 A table with nothing but a caption
2238 </caption><tr><td></td></tr></table>
2264 Multiplication table
2266 {| border="1" cellpadding="2"
2267 |+Multiplication table
2269 ! × !! 1 !! 2 !! 3
2287 <table border="1" cellpadding="2">
2288 <caption>Multiplication table
2339 |rowspan=2| Cell 2, row 1 (and 2)
2350 <td rowspan="2"> Cell 2, row 1 (and 2)
2368 {| bgcolor=#ABCDEF border=2
2373 |the original table again
2381 <table bgcolor="#ABCDEF" border="2">
2389 <td>the original table again
2395 Invalid attributes in table cell (bug 1830)
2410 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2413 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2417 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2418 <td>]" onmouseover="alert(document.cookie)">test
2427 Indented table markup mixed with indented pre content (proposed in bug 6200)
2432 Text that should be rendered preformatted
2440 <pre>Text that should be rendered preformatted
2453 Plain link, capitalized
2457 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2462 Plain link, uncapitalized
2466 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2473 [[Main Page|The Main Page]]
2475 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2484 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2489 Broken link with fragment
2491 [[Zigzagzogzagzig#zug]]
2493 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2498 Special page link with fragment
2500 [[Special:Version#anchor]]
2502 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2507 Nonexistent special page link with fragment
2509 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2511 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2518 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2520 <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>
2527 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2529 <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>!!!
2534 Link with 3 brackets
2543 Piped link with 3 brackets
2545 [[[main page|the main page]]]
2547 <p>[[[main page|the main page]]]
2552 Link with multiple pipes
2554 [[Main Page|The|Main|Page]]
2556 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2563 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2565 <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>
2570 Piped link to namespace
2572 [[Meta:Disclaimers|The disclaimers]]
2574 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2581 [[Usually caused by a typo (oops}]]
2583 <p>[[Usually caused by a typo (oops}]]
2588 Link containing % (not as a hex sequence)
2592 <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>
2597 Link containing % as a single hex sequence interpreted to char
2601 <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>
2606 Link containing % as a double hex sequence interpreted to hex sequence
2610 <p>[[7%2525 Solution]]
2615 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2616 Example for such a section: == < ==
2618 [[%23%3c]][[%23%3e]]
2620 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2625 Link containing "<#" and ">#" as a hex sequences
2627 [[%3c%23]][[%3e%23]]
2629 <p>[[%3c%23]][[%3e%23]]
2634 Link containing double-single-quotes '' (bug 4598)
2636 [[Lista d''e paise d''o munno]]
2638 <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>
2643 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2645 Some [[Link|pretty ''italics'' and stuff]]!
2647 <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>!
2652 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2654 ''Some [[Link|pretty ''italics'' and stuff]]!
2656 <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>
2661 Link with double quotes in title part (literal) and alternate part (interpreted)
2663 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2667 [[''Pentecoste''|Pentecoste]]
2669 [[''Pentecoste''|''Pentecoste'']]
2671 <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>
2672 </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>
2673 </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>
2674 </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>
2679 Broken image links with HTML captions (bug 39700)
2681 [[File:Nonexistent|<script></script>]]
2682 [[File:Nonexistent|100px|<script></script>]]
2683 [[File:Nonexistent|<]]
2684 [[File:Nonexistent|a<i>b</i>c]]
2686 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2687 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2688 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2689 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2696 [[http://www.example.com]]
2698 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2703 Plain link to URL with link text
2705 [[http://www.example.com Link text]]
2707 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2712 Plain link to protocol-relative URL
2714 [[//www.example.com]]
2716 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2721 Plain link to protocol-relative URL with link text
2723 [[//www.example.com Link text]]
2725 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2730 # I'm fairly sure the expected result here is wrong.
2731 # We want these to be URL links, not pseudo-pages with URLs for titles....
2732 # However the current output is also pretty screwy.
2735 # I'm changing it to match the current output--it arguably makes more
2736 # sense in the light of the test above. Old expected result was:
2737 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2739 # But I think this test is bordering on "garbage in, garbage out" anyway.
2744 Piped link to URL: [[http://www.example.com|an example URL]]
2746 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2751 BUG 2: [[page|http://url/]] should link to page, not http://url/
2753 [[Main Page|http://url/]]
2755 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2760 BUG 337: Escaped self-links should be bold
2764 [[Bug462]] [[Bug462]]
2766 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2771 Self-link to section should not be bold
2775 [[Main Page#section]]
2777 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2788 Self-link to numeric title
2794 <p><strong class="selflink">0</strong>
2799 Link to numeric-equivalent title
2805 <p><a href="/wiki/00" title="00">00</a>
2810 <nowiki> inside a link
2812 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2814 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2819 Non-breaking spaces in title
2821 [[ Main Page ]]
2823 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2828 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2834 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2839 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2845 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2850 Internal link with en linktrail: no apostrophes (bug 27473)
2856 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2861 Internal link with ca linktrail with apostrophes (bug 27473)
2867 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2872 Internal link with kaa linktrail with apostrophes (bug 27473)
2878 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2883 ### Interwiki links (see maintenance/interwiki.sql)
2887 Inline interwiki link
2889 [[MeatBall:SoftSecurity]]
2891 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2896 Inline interwiki link with empty title (bug 2372)
2900 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2905 Interwiki link encoding conversion (bug 1636)
2907 *[[Wikipedia:ro:Olteniţa]]
2908 *[[Wikipedia:ro:Olteniţa]]
2910 <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>
2911 </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>
2917 Interwiki link with fragment (bug 2130)
2919 [[MeatBall:SoftSecurity#foo]]
2921 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2936 Double interlanguage link
2947 Interlanguage link, with prefix links
2959 Double interlanguage link, with prefix links (bug 8897)
2972 Parsoid-specific test: Wikilinks with should RT properly
2978 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
2996 Incorrecly removing closing slashes from correctly formed XHTML
2998 <br style="clear:both;" />
3000 <p><br style="clear:both;" />
3005 Failing to transform badly formed HTML into correct XHTML
3007 <br style="clear: left;">
3008 <br style="clear: right;">
3009 <br style="clear: both;">
3011 <p><br style="clear: left;" />
3012 <br style="clear: right;" />
3013 <br style="clear: both;" />
3018 Handling html with a div self-closing tag
3027 <p><div title />
3031 <p><div title=bar />
3032 <div title=bar/>
3034 <div title="bar/"></div>
3040 Handling html with a br self-closing tag
3049 <p><br title="title" />
3050 <br title="title" />
3059 Horizontal ruler (should it add that extra space?)
3073 Horizontal ruler -- 4+ dashes render hr
3082 Horizontal ruler -- eats additional dashes on the same line
3091 Horizontal ruler -- does not collaps dashes on consecutive lines
3102 Horizontal ruler -- <4 dashes render as plain text
3111 ### Block-level elements
3134 <ol><li>Numbered list
3151 ***#Number on level 4
3153 **#Number on level 3
3154 **#Number on level 3
3158 #** Level 3, but ordered
3161 <ol><li> with numbers
3163 <ul><li> and bullets
3165 <ol><li> and numbers
3167 </li><li>bullets again
3168 <ul><li>bullet level 2
3169 <ul><li>bullet level 3
3170 <ol><li>Number on level 4
3173 </li><li>bullet level 2
3174 <ol><li>Number on level 3
3175 </li><li>Number on level 3
3178 <ol><li>number level 2
3181 <ul><li><ul><li> Level 3
3185 <ol><li><ul><li><ul><li> Level 3, but ordered
3219 Nested lists 3 (first element empty)
3232 Nested lists 4 (first element empty)
3245 Nested lists 5 (both elements empty)
3258 Nested lists 6 (both elements empty)
3271 Nested lists 7 (skip initial nesting levels)
3275 <ul><li><ul><li><ul><li> foo
3283 Nested lists 8 (multiple nesting transitions)
3291 <ul><li><ul><li> bar
3302 List items are not parsed correctly following a <pre> block (bug 785)
3308 <ul><li> <pre>foo</pre>
3309 </li><li> <pre>bar</pre>
3316 List items from template
3327 * notSOL{{inner list}}
3346 List interrupted by empty line or heading
3356 <ul><li><ul><li> bar
3359 <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>
3360 <ul><li> Another list item
3371 Magic Word: {{CURRENTDAY}}
3380 Magic Word: {{CURRENTDAY2}}
3389 Magic Word: {{CURRENTDAYNAME}}
3398 Magic Word: {{CURRENTDOW}}
3407 Magic Word: {{CURRENTMONTH}}
3416 Magic Word: {{CURRENTMONTHABBREV}}
3418 {{CURRENTMONTHABBREV}}
3425 Magic Word: {{CURRENTMONTHNAME}}
3427 {{CURRENTMONTHNAME}}
3434 Magic Word: {{CURRENTMONTHNAMEGEN}}
3436 {{CURRENTMONTHNAMEGEN}}
3443 Magic Word: {{CURRENTTIME}}
3452 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3461 Magic Word: {{CURRENTYEAR}}
3470 Magic Word: {{FULLPAGENAME}}
3472 title=[[User:Ævar Arnfjörð Bjarmason]]
3476 <p>User:Ævar Arnfjörð Bjarmason
3481 Magic Word: {{FULLPAGENAMEE}}
3483 title=[[User:Ævar Arnfjörð Bjarmason]]
3487 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3492 Magic Word: {{NAMESPACE}}
3494 title=[[User:Ævar Arnfjörð Bjarmason]]
3503 Magic Word: {{NAMESPACEE}}
3505 title=[[User:Ævar Arnfjörð Bjarmason]]
3514 Magic Word: {{NAMESPACENUMBER}}
3516 title=[[User:Ævar Arnfjörð Bjarmason]]
3525 Magic Word: {{NUMBEROFFILES}}
3534 Magic Word: {{PAGENAME}}
3536 title=[[User:Ævar Arnfjörð Bjarmason]]
3540 <p>Ævar Arnfjörð Bjarmason
3545 Magic Word: {{PAGENAME}} with metacharacters
3547 title=[['foo & bar = baz']]
3551 <p><i>'foo & bar = baz'</i>
3556 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3558 title=[[*RFC 1234 http://example.com/]]
3562 <p>*RFC 1234 http://example.com/
3567 Magic Word: {{PAGENAMEE}}
3569 title=[[User:Ævar Arnfjörð Bjarmason]]
3573 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3578 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3580 title=[[*RFC 1234 http://example.com/]]
3584 <p>*RFC_1234_http://example.com/
3589 Magic Word: {{REVISIONID}}
3598 Magic Word: {{SCRIPTPATH}}
3607 Magic Word: {{SERVER}}
3611 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3616 Magic Word: {{SERVERNAME}}
3625 Magic Word: {{SITENAME}}
3634 Namespace 1 {{ns:1}}
3643 Namespace 1 {{ns:01}}
3652 Namespace 0 {{ns:0}} (bug 4783)
3660 Namespace 0 {{ns:00}} (bug 4783)
3668 Namespace -1 {{ns:-1}}
3677 Namespace User {{ns:User}}
3686 Namespace User talk {{ns:User_talk}}
3695 Namespace User talk {{ns:uSeR tAlK}}
3704 Namespace File {{ns:File}}
3713 Namespace File {{ns:Image}}
3722 Namespace (lang=de) Benutzer {{ns:User}}
3733 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3739 <p>Benutzer Diskussion
3747 {{urlencode:hi world?!}}
3748 {{urlencode:hi world?!|WIKI}}
3749 {{urlencode:hi world?!|PATH}}
3750 {{urlencode:hi world?!|QUERY}}
3763 Magic links: internal link to RFC (bug 479)
3767 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3772 Magic links: RFC (bug 479)
3776 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3781 Magic links: ISBN (bug 1937)
3785 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3790 Magic links: PMID incorrectly converts space to underscore
3794 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3803 Nonexistent template
3805 {{thistemplatedoesnotexist}}
3807 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3814 This is a test template
3822 <p>This is a test template
3827 Template with explicit namespace
3831 <p>This is a test template
3839 This is a test template with parameter {{{param}}}
3845 {{paramtest|param=foo}}
3847 <p>This is a test template with parameter foo
3852 Template:paramtestnum
3858 Template unnamed parameter
3860 {{paramtestnum|Main Page|the main page}}
3862 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3867 Template:templatesimple
3873 Template:templateredirect
3875 #redirect [[Template:templatesimple]]
3879 Template:templateasargtestnum
3885 Template:templateasargtest
3887 {{template{{{templ}}}}}
3891 Template:templateasargtest2
3897 Template with template name as unnamed argument
3899 {{templateasargtestnum|templatesimple}}
3906 Template with template name as argument
3908 {{templateasargtest|templ=simple}}
3915 Template with template name as argument (2)
3917 {{templateasargtest2|templ=templatesimple}}
3924 Template:templateasargtestdefault
3926 {{{{{templ|templatesimple}}}}}
3936 Template with default value
3938 {{templateasargtestdefault}}
3945 Template with default value (value set)
3947 {{templateasargtestdefault|templ=templa}}
3956 {{templateredirect}}
3963 Template with argument in separate line
3965 {{ templateasargtest |
3973 Template with complex template as argument
3976 param ={{ templateasargtest |
3979 <p>This is a test template with parameter (test)
3984 Template with thumb image (with link in description)
3987 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3989 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>
3994 Template:complextemplate
3996 {{{1}}} {{paramtest|
3997 param ={{{param}}}}}
4001 Template with complex arguments
4004 param ={{ templateasargtest |
4005 templ = simple }}|[[Template:complextemplate|link]]}}
4007 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4012 BUG 553: link with two variables in a piped link
4015 |[[{{{1}}}|{{{2}}}]]
4020 <td>[[{{{1}}}|{{{2}}}]]
4026 Magic variable as template parameter
4028 {{paramtest|param={{SITENAME}}}}
4030 <p>This is a test template with parameter MediaWiki
4037 [[{{{param}}}|link]]
4041 Template parameter as link source
4043 {{linktest|param=Main Page}}
4045 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4053 including another template, {{paramtest|param={{{arg}}}}}
4057 Template passing argument to another template
4059 {{paramtest2|arg='hmm'}}
4061 <p>including another template, This is a test template with parameter 'hmm'
4072 Template as link source
4076 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4094 Template infinite loop
4098 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4103 Template from main namespace
4122 BUG 529: Template with table, not included at beginning of line
4141 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4161 BUG 41: Template parameters shown as broken links
4173 ''None'' of '''this''' should be
4175 but rather passed unmodified
4179 # hmm, fix this or just deprecate msgnw and document its behavior?
4185 {{msgnw:MSGNW test}}
4187 <p>''None'' of '''this''' should be
4189 but rather passed unmodified
4197 {{int:youhavenewmessages|lots of money|not!}}
4199 <p>You have lots of money (not!).
4206 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4210 <includeonly> and <noinclude> being included
4221 <onlyinclude>Foo</onlyinclude>bar
4225 <onlyinclude> being included
4237 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4241 <onlyinclude> and <includeonly> being included
4250 <includeonly> and <noinclude> on a page
4252 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4259 <onlyinclude> on a page
4261 <onlyinclude>Foo</onlyinclude>bar
4268 Template:Includeonly section
4271 ==Includeonly section==
4277 Bug 6563: Edit link generation for section shown by <includeonly>
4279 {{includeonly section}}
4281 <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>
4282 <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>
4286 # Uses same input as the contents of [[Template:Includeonly section]]
4288 Bug 6563: Section extraction for section shown by <includeonly>
4293 ==Includeonly section==
4301 Bug 6563: Edit link generation for section suppressed by <includeonly>
4304 ==Includeonly section==
4308 <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>
4313 Bug 6563: Section extraction for section suppressed by <includeonly>
4318 ==Includeonly section==
4326 ### Testing parsing of templates where a template arg
4327 ### has the same name as the template itself.
4337 Templates: Template Name/Arg clash: 1. Use of positional param
4346 Templates: Template Name/Arg clash: 2. Use of named param
4355 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4364 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4368 Templates: 1. Simple use
4377 Templates: 2. Inside a block tag
4379 <div>{{echo|Foo}}</div>
4386 Templates: P-wrapping: 1a. Templates on consecutive lines
4397 Templates: P-wrapping: 1b. Templates on consecutive lines
4411 Templates: P-wrapping: 1c. Templates on consecutive lines
4414 {{echo|bar}} <div>baz</div>
4423 Templates: Inline Text: 1. Multiple tmeplate uses
4425 {{echo|Foo}}bar{{echo|baz}}
4432 Templates: Inline Text: 2. Back-to-back template uses
4434 {{echo|Foo}}{{echo|bar}}
4441 Templates: Block Tags: 1. Multiple template uses
4443 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4445 <div>Foo</div><div>bar</div><div>baz</div>
4450 Templates: Block Tags: 2. Back-to-back template uses
4452 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4454 <div>Foo</div><div>bar</div>
4459 Templates: Links: 1. Simple example
4461 {{echo|[[Foo|bar]]}}
4463 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4468 Templates: Links: 2. Generation of link href
4470 [[{{echo|Foo}}|bar]]
4472 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4477 Templates: Links: 3. Generation of part of a link href
4479 [[Fo{{echo|o}}|bar]]
4481 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4486 Templates: Links: 4. Multiple templates generating link href
4488 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4490 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4495 Templates: Links: 5. Generation of link text
4497 [[Foo|{{echo|bar}}]]
4499 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4504 Templates: Links: 5. Nested templates (only outermost template should be marked)
4506 {{echo|[[{{echo|Foo}}|bar]]}}
4508 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4513 Templates: HTML Tag: 1. Generation of HTML attr. key
4515 <div {{echo|style}}="color:red;">foo</div>
4517 <div style="color:red;">foo</div>
4522 Templates: HTML Tag: 2. Generation of HTML attr. value
4524 <div style={{echo|'color:red;'}}>foo</div>
4526 <div style="color:red;">foo</div>
4531 Templates: HTML Tag: 3. Generation of HTML attr key and value
4533 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4535 <div style="color:red;">foo</div>
4540 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4542 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4544 <div title="This is a long title with just one piece templated">foo</div>
4549 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4551 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4553 <div title="This is a long title with just one piece templated">foo</div>
4558 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4560 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4562 <div title="This is a long title with just one piece templated">foo</div>
4567 Templates: Tables: 1. Generating start of a HTML table
4569 {{echo|<table><tr><td>foo</td>}}</tr></table>
4571 <table><tr><td>foo</td></tr></table>
4576 Templates: Tables: 2a. Generating middle of a HTML table
4578 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4580 <table><tr><td>foo</td></tr></table>
4585 Templates: Tables: 2b. Generating middle of a HTML table
4587 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4589 <table><tr><td>foo</td></tr></table>
4594 Templates: Tables: 3. Generating end of a HTML table
4596 <table><tr>{{echo|<td>foo</td></tr></table>}}
4598 <table><tr><td>foo</td></tr></table>
4603 Templates: Tables: 4a. Generating a single tag of a HTML table
4605 {{echo|<table>}}<tr><td>foo</td></tr></table>
4607 <table><tr><td>foo</td></tr></table>
4612 Templates: Tables: 4b. Generating a single tag of a HTML table
4614 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4616 <table><tr><td>foo</td></tr></table>
4621 Templates: Tables: 4c. Generating a single tag of a HTML table
4623 <table><tr>{{echo|<td>}}foo</td></tr></table>
4625 <table><tr><td>foo</td></tr></table>
4630 Templates: Tables: 4d. Generating a single tag of a HTML table
4632 <table><tr><td>foo{{echo|</td>}}</tr></table>
4634 <table><tr><td>foo</td></tr></table>
4639 Templates: Tables: 4e. Generating a single tag of a HTML table
4641 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4643 <table><tr><td>foo</td></tr></table>
4648 Templates: Tables: 4f. Generating a single tag of a HTML table
4650 <table><tr><td>foo</td></tr>{{echo|</table>}}
4652 <table><tr><td>foo</td></tr></table>
4657 Parser Functions: 1. Simple example
4666 Parser Functions: 2. Nested use (only outermost should be marked up)
4675 ### Pre-save transform tests
4678 pre-save transform: subst:
4684 This is a test template
4688 pre-save transform: normal template
4698 pre-save transform: nonexistent template
4702 {{thistemplatedoesnotexist}}
4704 {{thistemplatedoesnotexist}}
4709 pre-save transform: subst magic variables
4718 # This is bug 89, which I fixed. -- wtm
4720 pre-save transform: subst: templates with parameters
4724 {{subst:paramtest|param="something else"}}
4726 This is a test template with parameter "something else"
4732 <nowiki>'''not wiki'''</nowiki>
4736 pre-save transform: nowiki in subst (bug 1188)
4740 {{subst:nowikitest}}
4742 <nowiki>'''not wiki'''</nowiki>
4747 Template:commenttest
4749 This template has <!-- a comment --> in it.
4753 pre-save transform: comment in subst (bug 1936)
4757 {{subst:commenttest}}
4759 This template has <!-- a comment --> in it.
4763 pre-save transform: unclosed tag
4767 <nowiki>'''not wiki'''
4769 <nowiki>'''not wiki'''
4773 pre-save transform: mixed tag case
4777 <NOwiki>'''not wiki'''</noWIKI>
4779 <NOwiki>'''not wiki'''</noWIKI>
4783 pre-save transform: unclosed comment in <nowiki>
4787 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4789 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4795 <span onmouseover="alert('crap')">Oh no</span>
4799 (confirming safety of fix for subst bug 1936)
4801 {{Template:dangerous}}
4803 <p><span>Oh no</span>
4808 pre-save transform: comment containing gallery (bug 5024)
4812 <!-- <gallery>data</gallery> -->
4814 <!-- <gallery>data</gallery> -->
4818 pre-save transform: comment containing extension
4822 <!-- <tag>data</tag> -->
4824 <!-- <tag>data</tag> -->
4828 pre-save transform: comment containing nowiki
4832 <!-- <nowiki>data</nowiki> -->
4834 <!-- <nowiki>data</nowiki> -->
4838 pre-save transform: <noinclude> in subst (bug 3298)
4848 pre-save transform: <onlyinclude> in subst (bug 3298)
4860 {{<includeonly>subst:</includeonly>Includes}}
4864 Template:SafeSubstTest
4866 {{<includeonly>safesubst:</includeonly>Includes}}
4870 bug 22297: safesubst: works during PST
4874 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4880 bug 22297: safesubst: works during normal parse
4889 subst: does not work during normal parse
4893 <p>{{subst:Includes}}
4898 pre-save transform: context links ("pipe trick")
4902 [[Article (context)|]]
4905 [[Bar:Article (context)|]]
4906 [[:Bar:Article (context)|]]
4908 [[|Article (context)]]
4912 [[Article (context)|Article]]
4913 [[Bar:Article|Article]]
4914 [[:Bar:Article|Article]]
4915 [[Bar:Article (context)|Article]]
4916 [[:Bar:Article (context)|Article]]
4918 [[Article (context)]]
4919 [[Bar:X (Y) Z|X (Y) Z]]
4920 [[:Bar:X (Y) Z|X (Y) Z]]
4924 pre-save transform: context links ("pipe trick") with interwiki prefix
4928 [[interwiki:Article|]]
4929 [[:interwiki:Article|]]
4930 [[interwiki:Bar:Article|]]
4931 [[:interwiki:Bar:Article|]]
4933 [[interwiki:Article|Article]]
4934 [[:interwiki:Article|Article]]
4935 [[interwiki:Bar:Article|Bar:Article]]
4936 [[:interwiki:Bar:Article|Bar:Article]]
4940 pre-save transform: context links ("pipe trick") with parens in title
4942 pst title=[[Somearticle (context)]]
4946 [[Article (context)|Article]]
4950 pre-save transform: context links ("pipe trick") with comma in title
4952 pst title=[[Someplace, Somewhere]]
4955 [[Otherplace, Elsewhere|]]
4956 [[Otherplace, Elsewhere, Anywhere|]]
4958 [[Otherplace, Somewhere|Otherplace]]
4959 [[Otherplace, Elsewhere|Otherplace]]
4960 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4964 pre-save transform: context links ("pipe trick") with parens and comma
4966 pst title=[[Someplace (IGNORED), Somewhere]]
4969 [[Otherplace (place), Elsewhere|]]
4971 [[Otherplace, Somewhere|Otherplace]]
4972 [[Otherplace (place), Elsewhere|Otherplace]]
4976 pre-save transform: context links ("pipe trick") with comma and parens
4978 pst title=[[Who, me? (context)]]
4981 [[Me, Myself, and I (1937 song)|]]
4983 [[Yes, you. (context)|Yes, you.]]
4984 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4988 pre-save transform: context links ("pipe trick") with namespace
4990 pst title=[[Ns:Somearticle]]
4994 [[Ns:Article|Article]]
4998 pre-save transform: context links ("pipe trick") with namespace and parens
5000 pst title=[[Ns:Somearticle (context)]]
5004 [[Ns:Article (context)|Article]]
5008 pre-save transform: context links ("pipe trick") with namespace and comma
5010 pst title=[[Ns:Somearticle, Context, Whatever]]
5014 [[Ns:Article, Context, Whatever|Article]]
5018 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5020 pst title=[[Ns:Somearticle, Context (context)]]
5024 [[Ns:Article (context)|Article]]
5028 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5030 pst title=[[Ns:Somearticle (IGNORED), Context]]
5034 [[Ns:Article, Context|Article]]
5038 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5042 [[Article(context)|]]
5043 [[Bar:Article(context)|]]
5044 [[:Bar:Article(context)|]]
5045 [[|Article(context)]]
5049 [[Article(context)|Article]]
5050 [[Bar:Article(context)|Article]]
5051 [[:Bar:Article(context)|Article]]
5052 [[Article(context)]]
5054 [[:Bar:X(Y)Z|X(Y)Z]]
5058 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5062 [[Article (context)|]]
5063 [[Bar:Article (context)|]]
5064 [[:Bar:Article (context)|]]
5065 [[|Article (context)]]
5069 [[Article (context)|Article]]
5070 [[Bar:Article (context)|Article]]
5071 [[:Bar:Article (context)|Article]]
5072 [[Article (context)]]
5073 [[Bar:X (Y) Z|X (Y) Z]]
5074 [[:Bar:X (Y) Z|X (Y) Z]]
5078 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5082 [[Article(context)|]]
5083 [[Bar:Article(context)|]]
5084 [[:Bar:Article(context)|]]
5085 [[|Article(context)]]
5089 [[Article(context)|Article]]
5090 [[Bar:Article(context)|Article]]
5091 [[:Bar:Article(context)|Article]]
5092 [[Article(context)]]
5094 [[:Bar:X(Y)Z|X(Y)Z]]
5098 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5102 [[Article (context), context|]]
5103 [[Article (context),context|]]
5104 [[Bar:Article (context), context|]]
5105 [[Bar:Article (context),context|]]
5106 [[:Bar:Article (context), context|]]
5107 [[:Bar:Article (context),context|]]
5109 [[Article (context), context|Article]]
5110 [[Article (context),context|Article]]
5111 [[Bar:Article (context), context|Article]]
5112 [[Bar:Article (context),context|Article]]
5113 [[:Bar:Article (context), context|Article]]
5114 [[:Bar:Article (context),context|Article]]
5118 pre-save transform: trim trailing empty lines
5122 Empty lines are trimmed
5128 Empty lines are trimmed
5132 pre-save transform: Signature expansion
5137 * <noinclude>~~~</noinclude>
5138 * <includeonly>~~~</includeonly>
5139 * <onlyinclude>~~~</onlyinclude>
5141 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5142 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5143 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5144 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5149 pre-save transform: Signature expansion in nowiki tags (bug 93)
5155 <nowiki>~~~~</nowiki>
5157 <includeonly><nowiki>~~~~</nowiki></includeonly>
5159 <noinclude><nowiki>~~~~</nowiki></noinclude>
5161 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5163 {{subst:Foo}} shall be converted to FOO
5165 As well as inside noinclude/onlyinclude
5166 <noinclude>{{subst:Foo}}</noinclude>
5167 <onlyinclude>{{subst:Foo}}</onlyinclude>
5169 But not inside includeonly
5170 <includeonly>{{subst:Foo}}</includeonly>
5174 <nowiki>~~~~</nowiki>
5176 <includeonly><nowiki>~~~~</nowiki></includeonly>
5178 <noinclude><nowiki>~~~~</nowiki></noinclude>
5180 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5182 FOO shall be converted to FOO
5184 As well as inside noinclude/onlyinclude
5185 <noinclude>FOO</noinclude>
5186 <onlyinclude>FOO</onlyinclude>
5188 But not inside includeonly
5189 <includeonly>{{subst:Foo}}</includeonly>
5193 ### Message transform tests
5196 message transform: magic variables
5206 message transform: should not transform wiki markup
5216 message transform: <noinclude> in transcluded template (bug 4926)
5226 message transform: <onlyinclude> in transcluded template (bug 4926)
5236 {{#special:}} page name, known
5240 {{#special:Recentchanges}}
5242 Special:RecentChanges
5246 {{#special:}} page name with subpage, known
5250 {{#special:Recentchanges/param}}
5252 Special:RecentChanges/param
5256 {{#special:}} page name, unknown
5260 {{#special:foobarnonexistent}}
5262 No such special page
5266 {{#speciale:}} page name, known
5270 {{#speciale:Recentchanges}}
5272 Special:RecentChanges
5276 {{#speciale:}} page name with subpage, known
5280 {{#speciale:Recentchanges/param}}
5282 Special:RecentChanges/param
5286 {{#speciale:}} page name, unknown
5290 {{#speciale:foobarnonexistent}}
5292 No_such_special_page
5301 [[Image:foobar.jpg]]
5303 <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>
5310 [[Image:foobar.jpg|right]]
5312 <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>
5317 Simple image (using File: namespace, now canonical)
5321 <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>
5328 [[Image:foobar.jpg|right|Caption text]]
5330 <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>
5335 Image with link parameter, wiki target
5337 [[Image:foobar.jpg|link=Target page]]
5339 <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>
5344 Image with link parameter, URL target
5346 [[Image:foobar.jpg|link=http://example.com/]]
5348 <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>
5353 Image with link parameter, wgExternalLinkTarget
5355 [[Image:foobar.jpg|link=http://example.com/]]
5357 wgExternalLinkTarget='foobar'
5359 <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>
5364 Image with link parameter, wgNoFollowLinks set to false
5366 [[Image:foobar.jpg|link=http://example.com/]]
5368 wgNoFollowLinks=false
5370 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5375 Image with link parameter, wgNoFollowDomainExceptions
5377 [[Image:foobar.jpg|link=http://example.com/]]
5379 wgNoFollowDomainExceptions='example.com'
5381 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5386 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5388 [[Image:foobar.jpg|link=http://example.com/|Title]]
5390 wgExternalLinkTarget='foobar'
5392 <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>
5397 Image with empty link parameter
5399 [[Image:foobar.jpg|link=]]
5401 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5406 Image with link parameter (wiki target) and unnamed parameter
5408 [[Image:foobar.jpg|link=Target page|Title]]
5410 <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>
5415 Image with link parameter (URL target) and unnamed parameter
5417 [[Image:foobar.jpg|link=http://example.com/|Title]]
5419 <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>
5424 Thumbnail image with link parameter
5426 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5428 <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>
5433 Image with frame and link
5435 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5437 <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>
5442 Image with frame and link and explicit alt
5444 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5446 <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>
5451 Image with wiki markup in implicit alt
5453 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5455 <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>
5460 Image with wiki markup in explicit alt
5462 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5464 <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>
5469 Link to image page- image page normally doesn't exists, hence edit link
5470 Add test with existing image page
5471 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5475 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5480 bug 18784 Link to non-existent image page with caption should use caption as link text
5482 [[:Image:test|caption]]
5484 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5489 Frameless image caption with a free URL
5491 [[Image:foobar.jpg|http://example.com]]
5493 <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>
5498 Thumbnail image caption with a free URL
5500 [[Image:foobar.jpg|thumb|http://example.com]]
5502 <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>
5507 Thumbnail image caption with a free URL and explicit alt
5509 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5511 <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>
5516 BUG 1887: A ISBN with a thumbnail
5518 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5520 <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>
5525 BUG 1887: A RFC with a thumbnail
5527 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5529 <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>
5534 BUG 1887: A mailto link with a thumbnail
5536 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5538 <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>
5542 # Pending resolution to bug 368
5544 BUG 648: Frameless image caption with a link
5546 [[Image:foobar.jpg|text with a [[link]] in it]]
5548 <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>
5553 BUG 648: Frameless image caption with a link (suffix)
5555 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5557 <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>
5562 BUG 648: Frameless image caption with an interwiki link
5564 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5566 <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>
5571 BUG 648: Frameless image caption with a piped interwiki link
5573 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5575 <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>
5580 Escape HTML special chars in image alt text
5582 [[Image:foobar.jpg|& < > "]]
5584 <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>
5589 BUG 499: Alt text should have Ӓ, not &1234;
5591 [[Image:foobar.jpg|♀]]
5593 <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>
5598 Broken image caption with link
5600 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5602 <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.
5607 Image caption containing another image
5609 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5611 <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>
5616 Image caption containing a newline
5618 [[Image:Foobar.jpg|This
5621 <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>
5627 Bug 3090: External links other than http: in image captions
5629 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5631 <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>
5638 [[Image:foobar.jpg|a|class=b]]
5640 <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>
5647 #REDIRECT [[File:Barfoo.jpg]]
5653 [[Image:Barfoo.jpg]]
5655 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5660 Missing image with uploads disabled
5664 [[Image:Foobaz.jpg]]
5666 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5675 Subpage test/subpage
5683 subpage title=[[Subpage test]]
5687 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5692 Subpage noslash link
5694 subpage title=[[Subpage test]]
5698 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5707 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5712 BUG 561: {{/Subpage}}
5714 subpage title=[[Page]]
5718 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5726 Category:MediaWiki User's Guide
5734 [[:Category:MediaWiki User's Guide]]
5736 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5745 [[Category:MediaWiki User's Guide]]
5747 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5751 PAGESINCATEGORY invalid title fatal (r33546 fix)
5753 {{PAGESINCATEGORY:<bogus>}}
5760 Category with different sort key
5764 [[Category:MediaWiki User's Guide|Foo]]
5766 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5770 Category with identical sort key
5774 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5776 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5780 Category with empty sort key
5785 [[Category:MediaWiki User's Guide|]]
5787 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5791 Category with empty sort key and parentheses
5796 [[Category:Foo (bar)|]]
5798 [[Category:Foo (bar)|Foo]]
5802 ### Inter-language links
5805 Inter-language links
5811 [[zh:食品]]
5813 es:Alimento fr:Nourriture zh:食品
5820 Basic section headings
5827 ===Smaller headline===
5830 <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>
5833 <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>
5836 <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>
5842 Section headings with TOC
5845 === Subheadline 1 ===
5846 ===== Skipping a level =====
5847 ====== Skipping a level ======
5851 ===Another headline===
5853 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5855 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5857 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5859 <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>
5861 <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>
5868 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5870 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5875 <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>
5876 <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>
5877 <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>
5878 <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>
5879 <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>
5882 <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>
5886 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5888 Handling of sections up to level 6 and beyond
5891 == Level 2 Heading==
5892 === Level 3 Heading===
5893 ==== Level 4 Heading====
5894 ===== Level 5 Heading=====
5895 ====== Level 6 Heading======
5896 ======= Level 7 Heading=======
5897 ======== Level 8 Heading========
5898 ========= Level 9 Heading=========
5899 ========== Level 10 Heading==========
5901 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5903 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5905 <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>
5907 <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>
5909 <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>
5911 <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>
5913 <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>
5914 <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>
5915 <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>
5916 <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>
5917 <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>
5930 <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>
5931 <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>
5932 <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>
5933 <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>
5934 <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>
5935 <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>
5936 <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>
5937 <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>
5938 <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>
5939 <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>
5944 TOC regression (bug 9764)
5948 ==== title 1.1.1 ====
5953 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5955 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5957 <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>
5959 <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>
5962 <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>
5965 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5967 <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>
5972 <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>
5973 <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>
5974 <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>
5975 <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>
5976 <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>
5977 <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>
5982 TOC with wgMaxTocLevel=3 (bug 6204)
5988 ==== title 1.1.1 ====
5993 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5995 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5997 <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>
5998 <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>
6001 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6003 <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>
6008 <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>
6009 <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>
6010 <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>
6011 <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>
6012 <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>
6013 <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>
6018 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6024 ====Section 1.1.1====
6025 ====Section 1.1.1.1====
6028 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6030 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6032 <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>
6035 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6038 <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>
6039 <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>
6040 <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>
6041 <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>
6042 <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>
6048 Resolving duplicate section names
6053 <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>
6054 <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>
6059 Resolving duplicate section names with differing case (bug 10721)
6064 <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>
6065 <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>
6077 Template with sections, __NOTOC__
6084 <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>
6085 <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>
6086 <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>
6087 <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>
6092 __NOEDITSECTION__ keyword
6098 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6099 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6104 Link inside a section heading
6106 ==Section with a [[Main Page|link]] in it==
6108 <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>
6113 TOC regression (bug 12077)
6120 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6122 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6124 <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>
6127 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6130 <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>
6131 <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>
6132 <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>
6137 BUG 1219 URL next to image (good)
6139 http://example.com [[Image:foobar.jpg]]
6141 <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>
6146 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6149 The line above must have a trailing space!
6152 But just in case it doesn't...
6154 <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>
6155 <p>The line above must have a trailing space!
6157 <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>
6158 <p>But just in case it doesn't...
6163 Header with special characters (bug 25462)
6165 The tooltips shall not show entities to the user (ie. be double escaped)
6182 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6184 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6186 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6187 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6188 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6189 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6190 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6193 <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>
6196 <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>
6199 <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>
6202 <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>
6205 <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>
6211 Headers with excess '=' characters
6212 (Are similar tests necessary beyond the 1st level?)
6216 =''italic'' heading==
6217 ==''italic'' heading=
6219 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6221 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6222 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6223 <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>
6224 <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>
6227 <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>
6228 <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>
6229 <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>
6230 <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>
6235 BUG 1219 URL next to image (broken)
6237 http://example.com[[Image:foobar.jpg]]
6239 <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>
6244 Bug 1186 news: in the middle of text
6246 http://en.wikinews.org/wiki/Wikinews:Workplace
6248 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6254 Namespaced link must have a title
6263 Namespaced link must have a title (bad fragment version)
6265 [[Project:#fragment]]
6267 <p>[[Project:#fragment]]
6273 div with no attributes
6275 <div>HTML rocks</div>
6277 <div>HTML rocks</div>
6282 div with double-quoted attribute
6284 <div id="rock">HTML rocks</div>
6286 <div id="rock">HTML rocks</div>
6291 div with single-quoted attribute
6293 <div id='rock'>HTML rocks</div>
6295 <div id="rock">HTML rocks</div>
6300 div with unquoted attribute
6302 <div id=rock>HTML rocks</div>
6304 <div id="rock">HTML rocks</div>
6309 div with illegal double attributes
6311 <div id="a" id="b">HTML rocks</div>
6313 <div id="b">HTML rocks</div>
6318 HTML multiple attributes correction
6320 <p class="error" class="awesome">Awesome!</p>
6322 <p class="awesome">Awesome!</p>
6327 Table multiple attributes correction
6330 !+ class="error" class="awesome"| status
6335 <th class="awesome"> status
6343 <DIV ID="x">HTML ROCKS</DIV>
6345 <div id="x">HTML ROCKS</div>
6351 text with amp in the middle of nowhere
6355 <p>Remember AT&T?
6360 text with character entity: eacute
6362 I always thought é was a cute letter.
6364 <p>I always thought é was a cute letter.
6369 text with undefined character entity: xacute
6371 I always thought &xacute; was a cute letter.
6373 <p>I always thought &xacute; was a cute letter.
6385 [[Media:Foobar.jpg]]
6387 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6392 Media link with text
6394 [[Media:Foobar.jpg|A neat file to look at]]
6396 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6400 # FIXME: this is still bad HTML tag nesting
6402 Media link with nasty text
6403 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6405 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6407 <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>
6412 Media link to nonexistent file (bug 1702)
6414 [[Media:No such.jpg]]
6416 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6421 Image link to nonexistent file (bug 1850 - good)
6423 [[Image:No such.jpg]]
6425 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6430 :Image link to nonexistent file (bug 1850 - bad)
6432 [[:Image:No such.jpg]]
6434 <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>
6441 Character reference normalization in link text (bug 1938)
6443 [[Main Page|this&that]]
6445 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6452 Test for unicode normalization
6454 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6458 (bug 19451) Links should refer to the normalized form.
6466 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6467 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6468 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6469 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6470 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6475 Empty attribute crash test (bug 2067)
6477 <font color="">foo</font>
6479 <p><font color="">foo</font>
6484 Empty attribute crash test single-quotes (bug 2067)
6486 <font color=''>foo</font>
6488 <p><font color="">foo</font>
6493 Attribute test: equals, then nothing
6495 <font color=>foo</font>
6502 Attribute test: unquoted value
6504 <font color=x>foo</font>
6506 <p><font color="x">foo</font>
6511 Attribute test: unquoted but illegal value (hash)
6513 <font color=#x>foo</font>
6515 <p><font color="#x">foo</font>
6520 Attribute test: no value
6522 <font color>foo</font>
6524 <p><font color="color">foo</font>
6529 Bug 2095: link with three closing brackets
6533 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6538 Bug 2095: link with pipe and three closing brackets
6542 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6547 Bug 2095: link with pipe and three closing brackets, version 2
6549 [[Main Page|[http://example.com/]]]
6551 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6561 Template:Dangerous attribute
6563 " onmouseover="alert(document.cookie)
6567 Template:Dangerous style attribute
6569 border-size: expression(alert(document.cookie))
6575 <div style="float: right; {{{1}}}">Magic div</div>
6579 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6581 <div title="{{test}}"></div>
6583 <div title="This is a test template"></div>
6588 Bug 2304: HTML attribute safety (dangerous template; 2309)
6590 <div title="{{dangerous attribute}}"></div>
6592 <div title=""></div>
6597 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6599 <div style="{{dangerous style attribute}}"></div>
6601 <div style="/* insecure input */"></div>
6606 Bug 2304: HTML attribute safety (safe parameter; 2309)
6608 {{div style|width: 200px}}
6610 <div style="float: right; width: 200px">Magic div</div>
6615 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6617 {{div style|width: expression(alert(document.cookie))}}
6619 <div style="/* insecure input */">Magic div</div>
6624 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6626 {{div style|"><script>alert(document.cookie)</script>}}
6628 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6633 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6635 {{div style|" ><script>alert(document.cookie)</script>}}
6637 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6642 Bug 2304: HTML attribute safety (link)
6644 <div title="[[Main Page]]"></div>
6646 <div title="[[Main Page]]"></div>
6651 Bug 2304: HTML attribute safety (italics)
6653 <div title="''foobar''"></div>
6655 <div title="''foobar''"></div>
6660 Bug 2304: HTML attribute safety (bold)
6662 <div title="'''foobar'''"></div>
6664 <div title="'''foobar'''"></div>
6670 Bug 2304: HTML attribute safety (ISBN)
6672 <div title="ISBN 1234567890"></div>
6674 <div title="ISBN 1234567890"></div>
6679 Bug 2304: HTML attribute safety (RFC)
6681 <div title="RFC 1234"></div>
6683 <div title="RFC 1234"></div>
6688 Bug 2304: HTML attribute safety (PMID)
6690 <div title="PMID 1234567890"></div>
6692 <div title="PMID 1234567890"></div>
6697 Bug 2304: HTML attribute safety (web link)
6699 <div title="http://example.com/"></div>
6701 <div title="http://example.com/"></div>
6706 Bug 2304: HTML attribute safety (named web link)
6708 <div title="[http://example.com/ link]"></div>
6710 <div title="[http://example.com/ link]"></div>
6715 Bug 3244: HTML attribute safety (extension; safe)
6717 <div style="<nowiki>background:blue</nowiki>"></div>
6719 <div style="background:blue"></div>
6724 Bug 3244: HTML attribute safety (extension; unsafe)
6726 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6728 <div style="/* insecure input */"></div>
6732 # More MSIE fun discovered by Tom Gilder
6735 MSIE CSS safety test: spurious slash
6737 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6739 <div style="/* insecure input */">evil</div>
6744 MSIE CSS safety test: hex code
6746 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6748 <div style="/* insecure input */">evil</div>
6753 MSIE CSS safety test: comment in url
6755 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6757 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6762 MSIE CSS safety test: comment in expression
6764 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6766 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6772 Table attribute legitimate extension
6775 !+ style="<nowiki>color:blue</nowiki>"| status
6780 <th style="color:blue"> status
6786 Table attribute safety
6789 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6794 <th style="/* insecure input */"> status
6800 CSS line continuation 1
6802 <div style="background-image: u\ rl(test.jpg);"></div>
6804 <div style="/* insecure input */"></div>
6809 CSS line continuation 2
6811 <div style="background-image: u\ rl(test.jpg); "></div>
6813 <div style="/* insecure input */"></div>
6824 Expansion of multi-line templates in attribute values (bug 6255)
6826 <div style="background: {{identity|#00FF00}}">-</div>
6828 <div style="background: #00FF00">-</div>
6834 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6836 <div style="background:
6839 <div style="background: #00FF00">-</div>
6844 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6846 <div style="background: #00FF00">-</div>
6848 <div style="background: #00FF00">-</div>
6853 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6856 Parser hook: empty input
6869 Parser hook: empty input using terminated empty elements
6882 Parser hook: empty input using terminated empty elements (space before)
6895 Parser hook: basic input
6909 Parser hook: case insensitive
6923 Parser hook: case insensitive, redux
6936 Parser hook: nested tags
6940 <tag><tag></tag></tag>
6951 Parser hook: basic arguments
6953 <tag width=200 height = "100" depth = '50' square></tag>
6972 Parser hook: argument containing a forward slash (bug 5344)
6974 <tag filename='/tmp/bla'></tag>
6980 string(8) "/tmp/bla"
6987 Parser hook: empty input using terminated empty elements (bug 2374)
7001 # </tag> should be output literally since there is no matching tag that begins it
7003 Parser hook: basic arguments using terminated empty elements (bug 2374)
7005 <tag width=200 height = "100" depth = '50' square/>
7028 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7032 Parser hook: static parser hook not inside a comment
7034 <statictag>hello, world</statictag>
7035 <statictag action=flush/>
7043 Parser hook: static parser hook inside a comment
7045 <!-- <statictag>hello, world</statictag> -->
7046 <statictag action=flush/>
7052 # Nested template calls; this case was broken by Parser.php rev 1.506,
7056 Template:One-parameter
7058 (My parameter is: {{{1}}})
7062 Template:Map-one-parameter
7068 Nested template calls
7070 {{Map-one-parameter|One-parameter|param}}
7072 <p>(My parameter is: param)
7081 Sanitizer: Closing of open tags
7083 <s></s><table></table>
7085 <s></s><table></table>
7090 Sanitizer: Closing of open but not closed tags
7099 Sanitizer: Closing of closed but not open tags
7108 Sanitizer: Closing of closed but not open table tags
7110 Table not started</td></tr></table>
7112 <p>Table not started</td></tr></table>
7117 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7119 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7121 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7126 Sanitizer: Validating the contents of the id attribute (bug 4515)
7132 Something, but definitely not <br id="9" />...
7136 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7140 <br id="foo" /><br id="foo" />
7142 Something need to be done. foo-2 ?
7146 Language converter: output gets cut off unexpectedly (bug 5757)
7150 this bit is safe: }-
7152 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7154 then we get cut off here: }-
7156 all additional text is vanished
7158 <p>this bit is safe: }-
7159 </p><p>but if we add a conversion instance: xxx
7160 </p><p>then we get cut off here: }-
7161 </p><p>all additional text is vanished
7166 Self closed html pairs (bug 5487)
7169 <center><font id="bug" />Centered text</center>
7170 <div><font id="bug2" />In div text</div>
7172 <center><font id="bug" />Centered text</center>
7173 <div><font id="bug2" />In div text</div>
7182 Punctuation: nbsp before exclamation
7186 <p>C'est grave !
7191 Punctuation: CSS !important (bug 11874)
7193 <div style="width:50% !important">important</div>
7195 <div style="width:50% !important">important</div>
7200 Punctuation: CSS ! important (bug 11874; with space after)
7202 <div style="width:50% ! important">important</div>
7204 <div style="width:50% ! important">important</div>
7210 HTML bullet list, closed tags (bug 5497)
7225 HTML bullet list, unclosed tags (bug 5497)
7242 HTML ordered list, closed tags (bug 5497)
7257 HTML ordered list, unclosed tags (bug 5497)
7274 HTML nested bullet list, closed tags (bug 5497)
7299 HTML nested bullet list, open tags (bug 5497)
7324 HTML nested ordered list, closed tags (bug 5497)
7349 HTML nested ordered list, open tags (bug 5497)
7374 HTML ordered list item with parameters oddity
7376 <ol><li id="fragment">One</li></ol>
7378 <ol><li id="fragment">One</li></ol>
7383 bug 5918: autonumbering
7385 [http://first/] [http://second] [ftp://ftp]
7389 [mailto:enclosed@mail.tld With target]
7391 [mailto:enclosed@mail.tld]
7393 mailto:inline@mail.tld
7395 <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>
7396 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7397 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7398 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7399 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7405 # Security and HTML correctness
7406 # From Nick Jenkins' fuzz testing
7410 Fuzz testing: Parser13
7425 Fuzz testing: Parser14
7430 <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>
7431 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7433 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7440 Fuzz testing: Parser14-table
7445 <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>
7446 <table style="__TOC__">
7452 # Known to produce bogus xml (extra </td>)
7454 Fuzz testing: Parser16
7474 Fuzz testing: Parser21
7477 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7482 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7492 Fuzz testing: Parser22
7494 http://===r:::https://b
7498 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7506 # Known to produce bad XML for now
7508 Fuzz testing: Parser24
7515 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7516 <br style="onmouseover='alert(document.cookie);' " />
7518 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7523 <u class="|">}}}} >
7524 <br style="onmouseover='alert(document.cookie);'" />
7526 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7535 # Note: the current result listed for this is not what the original one was,
7536 # but the original bug was JavaScript injection, which is fixed in any case.
7537 # It's not clear that the original result listed was any more correct than the
7538 # current one. Original result:
7541 # <li class="||">
7542 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7544 Fuzz testing: Parser25 (bug 6055)
7550 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7552 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7557 Fuzz testing: URL adjacent extension (with space, clean)
7560 http://example.com <nowiki>junk</nowiki>
7562 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7567 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7570 http://example.com<nowiki>junk</nowiki>
7572 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7577 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7580 http://example.com<pre>junk</pre>
7582 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7587 Fuzz testing: image with bogus manual thumbnail
7589 [[Image:foobar.jpg|thumbnail= ]]
7591 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7596 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7598 <pre dir=" "></pre>
7600 <pre dir=" "></pre>
7605 Parsing optional HTML elements (Bug 6171)
7610 <td> Some tabular data</td>
7611 <td> More tabular data ...
7612 <td> And yet som tabular data</td>
7618 <td> Some tabular data</td>
7619 <td> More tabular data ...
7620 </td><td> And yet som tabular data</td>
7627 Correct handling of <td>, <tr> (Bug 6171)
7632 <td> Some tabular data</td>
7633 <td> More tabular data ...</td>
7634 <td> And yet som tabular data</td>
7640 <td> Some tabular data</td>
7641 <td> More tabular data ...</td>
7642 <td> And yet som tabular data</td>
7650 Parsing crashing regression (fr:JavaScript)
7654 <p></body></x>
7659 Inline wiki vs wiki block nesting
7665 <p><b>Bold paragraph</b>
7666 </p><p>New wiki paragraph
7671 Inline HTML vs wiki block nesting
7679 <p><b>Bold paragraph</b>
7680 </p><p>New wiki paragraph
7684 # Original result was this:
7685 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7687 # While that might be marginally more intuitive, maybe, the six-apostrophe
7688 # construct is clearly pathological and the result stated here (which is what
7689 # the parser actually does) is about as reasonable as anything.
7691 Mixing markup for italics and bold
7694 '''bold''''''bold''bolditalics'''''
7696 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7704 Article for special page transclusion test
7708 Special page transclusion
7711 {{Special:Prefixindex/Xyzzyx}}
7713 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7718 Special page transclusion twice (bug 5021)
7721 {{Special:Prefixindex/Xyzzyx}}
7722 {{Special:Prefixindex/Xyzzyx}}
7724 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7725 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7730 Transclusion of default MediaWiki message
7732 {{MediaWiki:Mainpage}}
7739 Transclusion of nonexistent MediaWiki message
7741 {{MediaWiki:Mainpagexxx}}
7743 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7748 Transclusion of MediaWiki message with underscore
7750 {{MediaWiki:history_short}}
7757 Transclusion of MediaWiki message with space
7759 {{MediaWiki:history short}}
7766 Invalid header with following text
7776 Section extraction test (section 0)
7796 Section extraction test (section 1)
7818 Section extraction test (section 2)
7839 Section extraction test (section 3)
7859 Section extraction test (section 4)
7883 Section extraction test (section 5)
7903 Section extraction test (section 6)
7924 Section extraction test (section 7)
7944 Section extraction test (section 8)
7964 Section extraction test (section 9)
7985 Section extraction test (section 10)
8005 Section extraction test (nonexistent section 11)
8024 Section extraction test with bogus heading (section 1)
8029 ==bogus== not a legal section
8033 ==bogus== not a legal section
8037 Section extraction test with bogus heading (section 2)
8042 ==bogus== not a legal section
8049 Section extraction test with comment after heading (section 1)
8061 Section extraction test with comment after heading (section 2)
8073 Section extraction test with bogus <nowiki> heading (section 1)
8078 ==bogus== <nowiki>not a legal section</nowiki>
8082 ==bogus== <nowiki>not a legal section</nowiki>
8086 Section extraction test with bogus <nowiki> heading (section 2)
8091 ==bogus== <nowiki>not a legal section</nowiki>
8098 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8099 # instead of respecting commented sections
8101 Section extraction prefixed by comment (section 1)
8112 Section extraction prefixed by comment (section 2)
8123 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8124 # instead of respecting HTML-style headings
8126 Section extraction, mixed wiki and html (section 1)
8142 Section extraction, mixed wiki and html (section 2)
8158 # Formerly testing for bug 3342
8160 Section extraction, heading surrounded by <noinclude>
8164 <noinclude>==unmarked==</noinclude>
8170 # Test behaviour of bug 19910
8172 Sectiion with all-equals
8177 The line above must have a trailing space
8180 But just in case it doesn't...
8184 But just in case it doesn't...
8188 Section replacement test (section 0)
8219 Section replacement test (section 1)
8248 Section replacement test (section 2)
8278 Section replacement test (section 3)
8309 Section replacement test (section 4)
8336 Section replacement test (section 5)
8367 Section replacement test (section 6)
8397 Section replacement test (section 7)
8428 Section replacement test (section 8)
8459 Section replacement test (section 9)
8488 Section replacement test (section 10)
8518 Section replacement test with initial whitespace (bug 13728)
8522 Preformatted initial line
8526 Preformatted initial line
8533 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8545 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8558 Section extraction, <pre> around bogus header (bug 10309)
8575 Section replacement, <pre> around bogus header (bug 10309)
8577 noxml replace=2,"xxx"
8598 Handling of 
 in URLs
8602 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8609 5 quotes, code coverage +1 line
8616 Special:Search page linking.
8620 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8635 * {{SUBJECTPAGENAME}}
8636 * {{SUBJECTPAGENAMEE}}
8643 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8645 <ul><li> Parser test
8646 </li><li> Parser test
8647 </li><li> Parser test
8648 </li><li> Parser_test
8649 </li><li> Parser test
8650 </li><li> Parser_test
8651 </li><li> Talk:Parser test
8652 </li><li> Talk:Parser_test
8653 </li><li> Parser test
8654 </li><li> Parser_test
8661 </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>
8665 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8675 image4 |300px| centre
8676 image5.svg| http://///////
8681 <ul class="gallery">
8682 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8683 <div style="height: 150px;">Image1.png</div>
8684 <div class="gallerytext">
8687 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8688 <div style="height: 150px;">Image2.gif</div>
8689 <div class="gallerytext">
8694 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8695 <div style="height: 150px;">Image3</div>
8696 <div class="gallerytext">
8699 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8700 <div style="height: 150px;">Image4</div>
8701 <div class="gallerytext">
8706 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8707 <div style="height: 150px;">Image5.svg</div>
8708 <div class="gallerytext">
8709 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8713 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8714 <div style="height: 150px;">* image6</div>
8715 <div class="gallerytext">
8723 Gallery (with options)
8725 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8726 File:Nonexistant.jpg|caption
8727 File:Nonexistant.jpg
8728 image:foobar.jpg|some '''caption''' [[Main Page]]
8730 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8733 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8734 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8735 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8736 <div style="height: 70px;">Nonexistant.jpg</div>
8737 <div class="gallerytext">
8742 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8743 <div style="height: 70px;">Nonexistant.jpg</div>
8744 <div class="gallerytext">
8747 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8748 <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>
8749 <div class="gallerytext">
8750 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8754 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8755 <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>
8756 <div class="gallerytext">
8759 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8760 <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>
8761 <div class="gallerytext">
8771 Gallery with wikitext inside caption
8774 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8775 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8778 <ul class="gallery">
8779 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8780 <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>
8781 <div class="gallerytext">
8782 <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>
8786 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8787 <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>
8788 <div class="gallerytext">
8789 <p>This is a test template
8798 gallery (with showfilename option)
8800 <gallery showfilename>
8801 File:Nonexistant.jpg|caption
8802 File:Nonexistant.jpg
8803 image:foobar.jpg|some '''caption''' [[Main Page]]
8807 <ul class="gallery">
8808 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8809 <div style="height: 150px;">Nonexistant.jpg</div>
8810 <div class="gallerytext">
8811 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8816 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8817 <div style="height: 150px;">Nonexistant.jpg</div>
8818 <div class="gallerytext">
8819 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8823 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8824 <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>
8825 <div class="gallerytext">
8826 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8827 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8831 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8832 <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>
8833 <div class="gallerytext">
8834 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8843 Gallery (with namespace-less filenames)
8846 File:Nonexistant.jpg
8852 <ul class="gallery">
8853 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8854 <div style="height: 150px;">Nonexistant.jpg</div>
8855 <div class="gallerytext">
8858 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8859 <div style="height: 150px;">Nonexistant.jpg</div>
8860 <div class="gallerytext">
8863 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8864 <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>
8865 <div class="gallerytext">
8868 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8869 <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>
8870 <div class="gallerytext">
8878 HTML Hex character encoding (spells the word "JavaScript")
8880 JavaScript
8882 <p>JavaScript
8887 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8891 <p>&#xsee;&#XSEE;
8896 HTML Hex character encoding mixed case
8905 __FORCETOC__ override
8917 ISBN 978-0-1234-56 789
8919 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8924 ISBN followed by 5 spaces
8935 ISBN ISBN 1234567890
8937 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8942 Bug 22905: <abbr> followed by ISBN followed by </a>
8944 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8946 <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>
8955 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8960 Double RFC with a wiki link
8964 <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>
8973 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8978 Centre-aligned image
8980 [[Image:foobar.jpg|centre]]
8982 <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>
8989 [[Image:foobar.jpg|none]]
8991 <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>
8996 Width + Height sized image (using px) (height is ignored)
8998 [[Image:foobar.jpg|640x480px]]
9000 <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>
9005 Width-sized image (using px, no following whitespace)
9007 [[Image:foobar.jpg|640px]]
9009 <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>
9014 Width-sized image (using px, with following whitespace - test regression from r39467)
9016 [[Image:foobar.jpg|640px ]]
9018 <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>
9023 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9025 [[Image:foobar.jpg| 640px]]
9027 <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>
9032 Another italics / bold test
9040 # Note the results may be incorrect, as parserTest output included this:
9041 # XML error: Mismatched tag at byte 6120:
9042 # ...<dd> </dt></dl> </dd...
9050 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9061 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9063 Images with the "|" character in the comment
9065 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9067 <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>
9072 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9074 <html><script>alert(1);</script></html>
9076 <p><html><script>alert(1);</script></html>
9081 HTML with raw HTML ($wgRawHtml==true)
9085 <html><script>alert(1);</script></html>
9087 <p><script>alert(1);</script>
9092 Parents of subpages, one level up
9094 subpage title=[[Subpage test/L1/L2/L3]]
9098 <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>
9104 Parents of subpages, one level up, not named
9106 subpage title=[[Subpage test/L1/L2/L3]]
9110 <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>
9117 Parents of subpages, two levels up
9119 subpage title=[[Subpage test/L1/L2/L3]]
9125 <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
9126 </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>
9131 Parents of subpages, two levels up, without trailing slash or name.
9133 subpage title=[[Subpage test/L1/L2/L3]]
9142 Parents of subpages, two levels up, with lots of extra trailing slashes.
9144 subpage title=[[Subpage test/L1/L2/L3]]
9148 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9153 Definition list code coverage
9159 <dl><dt> title  </dt><dd> def
9160 </dd><dt> title </dt><dd> def
9161 </dd><dt>title</dt><dd> def
9167 Don't fall for the self-closing div
9169 <div>hello world</div/>
9171 <div>hello world</div>
9180 <p>[[:Template:Msg]]
9189 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9193 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9195 Always escape literal '>' in output, not just after '<'
9209 <p>This is a test template
9210 This is a test template
9222 Inclusion of !userCanEdit() content
9226 <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>
9232 Out-of-order TOC heading levels
9241 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9243 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9245 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9246 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9249 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9251 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9252 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9257 <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>
9258 <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>
9259 <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>
9260 <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>
9261 <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>
9262 <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>
9268 ISBN with a dummy number
9278 ISBN with space-delimited number
9282 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9288 ISBN with multiple spaces, no number
9307 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9308 </p><p>ISBN 12345678901
9314 ISBN with trailing year (bug 8110)
9316 ISBN 1-234-56789-0 - 2006
9318 ISBN 1 234 56789 0 - 2006
9320 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9321 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9329 {{anchorencode:foo bar©#%n}}
9331 <p>foo_bar.C2.A9.23.25n
9336 anchorencode trims spaces
9338 {{anchorencode: __pretty__please__}}
9345 anchorencode deals with links
9347 {{anchorencode: [[hello|world]] [[hi]]}}
9354 anchorencode deals with templates
9356 {{anchorencode: {{Foo}} }}
9363 anchorencode encodes like the TOC generator: (bug 18431)
9365 === _ +:.3A%3A&&]] ===
9366 {{anchorencode: _ +:.3A%3A&&]] }}
9369 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9370 <p>.2B:.3A.253A.26.26.5D.5D
9374 # Expected output in the following test is not necessarily expected (there
9375 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9376 # only testing for well-formedness.
9378 Bug 6200: blockquotes and paragraph formatting
9398 Bug 8293: Use of center tag ruins paragraph formatting
9420 ### Language variants related tests
9423 Self-link in language variants
9425 title=[[Dunav]] language=sr
9427 Both [[Dunav]] and [[Дунав]] are names for this river.
9429 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9435 Link to pages in language variants
9439 Main Page can be written as [[Маин Паге]]
9441 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9447 Multiple links to pages in language variants
9451 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9453 <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>.
9459 Simple template in language variants
9465 <p>This is a test template
9471 Template with explicit namespace in language variants
9477 <p>This is a test template
9483 Basic test for template parameter in language variants
9487 {{парамтест|param=foo}}
9489 <p>This is a test template with parameter foo
9495 Simple category in language variants
9499 [[Category:МедиаWики Усер'с Гуиде]]
9501 <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>
9506 Stripping -{}- tags (language variants)
9510 Latin proverb: -{Ne nuntium necare}-
9512 <p>Latin proverb: Ne nuntium necare
9518 Prevent conversion with -{}- tags (language variants)
9520 language=sr variant=sr-ec
9522 Latinski: -{Ne nuntium necare}-
9524 <p>Латински: Ne nuntium necare
9530 Prevent conversion of text with -{}- tags (language variants)
9532 language=sr variant=sr-ec
9534 Latinski: -{Ne nuntium necare}-
9536 <p>Латински: Ne nuntium necare
9542 Prevent conversion of links with -{}- tags (language variants)
9544 language=sr variant=sr-ec
9548 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9554 -{}- tags within headlines (within html for parserConvert())
9556 language=sr variant=sr-ec
9560 <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>
9566 Explicit definition of language variant alternatives
9568 language=zh variant=zh-tw
9570 -{zh:China;zh-tw:Taiwan}-, not China
9572 <p>Taiwan, not China
9578 Explicit session-wise language variant mapping (A flag and - flag)
9580 language=zh variant=zh-tw
9582 Taiwan is not China.
9583 But -{A|zh:China;zh-tw:Taiwan}- is China,
9584 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9585 and -{China}- is China.
9587 <p>Taiwan is not China.
9588 But Taiwan is Taiwan,
9589 (This should be stripped!)
9595 Explicit session-wise language variant mapping (H flag for hide)
9597 language=zh variant=zh-tw
9599 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9602 <p>(This should be stripped!)
9608 Adding explicit conversion rule for title (T flag)
9610 language=zh variant=zh-tw showtitle
9612 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9615 <p>Should be stripped!
9620 Testing that changing the language variant here in the tests actually works
9622 language=zh variant=zh showtitle
9624 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9627 <p>Should be stripped!
9632 Bug 24072: more test on conversion rule for title
9634 language=zh variant=zh-tw showtitle
9636 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9637 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9640 <p>This should be stripped!
9641 This won't take interferes with the title rule.
9646 Raw output of variant escape tags (R flag)
9648 language=zh variant=zh-tw
9650 Raw: -{R|zh:China;zh-tw:Taiwan}-
9652 <p>Raw: zh:China;zh-tw:Taiwan
9657 Nested using of manual convert syntax
9659 language=zh variant=zh-hk
9661 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9663 <p>Nested: Hello Hong Kong!
9668 Do not convert roman numbers to language variants
9670 language=sr variant=sr-ec
9674 <p>Фридрих IV је цар.
9679 Unclosed language converter markup "-{"
9690 Don't convert raw rule "-{R|=>}-" to "=>"
9707 Bug 529: Uncovered bullet
9718 Bug 529: Uncovered table already at line-start
9741 Bug 529: Uncovered bullet in parser function result
9743 * Foo {{lc:{{bullet}} }}
9752 Bug 5678: Double-parsed template argument
9754 {{lc:{{{1}}}|hello}}
9761 Bug 5678: Double-parsed template invocation
9763 {{lc:{{paramtest {{!}} param = hello }} }}
9765 <p>{{paramtest | param = hello }}
9770 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9796 Morwen/13: Unclosed link followed by heading
9803 <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>
9808 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9815 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9820 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9827 <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>
9842 Paragraphs inside divs (no extra line breaks)
9854 Paragraphs inside divs (extra line break on open)
9869 Paragraphs inside divs (extra line break on close)
9884 Paragraphs inside divs (extra line break on open and close)
9901 Nesting tags, paragraphs on lines which begin with <div>
9905 <div></div><strong>A
9914 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9916 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9920 <blockquote>Line one
9922 Line two</blockquote>
9924 <blockquote>Line one
9925 Line two</blockquote>
9930 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9937 Line two</blockquote>
9942 Line two</blockquote>
9947 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9951 <blockquote>Line one
9956 <blockquote>Line one
9964 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9983 Paragraphs inside blockquotes/divs (no extra line breaks)
9985 <blockquote><div>Line one
9987 Line two</div></blockquote>
9989 <blockquote><div>Line one
9990 Line two</div></blockquote>
9995 Paragraphs inside blockquotes/divs (extra line break on open)
10000 Line two</div></blockquote>
10005 Line two</div></blockquote>
10010 Paragraphs inside blockquotes/divs (extra line break on close)
10012 <blockquote><div>Line one
10015 </div></blockquote>
10017 <blockquote><div>Line one
10020 </div></blockquote>
10025 Paragraphs inside blockquotes/divs (extra line break on open and close)
10031 </div></blockquote>
10037 </div></blockquote>
10042 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10044 wgLinkHolderBatchSize=0
10050 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10051 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10052 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10057 Free external link invading image caption
10059 [[Image:Foobar.jpg|thumb|http://x|hello]]
10061 <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>
10066 Bug 15196: localised external link numbers
10070 [http://en.wikipedia.org/]
10072 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10077 Multibyte character in padleft
10079 {{padleft:-Hello|7|Æ}}
10086 Multibyte character in padright
10088 {{padright:Hello-|7|Æ}}
10097 wgUseDynamicDates=1
10101 <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>
10106 formatdate parser function
10108 {{#formatdate:2009-03-24}}
10110 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10115 formatdate parser function, with default format
10117 {{#formatdate:2009-03-24|mdy}}
10119 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10124 Linked date with autoformatting disabled
10126 wgUseDynamicDates=false
10130 <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>
10135 Spacing of numbers in formatted dates
10137 {{#formatdate:January 15}}
10139 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10144 Spacing of numbers in formatted dates (linked)
10146 wgUseDynamicDates=true
10150 <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>
10155 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
10157 language=nl title=[[MediaWiki:Common.css]]
10159 {{#formatdate:2009-03-24|dmy}}
10161 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10174 Edit comment with link
10178 I like the [[Main Page]] a lot
10180 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10184 Edit comment with link and link text
10188 I like the [[Main Page|best pages]] a lot
10190 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10194 Edit comment with link and link text with suffix
10198 I like the [[Main Page|best page]]s a lot
10200 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10204 Edit comment with section link (non-local, eg in history list)
10206 comment title=[[Main Page]]
10208 /* External links */ removed bogus entries
10210 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10214 Edit comment with section link and text before it (non-local, eg in history list)
10216 comment title=[[Main Page]]
10218 pre-comment text /* External links */ removed bogus entries
10220 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>
10224 Edit comment with section link (local, eg in diff view)
10226 comment local title=[[Main Page]]
10228 /* External links */ removed bogus entries
10230 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10234 Edit comment with subpage link (bug 14080)
10238 title=[[Subpage test]]
10240 Poked at a [[/subpage]] here...
10242 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10246 Edit comment with subpage link and link text (bug 14080)
10250 title=[[Subpage test]]
10252 Poked at a [[/subpage|neat little page]] here...
10254 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10258 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10261 title=[[Subpage test]]
10263 Poked at a [[/subpage]] here...
10265 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10269 Edit comment with bare anchor link (local, as on diff)
10273 title=[[Main Page]]
10277 <a href="#section">#section</a>
10281 Edit comment with bare anchor link (non-local, as on history)
10284 title=[[Main Page]]
10288 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10292 Anchor starting with underscore
10296 <p><a href="#_ref">One</a>
10301 Id starting with underscore
10303 <div id="_ref"></div>
10305 <div id="_ref"></div>
10310 Space normalisation on autocomment (bug 22784)
10313 title=[[Main Page]]
10315 /* __hello__world__ */
10317 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10321 percent-encoding and + signs in comments (Bug 26410)
10325 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10327 <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>
10331 Bad images - basic functionality
10340 Bad images - bug 16039: text after bad image disappears
10354 Verify that displaytitle works (bug #22501) no displaytitle
10358 wgAllowDisplayTitle=true
10359 wgRestrictDisplayTitle=false
10361 this is not the the title
10364 <p>this is not the the title
10369 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10374 wgAllowDisplayTitle=true
10375 wgRestrictDisplayTitle=false
10377 this is not the the title
10378 {{DISPLAYTITLE:whatever}}
10381 <p>this is not the the title
10386 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10391 wgAllowDisplayTitle=true
10392 wgRestrictDisplayTitle=true
10394 this is not the the title
10395 {{DISPLAYTITLE:whatever}}
10398 <p>this is not the the title
10403 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10408 wgAllowDisplayTitle=true
10409 wgRestrictDisplayTitle=true
10411 this is not the the title
10412 {{DISPLAYTITLE:screen}}
10415 <p>this is not the the title
10420 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10425 wgAllowDisplayTitle=false
10427 this is not the the title
10428 {{DISPLAYTITLE:screen}}
10431 <p>this is not the the title
10432 <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>
10437 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10442 wgAllowDisplayTitle=false
10444 this is not the the title
10447 <p>this is not the the title
10452 preload: check <noinclude> and <includeonly>
10456 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10462 preload: check <onlyinclude>
10466 Goodbye <onlyinclude>Hello world</onlyinclude>
10472 preload: can pass tags through if we want to
10476 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10478 <includeonly>Hello world</includeonly>
10482 preload: check that it doesn't try to do tricks
10486 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10488 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10492 Play a bit with r67090 and bug 3158
10496 <div style="width:50% !important"> </div>
10497 <div style="width:50% !important"> </div>
10498 <div style="width:50% !important"> </div>
10499 <div style="border : solid;"> </div>
10501 <div style="width:50% !important"> </div>
10502 <div style="width:50% !important"> </div>
10503 <div style="width:50% !important"> </div>
10504 <div style="border : solid;"> </div>
10509 HTML5 data attributes
10511 <span data-foo="bar">Baz</span>
10512 <p data-abc-def_hij="">Quuz</p>
10514 <p><span data-foo="bar">Baz</span>
10516 <p data-abc-def_hij="">Quuz</p>
10521 percent-encoding and + signs in internal links (Bug 26410)
10523 [[User:+%]] [[Page+title%]]
10524 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10525 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10526 [[%33%45]] [[%33%45+]]
10528 <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>
10529 <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>
10530 <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>
10531 <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>
10536 Special characters in embedded file links (bug 27679)
10538 [[File:Contains & ampersand.jpg]]
10539 [[File:Does not exist.jpg|Title with & ampersand]]
10541 <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>
10542 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10548 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10550 Text's been normalized?
10552 <p>Text's been normalized?
10557 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10559 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10561 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10566 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10568 [http://www.example.org/ ideograms]
10570 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10575 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10577 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10579 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10603 Bug 31098 Template which includes system messages which includes the template
10607 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10608 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10613 Deprecated presentational attributes are converted to css
10616 | valign=top align=left width=100 height=25% | Asdf
10618 <ul type="disc"></ul>
10622 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10624 <ul style="list-style-type: disc;"></ul>
10629 Bug31490 Turkish: ucfirst 'blah'
10640 Bug31490 Turkish: ucfirst 'ix'
10651 Bug31490 Turkish: lcfirst 'BLAH'
10662 Bug31490 Turkish: ucfırst (with a dotless i)
10668 <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>
10673 Bug31490 ucfırst (with a dotless i) with English language
10679 <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>
10684 Bug 26375: TOC with italics
10686 title=[[Main Page]]
10689 == ''Lost'' episodes ==
10691 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10693 <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>
10696 <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>
10701 Bug 26375: TOC with bold
10703 title=[[Main Page]]
10706 == '''should be bold''' then normal text ==
10708 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10710 <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>
10713 <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>
10718 Bug 33845: Headings become cursive in TOC when they contain an image
10720 title=[[Main Page]]
10723 == Image [[Image:foobar.jpg]] ==
10725 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10727 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10730 <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>
10735 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10737 title=[[Main Page]]
10740 == <blockquote>Quote</blockquote> ==
10742 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10744 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10747 <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>
10752 Unclosed tags in TOC
10754 title=[[Main Page]]
10758 <small>Hanc marginis exiguitas non caperet.</small>
10761 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10763 <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>
10766 <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>
10767 <p><small>Hanc marginis exiguitas non caperet.</small>
10773 Multiple tags in TOC
10776 == <i>Foo</i> <b>Bar</b> ==
10778 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10780 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10782 <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>
10783 <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>
10786 <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>
10787 <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>
10792 Tags with parameters in TOC
10795 == <sup class="in-h2">Hello</sup> ==
10797 == <sup class="a > b">Evilbye</sup> ==
10799 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10801 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10802 <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>
10805 <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>
10806 <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>
10811 span tags with directionality in TOC
10814 == <span dir="ltr">C++</span> ==
10816 == <span dir="rtl">זבנג!</span> ==
10818 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10820 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10822 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10824 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10826 <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>
10827 <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>
10828 <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>
10829 <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>
10830 <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>
10833 <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>
10834 <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>
10835 <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>
10836 <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>
10837 <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>
10844 == {{int:headline_sample}} ==
10848 Bug 32057: Title needed when expanding <h> nodes.
10850 title=[[Main Page]]
10854 <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>
10859 Strip marker in urlencode
10861 {{urlencode:x<nowiki/>y}}
10862 {{urlencode:x<nowiki/>y|wiki}}
10863 {{urlencode:x<nowiki/>y|path}}
10890 Strip marker in formatNum
10892 {{formatnum:1<nowiki/>2}}
10893 {{formatnum:1<nowiki/>2|R}}
10901 Strip marker in grammar
10905 {{grammar:elative|foo<nowiki/>bar}}
10912 Strip marker in padleft
10914 {{padleft:|2|x<nowiki/>y}}
10921 Strip marker in padright
10923 {{padright:|2|x<nowiki/>y}}
10930 Strip marker in anchorencode
10932 {{anchorencode:x<nowiki/>y}}
10939 nowiki inside link inside heading (bug 18295)
10941 ==[[foo|x<nowiki>y</nowiki>z]]==
10943 <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>
10948 new support for bdi element (bug 31817)
10950 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10952 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10957 Ignore pipe between table row attributes
10961 |- id=foo | style='color: red'
10969 <tr id="foo" style="color: red">
10976 Gallery override link with WikiLink (bug 34852)
10979 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10982 <ul class="gallery">
10983 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10984 <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>
10985 <div class="gallerytext">
10995 Gallery override link with absolute external link (bug 34852)
10998 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11001 <ul class="gallery">
11002 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11003 <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>
11004 <div class="gallerytext">
11014 Gallery override link with malicious javascript (bug 34852)
11017 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11020 <ul class="gallery">
11021 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11022 <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>
11023 <div class="gallerytext">
11033 Language parser function
11042 Padleft and padright as substr
11044 {{padleft:|3|abcde}}
11045 {{padright:|3|abcde}}
11053 Bug 34939 - Case insensitive link parsing ([HttP://])
11055 [HttP://MediaWiki.Org/]
11057 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11062 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11064 [HttP://MediaWiki.Org/ MediaWiki]
11066 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11071 Bug 34939 - Case insensitive link parsing (HttP://)
11073 HttP://MediaWiki.Org/
11075 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11085 Try for 100% code coverage