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:食品
5861 Basic section headings
5868 ===Smaller headline===
5871 <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>
5874 <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>
5877 <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>
5883 Section headings with TOC
5886 === Subheadline 1 ===
5887 ===== Skipping a level =====
5888 ====== Skipping a level ======
5892 ===Another headline===
5894 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5896 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5898 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5900 <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>
5902 <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>
5909 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5911 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5916 <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>
5917 <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>
5918 <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>
5919 <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>
5920 <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>
5923 <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>
5927 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5929 Handling of sections up to level 6 and beyond
5932 == Level 2 Heading==
5933 === Level 3 Heading===
5934 ==== Level 4 Heading====
5935 ===== Level 5 Heading=====
5936 ====== Level 6 Heading======
5937 ======= Level 7 Heading=======
5938 ======== Level 8 Heading========
5939 ========= Level 9 Heading=========
5940 ========== Level 10 Heading==========
5942 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5944 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5946 <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>
5948 <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>
5950 <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>
5952 <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>
5954 <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>
5955 <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>
5956 <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>
5957 <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>
5958 <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>
5971 <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>
5972 <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>
5973 <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>
5974 <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>
5975 <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>
5976 <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>
5977 <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>
5978 <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>
5979 <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>
5980 <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>
5985 TOC regression (bug 9764)
5989 ==== title 1.1.1 ====
5994 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5996 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5998 <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>
6000 <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>
6003 <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>
6006 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6008 <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>
6013 <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>
6014 <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>
6015 <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>
6016 <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>
6017 <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>
6018 <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>
6023 TOC with wgMaxTocLevel=3 (bug 6204)
6029 ==== title 1.1.1 ====
6034 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6036 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6038 <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>
6039 <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>
6042 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6044 <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>
6049 <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>
6050 <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>
6051 <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>
6052 <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>
6053 <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>
6054 <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>
6059 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6065 ====Section 1.1.1====
6066 ====Section 1.1.1.1====
6069 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6071 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6073 <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>
6076 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6079 <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>
6080 <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>
6081 <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>
6082 <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>
6083 <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>
6089 Resolving duplicate section names
6094 <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>
6095 <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>
6100 Resolving duplicate section names with differing case (bug 10721)
6105 <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>
6106 <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>
6118 Template with sections, __NOTOC__
6125 <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>
6126 <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>
6127 <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>
6128 <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>
6133 __NOEDITSECTION__ keyword
6139 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6140 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6145 Link inside a section heading
6147 ==Section with a [[Main Page|link]] in it==
6149 <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>
6154 TOC regression (bug 12077)
6161 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6163 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6165 <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>
6168 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6171 <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>
6172 <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>
6173 <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>
6178 BUG 1219 URL next to image (good)
6180 http://example.com [[Image:foobar.jpg]]
6182 <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>
6187 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6190 The line above must have a trailing space!
6193 But just in case it doesn't...
6195 <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>
6196 <p>The line above must have a trailing space!
6198 <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>
6199 <p>But just in case it doesn't...
6204 Header with special characters (bug 25462)
6206 The tooltips shall not show entities to the user (ie. be double escaped)
6223 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6225 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6227 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6228 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6229 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6230 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6231 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6234 <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>
6237 <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>
6240 <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>
6243 <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>
6246 <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>
6252 Headers with excess '=' characters
6253 (Are similar tests necessary beyond the 1st level?)
6257 =''italic'' heading==
6258 ==''italic'' heading=
6260 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6262 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6263 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6264 <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>
6265 <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>
6268 <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>
6269 <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>
6270 <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>
6271 <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>
6276 BUG 1219 URL next to image (broken)
6278 http://example.com[[Image:foobar.jpg]]
6280 <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>
6285 Bug 1186 news: in the middle of text
6287 http://en.wikinews.org/wiki/Wikinews:Workplace
6289 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6295 Namespaced link must have a title
6304 Namespaced link must have a title (bad fragment version)
6306 [[Project:#fragment]]
6308 <p>[[Project:#fragment]]
6314 div with no attributes
6316 <div>HTML rocks</div>
6318 <div>HTML rocks</div>
6323 div with double-quoted attribute
6325 <div id="rock">HTML rocks</div>
6327 <div id="rock">HTML rocks</div>
6332 div with single-quoted attribute
6334 <div id='rock'>HTML rocks</div>
6336 <div id="rock">HTML rocks</div>
6341 div with unquoted attribute
6343 <div id=rock>HTML rocks</div>
6345 <div id="rock">HTML rocks</div>
6350 div with illegal double attributes
6352 <div id="a" id="b">HTML rocks</div>
6354 <div id="b">HTML rocks</div>
6359 HTML multiple attributes correction
6361 <p class="error" class="awesome">Awesome!</p>
6363 <p class="awesome">Awesome!</p>
6368 Table multiple attributes correction
6371 !+ class="error" class="awesome"| status
6376 <th class="awesome"> status
6384 <DIV ID="x">HTML ROCKS</DIV>
6386 <div id="x">HTML ROCKS</div>
6392 text with amp in the middle of nowhere
6396 <p>Remember AT&T?
6401 text with character entity: eacute
6403 I always thought é was a cute letter.
6405 <p>I always thought é was a cute letter.
6410 text with undefined character entity: xacute
6412 I always thought &xacute; was a cute letter.
6414 <p>I always thought &xacute; was a cute letter.
6426 [[Media:Foobar.jpg]]
6428 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6433 Media link with text
6435 [[Media:Foobar.jpg|A neat file to look at]]
6437 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6441 # FIXME: this is still bad HTML tag nesting
6443 Media link with nasty text
6444 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6446 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6448 <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>
6453 Media link to nonexistent file (bug 1702)
6455 [[Media:No such.jpg]]
6457 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6462 Image link to nonexistent file (bug 1850 - good)
6464 [[Image:No such.jpg]]
6466 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6471 :Image link to nonexistent file (bug 1850 - bad)
6473 [[:Image:No such.jpg]]
6475 <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>
6482 Character reference normalization in link text (bug 1938)
6484 [[Main Page|this&that]]
6486 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6493 Test for unicode normalization
6495 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6499 (bug 19451) Links should refer to the normalized form.
6507 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6508 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6509 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6510 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6511 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6516 Empty attribute crash test (bug 2067)
6518 <font color="">foo</font>
6520 <p><font color="">foo</font>
6525 Empty attribute crash test single-quotes (bug 2067)
6527 <font color=''>foo</font>
6529 <p><font color="">foo</font>
6534 Attribute test: equals, then nothing
6536 <font color=>foo</font>
6543 Attribute test: unquoted value
6545 <font color=x>foo</font>
6547 <p><font color="x">foo</font>
6552 Attribute test: unquoted but illegal value (hash)
6554 <font color=#x>foo</font>
6556 <p><font color="#x">foo</font>
6561 Attribute test: no value
6563 <font color>foo</font>
6565 <p><font color="color">foo</font>
6570 Bug 2095: link with three closing brackets
6574 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6579 Bug 2095: link with pipe and three closing brackets
6583 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6588 Bug 2095: link with pipe and three closing brackets, version 2
6590 [[Main Page|[http://example.com/]]]
6592 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6602 Template:Dangerous attribute
6604 " onmouseover="alert(document.cookie)
6608 Template:Dangerous style attribute
6610 border-size: expression(alert(document.cookie))
6616 <div style="float: right; {{{1}}}">Magic div</div>
6620 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6622 <div title="{{test}}"></div>
6624 <div title="This is a test template"></div>
6629 Bug 2304: HTML attribute safety (dangerous template; 2309)
6631 <div title="{{dangerous attribute}}"></div>
6633 <div title=""></div>
6638 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6640 <div style="{{dangerous style attribute}}"></div>
6642 <div style="/* insecure input */"></div>
6647 Bug 2304: HTML attribute safety (safe parameter; 2309)
6649 {{div style|width: 200px}}
6651 <div style="float: right; width: 200px">Magic div</div>
6656 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6658 {{div style|width: expression(alert(document.cookie))}}
6660 <div style="/* insecure input */">Magic div</div>
6665 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6667 {{div style|"><script>alert(document.cookie)</script>}}
6669 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6674 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6676 {{div style|" ><script>alert(document.cookie)</script>}}
6678 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6683 Bug 2304: HTML attribute safety (link)
6685 <div title="[[Main Page]]"></div>
6687 <div title="[[Main Page]]"></div>
6692 Bug 2304: HTML attribute safety (italics)
6694 <div title="''foobar''"></div>
6696 <div title="''foobar''"></div>
6701 Bug 2304: HTML attribute safety (bold)
6703 <div title="'''foobar'''"></div>
6705 <div title="'''foobar'''"></div>
6711 Bug 2304: HTML attribute safety (ISBN)
6713 <div title="ISBN 1234567890"></div>
6715 <div title="ISBN 1234567890"></div>
6720 Bug 2304: HTML attribute safety (RFC)
6722 <div title="RFC 1234"></div>
6724 <div title="RFC 1234"></div>
6729 Bug 2304: HTML attribute safety (PMID)
6731 <div title="PMID 1234567890"></div>
6733 <div title="PMID 1234567890"></div>
6738 Bug 2304: HTML attribute safety (web link)
6740 <div title="http://example.com/"></div>
6742 <div title="http://example.com/"></div>
6747 Bug 2304: HTML attribute safety (named web link)
6749 <div title="[http://example.com/ link]"></div>
6751 <div title="[http://example.com/ link]"></div>
6756 Bug 3244: HTML attribute safety (extension; safe)
6758 <div style="<nowiki>background:blue</nowiki>"></div>
6760 <div style="background:blue"></div>
6765 Bug 3244: HTML attribute safety (extension; unsafe)
6767 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6769 <div style="/* insecure input */"></div>
6773 # More MSIE fun discovered by Tom Gilder
6776 MSIE CSS safety test: spurious slash
6778 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6780 <div style="/* insecure input */">evil</div>
6785 MSIE CSS safety test: hex code
6787 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6789 <div style="/* insecure input */">evil</div>
6794 MSIE CSS safety test: comment in url
6796 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6798 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6803 MSIE CSS safety test: comment in expression
6805 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6807 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6813 Table attribute legitimate extension
6816 !+ style="<nowiki>color:blue</nowiki>"| status
6821 <th style="color:blue"> status
6827 Table attribute safety
6830 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6835 <th style="/* insecure input */"> status
6841 CSS line continuation 1
6843 <div style="background-image: u\ rl(test.jpg);"></div>
6845 <div style="/* insecure input */"></div>
6850 CSS line continuation 2
6852 <div style="background-image: u\ rl(test.jpg); "></div>
6854 <div style="/* insecure input */"></div>
6865 Expansion of multi-line templates in attribute values (bug 6255)
6867 <div style="background: {{identity|#00FF00}}">-</div>
6869 <div style="background: #00FF00">-</div>
6875 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6877 <div style="background:
6880 <div style="background: #00FF00">-</div>
6885 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6887 <div style="background: #00FF00">-</div>
6889 <div style="background: #00FF00">-</div>
6894 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6897 Parser hook: empty input
6910 Parser hook: empty input using terminated empty elements
6923 Parser hook: empty input using terminated empty elements (space before)
6936 Parser hook: basic input
6950 Parser hook: case insensitive
6964 Parser hook: case insensitive, redux
6977 Parser hook: nested tags
6981 <tag><tag></tag></tag>
6992 Parser hook: basic arguments
6994 <tag width=200 height = "100" depth = '50' square></tag>
7013 Parser hook: argument containing a forward slash (bug 5344)
7015 <tag filename='/tmp/bla'></tag>
7021 string(8) "/tmp/bla"
7028 Parser hook: empty input using terminated empty elements (bug 2374)
7042 # </tag> should be output literally since there is no matching tag that begins it
7044 Parser hook: basic arguments using terminated empty elements (bug 2374)
7046 <tag width=200 height = "100" depth = '50' square/>
7069 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7073 Parser hook: static parser hook not inside a comment
7075 <statictag>hello, world</statictag>
7076 <statictag action=flush/>
7084 Parser hook: static parser hook inside a comment
7086 <!-- <statictag>hello, world</statictag> -->
7087 <statictag action=flush/>
7093 # Nested template calls; this case was broken by Parser.php rev 1.506,
7097 Template:One-parameter
7099 (My parameter is: {{{1}}})
7103 Template:Map-one-parameter
7109 Nested template calls
7111 {{Map-one-parameter|One-parameter|param}}
7113 <p>(My parameter is: param)
7122 Sanitizer: Closing of open tags
7124 <s></s><table></table>
7126 <s></s><table></table>
7131 Sanitizer: Closing of open but not closed tags
7140 Sanitizer: Closing of closed but not open tags
7149 Sanitizer: Closing of closed but not open table tags
7151 Table not started</td></tr></table>
7153 <p>Table not started</td></tr></table>
7158 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7160 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7162 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7167 Sanitizer: Validating the contents of the id attribute (bug 4515)
7173 Something, but definitely not <br id="9" />...
7177 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7181 <br id="foo" /><br id="foo" />
7183 Something need to be done. foo-2 ?
7187 Language converter: output gets cut off unexpectedly (bug 5757)
7191 this bit is safe: }-
7193 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7195 then we get cut off here: }-
7197 all additional text is vanished
7199 <p>this bit is safe: }-
7200 </p><p>but if we add a conversion instance: xxx
7201 </p><p>then we get cut off here: }-
7202 </p><p>all additional text is vanished
7207 Self closed html pairs (bug 5487)
7210 <center><font id="bug" />Centered text</center>
7211 <div><font id="bug2" />In div text</div>
7213 <center><font id="bug" />Centered text</center>
7214 <div><font id="bug2" />In div text</div>
7223 Punctuation: nbsp before exclamation
7227 <p>C'est grave !
7232 Punctuation: CSS !important (bug 11874)
7234 <div style="width:50% !important">important</div>
7236 <div style="width:50% !important">important</div>
7241 Punctuation: CSS ! important (bug 11874; with space after)
7243 <div style="width:50% ! important">important</div>
7245 <div style="width:50% ! important">important</div>
7251 HTML bullet list, closed tags (bug 5497)
7266 HTML bullet list, unclosed tags (bug 5497)
7283 HTML ordered list, closed tags (bug 5497)
7298 HTML ordered list, unclosed tags (bug 5497)
7315 HTML nested bullet list, closed tags (bug 5497)
7340 HTML nested bullet list, open tags (bug 5497)
7365 HTML nested ordered list, closed tags (bug 5497)
7390 HTML nested ordered list, open tags (bug 5497)
7415 HTML ordered list item with parameters oddity
7417 <ol><li id="fragment">One</li></ol>
7419 <ol><li id="fragment">One</li></ol>
7424 bug 5918: autonumbering
7426 [http://first/] [http://second] [ftp://ftp]
7430 [mailto:enclosed@mail.tld With target]
7432 [mailto:enclosed@mail.tld]
7434 mailto:inline@mail.tld
7436 <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>
7437 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7438 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7439 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7440 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7446 # Security and HTML correctness
7447 # From Nick Jenkins' fuzz testing
7451 Fuzz testing: Parser13
7466 Fuzz testing: Parser14
7471 <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>
7472 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7474 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7481 Fuzz testing: Parser14-table
7486 <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>
7487 <table style="__TOC__">
7493 # Known to produce bogus xml (extra </td>)
7495 Fuzz testing: Parser16
7515 Fuzz testing: Parser21
7518 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7523 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7533 Fuzz testing: Parser22
7535 http://===r:::https://b
7539 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7547 # Known to produce bad XML for now
7549 Fuzz testing: Parser24
7556 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7557 <br style="onmouseover='alert(document.cookie);' " />
7559 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7564 <u class="|">}}}} >
7565 <br style="onmouseover='alert(document.cookie);'" />
7567 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7576 # Note: the current result listed for this is not what the original one was,
7577 # but the original bug was JavaScript injection, which is fixed in any case.
7578 # It's not clear that the original result listed was any more correct than the
7579 # current one. Original result:
7582 # <li class="||">
7583 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7585 Fuzz testing: Parser25 (bug 6055)
7591 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7593 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7598 Fuzz testing: URL adjacent extension (with space, clean)
7601 http://example.com <nowiki>junk</nowiki>
7603 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7608 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7611 http://example.com<nowiki>junk</nowiki>
7613 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7618 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7621 http://example.com<pre>junk</pre>
7623 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7628 Fuzz testing: image with bogus manual thumbnail
7630 [[Image:foobar.jpg|thumbnail= ]]
7632 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7637 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7639 <pre dir=" "></pre>
7641 <pre dir=" "></pre>
7646 Parsing optional HTML elements (Bug 6171)
7651 <td> Some tabular data</td>
7652 <td> More tabular data ...
7653 <td> And yet som tabular data</td>
7659 <td> Some tabular data</td>
7660 <td> More tabular data ...
7661 </td><td> And yet som tabular data</td>
7668 Correct handling of <td>, <tr> (Bug 6171)
7673 <td> Some tabular data</td>
7674 <td> More tabular data ...</td>
7675 <td> And yet som tabular data</td>
7681 <td> Some tabular data</td>
7682 <td> More tabular data ...</td>
7683 <td> And yet som tabular data</td>
7691 Parsing crashing regression (fr:JavaScript)
7695 <p></body></x>
7700 Inline wiki vs wiki block nesting
7706 <p><b>Bold paragraph</b>
7707 </p><p>New wiki paragraph
7712 Inline HTML vs wiki block nesting
7720 <p><b>Bold paragraph</b>
7721 </p><p>New wiki paragraph
7725 # Original result was this:
7726 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7728 # While that might be marginally more intuitive, maybe, the six-apostrophe
7729 # construct is clearly pathological and the result stated here (which is what
7730 # the parser actually does) is about as reasonable as anything.
7732 Mixing markup for italics and bold
7735 '''bold''''''bold''bolditalics'''''
7737 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7745 Article for special page transclusion test
7749 Special page transclusion
7752 {{Special:Prefixindex/Xyzzyx}}
7754 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7759 Special page transclusion twice (bug 5021)
7762 {{Special:Prefixindex/Xyzzyx}}
7763 {{Special:Prefixindex/Xyzzyx}}
7765 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7766 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7771 Transclusion of default MediaWiki message
7773 {{MediaWiki:Mainpage}}
7780 Transclusion of nonexistent MediaWiki message
7782 {{MediaWiki:Mainpagexxx}}
7784 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7789 Transclusion of MediaWiki message with underscore
7791 {{MediaWiki:history_short}}
7798 Transclusion of MediaWiki message with space
7800 {{MediaWiki:history short}}
7807 Invalid header with following text
7817 Section extraction test (section 0)
7837 Section extraction test (section 1)
7859 Section extraction test (section 2)
7880 Section extraction test (section 3)
7900 Section extraction test (section 4)
7924 Section extraction test (section 5)
7944 Section extraction test (section 6)
7965 Section extraction test (section 7)
7985 Section extraction test (section 8)
8005 Section extraction test (section 9)
8026 Section extraction test (section 10)
8046 Section extraction test (nonexistent section 11)
8065 Section extraction test with bogus heading (section 1)
8070 ==bogus== not a legal section
8074 ==bogus== not a legal section
8078 Section extraction test with bogus heading (section 2)
8083 ==bogus== not a legal section
8090 Section extraction test with comment after heading (section 1)
8102 Section extraction test with comment after heading (section 2)
8114 Section extraction test with bogus <nowiki> heading (section 1)
8119 ==bogus== <nowiki>not a legal section</nowiki>
8123 ==bogus== <nowiki>not a legal section</nowiki>
8127 Section extraction test with bogus <nowiki> heading (section 2)
8132 ==bogus== <nowiki>not a legal section</nowiki>
8139 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8140 # instead of respecting commented sections
8142 Section extraction prefixed by comment (section 1)
8153 Section extraction prefixed by comment (section 2)
8164 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8165 # instead of respecting HTML-style headings
8167 Section extraction, mixed wiki and html (section 1)
8183 Section extraction, mixed wiki and html (section 2)
8199 # Formerly testing for bug 3342
8201 Section extraction, heading surrounded by <noinclude>
8205 <noinclude>==unmarked==</noinclude>
8211 # Test behaviour of bug 19910
8213 Sectiion with all-equals
8218 The line above must have a trailing space
8221 But just in case it doesn't...
8225 But just in case it doesn't...
8229 Section replacement test (section 0)
8260 Section replacement test (section 1)
8289 Section replacement test (section 2)
8319 Section replacement test (section 3)
8350 Section replacement test (section 4)
8377 Section replacement test (section 5)
8408 Section replacement test (section 6)
8438 Section replacement test (section 7)
8469 Section replacement test (section 8)
8500 Section replacement test (section 9)
8529 Section replacement test (section 10)
8559 Section replacement test with initial whitespace (bug 13728)
8563 Preformatted initial line
8567 Preformatted initial line
8574 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8586 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8599 Section extraction, <pre> around bogus header (bug 10309)
8616 Section replacement, <pre> around bogus header (bug 10309)
8618 noxml replace=2,"xxx"
8639 Handling of 
 in URLs
8643 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8650 5 quotes, code coverage +1 line
8657 Special:Search page linking.
8661 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8676 * {{SUBJECTPAGENAME}}
8677 * {{SUBJECTPAGENAMEE}}
8684 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8686 <ul><li> Parser test
8687 </li><li> Parser test
8688 </li><li> Parser test
8689 </li><li> Parser_test
8690 </li><li> Parser test
8691 </li><li> Parser_test
8692 </li><li> Talk:Parser test
8693 </li><li> Talk:Parser_test
8694 </li><li> Parser test
8695 </li><li> Parser_test
8702 </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>
8706 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8716 image4 |300px| centre
8717 image5.svg| http://///////
8722 <ul class="gallery">
8723 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8724 <div style="height: 150px;">Image1.png</div>
8725 <div class="gallerytext">
8728 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8729 <div style="height: 150px;">Image2.gif</div>
8730 <div class="gallerytext">
8735 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8736 <div style="height: 150px;">Image3</div>
8737 <div class="gallerytext">
8740 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8741 <div style="height: 150px;">Image4</div>
8742 <div class="gallerytext">
8747 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8748 <div style="height: 150px;">Image5.svg</div>
8749 <div class="gallerytext">
8750 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8754 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8755 <div style="height: 150px;">* image6</div>
8756 <div class="gallerytext">
8764 Gallery (with options)
8766 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8767 File:Nonexistant.jpg|caption
8768 File:Nonexistant.jpg
8769 image:foobar.jpg|some '''caption''' [[Main Page]]
8771 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8774 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8775 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8776 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8777 <div style="height: 70px;">Nonexistant.jpg</div>
8778 <div class="gallerytext">
8783 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8784 <div style="height: 70px;">Nonexistant.jpg</div>
8785 <div class="gallerytext">
8788 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8789 <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>
8790 <div class="gallerytext">
8791 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8795 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8796 <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>
8797 <div class="gallerytext">
8800 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8801 <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>
8802 <div class="gallerytext">
8812 Gallery with wikitext inside caption
8815 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8816 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8819 <ul class="gallery">
8820 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8821 <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>
8822 <div class="gallerytext">
8823 <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>
8827 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8828 <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>
8829 <div class="gallerytext">
8830 <p>This is a test template
8839 gallery (with showfilename option)
8841 <gallery showfilename>
8842 File:Nonexistant.jpg|caption
8843 File:Nonexistant.jpg
8844 image:foobar.jpg|some '''caption''' [[Main Page]]
8848 <ul class="gallery">
8849 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8850 <div style="height: 150px;">Nonexistant.jpg</div>
8851 <div class="gallerytext">
8852 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8857 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8858 <div style="height: 150px;">Nonexistant.jpg</div>
8859 <div class="gallerytext">
8860 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8864 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8865 <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>
8866 <div class="gallerytext">
8867 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8868 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8872 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8873 <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>
8874 <div class="gallerytext">
8875 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8884 Gallery (with namespace-less filenames)
8887 File:Nonexistant.jpg
8893 <ul class="gallery">
8894 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8895 <div style="height: 150px;">Nonexistant.jpg</div>
8896 <div class="gallerytext">
8899 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8900 <div style="height: 150px;">Nonexistant.jpg</div>
8901 <div class="gallerytext">
8904 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8905 <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>
8906 <div class="gallerytext">
8909 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8910 <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>
8911 <div class="gallerytext">
8919 HTML Hex character encoding (spells the word "JavaScript")
8921 JavaScript
8923 <p>JavaScript
8928 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8932 <p>&#xsee;&#XSEE;
8937 HTML Hex character encoding mixed case
8946 __FORCETOC__ override
8958 ISBN 978-0-1234-56 789
8960 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8965 ISBN followed by 5 spaces
8976 ISBN ISBN 1234567890
8978 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8983 Bug 22905: <abbr> followed by ISBN followed by </a>
8985 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8987 <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>
8996 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9001 Double RFC with a wiki link
9005 <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>
9014 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9019 Centre-aligned image
9021 [[Image:foobar.jpg|centre]]
9023 <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>
9030 [[Image:foobar.jpg|none]]
9032 <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>
9037 Width + Height sized image (using px) (height is ignored)
9039 [[Image:foobar.jpg|640x480px]]
9041 <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>
9046 Width-sized image (using px, no following whitespace)
9048 [[Image:foobar.jpg|640px]]
9050 <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>
9055 Width-sized image (using px, with following whitespace - test regression from r39467)
9057 [[Image:foobar.jpg|640px ]]
9059 <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>
9064 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9066 [[Image:foobar.jpg| 640px]]
9068 <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>
9073 Another italics / bold test
9081 # Note the results may be incorrect, as parserTest output included this:
9082 # XML error: Mismatched tag at byte 6120:
9083 # ...<dd> </dt></dl> </dd...
9091 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9102 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9104 Images with the "|" character in the comment
9106 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9108 <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>
9113 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9115 <html><script>alert(1);</script></html>
9117 <p><html><script>alert(1);</script></html>
9122 HTML with raw HTML ($wgRawHtml==true)
9126 <html><script>alert(1);</script></html>
9128 <p><script>alert(1);</script>
9133 Parents of subpages, one level up
9135 subpage title=[[Subpage test/L1/L2/L3]]
9139 <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>
9145 Parents of subpages, one level up, not named
9147 subpage title=[[Subpage test/L1/L2/L3]]
9151 <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>
9158 Parents of subpages, two levels up
9160 subpage title=[[Subpage test/L1/L2/L3]]
9166 <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
9167 </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>
9172 Parents of subpages, two levels up, without trailing slash or name.
9174 subpage title=[[Subpage test/L1/L2/L3]]
9183 Parents of subpages, two levels up, with lots of extra trailing slashes.
9185 subpage title=[[Subpage test/L1/L2/L3]]
9189 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9194 Definition list code coverage
9200 <dl><dt> title  </dt><dd> def
9201 </dd><dt> title </dt><dd> def
9202 </dd><dt>title</dt><dd> def
9208 Don't fall for the self-closing div
9210 <div>hello world</div/>
9212 <div>hello world</div>
9221 <p>[[:Template:Msg]]
9230 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9234 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9236 Always escape literal '>' in output, not just after '<'
9250 <p>This is a test template
9251 This is a test template
9263 Inclusion of !userCanEdit() content
9267 <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>
9273 Out-of-order TOC heading levels
9282 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9284 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9286 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9287 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9290 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9292 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9293 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9298 <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>
9299 <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>
9300 <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>
9301 <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>
9302 <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>
9303 <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>
9309 ISBN with a dummy number
9319 ISBN with space-delimited number
9323 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9329 ISBN with multiple spaces, no number
9348 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9349 </p><p>ISBN 12345678901
9355 ISBN with trailing year (bug 8110)
9357 ISBN 1-234-56789-0 - 2006
9359 ISBN 1 234 56789 0 - 2006
9361 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9362 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9370 {{anchorencode:foo bar©#%n}}
9372 <p>foo_bar.C2.A9.23.25n
9377 anchorencode trims spaces
9379 {{anchorencode: __pretty__please__}}
9386 anchorencode deals with links
9388 {{anchorencode: [[hello|world]] [[hi]]}}
9395 anchorencode deals with templates
9397 {{anchorencode: {{Foo}} }}
9404 anchorencode encodes like the TOC generator: (bug 18431)
9406 === _ +:.3A%3A&&]] ===
9407 {{anchorencode: _ +:.3A%3A&&]] }}
9410 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9411 <p>.2B:.3A.253A.26.26.5D.5D
9415 # Expected output in the following test is not necessarily expected (there
9416 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9417 # only testing for well-formedness.
9419 Bug 6200: blockquotes and paragraph formatting
9439 Bug 8293: Use of center tag ruins paragraph formatting
9461 ### Language variants related tests
9464 Self-link in language variants
9466 title=[[Dunav]] language=sr
9468 Both [[Dunav]] and [[Дунав]] are names for this river.
9470 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9476 Link to pages in language variants
9480 Main Page can be written as [[Маин Паге]]
9482 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9488 Multiple links to pages in language variants
9492 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9494 <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>.
9500 Simple template in language variants
9506 <p>This is a test template
9512 Template with explicit namespace in language variants
9518 <p>This is a test template
9524 Basic test for template parameter in language variants
9528 {{парамтест|param=foo}}
9530 <p>This is a test template with parameter foo
9536 Simple category in language variants
9540 [[Category:МедиаWики Усер'с Гуиде]]
9542 <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>
9547 Stripping -{}- tags (language variants)
9551 Latin proverb: -{Ne nuntium necare}-
9553 <p>Latin proverb: Ne nuntium necare
9559 Prevent conversion with -{}- tags (language variants)
9561 language=sr variant=sr-ec
9563 Latinski: -{Ne nuntium necare}-
9565 <p>Латински: Ne nuntium necare
9571 Prevent conversion of text with -{}- tags (language variants)
9573 language=sr variant=sr-ec
9575 Latinski: -{Ne nuntium necare}-
9577 <p>Латински: Ne nuntium necare
9583 Prevent conversion of links with -{}- tags (language variants)
9585 language=sr variant=sr-ec
9589 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9595 -{}- tags within headlines (within html for parserConvert())
9597 language=sr variant=sr-ec
9601 <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>
9607 Explicit definition of language variant alternatives
9609 language=zh variant=zh-tw
9611 -{zh:China;zh-tw:Taiwan}-, not China
9613 <p>Taiwan, not China
9619 Explicit session-wise language variant mapping (A flag and - flag)
9621 language=zh variant=zh-tw
9623 Taiwan is not China.
9624 But -{A|zh:China;zh-tw:Taiwan}- is China,
9625 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9626 and -{China}- is China.
9628 <p>Taiwan is not China.
9629 But Taiwan is Taiwan,
9630 (This should be stripped!)
9636 Explicit session-wise language variant mapping (H flag for hide)
9638 language=zh variant=zh-tw
9640 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9643 <p>(This should be stripped!)
9649 Adding explicit conversion rule for title (T flag)
9651 language=zh variant=zh-tw showtitle
9653 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9656 <p>Should be stripped!
9661 Testing that changing the language variant here in the tests actually works
9663 language=zh variant=zh showtitle
9665 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9668 <p>Should be stripped!
9673 Bug 24072: more test on conversion rule for title
9675 language=zh variant=zh-tw showtitle
9677 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9678 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9681 <p>This should be stripped!
9682 This won't take interferes with the title rule.
9687 Raw output of variant escape tags (R flag)
9689 language=zh variant=zh-tw
9691 Raw: -{R|zh:China;zh-tw:Taiwan}-
9693 <p>Raw: zh:China;zh-tw:Taiwan
9698 Nested using of manual convert syntax
9700 language=zh variant=zh-hk
9702 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9704 <p>Nested: Hello Hong Kong!
9709 Do not convert roman numbers to language variants
9711 language=sr variant=sr-ec
9715 <p>Фридрих IV је цар.
9720 Unclosed language converter markup "-{"
9731 Don't convert raw rule "-{R|=>}-" to "=>"
9748 Bug 529: Uncovered bullet
9759 Bug 529: Uncovered table already at line-start
9782 Bug 529: Uncovered bullet in parser function result
9784 * Foo {{lc:{{bullet}} }}
9793 Bug 5678: Double-parsed template argument
9795 {{lc:{{{1}}}|hello}}
9802 Bug 5678: Double-parsed template invocation
9804 {{lc:{{paramtest {{!}} param = hello }} }}
9806 <p>{{paramtest | param = hello }}
9811 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9837 Morwen/13: Unclosed link followed by heading
9844 <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>
9849 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9856 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9861 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9868 <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>
9883 Paragraphs inside divs (no extra line breaks)
9895 Paragraphs inside divs (extra line break on open)
9910 Paragraphs inside divs (extra line break on close)
9925 Paragraphs inside divs (extra line break on open and close)
9942 Nesting tags, paragraphs on lines which begin with <div>
9946 <div></div><strong>A
9955 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9957 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9961 <blockquote>Line one
9963 Line two</blockquote>
9965 <blockquote>Line one
9966 Line two</blockquote>
9971 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9978 Line two</blockquote>
9983 Line two</blockquote>
9988 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9992 <blockquote>Line one
9997 <blockquote>Line one
10005 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10024 Paragraphs inside blockquotes/divs (no extra line breaks)
10026 <blockquote><div>Line one
10028 Line two</div></blockquote>
10030 <blockquote><div>Line one
10031 Line two</div></blockquote>
10036 Paragraphs inside blockquotes/divs (extra line break on open)
10041 Line two</div></blockquote>
10046 Line two</div></blockquote>
10051 Paragraphs inside blockquotes/divs (extra line break on close)
10053 <blockquote><div>Line one
10056 </div></blockquote>
10058 <blockquote><div>Line one
10061 </div></blockquote>
10066 Paragraphs inside blockquotes/divs (extra line break on open and close)
10072 </div></blockquote>
10078 </div></blockquote>
10083 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10085 wgLinkHolderBatchSize=0
10091 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10092 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10093 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10098 Free external link invading image caption
10100 [[Image:Foobar.jpg|thumb|http://x|hello]]
10102 <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>
10107 Bug 15196: localised external link numbers
10111 [http://en.wikipedia.org/]
10113 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10118 Multibyte character in padleft
10120 {{padleft:-Hello|7|Æ}}
10127 Multibyte character in padright
10129 {{padright:Hello-|7|Æ}}
10138 wgUseDynamicDates=1
10142 <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>
10147 formatdate parser function
10149 {{#formatdate:2009-03-24}}
10151 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10156 formatdate parser function, with default format
10158 {{#formatdate:2009-03-24|mdy}}
10160 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10165 Linked date with autoformatting disabled
10167 wgUseDynamicDates=false
10171 <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>
10176 Spacing of numbers in formatted dates
10178 {{#formatdate:January 15}}
10180 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10185 Spacing of numbers in formatted dates (linked)
10187 wgUseDynamicDates=true
10191 <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>
10196 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
10198 language=nl title=[[MediaWiki:Common.css]]
10200 {{#formatdate:2009-03-24|dmy}}
10202 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10215 Edit comment with link
10219 I like the [[Main Page]] a lot
10221 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10225 Edit comment with link and link text
10229 I like the [[Main Page|best pages]] a lot
10231 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10235 Edit comment with link and link text with suffix
10239 I like the [[Main Page|best page]]s a lot
10241 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10245 Edit comment with section link (non-local, eg in history list)
10247 comment title=[[Main Page]]
10249 /* External links */ removed bogus entries
10251 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10255 Edit comment with section link and text before it (non-local, eg in history list)
10257 comment title=[[Main Page]]
10259 pre-comment text /* External links */ removed bogus entries
10261 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>
10265 Edit comment with section link (local, eg in diff view)
10267 comment local title=[[Main Page]]
10269 /* External links */ removed bogus entries
10271 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10275 Edit comment with subpage link (bug 14080)
10279 title=[[Subpage test]]
10281 Poked at a [[/subpage]] here...
10283 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10287 Edit comment with subpage link and link text (bug 14080)
10291 title=[[Subpage test]]
10293 Poked at a [[/subpage|neat little page]] here...
10295 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10299 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10302 title=[[Subpage test]]
10304 Poked at a [[/subpage]] here...
10306 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10310 Edit comment with bare anchor link (local, as on diff)
10314 title=[[Main Page]]
10318 <a href="#section">#section</a>
10322 Edit comment with bare anchor link (non-local, as on history)
10325 title=[[Main Page]]
10329 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10333 Anchor starting with underscore
10337 <p><a href="#_ref">One</a>
10342 Id starting with underscore
10344 <div id="_ref"></div>
10346 <div id="_ref"></div>
10351 Space normalisation on autocomment (bug 22784)
10354 title=[[Main Page]]
10356 /* __hello__world__ */
10358 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10362 percent-encoding and + signs in comments (Bug 26410)
10366 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10368 <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>
10372 Bad images - basic functionality
10381 Bad images - bug 16039: text after bad image disappears
10395 Verify that displaytitle works (bug #22501) no displaytitle
10399 wgAllowDisplayTitle=true
10400 wgRestrictDisplayTitle=false
10402 this is not the the title
10405 <p>this is not the the title
10410 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10415 wgAllowDisplayTitle=true
10416 wgRestrictDisplayTitle=false
10418 this is not the the title
10419 {{DISPLAYTITLE:whatever}}
10422 <p>this is not the the title
10427 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10432 wgAllowDisplayTitle=true
10433 wgRestrictDisplayTitle=true
10435 this is not the the title
10436 {{DISPLAYTITLE:whatever}}
10439 <p>this is not the the title
10444 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10449 wgAllowDisplayTitle=true
10450 wgRestrictDisplayTitle=true
10452 this is not the the title
10453 {{DISPLAYTITLE:screen}}
10456 <p>this is not the the title
10461 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10466 wgAllowDisplayTitle=false
10468 this is not the the title
10469 {{DISPLAYTITLE:screen}}
10472 <p>this is not the the title
10473 <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>
10478 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10483 wgAllowDisplayTitle=false
10485 this is not the the title
10488 <p>this is not the the title
10493 preload: check <noinclude> and <includeonly>
10497 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10503 preload: check <onlyinclude>
10507 Goodbye <onlyinclude>Hello world</onlyinclude>
10513 preload: can pass tags through if we want to
10517 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10519 <includeonly>Hello world</includeonly>
10523 preload: check that it doesn't try to do tricks
10527 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10529 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10533 Play a bit with r67090 and bug 3158
10537 <div style="width:50% !important"> </div>
10538 <div style="width:50% !important"> </div>
10539 <div style="width:50% !important"> </div>
10540 <div style="border : solid;"> </div>
10542 <div style="width:50% !important"> </div>
10543 <div style="width:50% !important"> </div>
10544 <div style="width:50% !important"> </div>
10545 <div style="border : solid;"> </div>
10550 HTML5 data attributes
10552 <span data-foo="bar">Baz</span>
10553 <p data-abc-def_hij="">Quuz</p>
10555 <p><span data-foo="bar">Baz</span>
10557 <p data-abc-def_hij="">Quuz</p>
10562 percent-encoding and + signs in internal links (Bug 26410)
10564 [[User:+%]] [[Page+title%]]
10565 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10566 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10567 [[%33%45]] [[%33%45+]]
10569 <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>
10570 <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>
10571 <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>
10572 <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>
10577 Special characters in embedded file links (bug 27679)
10579 [[File:Contains & ampersand.jpg]]
10580 [[File:Does not exist.jpg|Title with & ampersand]]
10582 <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>
10583 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10589 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10591 Text's been normalized?
10593 <p>Text's been normalized?
10598 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10600 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10602 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10607 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10609 [http://www.example.org/ ideograms]
10611 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10616 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10618 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10620 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10644 Bug 31098 Template which includes system messages which includes the template
10648 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10649 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10654 Deprecated presentational attributes are converted to css
10657 | valign=top align=left width=100 height=25% | Asdf
10659 <ul type="disc"></ul>
10663 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10665 <ul style="list-style-type: disc;"></ul>
10670 Bug31490 Turkish: ucfirst 'blah'
10681 Bug31490 Turkish: ucfirst 'ix'
10692 Bug31490 Turkish: lcfirst 'BLAH'
10703 Bug31490 Turkish: ucfırst (with a dotless i)
10709 <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>
10714 Bug31490 ucfırst (with a dotless i) with English language
10720 <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>
10725 Bug 26375: TOC with italics
10727 title=[[Main Page]]
10730 == ''Lost'' episodes ==
10732 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10734 <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>
10737 <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>
10742 Bug 26375: TOC with bold
10744 title=[[Main Page]]
10747 == '''should be bold''' then normal text ==
10749 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10751 <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>
10754 <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>
10759 Bug 33845: Headings become cursive in TOC when they contain an image
10761 title=[[Main Page]]
10764 == Image [[Image:foobar.jpg]] ==
10766 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10768 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10771 <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>
10776 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10778 title=[[Main Page]]
10781 == <blockquote>Quote</blockquote> ==
10783 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10785 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10788 <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>
10793 Unclosed tags in TOC
10795 title=[[Main Page]]
10799 <small>Hanc marginis exiguitas non caperet.</small>
10802 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10804 <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>
10807 <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>
10808 <p><small>Hanc marginis exiguitas non caperet.</small>
10814 Multiple tags in TOC
10817 == <i>Foo</i> <b>Bar</b> ==
10819 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10821 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10823 <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>
10824 <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>
10827 <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>
10828 <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>
10833 Tags with parameters in TOC
10836 == <sup class="in-h2">Hello</sup> ==
10838 == <sup class="a > b">Evilbye</sup> ==
10840 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10842 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10843 <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>
10846 <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>
10847 <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>
10852 span tags with directionality in TOC
10855 == <span dir="ltr">C++</span> ==
10857 == <span dir="rtl">זבנג!</span> ==
10859 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10861 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10863 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10865 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10867 <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>
10868 <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>
10869 <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>
10870 <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>
10871 <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>
10874 <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>
10875 <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>
10876 <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>
10877 <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>
10878 <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>
10885 == {{int:headline_sample}} ==
10889 Bug 32057: Title needed when expanding <h> nodes.
10891 title=[[Main Page]]
10895 <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>
10900 Strip marker in urlencode
10902 {{urlencode:x<nowiki/>y}}
10903 {{urlencode:x<nowiki/>y|wiki}}
10904 {{urlencode:x<nowiki/>y|path}}
10931 Strip marker in formatNum
10933 {{formatnum:1<nowiki/>2}}
10934 {{formatnum:1<nowiki/>2|R}}
10942 Strip marker in grammar
10946 {{grammar:elative|foo<nowiki/>bar}}
10953 Strip marker in padleft
10955 {{padleft:|2|x<nowiki/>y}}
10962 Strip marker in padright
10964 {{padright:|2|x<nowiki/>y}}
10971 Strip marker in anchorencode
10973 {{anchorencode:x<nowiki/>y}}
10980 nowiki inside link inside heading (bug 18295)
10982 ==[[foo|x<nowiki>y</nowiki>z]]==
10984 <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>
10989 new support for bdi element (bug 31817)
10991 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10993 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10998 Ignore pipe between table row attributes
11002 |- id=foo | style='color: red'
11010 <tr id="foo" style="color: red">
11017 Gallery override link with WikiLink (bug 34852)
11020 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11023 <ul class="gallery">
11024 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11025 <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>
11026 <div class="gallerytext">
11036 Gallery override link with absolute external link (bug 34852)
11039 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11042 <ul class="gallery">
11043 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11044 <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>
11045 <div class="gallerytext">
11055 Gallery override link with malicious javascript (bug 34852)
11058 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11061 <ul class="gallery">
11062 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11063 <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>
11064 <div class="gallerytext">
11074 Language parser function
11083 Padleft and padright as substr
11085 {{padleft:|3|abcde}}
11086 {{padright:|3|abcde}}
11094 Bug 34939 - Case insensitive link parsing ([HttP://])
11096 [HttP://MediaWiki.Org/]
11098 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11103 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11105 [HttP://MediaWiki.Org/ MediaWiki]
11107 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11112 Bug 34939 - Case insensitive link parsing (HttP://)
11114 HttP://MediaWiki.Org/
11116 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11126 Try for 100% code coverage