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 ### <includeonly> and <noinclude> in attributes
4329 1. includeonly around the entire attribute
4331 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4333 <p><span id="v2">bar</span>
4338 2. includeonly in html attr key
4340 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4342 <p><span id="foo">bar</span>
4347 3. includeonly in html attr value
4349 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4350 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4352 <p><span id="v1">bar</span>
4353 <span id="v1">bar</span>
4358 4. includeonly in part of an attr value
4360 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4362 <p><span style="color:red;">bar</span>
4367 ### Testing parsing of templates where a template arg
4368 ### has the same name as the template itself.
4378 Templates: Template Name/Arg clash: 1. Use of positional param
4387 Templates: Template Name/Arg clash: 2. Use of named param
4396 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4405 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4409 Templates: 1. Simple use
4418 Templates: 2. Inside a block tag
4420 <div>{{echo|Foo}}</div>
4427 Templates: P-wrapping: 1a. Templates on consecutive lines
4438 Templates: P-wrapping: 1b. Templates on consecutive lines
4452 Templates: P-wrapping: 1c. Templates on consecutive lines
4455 {{echo|bar}} <div>baz</div>
4464 Templates: Inline Text: 1. Multiple tmeplate uses
4466 {{echo|Foo}}bar{{echo|baz}}
4473 Templates: Inline Text: 2. Back-to-back template uses
4475 {{echo|Foo}}{{echo|bar}}
4482 Templates: Block Tags: 1. Multiple template uses
4484 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4486 <div>Foo</div><div>bar</div><div>baz</div>
4491 Templates: Block Tags: 2. Back-to-back template uses
4493 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4495 <div>Foo</div><div>bar</div>
4500 Templates: Links: 1. Simple example
4502 {{echo|[[Foo|bar]]}}
4504 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4509 Templates: Links: 2. Generation of link href
4511 [[{{echo|Foo}}|bar]]
4513 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4518 Templates: Links: 3. Generation of part of a link href
4520 [[Fo{{echo|o}}|bar]]
4522 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4527 Templates: Links: 4. Multiple templates generating link href
4529 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4531 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4536 Templates: Links: 5. Generation of link text
4538 [[Foo|{{echo|bar}}]]
4540 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4545 Templates: Links: 5. Nested templates (only outermost template should be marked)
4547 {{echo|[[{{echo|Foo}}|bar]]}}
4549 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4554 Templates: HTML Tag: 1. Generation of HTML attr. key
4556 <div {{echo|style}}="color:red;">foo</div>
4558 <div style="color:red;">foo</div>
4563 Templates: HTML Tag: 2. Generation of HTML attr. value
4565 <div style={{echo|'color:red;'}}>foo</div>
4567 <div style="color:red;">foo</div>
4572 Templates: HTML Tag: 3. Generation of HTML attr key and value
4574 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4576 <div style="color:red;">foo</div>
4581 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4583 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4585 <div title="This is a long title with just one piece templated">foo</div>
4590 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4592 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4594 <div title="This is a long title with just one piece templated">foo</div>
4599 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4601 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4603 <div title="This is a long title with just one piece templated">foo</div>
4608 Templates: Tables: 1. Generating start of a HTML table
4610 {{echo|<table><tr><td>foo</td>}}</tr></table>
4612 <table><tr><td>foo</td></tr></table>
4617 Templates: Tables: 2a. Generating middle of a HTML table
4619 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4621 <table><tr><td>foo</td></tr></table>
4626 Templates: Tables: 2b. Generating middle of a HTML table
4628 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4630 <table><tr><td>foo</td></tr></table>
4635 Templates: Tables: 3. Generating end of a HTML table
4637 <table><tr>{{echo|<td>foo</td></tr></table>}}
4639 <table><tr><td>foo</td></tr></table>
4644 Templates: Tables: 4a. Generating a single tag of a HTML table
4646 {{echo|<table>}}<tr><td>foo</td></tr></table>
4648 <table><tr><td>foo</td></tr></table>
4653 Templates: Tables: 4b. Generating a single tag of a HTML table
4655 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4657 <table><tr><td>foo</td></tr></table>
4662 Templates: Tables: 4c. Generating a single tag of a HTML table
4664 <table><tr>{{echo|<td>}}foo</td></tr></table>
4666 <table><tr><td>foo</td></tr></table>
4671 Templates: Tables: 4d. Generating a single tag of a HTML table
4673 <table><tr><td>foo{{echo|</td>}}</tr></table>
4675 <table><tr><td>foo</td></tr></table>
4680 Templates: Tables: 4e. Generating a single tag of a HTML table
4682 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4684 <table><tr><td>foo</td></tr></table>
4689 Templates: Tables: 4f. Generating a single tag of a HTML table
4691 <table><tr><td>foo</td></tr>{{echo|</table>}}
4693 <table><tr><td>foo</td></tr></table>
4698 Parser Functions: 1. Simple example
4707 Parser Functions: 2. Nested use (only outermost should be marked up)
4716 ### Pre-save transform tests
4719 pre-save transform: subst:
4725 This is a test template
4729 pre-save transform: normal template
4739 pre-save transform: nonexistent template
4743 {{thistemplatedoesnotexist}}
4745 {{thistemplatedoesnotexist}}
4750 pre-save transform: subst magic variables
4759 # This is bug 89, which I fixed. -- wtm
4761 pre-save transform: subst: templates with parameters
4765 {{subst:paramtest|param="something else"}}
4767 This is a test template with parameter "something else"
4773 <nowiki>'''not wiki'''</nowiki>
4777 pre-save transform: nowiki in subst (bug 1188)
4781 {{subst:nowikitest}}
4783 <nowiki>'''not wiki'''</nowiki>
4788 Template:commenttest
4790 This template has <!-- a comment --> in it.
4794 pre-save transform: comment in subst (bug 1936)
4798 {{subst:commenttest}}
4800 This template has <!-- a comment --> in it.
4804 pre-save transform: unclosed tag
4808 <nowiki>'''not wiki'''
4810 <nowiki>'''not wiki'''
4814 pre-save transform: mixed tag case
4818 <NOwiki>'''not wiki'''</noWIKI>
4820 <NOwiki>'''not wiki'''</noWIKI>
4824 pre-save transform: unclosed comment in <nowiki>
4828 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4830 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4836 <span onmouseover="alert('crap')">Oh no</span>
4840 (confirming safety of fix for subst bug 1936)
4842 {{Template:dangerous}}
4844 <p><span>Oh no</span>
4849 pre-save transform: comment containing gallery (bug 5024)
4853 <!-- <gallery>data</gallery> -->
4855 <!-- <gallery>data</gallery> -->
4859 pre-save transform: comment containing extension
4863 <!-- <tag>data</tag> -->
4865 <!-- <tag>data</tag> -->
4869 pre-save transform: comment containing nowiki
4873 <!-- <nowiki>data</nowiki> -->
4875 <!-- <nowiki>data</nowiki> -->
4879 pre-save transform: <noinclude> in subst (bug 3298)
4889 pre-save transform: <onlyinclude> in subst (bug 3298)
4901 {{<includeonly>subst:</includeonly>Includes}}
4905 Template:SafeSubstTest
4907 {{<includeonly>safesubst:</includeonly>Includes}}
4911 bug 22297: safesubst: works during PST
4915 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4921 bug 22297: safesubst: works during normal parse
4930 subst: does not work during normal parse
4934 <p>{{subst:Includes}}
4939 pre-save transform: context links ("pipe trick")
4943 [[Article (context)|]]
4946 [[Bar:Article (context)|]]
4947 [[:Bar:Article (context)|]]
4949 [[|Article (context)]]
4953 [[Article (context)|Article]]
4954 [[Bar:Article|Article]]
4955 [[:Bar:Article|Article]]
4956 [[Bar:Article (context)|Article]]
4957 [[:Bar:Article (context)|Article]]
4959 [[Article (context)]]
4960 [[Bar:X (Y) Z|X (Y) Z]]
4961 [[:Bar:X (Y) Z|X (Y) Z]]
4965 pre-save transform: context links ("pipe trick") with interwiki prefix
4969 [[interwiki:Article|]]
4970 [[:interwiki:Article|]]
4971 [[interwiki:Bar:Article|]]
4972 [[:interwiki:Bar:Article|]]
4974 [[interwiki:Article|Article]]
4975 [[:interwiki:Article|Article]]
4976 [[interwiki:Bar:Article|Bar:Article]]
4977 [[:interwiki:Bar:Article|Bar:Article]]
4981 pre-save transform: context links ("pipe trick") with parens in title
4983 pst title=[[Somearticle (context)]]
4987 [[Article (context)|Article]]
4991 pre-save transform: context links ("pipe trick") with comma in title
4993 pst title=[[Someplace, Somewhere]]
4996 [[Otherplace, Elsewhere|]]
4997 [[Otherplace, Elsewhere, Anywhere|]]
4999 [[Otherplace, Somewhere|Otherplace]]
5000 [[Otherplace, Elsewhere|Otherplace]]
5001 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5005 pre-save transform: context links ("pipe trick") with parens and comma
5007 pst title=[[Someplace (IGNORED), Somewhere]]
5010 [[Otherplace (place), Elsewhere|]]
5012 [[Otherplace, Somewhere|Otherplace]]
5013 [[Otherplace (place), Elsewhere|Otherplace]]
5017 pre-save transform: context links ("pipe trick") with comma and parens
5019 pst title=[[Who, me? (context)]]
5022 [[Me, Myself, and I (1937 song)|]]
5024 [[Yes, you. (context)|Yes, you.]]
5025 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5029 pre-save transform: context links ("pipe trick") with namespace
5031 pst title=[[Ns:Somearticle]]
5035 [[Ns:Article|Article]]
5039 pre-save transform: context links ("pipe trick") with namespace and parens
5041 pst title=[[Ns:Somearticle (context)]]
5045 [[Ns:Article (context)|Article]]
5049 pre-save transform: context links ("pipe trick") with namespace and comma
5051 pst title=[[Ns:Somearticle, Context, Whatever]]
5055 [[Ns:Article, Context, Whatever|Article]]
5059 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5061 pst title=[[Ns:Somearticle, Context (context)]]
5065 [[Ns:Article (context)|Article]]
5069 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5071 pst title=[[Ns:Somearticle (IGNORED), Context]]
5075 [[Ns:Article, Context|Article]]
5079 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5083 [[Article(context)|]]
5084 [[Bar:Article(context)|]]
5085 [[:Bar:Article(context)|]]
5086 [[|Article(context)]]
5090 [[Article(context)|Article]]
5091 [[Bar:Article(context)|Article]]
5092 [[:Bar:Article(context)|Article]]
5093 [[Article(context)]]
5095 [[:Bar:X(Y)Z|X(Y)Z]]
5099 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5103 [[Article (context)|]]
5104 [[Bar:Article (context)|]]
5105 [[:Bar:Article (context)|]]
5106 [[|Article (context)]]
5110 [[Article (context)|Article]]
5111 [[Bar:Article (context)|Article]]
5112 [[:Bar:Article (context)|Article]]
5113 [[Article (context)]]
5114 [[Bar:X (Y) Z|X (Y) Z]]
5115 [[:Bar:X (Y) Z|X (Y) Z]]
5119 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5123 [[Article(context)|]]
5124 [[Bar:Article(context)|]]
5125 [[:Bar:Article(context)|]]
5126 [[|Article(context)]]
5130 [[Article(context)|Article]]
5131 [[Bar:Article(context)|Article]]
5132 [[:Bar:Article(context)|Article]]
5133 [[Article(context)]]
5135 [[:Bar:X(Y)Z|X(Y)Z]]
5139 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5143 [[Article (context), context|]]
5144 [[Article (context),context|]]
5145 [[Bar:Article (context), context|]]
5146 [[Bar:Article (context),context|]]
5147 [[:Bar:Article (context), context|]]
5148 [[:Bar:Article (context),context|]]
5150 [[Article (context), context|Article]]
5151 [[Article (context),context|Article]]
5152 [[Bar:Article (context), context|Article]]
5153 [[Bar:Article (context),context|Article]]
5154 [[:Bar:Article (context), context|Article]]
5155 [[:Bar:Article (context),context|Article]]
5159 pre-save transform: trim trailing empty lines
5163 Empty lines are trimmed
5169 Empty lines are trimmed
5173 pre-save transform: Signature expansion
5178 * <noinclude>~~~</noinclude>
5179 * <includeonly>~~~</includeonly>
5180 * <onlyinclude>~~~</onlyinclude>
5182 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5183 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5184 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5185 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5190 pre-save transform: Signature expansion in nowiki tags (bug 93)
5196 <nowiki>~~~~</nowiki>
5198 <includeonly><nowiki>~~~~</nowiki></includeonly>
5200 <noinclude><nowiki>~~~~</nowiki></noinclude>
5202 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5204 {{subst:Foo}} shall be converted to FOO
5206 As well as inside noinclude/onlyinclude
5207 <noinclude>{{subst:Foo}}</noinclude>
5208 <onlyinclude>{{subst:Foo}}</onlyinclude>
5210 But not inside includeonly
5211 <includeonly>{{subst:Foo}}</includeonly>
5215 <nowiki>~~~~</nowiki>
5217 <includeonly><nowiki>~~~~</nowiki></includeonly>
5219 <noinclude><nowiki>~~~~</nowiki></noinclude>
5221 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5223 FOO shall be converted to FOO
5225 As well as inside noinclude/onlyinclude
5226 <noinclude>FOO</noinclude>
5227 <onlyinclude>FOO</onlyinclude>
5229 But not inside includeonly
5230 <includeonly>{{subst:Foo}}</includeonly>
5234 ### Message transform tests
5237 message transform: magic variables
5247 message transform: should not transform wiki markup
5257 message transform: <noinclude> in transcluded template (bug 4926)
5267 message transform: <onlyinclude> in transcluded template (bug 4926)
5277 {{#special:}} page name, known
5281 {{#special:Recentchanges}}
5283 Special:RecentChanges
5287 {{#special:}} page name with subpage, known
5291 {{#special:Recentchanges/param}}
5293 Special:RecentChanges/param
5297 {{#special:}} page name, unknown
5301 {{#special:foobarnonexistent}}
5303 No such special page
5307 {{#speciale:}} page name, known
5311 {{#speciale:Recentchanges}}
5313 Special:RecentChanges
5317 {{#speciale:}} page name with subpage, known
5321 {{#speciale:Recentchanges/param}}
5323 Special:RecentChanges/param
5327 {{#speciale:}} page name, unknown
5331 {{#speciale:foobarnonexistent}}
5333 No_such_special_page
5342 [[Image:foobar.jpg]]
5344 <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>
5351 [[Image:foobar.jpg|right]]
5353 <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>
5358 Simple image (using File: namespace, now canonical)
5362 <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>
5369 [[Image:foobar.jpg|right|Caption text]]
5371 <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>
5376 Image with link parameter, wiki target
5378 [[Image:foobar.jpg|link=Target page]]
5380 <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>
5385 Image with link parameter, URL target
5387 [[Image:foobar.jpg|link=http://example.com/]]
5389 <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>
5394 Image with link parameter, wgExternalLinkTarget
5396 [[Image:foobar.jpg|link=http://example.com/]]
5398 wgExternalLinkTarget='foobar'
5400 <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>
5405 Image with link parameter, wgNoFollowLinks set to false
5407 [[Image:foobar.jpg|link=http://example.com/]]
5409 wgNoFollowLinks=false
5411 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5416 Image with link parameter, wgNoFollowDomainExceptions
5418 [[Image:foobar.jpg|link=http://example.com/]]
5420 wgNoFollowDomainExceptions='example.com'
5422 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5427 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5429 [[Image:foobar.jpg|link=http://example.com/|Title]]
5431 wgExternalLinkTarget='foobar'
5433 <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>
5438 Image with empty link parameter
5440 [[Image:foobar.jpg|link=]]
5442 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5447 Image with link parameter (wiki target) and unnamed parameter
5449 [[Image:foobar.jpg|link=Target page|Title]]
5451 <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>
5456 Image with link parameter (URL target) and unnamed parameter
5458 [[Image:foobar.jpg|link=http://example.com/|Title]]
5460 <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>
5465 Thumbnail image with link parameter
5467 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5469 <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>
5474 Image with frame and link
5476 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5478 <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>
5483 Image with frame and link and explicit alt
5485 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5487 <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>
5492 Image with wiki markup in implicit alt
5494 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5496 <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>
5501 Image with wiki markup in explicit alt
5503 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5505 <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>
5510 Link to image page- image page normally doesn't exists, hence edit link
5511 Add test with existing image page
5512 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5516 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5521 bug 18784 Link to non-existent image page with caption should use caption as link text
5523 [[:Image:test|caption]]
5525 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5530 Frameless image caption with a free URL
5532 [[Image:foobar.jpg|http://example.com]]
5534 <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>
5539 Thumbnail image caption with a free URL
5541 [[Image:foobar.jpg|thumb|http://example.com]]
5543 <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>
5548 Thumbnail image caption with a free URL and explicit alt
5550 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5552 <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>
5557 BUG 1887: A ISBN with a thumbnail
5559 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5561 <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>
5566 BUG 1887: A RFC with a thumbnail
5568 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5570 <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>
5575 BUG 1887: A mailto link with a thumbnail
5577 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5579 <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>
5583 # Pending resolution to bug 368
5585 BUG 648: Frameless image caption with a link
5587 [[Image:foobar.jpg|text with a [[link]] in it]]
5589 <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>
5594 BUG 648: Frameless image caption with a link (suffix)
5596 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5598 <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>
5603 BUG 648: Frameless image caption with an interwiki link
5605 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5607 <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>
5612 BUG 648: Frameless image caption with a piped interwiki link
5614 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5616 <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>
5621 Escape HTML special chars in image alt text
5623 [[Image:foobar.jpg|& < > "]]
5625 <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>
5630 BUG 499: Alt text should have Ӓ, not &1234;
5632 [[Image:foobar.jpg|♀]]
5634 <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>
5639 Broken image caption with link
5641 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5643 <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.
5648 Image caption containing another image
5650 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5652 <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>
5657 Image caption containing a newline
5659 [[Image:Foobar.jpg|This
5662 <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>
5668 Bug 3090: External links other than http: in image captions
5670 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5672 <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>
5679 [[Image:foobar.jpg|a|class=b]]
5681 <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>
5688 #REDIRECT [[File:Barfoo.jpg]]
5694 [[Image:Barfoo.jpg]]
5696 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5701 Missing image with uploads disabled
5705 [[Image:Foobaz.jpg]]
5707 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5716 Subpage test/subpage
5724 subpage title=[[Subpage test]]
5728 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5733 Subpage noslash link
5735 subpage title=[[Subpage test]]
5739 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5748 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5753 BUG 561: {{/Subpage}}
5755 subpage title=[[Page]]
5759 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5767 Category:MediaWiki User's Guide
5775 [[:Category:MediaWiki User's Guide]]
5777 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5786 [[Category:MediaWiki User's Guide]]
5788 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5792 PAGESINCATEGORY invalid title fatal (r33546 fix)
5794 {{PAGESINCATEGORY:<bogus>}}
5801 Category with different sort key
5805 [[Category:MediaWiki User's Guide|Foo]]
5807 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5811 Category with identical sort key
5815 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5817 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5821 Category with empty sort key
5826 [[Category:MediaWiki User's Guide|]]
5828 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5832 Category with empty sort key and parentheses
5837 [[Category:Foo (bar)|]]
5839 [[Category:Foo (bar)|Foo]]
5843 ### Inter-language links
5846 Inter-language links
5852 [[zh:食品]]
5854 es:Alimento fr:Nourriture zh:食品
5858 Duplicate interlanguage links (bug 24502)
5874 Basic section headings
5881 ===Smaller headline===
5884 <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>
5887 <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>
5890 <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>
5896 Section headings with TOC
5899 === Subheadline 1 ===
5900 ===== Skipping a level =====
5901 ====== Skipping a level ======
5905 ===Another headline===
5907 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5909 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5911 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5913 <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>
5915 <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>
5922 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5924 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5929 <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>
5930 <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>
5931 <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>
5932 <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>
5933 <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>
5936 <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>
5940 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5942 Handling of sections up to level 6 and beyond
5945 == Level 2 Heading==
5946 === Level 3 Heading===
5947 ==== Level 4 Heading====
5948 ===== Level 5 Heading=====
5949 ====== Level 6 Heading======
5950 ======= Level 7 Heading=======
5951 ======== Level 8 Heading========
5952 ========= Level 9 Heading=========
5953 ========== Level 10 Heading==========
5955 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5957 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5959 <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>
5961 <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>
5963 <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>
5965 <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>
5967 <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>
5968 <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>
5969 <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>
5970 <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>
5971 <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>
5984 <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>
5985 <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>
5986 <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>
5987 <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>
5988 <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>
5989 <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>
5990 <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>
5991 <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>
5992 <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>
5993 <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>
5998 TOC regression (bug 9764)
6002 ==== title 1.1.1 ====
6007 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6009 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6011 <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>
6013 <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>
6016 <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>
6019 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6021 <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>
6026 <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>
6027 <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>
6028 <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>
6029 <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>
6030 <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>
6031 <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>
6036 TOC with wgMaxTocLevel=3 (bug 6204)
6042 ==== title 1.1.1 ====
6047 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6049 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6051 <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>
6052 <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>
6055 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6057 <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>
6062 <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>
6063 <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>
6064 <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>
6065 <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>
6066 <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>
6067 <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>
6072 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6078 ====Section 1.1.1====
6079 ====Section 1.1.1.1====
6082 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6084 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6086 <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>
6089 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6092 <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>
6093 <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>
6094 <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>
6095 <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>
6096 <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>
6102 Resolving duplicate section names
6107 <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>
6108 <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>
6113 Resolving duplicate section names with differing case (bug 10721)
6118 <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>
6119 <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>
6131 Template with sections, __NOTOC__
6138 <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>
6139 <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>
6140 <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>
6141 <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>
6146 __NOEDITSECTION__ keyword
6152 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6153 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6158 Link inside a section heading
6160 ==Section with a [[Main Page|link]] in it==
6162 <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>
6167 TOC regression (bug 12077)
6174 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6176 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6178 <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>
6181 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6184 <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>
6185 <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>
6186 <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>
6191 BUG 1219 URL next to image (good)
6193 http://example.com [[Image:foobar.jpg]]
6195 <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>
6200 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6203 The line above must have a trailing space!
6206 But just in case it doesn't...
6208 <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>
6209 <p>The line above must have a trailing space!
6211 <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>
6212 <p>But just in case it doesn't...
6217 Header with special characters (bug 25462)
6219 The tooltips shall not show entities to the user (ie. be double escaped)
6236 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6238 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6240 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6241 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6242 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6243 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6244 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6247 <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>
6250 <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>
6253 <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>
6256 <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>
6259 <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>
6265 Headers with excess '=' characters
6266 (Are similar tests necessary beyond the 1st level?)
6270 =''italic'' heading==
6271 ==''italic'' heading=
6273 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6275 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6276 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6277 <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>
6278 <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>
6281 <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>
6282 <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>
6283 <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>
6284 <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>
6289 BUG 1219 URL next to image (broken)
6291 http://example.com[[Image:foobar.jpg]]
6293 <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>
6298 Bug 1186 news: in the middle of text
6300 http://en.wikinews.org/wiki/Wikinews:Workplace
6302 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6308 Namespaced link must have a title
6317 Namespaced link must have a title (bad fragment version)
6319 [[Project:#fragment]]
6321 <p>[[Project:#fragment]]
6327 div with no attributes
6329 <div>HTML rocks</div>
6331 <div>HTML rocks</div>
6336 div with double-quoted attribute
6338 <div id="rock">HTML rocks</div>
6340 <div id="rock">HTML rocks</div>
6345 div with single-quoted attribute
6347 <div id='rock'>HTML rocks</div>
6349 <div id="rock">HTML rocks</div>
6354 div with unquoted attribute
6356 <div id=rock>HTML rocks</div>
6358 <div id="rock">HTML rocks</div>
6363 div with illegal double attributes
6365 <div id="a" id="b">HTML rocks</div>
6367 <div id="b">HTML rocks</div>
6372 HTML multiple attributes correction
6374 <p class="error" class="awesome">Awesome!</p>
6376 <p class="awesome">Awesome!</p>
6381 Table multiple attributes correction
6384 !+ class="error" class="awesome"| status
6389 <th class="awesome"> status
6397 <DIV ID="x">HTML ROCKS</DIV>
6399 <div id="x">HTML ROCKS</div>
6405 text with amp in the middle of nowhere
6409 <p>Remember AT&T?
6414 text with character entity: eacute
6416 I always thought é was a cute letter.
6418 <p>I always thought é was a cute letter.
6423 text with undefined character entity: xacute
6425 I always thought &xacute; was a cute letter.
6427 <p>I always thought &xacute; was a cute letter.
6439 [[Media:Foobar.jpg]]
6441 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6446 Media link with text
6448 [[Media:Foobar.jpg|A neat file to look at]]
6450 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6454 # FIXME: this is still bad HTML tag nesting
6456 Media link with nasty text
6457 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6459 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6461 <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>
6466 Media link to nonexistent file (bug 1702)
6468 [[Media:No such.jpg]]
6470 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6475 Image link to nonexistent file (bug 1850 - good)
6477 [[Image:No such.jpg]]
6479 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6484 :Image link to nonexistent file (bug 1850 - bad)
6486 [[:Image:No such.jpg]]
6488 <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>
6495 Character reference normalization in link text (bug 1938)
6497 [[Main Page|this&that]]
6499 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6506 Test for unicode normalization
6508 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6512 (bug 19451) Links should refer to the normalized form.
6520 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6521 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6522 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6523 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6524 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6529 Empty attribute crash test (bug 2067)
6531 <font color="">foo</font>
6533 <p><font color="">foo</font>
6538 Empty attribute crash test single-quotes (bug 2067)
6540 <font color=''>foo</font>
6542 <p><font color="">foo</font>
6547 Attribute test: equals, then nothing
6549 <font color=>foo</font>
6556 Attribute test: unquoted value
6558 <font color=x>foo</font>
6560 <p><font color="x">foo</font>
6565 Attribute test: unquoted but illegal value (hash)
6567 <font color=#x>foo</font>
6569 <p><font color="#x">foo</font>
6574 Attribute test: no value
6576 <font color>foo</font>
6578 <p><font color="color">foo</font>
6583 Bug 2095: link with three closing brackets
6587 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6592 Bug 2095: link with pipe and three closing brackets
6596 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6601 Bug 2095: link with pipe and three closing brackets, version 2
6603 [[Main Page|[http://example.com/]]]
6605 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6615 Template:Dangerous attribute
6617 " onmouseover="alert(document.cookie)
6621 Template:Dangerous style attribute
6623 border-size: expression(alert(document.cookie))
6629 <div style="float: right; {{{1}}}">Magic div</div>
6633 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6635 <div title="{{test}}"></div>
6637 <div title="This is a test template"></div>
6642 Bug 2304: HTML attribute safety (dangerous template; 2309)
6644 <div title="{{dangerous attribute}}"></div>
6646 <div title=""></div>
6651 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6653 <div style="{{dangerous style attribute}}"></div>
6655 <div style="/* insecure input */"></div>
6660 Bug 2304: HTML attribute safety (safe parameter; 2309)
6662 {{div style|width: 200px}}
6664 <div style="float: right; width: 200px">Magic div</div>
6669 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6671 {{div style|width: expression(alert(document.cookie))}}
6673 <div style="/* insecure input */">Magic div</div>
6678 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6680 {{div style|"><script>alert(document.cookie)</script>}}
6682 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6687 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6689 {{div style|" ><script>alert(document.cookie)</script>}}
6691 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6696 Bug 2304: HTML attribute safety (link)
6698 <div title="[[Main Page]]"></div>
6700 <div title="[[Main Page]]"></div>
6705 Bug 2304: HTML attribute safety (italics)
6707 <div title="''foobar''"></div>
6709 <div title="''foobar''"></div>
6714 Bug 2304: HTML attribute safety (bold)
6716 <div title="'''foobar'''"></div>
6718 <div title="'''foobar'''"></div>
6724 Bug 2304: HTML attribute safety (ISBN)
6726 <div title="ISBN 1234567890"></div>
6728 <div title="ISBN 1234567890"></div>
6733 Bug 2304: HTML attribute safety (RFC)
6735 <div title="RFC 1234"></div>
6737 <div title="RFC 1234"></div>
6742 Bug 2304: HTML attribute safety (PMID)
6744 <div title="PMID 1234567890"></div>
6746 <div title="PMID 1234567890"></div>
6751 Bug 2304: HTML attribute safety (web link)
6753 <div title="http://example.com/"></div>
6755 <div title="http://example.com/"></div>
6760 Bug 2304: HTML attribute safety (named web link)
6762 <div title="[http://example.com/ link]"></div>
6764 <div title="[http://example.com/ link]"></div>
6769 Bug 3244: HTML attribute safety (extension; safe)
6771 <div style="<nowiki>background:blue</nowiki>"></div>
6773 <div style="background:blue"></div>
6778 Bug 3244: HTML attribute safety (extension; unsafe)
6780 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6782 <div style="/* insecure input */"></div>
6786 # More MSIE fun discovered by Tom Gilder
6789 MSIE CSS safety test: spurious slash
6791 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6793 <div style="/* insecure input */">evil</div>
6798 MSIE CSS safety test: hex code
6800 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6802 <div style="/* insecure input */">evil</div>
6807 MSIE CSS safety test: comment in url
6809 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6811 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6816 MSIE CSS safety test: comment in expression
6818 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6820 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6826 Table attribute legitimate extension
6829 !+ style="<nowiki>color:blue</nowiki>"| status
6834 <th style="color:blue"> status
6840 Table attribute safety
6843 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6848 <th style="/* insecure input */"> status
6854 CSS line continuation 1
6856 <div style="background-image: u\ rl(test.jpg);"></div>
6858 <div style="/* insecure input */"></div>
6863 CSS line continuation 2
6865 <div style="background-image: u\ rl(test.jpg); "></div>
6867 <div style="/* insecure input */"></div>
6878 Expansion of multi-line templates in attribute values (bug 6255)
6880 <div style="background: {{identity|#00FF00}}">-</div>
6882 <div style="background: #00FF00">-</div>
6888 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6890 <div style="background:
6893 <div style="background: #00FF00">-</div>
6898 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6900 <div style="background: #00FF00">-</div>
6902 <div style="background: #00FF00">-</div>
6907 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6910 Parser hook: empty input
6923 Parser hook: empty input using terminated empty elements
6936 Parser hook: empty input using terminated empty elements (space before)
6949 Parser hook: basic input
6963 Parser hook: case insensitive
6977 Parser hook: case insensitive, redux
6990 Parser hook: nested tags
6994 <tag><tag></tag></tag>
7005 Parser hook: basic arguments
7007 <tag width=200 height = "100" depth = '50' square></tag>
7026 Parser hook: argument containing a forward slash (bug 5344)
7028 <tag filename='/tmp/bla'></tag>
7034 string(8) "/tmp/bla"
7041 Parser hook: empty input using terminated empty elements (bug 2374)
7055 # </tag> should be output literally since there is no matching tag that begins it
7057 Parser hook: basic arguments using terminated empty elements (bug 2374)
7059 <tag width=200 height = "100" depth = '50' square/>
7082 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7086 Parser hook: static parser hook not inside a comment
7088 <statictag>hello, world</statictag>
7089 <statictag action=flush/>
7097 Parser hook: static parser hook inside a comment
7099 <!-- <statictag>hello, world</statictag> -->
7100 <statictag action=flush/>
7106 # Nested template calls; this case was broken by Parser.php rev 1.506,
7110 Template:One-parameter
7112 (My parameter is: {{{1}}})
7116 Template:Map-one-parameter
7122 Nested template calls
7124 {{Map-one-parameter|One-parameter|param}}
7126 <p>(My parameter is: param)
7135 Sanitizer: Closing of open tags
7137 <s></s><table></table>
7139 <s></s><table></table>
7144 Sanitizer: Closing of open but not closed tags
7153 Sanitizer: Closing of closed but not open tags
7162 Sanitizer: Closing of closed but not open table tags
7164 Table not started</td></tr></table>
7166 <p>Table not started</td></tr></table>
7171 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7173 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7175 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7180 Sanitizer: Validating the contents of the id attribute (bug 4515)
7186 Something, but definitely not <br id="9" />...
7190 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7194 <br id="foo" /><br id="foo" />
7196 Something need to be done. foo-2 ?
7200 Language converter: output gets cut off unexpectedly (bug 5757)
7204 this bit is safe: }-
7206 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7208 then we get cut off here: }-
7210 all additional text is vanished
7212 <p>this bit is safe: }-
7213 </p><p>but if we add a conversion instance: xxx
7214 </p><p>then we get cut off here: }-
7215 </p><p>all additional text is vanished
7220 Self closed html pairs (bug 5487)
7223 <center><font id="bug" />Centered text</center>
7224 <div><font id="bug2" />In div text</div>
7226 <center><font id="bug" />Centered text</center>
7227 <div><font id="bug2" />In div text</div>
7236 Punctuation: nbsp before exclamation
7240 <p>C'est grave !
7245 Punctuation: CSS !important (bug 11874)
7247 <div style="width:50% !important">important</div>
7249 <div style="width:50% !important">important</div>
7254 Punctuation: CSS ! important (bug 11874; with space after)
7256 <div style="width:50% ! important">important</div>
7258 <div style="width:50% ! important">important</div>
7264 HTML bullet list, closed tags (bug 5497)
7279 HTML bullet list, unclosed tags (bug 5497)
7296 HTML ordered list, closed tags (bug 5497)
7311 HTML ordered list, unclosed tags (bug 5497)
7328 HTML nested bullet list, closed tags (bug 5497)
7353 HTML nested bullet list, open tags (bug 5497)
7378 HTML nested ordered list, closed tags (bug 5497)
7403 HTML nested ordered list, open tags (bug 5497)
7428 HTML ordered list item with parameters oddity
7430 <ol><li id="fragment">One</li></ol>
7432 <ol><li id="fragment">One</li></ol>
7437 bug 5918: autonumbering
7439 [http://first/] [http://second] [ftp://ftp]
7443 [mailto:enclosed@mail.tld With target]
7445 [mailto:enclosed@mail.tld]
7447 mailto:inline@mail.tld
7449 <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>
7450 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7451 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7452 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7453 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7459 # Security and HTML correctness
7460 # From Nick Jenkins' fuzz testing
7464 Fuzz testing: Parser13
7479 Fuzz testing: Parser14
7484 <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>
7485 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7487 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7494 Fuzz testing: Parser14-table
7499 <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>
7500 <table style="__TOC__">
7506 # Known to produce bogus xml (extra </td>)
7508 Fuzz testing: Parser16
7528 Fuzz testing: Parser21
7531 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7536 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7546 Fuzz testing: Parser22
7548 http://===r:::https://b
7552 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7560 # Known to produce bad XML for now
7562 Fuzz testing: Parser24
7569 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7570 <br style="onmouseover='alert(document.cookie);' " />
7572 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7577 <u class="|">}}}} >
7578 <br style="onmouseover='alert(document.cookie);'" />
7580 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7589 # Note: the current result listed for this is not what the original one was,
7590 # but the original bug was JavaScript injection, which is fixed in any case.
7591 # It's not clear that the original result listed was any more correct than the
7592 # current one. Original result:
7595 # <li class="||">
7596 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7598 Fuzz testing: Parser25 (bug 6055)
7604 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7606 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7611 Fuzz testing: URL adjacent extension (with space, clean)
7614 http://example.com <nowiki>junk</nowiki>
7616 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7621 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7624 http://example.com<nowiki>junk</nowiki>
7626 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7631 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7634 http://example.com<pre>junk</pre>
7636 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7641 Fuzz testing: image with bogus manual thumbnail
7643 [[Image:foobar.jpg|thumbnail= ]]
7645 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7650 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7652 <pre dir=" "></pre>
7654 <pre dir=" "></pre>
7659 Parsing optional HTML elements (Bug 6171)
7664 <td> Some tabular data</td>
7665 <td> More tabular data ...
7666 <td> And yet som tabular data</td>
7672 <td> Some tabular data</td>
7673 <td> More tabular data ...
7674 </td><td> And yet som tabular data</td>
7681 Correct handling of <td>, <tr> (Bug 6171)
7686 <td> Some tabular data</td>
7687 <td> More tabular data ...</td>
7688 <td> And yet som tabular data</td>
7694 <td> Some tabular data</td>
7695 <td> More tabular data ...</td>
7696 <td> And yet som tabular data</td>
7704 Parsing crashing regression (fr:JavaScript)
7708 <p></body></x>
7713 Inline wiki vs wiki block nesting
7719 <p><b>Bold paragraph</b>
7720 </p><p>New wiki paragraph
7725 Inline HTML vs wiki block nesting
7733 <p><b>Bold paragraph</b>
7734 </p><p>New wiki paragraph
7738 # Original result was this:
7739 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7741 # While that might be marginally more intuitive, maybe, the six-apostrophe
7742 # construct is clearly pathological and the result stated here (which is what
7743 # the parser actually does) is about as reasonable as anything.
7745 Mixing markup for italics and bold
7748 '''bold''''''bold''bolditalics'''''
7750 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7758 Article for special page transclusion test
7762 Special page transclusion
7765 {{Special:Prefixindex/Xyzzyx}}
7767 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7772 Special page transclusion twice (bug 5021)
7775 {{Special:Prefixindex/Xyzzyx}}
7776 {{Special:Prefixindex/Xyzzyx}}
7778 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7779 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7784 Transclusion of default MediaWiki message
7786 {{MediaWiki:Mainpage}}
7793 Transclusion of nonexistent MediaWiki message
7795 {{MediaWiki:Mainpagexxx}}
7797 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7802 Transclusion of MediaWiki message with underscore
7804 {{MediaWiki:history_short}}
7811 Transclusion of MediaWiki message with space
7813 {{MediaWiki:history short}}
7820 Invalid header with following text
7830 Section extraction test (section 0)
7850 Section extraction test (section 1)
7872 Section extraction test (section 2)
7893 Section extraction test (section 3)
7913 Section extraction test (section 4)
7937 Section extraction test (section 5)
7957 Section extraction test (section 6)
7978 Section extraction test (section 7)
7998 Section extraction test (section 8)
8018 Section extraction test (section 9)
8039 Section extraction test (section 10)
8059 Section extraction test (nonexistent section 11)
8078 Section extraction test with bogus heading (section 1)
8083 ==bogus== not a legal section
8087 ==bogus== not a legal section
8091 Section extraction test with bogus heading (section 2)
8096 ==bogus== not a legal section
8103 Section extraction test with comment after heading (section 1)
8115 Section extraction test with comment after heading (section 2)
8127 Section extraction test with bogus <nowiki> heading (section 1)
8132 ==bogus== <nowiki>not a legal section</nowiki>
8136 ==bogus== <nowiki>not a legal section</nowiki>
8140 Section extraction test with bogus <nowiki> heading (section 2)
8145 ==bogus== <nowiki>not a legal section</nowiki>
8152 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8153 # instead of respecting commented sections
8155 Section extraction prefixed by comment (section 1)
8166 Section extraction prefixed by comment (section 2)
8177 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8178 # instead of respecting HTML-style headings
8180 Section extraction, mixed wiki and html (section 1)
8196 Section extraction, mixed wiki and html (section 2)
8212 # Formerly testing for bug 3342
8214 Section extraction, heading surrounded by <noinclude>
8218 <noinclude>==unmarked==</noinclude>
8224 # Test behaviour of bug 19910
8226 Sectiion with all-equals
8231 The line above must have a trailing space
8234 But just in case it doesn't...
8238 But just in case it doesn't...
8242 Section replacement test (section 0)
8273 Section replacement test (section 1)
8302 Section replacement test (section 2)
8332 Section replacement test (section 3)
8363 Section replacement test (section 4)
8390 Section replacement test (section 5)
8421 Section replacement test (section 6)
8451 Section replacement test (section 7)
8482 Section replacement test (section 8)
8513 Section replacement test (section 9)
8542 Section replacement test (section 10)
8572 Section replacement test with initial whitespace (bug 13728)
8576 Preformatted initial line
8580 Preformatted initial line
8587 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8599 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8612 Section extraction, <pre> around bogus header (bug 10309)
8629 Section replacement, <pre> around bogus header (bug 10309)
8631 noxml replace=2,"xxx"
8652 Handling of 
 in URLs
8656 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8663 5 quotes, code coverage +1 line
8670 Special:Search page linking.
8674 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8689 * {{SUBJECTPAGENAME}}
8690 * {{SUBJECTPAGENAMEE}}
8697 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8699 <ul><li> Parser test
8700 </li><li> Parser test
8701 </li><li> Parser test
8702 </li><li> Parser_test
8703 </li><li> Parser test
8704 </li><li> Parser_test
8705 </li><li> Talk:Parser test
8706 </li><li> Talk:Parser_test
8707 </li><li> Parser test
8708 </li><li> Parser_test
8715 </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>
8719 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8729 image4 |300px| centre
8730 image5.svg| http://///////
8735 <ul class="gallery">
8736 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8737 <div style="height: 150px;">Image1.png</div>
8738 <div class="gallerytext">
8741 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8742 <div style="height: 150px;">Image2.gif</div>
8743 <div class="gallerytext">
8748 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8749 <div style="height: 150px;">Image3</div>
8750 <div class="gallerytext">
8753 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8754 <div style="height: 150px;">Image4</div>
8755 <div class="gallerytext">
8760 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8761 <div style="height: 150px;">Image5.svg</div>
8762 <div class="gallerytext">
8763 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8767 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8768 <div style="height: 150px;">* image6</div>
8769 <div class="gallerytext">
8777 Gallery (with options)
8779 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8780 File:Nonexistant.jpg|caption
8781 File:Nonexistant.jpg
8782 image:foobar.jpg|some '''caption''' [[Main Page]]
8784 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8787 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8788 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8789 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8790 <div style="height: 70px;">Nonexistant.jpg</div>
8791 <div class="gallerytext">
8796 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8797 <div style="height: 70px;">Nonexistant.jpg</div>
8798 <div class="gallerytext">
8801 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8802 <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>
8803 <div class="gallerytext">
8804 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8808 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8809 <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>
8810 <div class="gallerytext">
8813 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8814 <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>
8815 <div class="gallerytext">
8825 Gallery with wikitext inside caption
8828 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8829 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8832 <ul class="gallery">
8833 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8834 <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>
8835 <div class="gallerytext">
8836 <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>
8840 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8841 <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>
8842 <div class="gallerytext">
8843 <p>This is a test template
8852 gallery (with showfilename option)
8854 <gallery showfilename>
8855 File:Nonexistant.jpg|caption
8856 File:Nonexistant.jpg
8857 image:foobar.jpg|some '''caption''' [[Main Page]]
8861 <ul class="gallery">
8862 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8863 <div style="height: 150px;">Nonexistant.jpg</div>
8864 <div class="gallerytext">
8865 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8870 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8871 <div style="height: 150px;">Nonexistant.jpg</div>
8872 <div class="gallerytext">
8873 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8877 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8878 <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>
8879 <div class="gallerytext">
8880 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8881 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8885 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8886 <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>
8887 <div class="gallerytext">
8888 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8897 Gallery (with namespace-less filenames)
8900 File:Nonexistant.jpg
8906 <ul class="gallery">
8907 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8908 <div style="height: 150px;">Nonexistant.jpg</div>
8909 <div class="gallerytext">
8912 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8913 <div style="height: 150px;">Nonexistant.jpg</div>
8914 <div class="gallerytext">
8917 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8918 <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>
8919 <div class="gallerytext">
8922 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8923 <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>
8924 <div class="gallerytext">
8932 HTML Hex character encoding (spells the word "JavaScript")
8934 JavaScript
8936 <p>JavaScript
8941 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8945 <p>&#xsee;&#XSEE;
8950 HTML Hex character encoding mixed case
8959 __FORCETOC__ override
8971 ISBN 978-0-1234-56 789
8973 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8978 ISBN followed by 5 spaces
8989 ISBN ISBN 1234567890
8991 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8996 Bug 22905: <abbr> followed by ISBN followed by </a>
8998 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9000 <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>
9009 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9014 Double RFC with a wiki link
9018 <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>
9027 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9032 Centre-aligned image
9034 [[Image:foobar.jpg|centre]]
9036 <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>
9043 [[Image:foobar.jpg|none]]
9045 <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>
9050 Width + Height sized image (using px) (height is ignored)
9052 [[Image:foobar.jpg|640x480px]]
9054 <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>
9059 Width-sized image (using px, no following whitespace)
9061 [[Image:foobar.jpg|640px]]
9063 <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>
9068 Width-sized image (using px, with following whitespace - test regression from r39467)
9070 [[Image:foobar.jpg|640px ]]
9072 <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>
9077 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9079 [[Image:foobar.jpg| 640px]]
9081 <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>
9086 Another italics / bold test
9094 # Note the results may be incorrect, as parserTest output included this:
9095 # XML error: Mismatched tag at byte 6120:
9096 # ...<dd> </dt></dl> </dd...
9104 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9115 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9117 Images with the "|" character in the comment
9119 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9121 <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>
9126 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9128 <html><script>alert(1);</script></html>
9130 <p><html><script>alert(1);</script></html>
9135 HTML with raw HTML ($wgRawHtml==true)
9139 <html><script>alert(1);</script></html>
9141 <p><script>alert(1);</script>
9146 Parents of subpages, one level up
9148 subpage title=[[Subpage test/L1/L2/L3]]
9152 <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>
9158 Parents of subpages, one level up, not named
9160 subpage title=[[Subpage test/L1/L2/L3]]
9164 <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>
9171 Parents of subpages, two levels up
9173 subpage title=[[Subpage test/L1/L2/L3]]
9179 <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
9180 </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>
9185 Parents of subpages, two levels up, without trailing slash or name.
9187 subpage title=[[Subpage test/L1/L2/L3]]
9196 Parents of subpages, two levels up, with lots of extra trailing slashes.
9198 subpage title=[[Subpage test/L1/L2/L3]]
9202 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9207 Definition list code coverage
9213 <dl><dt> title  </dt><dd> def
9214 </dd><dt> title </dt><dd> def
9215 </dd><dt>title</dt><dd> def
9221 Don't fall for the self-closing div
9223 <div>hello world</div/>
9225 <div>hello world</div>
9234 <p>[[:Template:Msg]]
9243 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9247 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9249 Always escape literal '>' in output, not just after '<'
9263 <p>This is a test template
9264 This is a test template
9276 Inclusion of !userCanEdit() content
9280 <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>
9286 Out-of-order TOC heading levels
9295 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9297 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9299 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9300 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9303 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9305 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9306 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9311 <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>
9312 <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>
9313 <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>
9314 <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>
9315 <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>
9316 <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>
9322 ISBN with a dummy number
9332 ISBN with space-delimited number
9336 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9342 ISBN with multiple spaces, no number
9361 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9362 </p><p>ISBN 12345678901
9368 ISBN with trailing year (bug 8110)
9370 ISBN 1-234-56789-0 - 2006
9372 ISBN 1 234 56789 0 - 2006
9374 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9375 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9383 {{anchorencode:foo bar©#%n}}
9385 <p>foo_bar.C2.A9.23.25n
9390 anchorencode trims spaces
9392 {{anchorencode: __pretty__please__}}
9399 anchorencode deals with links
9401 {{anchorencode: [[hello|world]] [[hi]]}}
9408 anchorencode deals with templates
9410 {{anchorencode: {{Foo}} }}
9417 anchorencode encodes like the TOC generator: (bug 18431)
9419 === _ +:.3A%3A&&]] ===
9420 {{anchorencode: _ +:.3A%3A&&]] }}
9423 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9424 <p>.2B:.3A.253A.26.26.5D.5D
9428 # Expected output in the following test is not necessarily expected (there
9429 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9430 # only testing for well-formedness.
9432 Bug 6200: blockquotes and paragraph formatting
9452 Bug 8293: Use of center tag ruins paragraph formatting
9474 ### Language variants related tests
9477 Self-link in language variants
9479 title=[[Dunav]] language=sr
9481 Both [[Dunav]] and [[Дунав]] are names for this river.
9483 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9489 Link to pages in language variants
9493 Main Page can be written as [[Маин Паге]]
9495 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9501 Multiple links to pages in language variants
9505 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9507 <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>.
9513 Simple template in language variants
9519 <p>This is a test template
9525 Template with explicit namespace in language variants
9531 <p>This is a test template
9537 Basic test for template parameter in language variants
9541 {{парамтест|param=foo}}
9543 <p>This is a test template with parameter foo
9549 Simple category in language variants
9553 [[Category:МедиаWики Усер'с Гуиде]]
9555 <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>
9560 Stripping -{}- tags (language variants)
9564 Latin proverb: -{Ne nuntium necare}-
9566 <p>Latin proverb: Ne nuntium necare
9572 Prevent conversion with -{}- tags (language variants)
9574 language=sr variant=sr-ec
9576 Latinski: -{Ne nuntium necare}-
9578 <p>Латински: Ne nuntium necare
9584 Prevent conversion of text with -{}- tags (language variants)
9586 language=sr variant=sr-ec
9588 Latinski: -{Ne nuntium necare}-
9590 <p>Латински: Ne nuntium necare
9596 Prevent conversion of links with -{}- tags (language variants)
9598 language=sr variant=sr-ec
9602 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9608 -{}- tags within headlines (within html for parserConvert())
9610 language=sr variant=sr-ec
9614 <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>
9620 Explicit definition of language variant alternatives
9622 language=zh variant=zh-tw
9624 -{zh:China;zh-tw:Taiwan}-, not China
9626 <p>Taiwan, not China
9632 Explicit session-wise language variant mapping (A flag and - flag)
9634 language=zh variant=zh-tw
9636 Taiwan is not China.
9637 But -{A|zh:China;zh-tw:Taiwan}- is China,
9638 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9639 and -{China}- is China.
9641 <p>Taiwan is not China.
9642 But Taiwan is Taiwan,
9643 (This should be stripped!)
9649 Explicit session-wise language variant mapping (H flag for hide)
9651 language=zh variant=zh-tw
9653 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9656 <p>(This should be stripped!)
9662 Adding explicit conversion rule for title (T flag)
9664 language=zh variant=zh-tw showtitle
9666 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9669 <p>Should be stripped!
9674 Testing that changing the language variant here in the tests actually works
9676 language=zh variant=zh showtitle
9678 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9681 <p>Should be stripped!
9686 Bug 24072: more test on conversion rule for title
9688 language=zh variant=zh-tw showtitle
9690 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9691 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9694 <p>This should be stripped!
9695 This won't take interferes with the title rule.
9700 Raw output of variant escape tags (R flag)
9702 language=zh variant=zh-tw
9704 Raw: -{R|zh:China;zh-tw:Taiwan}-
9706 <p>Raw: zh:China;zh-tw:Taiwan
9711 Nested using of manual convert syntax
9713 language=zh variant=zh-hk
9715 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9717 <p>Nested: Hello Hong Kong!
9722 Do not convert roman numbers to language variants
9724 language=sr variant=sr-ec
9728 <p>Фридрих IV је цар.
9733 Unclosed language converter markup "-{"
9744 Don't convert raw rule "-{R|=>}-" to "=>"
9761 Bug 529: Uncovered bullet
9772 Bug 529: Uncovered table already at line-start
9795 Bug 529: Uncovered bullet in parser function result
9797 * Foo {{lc:{{bullet}} }}
9806 Bug 5678: Double-parsed template argument
9808 {{lc:{{{1}}}|hello}}
9815 Bug 5678: Double-parsed template invocation
9817 {{lc:{{paramtest {{!}} param = hello }} }}
9819 <p>{{paramtest | param = hello }}
9824 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9850 Morwen/13: Unclosed link followed by heading
9857 <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>
9862 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9869 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9874 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9881 <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>
9896 Paragraphs inside divs (no extra line breaks)
9908 Paragraphs inside divs (extra line break on open)
9923 Paragraphs inside divs (extra line break on close)
9938 Paragraphs inside divs (extra line break on open and close)
9955 Nesting tags, paragraphs on lines which begin with <div>
9959 <div></div><strong>A
9968 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9970 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9974 <blockquote>Line one
9976 Line two</blockquote>
9978 <blockquote>Line one
9979 Line two</blockquote>
9984 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9991 Line two</blockquote>
9996 Line two</blockquote>
10001 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10005 <blockquote>Line one
10010 <blockquote>Line one
10018 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10037 Paragraphs inside blockquotes/divs (no extra line breaks)
10039 <blockquote><div>Line one
10041 Line two</div></blockquote>
10043 <blockquote><div>Line one
10044 Line two</div></blockquote>
10049 Paragraphs inside blockquotes/divs (extra line break on open)
10054 Line two</div></blockquote>
10059 Line two</div></blockquote>
10064 Paragraphs inside blockquotes/divs (extra line break on close)
10066 <blockquote><div>Line one
10069 </div></blockquote>
10071 <blockquote><div>Line one
10074 </div></blockquote>
10079 Paragraphs inside blockquotes/divs (extra line break on open and close)
10085 </div></blockquote>
10091 </div></blockquote>
10096 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10098 wgLinkHolderBatchSize=0
10104 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10105 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10106 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10111 Free external link invading image caption
10113 [[Image:Foobar.jpg|thumb|http://x|hello]]
10115 <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>
10120 Bug 15196: localised external link numbers
10124 [http://en.wikipedia.org/]
10126 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10131 Multibyte character in padleft
10133 {{padleft:-Hello|7|Æ}}
10140 Multibyte character in padright
10142 {{padright:Hello-|7|Æ}}
10151 wgUseDynamicDates=1
10155 <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>
10160 formatdate parser function
10162 {{#formatdate:2009-03-24}}
10164 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10169 formatdate parser function, with default format
10171 {{#formatdate:2009-03-24|mdy}}
10173 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10178 Linked date with autoformatting disabled
10180 wgUseDynamicDates=false
10184 <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>
10189 Spacing of numbers in formatted dates
10191 {{#formatdate:January 15}}
10193 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10198 Spacing of numbers in formatted dates (linked)
10200 wgUseDynamicDates=true
10204 <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>
10209 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
10211 language=nl title=[[MediaWiki:Common.css]]
10213 {{#formatdate:2009-03-24|dmy}}
10215 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10228 Edit comment with link
10232 I like the [[Main Page]] a lot
10234 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10238 Edit comment with link and link text
10242 I like the [[Main Page|best pages]] a lot
10244 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10248 Edit comment with link and link text with suffix
10252 I like the [[Main Page|best page]]s a lot
10254 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10258 Edit comment with section link (non-local, eg in history list)
10260 comment title=[[Main Page]]
10262 /* External links */ removed bogus entries
10264 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10268 Edit comment with section link and text before it (non-local, eg in history list)
10270 comment title=[[Main Page]]
10272 pre-comment text /* External links */ removed bogus entries
10274 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>
10278 Edit comment with section link (local, eg in diff view)
10280 comment local title=[[Main Page]]
10282 /* External links */ removed bogus entries
10284 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10288 Edit comment with subpage link (bug 14080)
10292 title=[[Subpage test]]
10294 Poked at a [[/subpage]] here...
10296 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10300 Edit comment with subpage link and link text (bug 14080)
10304 title=[[Subpage test]]
10306 Poked at a [[/subpage|neat little page]] here...
10308 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10312 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10315 title=[[Subpage test]]
10317 Poked at a [[/subpage]] here...
10319 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10323 Edit comment with bare anchor link (local, as on diff)
10327 title=[[Main Page]]
10331 <a href="#section">#section</a>
10335 Edit comment with bare anchor link (non-local, as on history)
10338 title=[[Main Page]]
10342 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10346 Anchor starting with underscore
10350 <p><a href="#_ref">One</a>
10355 Id starting with underscore
10357 <div id="_ref"></div>
10359 <div id="_ref"></div>
10364 Space normalisation on autocomment (bug 22784)
10367 title=[[Main Page]]
10369 /* __hello__world__ */
10371 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10375 percent-encoding and + signs in comments (Bug 26410)
10379 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10381 <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>
10385 Bad images - basic functionality
10394 Bad images - bug 16039: text after bad image disappears
10408 Verify that displaytitle works (bug #22501) no displaytitle
10412 wgAllowDisplayTitle=true
10413 wgRestrictDisplayTitle=false
10415 this is not the the title
10418 <p>this is not the the title
10423 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10428 wgAllowDisplayTitle=true
10429 wgRestrictDisplayTitle=false
10431 this is not the the title
10432 {{DISPLAYTITLE:whatever}}
10435 <p>this is not the the title
10440 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10445 wgAllowDisplayTitle=true
10446 wgRestrictDisplayTitle=true
10448 this is not the the title
10449 {{DISPLAYTITLE:whatever}}
10452 <p>this is not the the title
10457 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10462 wgAllowDisplayTitle=true
10463 wgRestrictDisplayTitle=true
10465 this is not the the title
10466 {{DISPLAYTITLE:screen}}
10469 <p>this is not the the title
10474 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10479 wgAllowDisplayTitle=false
10481 this is not the the title
10482 {{DISPLAYTITLE:screen}}
10485 <p>this is not the the title
10486 <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>
10491 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10496 wgAllowDisplayTitle=false
10498 this is not the the title
10501 <p>this is not the the title
10506 preload: check <noinclude> and <includeonly>
10510 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10516 preload: check <onlyinclude>
10520 Goodbye <onlyinclude>Hello world</onlyinclude>
10526 preload: can pass tags through if we want to
10530 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10532 <includeonly>Hello world</includeonly>
10536 preload: check that it doesn't try to do tricks
10540 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10542 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10546 Play a bit with r67090 and bug 3158
10550 <div style="width:50% !important"> </div>
10551 <div style="width:50% !important"> </div>
10552 <div style="width:50% !important"> </div>
10553 <div style="border : solid;"> </div>
10555 <div style="width:50% !important"> </div>
10556 <div style="width:50% !important"> </div>
10557 <div style="width:50% !important"> </div>
10558 <div style="border : solid;"> </div>
10563 HTML5 data attributes
10565 <span data-foo="bar">Baz</span>
10566 <p data-abc-def_hij="">Quuz</p>
10568 <p><span data-foo="bar">Baz</span>
10570 <p data-abc-def_hij="">Quuz</p>
10575 percent-encoding and + signs in internal links (Bug 26410)
10577 [[User:+%]] [[Page+title%]]
10578 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10579 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10580 [[%33%45]] [[%33%45+]]
10582 <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>
10583 <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>
10584 <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>
10585 <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>
10590 Special characters in embedded file links (bug 27679)
10592 [[File:Contains & ampersand.jpg]]
10593 [[File:Does not exist.jpg|Title with & ampersand]]
10595 <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>
10596 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10602 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10604 Text's been normalized?
10606 <p>Text's been normalized?
10611 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10613 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10615 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10620 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10622 [http://www.example.org/ ideograms]
10624 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10629 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10631 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10633 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10657 Bug 31098 Template which includes system messages which includes the template
10661 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10662 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10667 Deprecated presentational attributes are converted to css
10670 | valign=top align=left width=100 height=25% | Asdf
10672 <ul type="disc"></ul>
10676 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10678 <ul style="list-style-type: disc;"></ul>
10683 Bug31490 Turkish: ucfirst 'blah'
10694 Bug31490 Turkish: ucfirst 'ix'
10705 Bug31490 Turkish: lcfirst 'BLAH'
10716 Bug31490 Turkish: ucfırst (with a dotless i)
10722 <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>
10727 Bug31490 ucfırst (with a dotless i) with English language
10733 <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>
10738 Bug 26375: TOC with italics
10740 title=[[Main Page]]
10743 == ''Lost'' episodes ==
10745 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10747 <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>
10750 <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>
10755 Bug 26375: TOC with bold
10757 title=[[Main Page]]
10760 == '''should be bold''' then normal text ==
10762 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10764 <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>
10767 <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>
10772 Bug 33845: Headings become cursive in TOC when they contain an image
10774 title=[[Main Page]]
10777 == Image [[Image:foobar.jpg]] ==
10779 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10781 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10784 <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>
10789 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10791 title=[[Main Page]]
10794 == <blockquote>Quote</blockquote> ==
10796 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10798 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10801 <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>
10806 Unclosed tags in TOC
10808 title=[[Main Page]]
10812 <small>Hanc marginis exiguitas non caperet.</small>
10815 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10817 <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>
10820 <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>
10821 <p><small>Hanc marginis exiguitas non caperet.</small>
10827 Multiple tags in TOC
10830 == <i>Foo</i> <b>Bar</b> ==
10832 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10834 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10836 <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>
10837 <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>
10840 <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>
10841 <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>
10846 Tags with parameters in TOC
10849 == <sup class="in-h2">Hello</sup> ==
10851 == <sup class="a > b">Evilbye</sup> ==
10853 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10855 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10856 <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>
10859 <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>
10860 <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>
10865 span tags with directionality in TOC
10868 == <span dir="ltr">C++</span> ==
10870 == <span dir="rtl">זבנג!</span> ==
10872 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10874 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10876 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10878 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10880 <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>
10881 <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>
10882 <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>
10883 <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>
10884 <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>
10887 <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>
10888 <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>
10889 <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>
10890 <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>
10891 <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>
10898 == {{int:headline_sample}} ==
10902 Bug 32057: Title needed when expanding <h> nodes.
10904 title=[[Main Page]]
10908 <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>
10913 Strip marker in urlencode
10915 {{urlencode:x<nowiki/>y}}
10916 {{urlencode:x<nowiki/>y|wiki}}
10917 {{urlencode:x<nowiki/>y|path}}
10944 Strip marker in formatNum
10946 {{formatnum:1<nowiki/>2}}
10947 {{formatnum:1<nowiki/>2|R}}
10955 Strip marker in grammar
10959 {{grammar:elative|foo<nowiki/>bar}}
10966 Strip marker in padleft
10968 {{padleft:|2|x<nowiki/>y}}
10975 Strip marker in padright
10977 {{padright:|2|x<nowiki/>y}}
10984 Strip marker in anchorencode
10986 {{anchorencode:x<nowiki/>y}}
10993 nowiki inside link inside heading (bug 18295)
10995 ==[[foo|x<nowiki>y</nowiki>z]]==
10997 <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>
11002 new support for bdi element (bug 31817)
11004 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11006 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11011 Ignore pipe between table row attributes
11015 |- id=foo | style='color: red'
11023 <tr id="foo" style="color: red">
11030 Gallery override link with WikiLink (bug 34852)
11033 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11036 <ul class="gallery">
11037 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11038 <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>
11039 <div class="gallerytext">
11049 Gallery override link with absolute external link (bug 34852)
11052 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11055 <ul class="gallery">
11056 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11057 <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>
11058 <div class="gallerytext">
11068 Gallery override link with malicious javascript (bug 34852)
11071 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11074 <ul class="gallery">
11075 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11076 <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>
11077 <div class="gallerytext">
11087 Language parser function
11096 Padleft and padright as substr
11098 {{padleft:|3|abcde}}
11099 {{padright:|3|abcde}}
11107 Bug 34939 - Case insensitive link parsing ([HttP://])
11109 [HttP://MediaWiki.Org/]
11111 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11116 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11118 [HttP://MediaWiki.Org/ MediaWiki]
11120 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11125 Bug 34939 - Case insensitive link parsing (HttP://)
11127 HttP://MediaWiki.Org/
11129 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11139 Try for 100% code coverage