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 in html attr key
4331 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4333 <p><span id="foo">bar</span>
4338 2. includeonly in html attr value
4340 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4341 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4343 <p><span id="v1">bar</span>
4344 <span id="v1">bar</span>
4349 3. includeonly in part of an attr value
4351 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4353 <p><span style="color:red;">bar</span>
4358 ### Testing parsing of templates where a template arg
4359 ### has the same name as the template itself.
4369 Templates: Template Name/Arg clash: 1. Use of positional param
4378 Templates: Template Name/Arg clash: 2. Use of named param
4387 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4396 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4400 Templates: 1. Simple use
4409 Templates: 2. Inside a block tag
4411 <div>{{echo|Foo}}</div>
4418 Templates: P-wrapping: 1a. Templates on consecutive lines
4429 Templates: P-wrapping: 1b. Templates on consecutive lines
4443 Templates: P-wrapping: 1c. Templates on consecutive lines
4446 {{echo|bar}} <div>baz</div>
4455 Templates: Inline Text: 1. Multiple tmeplate uses
4457 {{echo|Foo}}bar{{echo|baz}}
4464 Templates: Inline Text: 2. Back-to-back template uses
4466 {{echo|Foo}}{{echo|bar}}
4473 Templates: Block Tags: 1. Multiple template uses
4475 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4477 <div>Foo</div><div>bar</div><div>baz</div>
4482 Templates: Block Tags: 2. Back-to-back template uses
4484 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4486 <div>Foo</div><div>bar</div>
4491 Templates: Links: 1. Simple example
4493 {{echo|[[Foo|bar]]}}
4495 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4500 Templates: Links: 2. Generation of link href
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: 3. Generation of part of a link href
4511 [[Fo{{echo|o}}|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: 4. Multiple templates generating link href
4520 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4522 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4527 Templates: Links: 5. Generation of link text
4529 [[Foo|{{echo|bar}}]]
4531 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4536 Templates: Links: 5. Nested templates (only outermost template should be marked)
4538 {{echo|[[{{echo|Foo}}|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: HTML Tag: 1. Generation of HTML attr. key
4547 <div {{echo|style}}="color:red;">foo</div>
4549 <div style="color:red;">foo</div>
4554 Templates: HTML Tag: 2. Generation of HTML attr. value
4556 <div style={{echo|'color:red;'}}>foo</div>
4558 <div style="color:red;">foo</div>
4563 Templates: HTML Tag: 3. Generation of HTML attr key and value
4565 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4567 <div style="color:red;">foo</div>
4572 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4574 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4576 <div title="This is a long title with just one piece templated">foo</div>
4581 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4583 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4585 <div title="This is a long title with just one piece templated">foo</div>
4590 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4592 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4594 <div title="This is a long title with just one piece templated">foo</div>
4599 Templates: Tables: 1. Generating start of a HTML table
4601 {{echo|<table><tr><td>foo</td>}}</tr></table>
4603 <table><tr><td>foo</td></tr></table>
4608 Templates: Tables: 2a. Generating middle of a HTML table
4610 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4612 <table><tr><td>foo</td></tr></table>
4617 Templates: Tables: 2b. Generating middle of a HTML table
4619 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4621 <table><tr><td>foo</td></tr></table>
4626 Templates: Tables: 3. Generating end of a HTML table
4628 <table><tr>{{echo|<td>foo</td></tr></table>}}
4630 <table><tr><td>foo</td></tr></table>
4635 Templates: Tables: 4a. Generating a single tag of a HTML table
4637 {{echo|<table>}}<tr><td>foo</td></tr></table>
4639 <table><tr><td>foo</td></tr></table>
4644 Templates: Tables: 4b. Generating a single tag of a HTML table
4646 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4648 <table><tr><td>foo</td></tr></table>
4653 Templates: Tables: 4c. Generating a single tag of a HTML table
4655 <table><tr>{{echo|<td>}}foo</td></tr></table>
4657 <table><tr><td>foo</td></tr></table>
4662 Templates: Tables: 4d. Generating a single tag of a HTML table
4664 <table><tr><td>foo{{echo|</td>}}</tr></table>
4666 <table><tr><td>foo</td></tr></table>
4671 Templates: Tables: 4e. Generating a single tag of a HTML table
4673 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4675 <table><tr><td>foo</td></tr></table>
4680 Templates: Tables: 4f. Generating a single tag of a HTML table
4682 <table><tr><td>foo</td></tr>{{echo|</table>}}
4684 <table><tr><td>foo</td></tr></table>
4689 Parser Functions: 1. Simple example
4698 Parser Functions: 2. Nested use (only outermost should be marked up)
4707 ### Pre-save transform tests
4710 pre-save transform: subst:
4716 This is a test template
4720 pre-save transform: normal template
4730 pre-save transform: nonexistent template
4734 {{thistemplatedoesnotexist}}
4736 {{thistemplatedoesnotexist}}
4741 pre-save transform: subst magic variables
4750 # This is bug 89, which I fixed. -- wtm
4752 pre-save transform: subst: templates with parameters
4756 {{subst:paramtest|param="something else"}}
4758 This is a test template with parameter "something else"
4764 <nowiki>'''not wiki'''</nowiki>
4768 pre-save transform: nowiki in subst (bug 1188)
4772 {{subst:nowikitest}}
4774 <nowiki>'''not wiki'''</nowiki>
4779 Template:commenttest
4781 This template has <!-- a comment --> in it.
4785 pre-save transform: comment in subst (bug 1936)
4789 {{subst:commenttest}}
4791 This template has <!-- a comment --> in it.
4795 pre-save transform: unclosed tag
4799 <nowiki>'''not wiki'''
4801 <nowiki>'''not wiki'''
4805 pre-save transform: mixed tag case
4809 <NOwiki>'''not wiki'''</noWIKI>
4811 <NOwiki>'''not wiki'''</noWIKI>
4815 pre-save transform: unclosed comment in <nowiki>
4819 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4821 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4827 <span onmouseover="alert('crap')">Oh no</span>
4831 (confirming safety of fix for subst bug 1936)
4833 {{Template:dangerous}}
4835 <p><span>Oh no</span>
4840 pre-save transform: comment containing gallery (bug 5024)
4844 <!-- <gallery>data</gallery> -->
4846 <!-- <gallery>data</gallery> -->
4850 pre-save transform: comment containing extension
4854 <!-- <tag>data</tag> -->
4856 <!-- <tag>data</tag> -->
4860 pre-save transform: comment containing nowiki
4864 <!-- <nowiki>data</nowiki> -->
4866 <!-- <nowiki>data</nowiki> -->
4870 pre-save transform: <noinclude> in subst (bug 3298)
4880 pre-save transform: <onlyinclude> in subst (bug 3298)
4892 {{<includeonly>subst:</includeonly>Includes}}
4896 Template:SafeSubstTest
4898 {{<includeonly>safesubst:</includeonly>Includes}}
4902 bug 22297: safesubst: works during PST
4906 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4912 bug 22297: safesubst: works during normal parse
4921 subst: does not work during normal parse
4925 <p>{{subst:Includes}}
4930 pre-save transform: context links ("pipe trick")
4934 [[Article (context)|]]
4937 [[Bar:Article (context)|]]
4938 [[:Bar:Article (context)|]]
4940 [[|Article (context)]]
4944 [[Article (context)|Article]]
4945 [[Bar:Article|Article]]
4946 [[:Bar:Article|Article]]
4947 [[Bar:Article (context)|Article]]
4948 [[:Bar:Article (context)|Article]]
4950 [[Article (context)]]
4951 [[Bar:X (Y) Z|X (Y) Z]]
4952 [[:Bar:X (Y) Z|X (Y) Z]]
4956 pre-save transform: context links ("pipe trick") with interwiki prefix
4960 [[interwiki:Article|]]
4961 [[:interwiki:Article|]]
4962 [[interwiki:Bar:Article|]]
4963 [[:interwiki:Bar:Article|]]
4965 [[interwiki:Article|Article]]
4966 [[:interwiki:Article|Article]]
4967 [[interwiki:Bar:Article|Bar:Article]]
4968 [[:interwiki:Bar:Article|Bar:Article]]
4972 pre-save transform: context links ("pipe trick") with parens in title
4974 pst title=[[Somearticle (context)]]
4978 [[Article (context)|Article]]
4982 pre-save transform: context links ("pipe trick") with comma in title
4984 pst title=[[Someplace, Somewhere]]
4987 [[Otherplace, Elsewhere|]]
4988 [[Otherplace, Elsewhere, Anywhere|]]
4990 [[Otherplace, Somewhere|Otherplace]]
4991 [[Otherplace, Elsewhere|Otherplace]]
4992 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4996 pre-save transform: context links ("pipe trick") with parens and comma
4998 pst title=[[Someplace (IGNORED), Somewhere]]
5001 [[Otherplace (place), Elsewhere|]]
5003 [[Otherplace, Somewhere|Otherplace]]
5004 [[Otherplace (place), Elsewhere|Otherplace]]
5008 pre-save transform: context links ("pipe trick") with comma and parens
5010 pst title=[[Who, me? (context)]]
5013 [[Me, Myself, and I (1937 song)|]]
5015 [[Yes, you. (context)|Yes, you.]]
5016 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5020 pre-save transform: context links ("pipe trick") with namespace
5022 pst title=[[Ns:Somearticle]]
5026 [[Ns:Article|Article]]
5030 pre-save transform: context links ("pipe trick") with namespace and parens
5032 pst title=[[Ns:Somearticle (context)]]
5036 [[Ns:Article (context)|Article]]
5040 pre-save transform: context links ("pipe trick") with namespace and comma
5042 pst title=[[Ns:Somearticle, Context, Whatever]]
5046 [[Ns:Article, Context, Whatever|Article]]
5050 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5052 pst title=[[Ns:Somearticle, Context (context)]]
5056 [[Ns:Article (context)|Article]]
5060 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5062 pst title=[[Ns:Somearticle (IGNORED), Context]]
5066 [[Ns:Article, Context|Article]]
5070 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5074 [[Article(context)|]]
5075 [[Bar:Article(context)|]]
5076 [[:Bar:Article(context)|]]
5077 [[|Article(context)]]
5081 [[Article(context)|Article]]
5082 [[Bar:Article(context)|Article]]
5083 [[:Bar:Article(context)|Article]]
5084 [[Article(context)]]
5086 [[:Bar:X(Y)Z|X(Y)Z]]
5090 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5094 [[Article (context)|]]
5095 [[Bar:Article (context)|]]
5096 [[:Bar:Article (context)|]]
5097 [[|Article (context)]]
5101 [[Article (context)|Article]]
5102 [[Bar:Article (context)|Article]]
5103 [[:Bar:Article (context)|Article]]
5104 [[Article (context)]]
5105 [[Bar:X (Y) Z|X (Y) Z]]
5106 [[:Bar:X (Y) Z|X (Y) Z]]
5110 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5114 [[Article(context)|]]
5115 [[Bar:Article(context)|]]
5116 [[:Bar:Article(context)|]]
5117 [[|Article(context)]]
5121 [[Article(context)|Article]]
5122 [[Bar:Article(context)|Article]]
5123 [[:Bar:Article(context)|Article]]
5124 [[Article(context)]]
5126 [[:Bar:X(Y)Z|X(Y)Z]]
5130 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5134 [[Article (context), context|]]
5135 [[Article (context),context|]]
5136 [[Bar:Article (context), context|]]
5137 [[Bar:Article (context),context|]]
5138 [[:Bar:Article (context), context|]]
5139 [[:Bar:Article (context),context|]]
5141 [[Article (context), context|Article]]
5142 [[Article (context),context|Article]]
5143 [[Bar:Article (context), context|Article]]
5144 [[Bar:Article (context),context|Article]]
5145 [[:Bar:Article (context), context|Article]]
5146 [[:Bar:Article (context),context|Article]]
5150 pre-save transform: trim trailing empty lines
5154 Empty lines are trimmed
5160 Empty lines are trimmed
5164 pre-save transform: Signature expansion
5169 * <noinclude>~~~</noinclude>
5170 * <includeonly>~~~</includeonly>
5171 * <onlyinclude>~~~</onlyinclude>
5173 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5174 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5175 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5176 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5181 pre-save transform: Signature expansion in nowiki tags (bug 93)
5187 <nowiki>~~~~</nowiki>
5189 <includeonly><nowiki>~~~~</nowiki></includeonly>
5191 <noinclude><nowiki>~~~~</nowiki></noinclude>
5193 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5195 {{subst:Foo}} shall be converted to FOO
5197 As well as inside noinclude/onlyinclude
5198 <noinclude>{{subst:Foo}}</noinclude>
5199 <onlyinclude>{{subst:Foo}}</onlyinclude>
5201 But not inside includeonly
5202 <includeonly>{{subst:Foo}}</includeonly>
5206 <nowiki>~~~~</nowiki>
5208 <includeonly><nowiki>~~~~</nowiki></includeonly>
5210 <noinclude><nowiki>~~~~</nowiki></noinclude>
5212 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5214 FOO shall be converted to FOO
5216 As well as inside noinclude/onlyinclude
5217 <noinclude>FOO</noinclude>
5218 <onlyinclude>FOO</onlyinclude>
5220 But not inside includeonly
5221 <includeonly>{{subst:Foo}}</includeonly>
5225 ### Message transform tests
5228 message transform: magic variables
5238 message transform: should not transform wiki markup
5248 message transform: <noinclude> in transcluded template (bug 4926)
5258 message transform: <onlyinclude> in transcluded template (bug 4926)
5268 {{#special:}} page name, known
5272 {{#special:Recentchanges}}
5274 Special:RecentChanges
5278 {{#special:}} page name with subpage, known
5282 {{#special:Recentchanges/param}}
5284 Special:RecentChanges/param
5288 {{#special:}} page name, unknown
5292 {{#special:foobarnonexistent}}
5294 No such special page
5298 {{#speciale:}} page name, known
5302 {{#speciale:Recentchanges}}
5304 Special:RecentChanges
5308 {{#speciale:}} page name with subpage, known
5312 {{#speciale:Recentchanges/param}}
5314 Special:RecentChanges/param
5318 {{#speciale:}} page name, unknown
5322 {{#speciale:foobarnonexistent}}
5324 No_such_special_page
5333 [[Image:foobar.jpg]]
5335 <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>
5342 [[Image:foobar.jpg|right]]
5344 <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>
5349 Simple image (using File: namespace, now canonical)
5353 <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>
5360 [[Image:foobar.jpg|right|Caption text]]
5362 <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>
5367 Image with link parameter, wiki target
5369 [[Image:foobar.jpg|link=Target page]]
5371 <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>
5376 Image with link parameter, URL target
5378 [[Image:foobar.jpg|link=http://example.com/]]
5380 <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>
5385 Image with link parameter, wgExternalLinkTarget
5387 [[Image:foobar.jpg|link=http://example.com/]]
5389 wgExternalLinkTarget='foobar'
5391 <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>
5396 Image with link parameter, wgNoFollowLinks set to false
5398 [[Image:foobar.jpg|link=http://example.com/]]
5400 wgNoFollowLinks=false
5402 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5407 Image with link parameter, wgNoFollowDomainExceptions
5409 [[Image:foobar.jpg|link=http://example.com/]]
5411 wgNoFollowDomainExceptions='example.com'
5413 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5418 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5420 [[Image:foobar.jpg|link=http://example.com/|Title]]
5422 wgExternalLinkTarget='foobar'
5424 <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>
5429 Image with empty link parameter
5431 [[Image:foobar.jpg|link=]]
5433 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5438 Image with link parameter (wiki target) and unnamed parameter
5440 [[Image:foobar.jpg|link=Target page|Title]]
5442 <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>
5447 Image with link parameter (URL target) and unnamed parameter
5449 [[Image:foobar.jpg|link=http://example.com/|Title]]
5451 <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>
5456 Thumbnail image with link parameter
5458 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5460 <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>
5465 Image with frame and link
5467 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5469 <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>
5474 Image with frame and link and explicit alt
5476 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5478 <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>
5483 Image with wiki markup in implicit alt
5485 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5487 <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>
5492 Image with wiki markup in explicit alt
5494 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5496 <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>
5501 Link to image page- image page normally doesn't exists, hence edit link
5502 Add test with existing image page
5503 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5507 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5512 bug 18784 Link to non-existent image page with caption should use caption as link text
5514 [[:Image:test|caption]]
5516 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5521 Frameless image caption with a free URL
5523 [[Image:foobar.jpg|http://example.com]]
5525 <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>
5530 Thumbnail image caption with a free URL
5532 [[Image:foobar.jpg|thumb|http://example.com]]
5534 <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>
5539 Thumbnail image caption with a free URL and explicit alt
5541 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5543 <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>
5548 BUG 1887: A ISBN with a thumbnail
5550 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5552 <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>
5557 BUG 1887: A RFC with a thumbnail
5559 [[Image:foobar.jpg|thumb|This is RFC 12354]]
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>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
5566 BUG 1887: A mailto link with a thumbnail
5568 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
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>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
5574 # Pending resolution to bug 368
5576 BUG 648: Frameless image caption with a link
5578 [[Image:foobar.jpg|text with a [[link]] in it]]
5580 <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>
5585 BUG 648: Frameless image caption with a link (suffix)
5587 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5589 <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>
5594 BUG 648: Frameless image caption with an interwiki link
5596 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5598 <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>
5603 BUG 648: Frameless image caption with a piped interwiki link
5605 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5607 <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>
5612 Escape HTML special chars in image alt text
5614 [[Image:foobar.jpg|& < > "]]
5616 <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>
5621 BUG 499: Alt text should have Ӓ, not &1234;
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 Broken image caption with link
5632 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5634 <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.
5639 Image caption containing another image
5641 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5643 <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>
5648 Image caption containing a newline
5650 [[Image:Foobar.jpg|This
5653 <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>
5659 Bug 3090: External links other than http: in image captions
5661 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5663 <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>
5670 [[Image:foobar.jpg|a|class=b]]
5672 <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>
5679 #REDIRECT [[File:Barfoo.jpg]]
5685 [[Image:Barfoo.jpg]]
5687 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5692 Missing image with uploads disabled
5696 [[Image:Foobaz.jpg]]
5698 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5707 Subpage test/subpage
5715 subpage title=[[Subpage test]]
5719 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5724 Subpage noslash link
5726 subpage title=[[Subpage test]]
5730 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5739 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5744 BUG 561: {{/Subpage}}
5746 subpage title=[[Page]]
5750 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5758 Category:MediaWiki User's Guide
5766 [[:Category:MediaWiki User's Guide]]
5768 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5777 [[Category:MediaWiki User's Guide]]
5779 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5783 PAGESINCATEGORY invalid title fatal (r33546 fix)
5785 {{PAGESINCATEGORY:<bogus>}}
5792 Category with different sort key
5796 [[Category:MediaWiki User's Guide|Foo]]
5798 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5802 Category with identical sort key
5806 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5808 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5812 Category with empty sort key
5817 [[Category:MediaWiki User's Guide|]]
5819 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5823 Category with empty sort key and parentheses
5828 [[Category:Foo (bar)|]]
5830 [[Category:Foo (bar)|Foo]]
5834 ### Inter-language links
5837 Inter-language links
5843 [[zh:食品]]
5845 es:Alimento fr:Nourriture zh:食品
5849 Duplicate interlanguage links (bug 24502)
5865 Basic section headings
5872 ===Smaller headline===
5875 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
5878 <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>
5881 <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>
5887 Section headings with TOC
5890 === Subheadline 1 ===
5891 ===== Skipping a level =====
5892 ====== Skipping a level ======
5896 ===Another headline===
5898 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5900 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5902 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5904 <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>
5906 <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>
5913 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5915 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5920 <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>
5921 <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>
5922 <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>
5923 <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>
5924 <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>
5927 <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>
5931 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5933 Handling of sections up to level 6 and beyond
5936 == Level 2 Heading==
5937 === Level 3 Heading===
5938 ==== Level 4 Heading====
5939 ===== Level 5 Heading=====
5940 ====== Level 6 Heading======
5941 ======= Level 7 Heading=======
5942 ======== Level 8 Heading========
5943 ========= Level 9 Heading=========
5944 ========== Level 10 Heading==========
5946 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5948 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5950 <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>
5952 <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>
5954 <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>
5956 <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>
5958 <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>
5959 <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>
5960 <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>
5961 <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>
5962 <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>
5975 <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>
5976 <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>
5977 <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>
5978 <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>
5979 <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>
5980 <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>
5981 <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>
5982 <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>
5983 <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>
5984 <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>
5989 TOC regression (bug 9764)
5993 ==== title 1.1.1 ====
5998 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6000 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6002 <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>
6004 <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>
6007 <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>
6010 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6012 <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>
6017 <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>
6018 <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>
6019 <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>
6020 <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>
6021 <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>
6022 <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>
6027 TOC with wgMaxTocLevel=3 (bug 6204)
6033 ==== title 1.1.1 ====
6038 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6040 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6042 <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>
6043 <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>
6046 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6048 <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>
6053 <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>
6054 <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>
6055 <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>
6056 <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>
6057 <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>
6058 <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>
6063 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6069 ====Section 1.1.1====
6070 ====Section 1.1.1.1====
6073 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6075 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6077 <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>
6080 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6083 <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>
6084 <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>
6085 <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>
6086 <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>
6087 <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>
6093 Resolving duplicate section names
6098 <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>
6099 <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>
6104 Resolving duplicate section names with differing case (bug 10721)
6109 <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>
6110 <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>
6122 Template with sections, __NOTOC__
6129 <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>
6130 <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>
6131 <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>
6132 <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>
6137 __NOEDITSECTION__ keyword
6143 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6144 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6149 Link inside a section heading
6151 ==Section with a [[Main Page|link]] in it==
6153 <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>
6158 TOC regression (bug 12077)
6165 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6167 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6169 <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>
6172 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6175 <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>
6176 <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>
6177 <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>
6182 BUG 1219 URL next to image (good)
6184 http://example.com [[Image:foobar.jpg]]
6186 <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>
6191 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6194 The line above must have a trailing space!
6197 But just in case it doesn't...
6199 <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>
6200 <p>The line above must have a trailing space!
6202 <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>
6203 <p>But just in case it doesn't...
6208 Header with special characters (bug 25462)
6210 The tooltips shall not show entities to the user (ie. be double escaped)
6227 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6229 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6231 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6232 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6233 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6234 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6235 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6238 <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>
6241 <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>
6244 <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>
6247 <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>
6250 <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>
6256 Headers with excess '=' characters
6257 (Are similar tests necessary beyond the 1st level?)
6261 =''italic'' heading==
6262 ==''italic'' heading=
6264 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6266 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6267 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6268 <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>
6269 <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>
6272 <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>
6273 <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>
6274 <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>
6275 <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>
6280 BUG 1219 URL next to image (broken)
6282 http://example.com[[Image:foobar.jpg]]
6284 <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>
6289 Bug 1186 news: in the middle of text
6291 http://en.wikinews.org/wiki/Wikinews:Workplace
6293 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6299 Namespaced link must have a title
6308 Namespaced link must have a title (bad fragment version)
6310 [[Project:#fragment]]
6312 <p>[[Project:#fragment]]
6318 div with no attributes
6320 <div>HTML rocks</div>
6322 <div>HTML rocks</div>
6327 div with double-quoted attribute
6329 <div id="rock">HTML rocks</div>
6331 <div id="rock">HTML rocks</div>
6336 div with single-quoted attribute
6338 <div id='rock'>HTML rocks</div>
6340 <div id="rock">HTML rocks</div>
6345 div with unquoted attribute
6347 <div id=rock>HTML rocks</div>
6349 <div id="rock">HTML rocks</div>
6354 div with illegal double attributes
6356 <div id="a" id="b">HTML rocks</div>
6358 <div id="b">HTML rocks</div>
6363 HTML multiple attributes correction
6365 <p class="error" class="awesome">Awesome!</p>
6367 <p class="awesome">Awesome!</p>
6372 Table multiple attributes correction
6375 !+ class="error" class="awesome"| status
6380 <th class="awesome"> status
6388 <DIV ID="x">HTML ROCKS</DIV>
6390 <div id="x">HTML ROCKS</div>
6396 text with amp in the middle of nowhere
6400 <p>Remember AT&T?
6405 text with character entity: eacute
6407 I always thought é was a cute letter.
6409 <p>I always thought é was a cute letter.
6414 text with undefined character entity: xacute
6416 I always thought &xacute; was a cute letter.
6418 <p>I always thought &xacute; was a cute letter.
6430 [[Media:Foobar.jpg]]
6432 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6437 Media link with text
6439 [[Media:Foobar.jpg|A neat file to look at]]
6441 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6445 # FIXME: this is still bad HTML tag nesting
6447 Media link with nasty text
6448 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6450 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6452 <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>
6457 Media link to nonexistent file (bug 1702)
6459 [[Media:No such.jpg]]
6461 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6466 Image link to nonexistent file (bug 1850 - good)
6468 [[Image:No such.jpg]]
6470 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6475 :Image link to nonexistent file (bug 1850 - bad)
6477 [[:Image:No such.jpg]]
6479 <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>
6486 Character reference normalization in link text (bug 1938)
6488 [[Main Page|this&that]]
6490 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6497 Test for unicode normalization
6499 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6503 (bug 19451) Links should refer to the normalized form.
6511 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6512 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6513 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6514 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6515 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6520 Empty attribute crash test (bug 2067)
6522 <font color="">foo</font>
6524 <p><font color="">foo</font>
6529 Empty attribute crash test single-quotes (bug 2067)
6531 <font color=''>foo</font>
6533 <p><font color="">foo</font>
6538 Attribute test: equals, then nothing
6540 <font color=>foo</font>
6547 Attribute test: unquoted value
6549 <font color=x>foo</font>
6551 <p><font color="x">foo</font>
6556 Attribute test: unquoted but illegal value (hash)
6558 <font color=#x>foo</font>
6560 <p><font color="#x">foo</font>
6565 Attribute test: no value
6567 <font color>foo</font>
6569 <p><font color="color">foo</font>
6574 Bug 2095: link with three closing brackets
6578 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6583 Bug 2095: link with pipe and three closing brackets
6587 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6592 Bug 2095: link with pipe and three closing brackets, version 2
6594 [[Main Page|[http://example.com/]]]
6596 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6606 Template:Dangerous attribute
6608 " onmouseover="alert(document.cookie)
6612 Template:Dangerous style attribute
6614 border-size: expression(alert(document.cookie))
6620 <div style="float: right; {{{1}}}">Magic div</div>
6624 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6626 <div title="{{test}}"></div>
6628 <div title="This is a test template"></div>
6633 Bug 2304: HTML attribute safety (dangerous template; 2309)
6635 <div title="{{dangerous attribute}}"></div>
6637 <div title=""></div>
6642 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6644 <div style="{{dangerous style attribute}}"></div>
6646 <div style="/* insecure input */"></div>
6651 Bug 2304: HTML attribute safety (safe parameter; 2309)
6653 {{div style|width: 200px}}
6655 <div style="float: right; width: 200px">Magic div</div>
6660 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6662 {{div style|width: expression(alert(document.cookie))}}
6664 <div style="/* insecure input */">Magic div</div>
6669 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6671 {{div style|"><script>alert(document.cookie)</script>}}
6673 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6678 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6680 {{div style|" ><script>alert(document.cookie)</script>}}
6682 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6687 Bug 2304: HTML attribute safety (link)
6689 <div title="[[Main Page]]"></div>
6691 <div title="[[Main Page]]"></div>
6696 Bug 2304: HTML attribute safety (italics)
6698 <div title="''foobar''"></div>
6700 <div title="''foobar''"></div>
6705 Bug 2304: HTML attribute safety (bold)
6707 <div title="'''foobar'''"></div>
6709 <div title="'''foobar'''"></div>
6715 Bug 2304: HTML attribute safety (ISBN)
6717 <div title="ISBN 1234567890"></div>
6719 <div title="ISBN 1234567890"></div>
6724 Bug 2304: HTML attribute safety (RFC)
6726 <div title="RFC 1234"></div>
6728 <div title="RFC 1234"></div>
6733 Bug 2304: HTML attribute safety (PMID)
6735 <div title="PMID 1234567890"></div>
6737 <div title="PMID 1234567890"></div>
6742 Bug 2304: HTML attribute safety (web link)
6744 <div title="http://example.com/"></div>
6746 <div title="http://example.com/"></div>
6751 Bug 2304: HTML attribute safety (named web link)
6753 <div title="[http://example.com/ link]"></div>
6755 <div title="[http://example.com/ link]"></div>
6760 Bug 3244: HTML attribute safety (extension; safe)
6762 <div style="<nowiki>background:blue</nowiki>"></div>
6764 <div style="background:blue"></div>
6769 Bug 3244: HTML attribute safety (extension; unsafe)
6771 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6773 <div style="/* insecure input */"></div>
6777 # More MSIE fun discovered by Tom Gilder
6780 MSIE CSS safety test: spurious slash
6782 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6784 <div style="/* insecure input */">evil</div>
6789 MSIE CSS safety test: hex code
6791 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6793 <div style="/* insecure input */">evil</div>
6798 MSIE CSS safety test: comment in url
6800 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6802 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6807 MSIE CSS safety test: comment in expression
6809 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6811 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6817 Table attribute legitimate extension
6820 !+ style="<nowiki>color:blue</nowiki>"| status
6825 <th style="color:blue"> status
6831 Table attribute safety
6834 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6839 <th style="/* insecure input */"> status
6845 CSS line continuation 1
6847 <div style="background-image: u\ rl(test.jpg);"></div>
6849 <div style="/* insecure input */"></div>
6854 CSS line continuation 2
6856 <div style="background-image: u\ rl(test.jpg); "></div>
6858 <div style="/* insecure input */"></div>
6869 Expansion of multi-line templates in attribute values (bug 6255)
6871 <div style="background: {{identity|#00FF00}}">-</div>
6873 <div style="background: #00FF00">-</div>
6879 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6881 <div style="background:
6884 <div style="background: #00FF00">-</div>
6889 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6891 <div style="background: #00FF00">-</div>
6893 <div style="background: #00FF00">-</div>
6898 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6901 Parser hook: empty input
6914 Parser hook: empty input using terminated empty elements
6927 Parser hook: empty input using terminated empty elements (space before)
6940 Parser hook: basic input
6954 Parser hook: case insensitive
6968 Parser hook: case insensitive, redux
6981 Parser hook: nested tags
6985 <tag><tag></tag></tag>
6996 Parser hook: basic arguments
6998 <tag width=200 height = "100" depth = '50' square></tag>
7017 Parser hook: argument containing a forward slash (bug 5344)
7019 <tag filename='/tmp/bla'></tag>
7025 string(8) "/tmp/bla"
7032 Parser hook: empty input using terminated empty elements (bug 2374)
7046 # </tag> should be output literally since there is no matching tag that begins it
7048 Parser hook: basic arguments using terminated empty elements (bug 2374)
7050 <tag width=200 height = "100" depth = '50' square/>
7073 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7077 Parser hook: static parser hook not inside a comment
7079 <statictag>hello, world</statictag>
7080 <statictag action=flush/>
7088 Parser hook: static parser hook inside a comment
7090 <!-- <statictag>hello, world</statictag> -->
7091 <statictag action=flush/>
7097 # Nested template calls; this case was broken by Parser.php rev 1.506,
7101 Template:One-parameter
7103 (My parameter is: {{{1}}})
7107 Template:Map-one-parameter
7113 Nested template calls
7115 {{Map-one-parameter|One-parameter|param}}
7117 <p>(My parameter is: param)
7126 Sanitizer: Closing of open tags
7128 <s></s><table></table>
7130 <s></s><table></table>
7135 Sanitizer: Closing of open but not closed tags
7144 Sanitizer: Closing of closed but not open tags
7153 Sanitizer: Closing of closed but not open table tags
7155 Table not started</td></tr></table>
7157 <p>Table not started</td></tr></table>
7162 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7164 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7166 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7171 Sanitizer: Validating the contents of the id attribute (bug 4515)
7177 Something, but definitely not <br id="9" />...
7181 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7185 <br id="foo" /><br id="foo" />
7187 Something need to be done. foo-2 ?
7191 Language converter: output gets cut off unexpectedly (bug 5757)
7195 this bit is safe: }-
7197 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7199 then we get cut off here: }-
7201 all additional text is vanished
7203 <p>this bit is safe: }-
7204 </p><p>but if we add a conversion instance: xxx
7205 </p><p>then we get cut off here: }-
7206 </p><p>all additional text is vanished
7211 Self closed html pairs (bug 5487)
7214 <center><font id="bug" />Centered text</center>
7215 <div><font id="bug2" />In div text</div>
7217 <center><font id="bug" />Centered text</center>
7218 <div><font id="bug2" />In div text</div>
7227 Punctuation: nbsp before exclamation
7231 <p>C'est grave !
7236 Punctuation: CSS !important (bug 11874)
7238 <div style="width:50% !important">important</div>
7240 <div style="width:50% !important">important</div>
7245 Punctuation: CSS ! important (bug 11874; with space after)
7247 <div style="width:50% ! important">important</div>
7249 <div style="width:50% ! important">important</div>
7255 HTML bullet list, closed tags (bug 5497)
7270 HTML bullet list, unclosed tags (bug 5497)
7287 HTML ordered list, closed tags (bug 5497)
7302 HTML ordered list, unclosed tags (bug 5497)
7319 HTML nested bullet list, closed tags (bug 5497)
7344 HTML nested bullet list, open tags (bug 5497)
7369 HTML nested ordered list, closed tags (bug 5497)
7394 HTML nested ordered list, open tags (bug 5497)
7419 HTML ordered list item with parameters oddity
7421 <ol><li id="fragment">One</li></ol>
7423 <ol><li id="fragment">One</li></ol>
7428 bug 5918: autonumbering
7430 [http://first/] [http://second] [ftp://ftp]
7434 [mailto:enclosed@mail.tld With target]
7436 [mailto:enclosed@mail.tld]
7438 mailto:inline@mail.tld
7440 <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>
7441 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7442 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7443 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7444 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7450 # Security and HTML correctness
7451 # From Nick Jenkins' fuzz testing
7455 Fuzz testing: Parser13
7470 Fuzz testing: Parser14
7475 <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>
7476 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7478 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7485 Fuzz testing: Parser14-table
7490 <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>
7491 <table style="__TOC__">
7497 # Known to produce bogus xml (extra </td>)
7499 Fuzz testing: Parser16
7519 Fuzz testing: Parser21
7522 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7527 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7537 Fuzz testing: Parser22
7539 http://===r:::https://b
7543 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7551 # Known to produce bad XML for now
7553 Fuzz testing: Parser24
7560 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7561 <br style="onmouseover='alert(document.cookie);' " />
7563 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7568 <u class="|">}}}} >
7569 <br style="onmouseover='alert(document.cookie);'" />
7571 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7580 # Note: the current result listed for this is not what the original one was,
7581 # but the original bug was JavaScript injection, which is fixed in any case.
7582 # It's not clear that the original result listed was any more correct than the
7583 # current one. Original result:
7586 # <li class="||">
7587 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7589 Fuzz testing: Parser25 (bug 6055)
7595 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7597 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7602 Fuzz testing: URL adjacent extension (with space, clean)
7605 http://example.com <nowiki>junk</nowiki>
7607 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7612 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7615 http://example.com<nowiki>junk</nowiki>
7617 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7622 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7625 http://example.com<pre>junk</pre>
7627 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7632 Fuzz testing: image with bogus manual thumbnail
7634 [[Image:foobar.jpg|thumbnail= ]]
7636 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7641 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7643 <pre dir=" "></pre>
7645 <pre dir=" "></pre>
7650 Parsing optional HTML elements (Bug 6171)
7655 <td> Some tabular data</td>
7656 <td> More tabular data ...
7657 <td> And yet som tabular data</td>
7663 <td> Some tabular data</td>
7664 <td> More tabular data ...
7665 </td><td> And yet som tabular data</td>
7672 Correct handling of <td>, <tr> (Bug 6171)
7677 <td> Some tabular data</td>
7678 <td> More tabular data ...</td>
7679 <td> And yet som tabular data</td>
7685 <td> Some tabular data</td>
7686 <td> More tabular data ...</td>
7687 <td> And yet som tabular data</td>
7695 Parsing crashing regression (fr:JavaScript)
7699 <p></body></x>
7704 Inline wiki vs wiki block nesting
7710 <p><b>Bold paragraph</b>
7711 </p><p>New wiki paragraph
7716 Inline HTML vs wiki block nesting
7724 <p><b>Bold paragraph</b>
7725 </p><p>New wiki paragraph
7729 # Original result was this:
7730 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7732 # While that might be marginally more intuitive, maybe, the six-apostrophe
7733 # construct is clearly pathological and the result stated here (which is what
7734 # the parser actually does) is about as reasonable as anything.
7736 Mixing markup for italics and bold
7739 '''bold''''''bold''bolditalics'''''
7741 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7749 Article for special page transclusion test
7753 Special page transclusion
7756 {{Special:Prefixindex/Xyzzyx}}
7758 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7763 Special page transclusion twice (bug 5021)
7766 {{Special:Prefixindex/Xyzzyx}}
7767 {{Special:Prefixindex/Xyzzyx}}
7769 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7770 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7775 Transclusion of default MediaWiki message
7777 {{MediaWiki:Mainpage}}
7784 Transclusion of nonexistent MediaWiki message
7786 {{MediaWiki:Mainpagexxx}}
7788 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7793 Transclusion of MediaWiki message with underscore
7795 {{MediaWiki:history_short}}
7802 Transclusion of MediaWiki message with space
7804 {{MediaWiki:history short}}
7811 Invalid header with following text
7821 Section extraction test (section 0)
7841 Section extraction test (section 1)
7863 Section extraction test (section 2)
7884 Section extraction test (section 3)
7904 Section extraction test (section 4)
7928 Section extraction test (section 5)
7948 Section extraction test (section 6)
7969 Section extraction test (section 7)
7989 Section extraction test (section 8)
8009 Section extraction test (section 9)
8030 Section extraction test (section 10)
8050 Section extraction test (nonexistent section 11)
8069 Section extraction test with bogus heading (section 1)
8074 ==bogus== not a legal section
8078 ==bogus== not a legal section
8082 Section extraction test with bogus heading (section 2)
8087 ==bogus== not a legal section
8094 Section extraction test with comment after heading (section 1)
8106 Section extraction test with comment after heading (section 2)
8118 Section extraction test with bogus <nowiki> heading (section 1)
8123 ==bogus== <nowiki>not a legal section</nowiki>
8127 ==bogus== <nowiki>not a legal section</nowiki>
8131 Section extraction test with bogus <nowiki> heading (section 2)
8136 ==bogus== <nowiki>not a legal section</nowiki>
8143 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8144 # instead of respecting commented sections
8146 Section extraction prefixed by comment (section 1)
8157 Section extraction prefixed by comment (section 2)
8168 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8169 # instead of respecting HTML-style headings
8171 Section extraction, mixed wiki and html (section 1)
8187 Section extraction, mixed wiki and html (section 2)
8203 # Formerly testing for bug 3342
8205 Section extraction, heading surrounded by <noinclude>
8209 <noinclude>==unmarked==</noinclude>
8215 # Test behaviour of bug 19910
8217 Sectiion with all-equals
8222 The line above must have a trailing space
8225 But just in case it doesn't...
8229 But just in case it doesn't...
8233 Section replacement test (section 0)
8264 Section replacement test (section 1)
8293 Section replacement test (section 2)
8323 Section replacement test (section 3)
8354 Section replacement test (section 4)
8381 Section replacement test (section 5)
8412 Section replacement test (section 6)
8442 Section replacement test (section 7)
8473 Section replacement test (section 8)
8504 Section replacement test (section 9)
8533 Section replacement test (section 10)
8563 Section replacement test with initial whitespace (bug 13728)
8567 Preformatted initial line
8571 Preformatted initial line
8578 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8590 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8603 Section extraction, <pre> around bogus header (bug 10309)
8620 Section replacement, <pre> around bogus header (bug 10309)
8622 noxml replace=2,"xxx"
8643 Handling of 
 in URLs
8647 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8654 5 quotes, code coverage +1 line
8661 Special:Search page linking.
8665 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8680 * {{SUBJECTPAGENAME}}
8681 * {{SUBJECTPAGENAMEE}}
8688 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8690 <ul><li> Parser test
8691 </li><li> Parser test
8692 </li><li> Parser test
8693 </li><li> Parser_test
8694 </li><li> Parser test
8695 </li><li> Parser_test
8696 </li><li> Talk:Parser test
8697 </li><li> Talk:Parser_test
8698 </li><li> Parser test
8699 </li><li> Parser_test
8706 </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>
8710 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8720 image4 |300px| centre
8721 image5.svg| http://///////
8726 <ul class="gallery">
8727 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8728 <div style="height: 150px;">Image1.png</div>
8729 <div class="gallerytext">
8732 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8733 <div style="height: 150px;">Image2.gif</div>
8734 <div class="gallerytext">
8739 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8740 <div style="height: 150px;">Image3</div>
8741 <div class="gallerytext">
8744 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8745 <div style="height: 150px;">Image4</div>
8746 <div class="gallerytext">
8751 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8752 <div style="height: 150px;">Image5.svg</div>
8753 <div class="gallerytext">
8754 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8758 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8759 <div style="height: 150px;">* image6</div>
8760 <div class="gallerytext">
8768 Gallery (with options)
8770 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8771 File:Nonexistant.jpg|caption
8772 File:Nonexistant.jpg
8773 image:foobar.jpg|some '''caption''' [[Main Page]]
8775 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8778 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8779 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8780 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8781 <div style="height: 70px;">Nonexistant.jpg</div>
8782 <div class="gallerytext">
8787 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8788 <div style="height: 70px;">Nonexistant.jpg</div>
8789 <div class="gallerytext">
8792 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8793 <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>
8794 <div class="gallerytext">
8795 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8799 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8800 <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>
8801 <div class="gallerytext">
8804 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8805 <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>
8806 <div class="gallerytext">
8816 Gallery with wikitext inside caption
8819 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8820 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8823 <ul class="gallery">
8824 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8825 <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>
8826 <div class="gallerytext">
8827 <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>
8831 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8832 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8833 <div class="gallerytext">
8834 <p>This is a test template
8843 gallery (with showfilename option)
8845 <gallery showfilename>
8846 File:Nonexistant.jpg|caption
8847 File:Nonexistant.jpg
8848 image:foobar.jpg|some '''caption''' [[Main Page]]
8852 <ul class="gallery">
8853 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8854 <div style="height: 150px;">Nonexistant.jpg</div>
8855 <div class="gallerytext">
8856 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8861 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8862 <div style="height: 150px;">Nonexistant.jpg</div>
8863 <div class="gallerytext">
8864 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8868 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8869 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8870 <div class="gallerytext">
8871 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8872 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8876 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8877 <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>
8878 <div class="gallerytext">
8879 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8888 Gallery (with namespace-less filenames)
8891 File:Nonexistant.jpg
8897 <ul class="gallery">
8898 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8899 <div style="height: 150px;">Nonexistant.jpg</div>
8900 <div class="gallerytext">
8903 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8904 <div style="height: 150px;">Nonexistant.jpg</div>
8905 <div class="gallerytext">
8908 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8909 <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>
8910 <div class="gallerytext">
8913 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8914 <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>
8915 <div class="gallerytext">
8923 HTML Hex character encoding (spells the word "JavaScript")
8925 JavaScript
8927 <p>JavaScript
8932 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8936 <p>&#xsee;&#XSEE;
8941 HTML Hex character encoding mixed case
8950 __FORCETOC__ override
8962 ISBN 978-0-1234-56 789
8964 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8969 ISBN followed by 5 spaces
8980 ISBN ISBN 1234567890
8982 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8987 Bug 22905: <abbr> followed by ISBN followed by </a>
8989 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8991 <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>
9000 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9005 Double RFC with a wiki link
9009 <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>
9018 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9023 Centre-aligned image
9025 [[Image:foobar.jpg|centre]]
9027 <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>
9034 [[Image:foobar.jpg|none]]
9036 <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>
9041 Width + Height sized image (using px) (height is ignored)
9043 [[Image:foobar.jpg|640x480px]]
9045 <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>
9050 Width-sized image (using px, no following whitespace)
9052 [[Image:foobar.jpg|640px]]
9054 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9059 Width-sized image (using px, with following whitespace - test regression from r39467)
9061 [[Image:foobar.jpg|640px ]]
9063 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9068 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9070 [[Image:foobar.jpg| 640px]]
9072 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
9077 Another italics / bold test
9085 # Note the results may be incorrect, as parserTest output included this:
9086 # XML error: Mismatched tag at byte 6120:
9087 # ...<dd> </dt></dl> </dd...
9095 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9106 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9108 Images with the "|" character in the comment
9110 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9112 <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>
9117 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9119 <html><script>alert(1);</script></html>
9121 <p><html><script>alert(1);</script></html>
9126 HTML with raw HTML ($wgRawHtml==true)
9130 <html><script>alert(1);</script></html>
9132 <p><script>alert(1);</script>
9137 Parents of subpages, one level up
9139 subpage title=[[Subpage test/L1/L2/L3]]
9143 <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>
9149 Parents of subpages, one level up, not named
9151 subpage title=[[Subpage test/L1/L2/L3]]
9155 <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>
9162 Parents of subpages, two levels up
9164 subpage title=[[Subpage test/L1/L2/L3]]
9170 <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
9171 </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>
9176 Parents of subpages, two levels up, without trailing slash or name.
9178 subpage title=[[Subpage test/L1/L2/L3]]
9187 Parents of subpages, two levels up, with lots of extra trailing slashes.
9189 subpage title=[[Subpage test/L1/L2/L3]]
9193 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9198 Definition list code coverage
9204 <dl><dt> title  </dt><dd> def
9205 </dd><dt> title </dt><dd> def
9206 </dd><dt>title</dt><dd> def
9212 Don't fall for the self-closing div
9214 <div>hello world</div/>
9216 <div>hello world</div>
9225 <p>[[:Template:Msg]]
9234 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9238 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9240 Always escape literal '>' in output, not just after '<'
9254 <p>This is a test template
9255 This is a test template
9267 Inclusion of !userCanEdit() content
9271 <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>
9277 Out-of-order TOC heading levels
9286 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9288 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9290 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9291 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9294 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9296 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9297 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9302 <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>
9303 <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>
9304 <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>
9305 <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>
9306 <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>
9307 <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>
9313 ISBN with a dummy number
9323 ISBN with space-delimited number
9327 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9333 ISBN with multiple spaces, no number
9352 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9353 </p><p>ISBN 12345678901
9359 ISBN with trailing year (bug 8110)
9361 ISBN 1-234-56789-0 - 2006
9363 ISBN 1 234 56789 0 - 2006
9365 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9366 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9374 {{anchorencode:foo bar©#%n}}
9376 <p>foo_bar.C2.A9.23.25n
9381 anchorencode trims spaces
9383 {{anchorencode: __pretty__please__}}
9390 anchorencode deals with links
9392 {{anchorencode: [[hello|world]] [[hi]]}}
9399 anchorencode deals with templates
9401 {{anchorencode: {{Foo}} }}
9408 anchorencode encodes like the TOC generator: (bug 18431)
9410 === _ +:.3A%3A&&]] ===
9411 {{anchorencode: _ +:.3A%3A&&]] }}
9414 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9415 <p>.2B:.3A.253A.26.26.5D.5D
9419 # Expected output in the following test is not necessarily expected (there
9420 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9421 # only testing for well-formedness.
9423 Bug 6200: blockquotes and paragraph formatting
9443 Bug 8293: Use of center tag ruins paragraph formatting
9465 ### Language variants related tests
9468 Self-link in language variants
9470 title=[[Dunav]] language=sr
9472 Both [[Dunav]] and [[Дунав]] are names for this river.
9474 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9480 Link to pages in language variants
9484 Main Page can be written as [[Маин Паге]]
9486 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9492 Multiple links to pages in language variants
9496 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9498 <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>.
9504 Simple template in language variants
9510 <p>This is a test template
9516 Template with explicit namespace in language variants
9522 <p>This is a test template
9528 Basic test for template parameter in language variants
9532 {{парамтест|param=foo}}
9534 <p>This is a test template with parameter foo
9540 Simple category in language variants
9544 [[Category:МедиаWики Усер'с Гуиде]]
9546 <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>
9551 Stripping -{}- tags (language variants)
9555 Latin proverb: -{Ne nuntium necare}-
9557 <p>Latin proverb: Ne nuntium necare
9563 Prevent conversion with -{}- tags (language variants)
9565 language=sr variant=sr-ec
9567 Latinski: -{Ne nuntium necare}-
9569 <p>Латински: Ne nuntium necare
9575 Prevent conversion of text with -{}- tags (language variants)
9577 language=sr variant=sr-ec
9579 Latinski: -{Ne nuntium necare}-
9581 <p>Латински: Ne nuntium necare
9587 Prevent conversion of links with -{}- tags (language variants)
9589 language=sr variant=sr-ec
9593 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9599 -{}- tags within headlines (within html for parserConvert())
9601 language=sr variant=sr-ec
9605 <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>
9611 Explicit definition of language variant alternatives
9613 language=zh variant=zh-tw
9615 -{zh:China;zh-tw:Taiwan}-, not China
9617 <p>Taiwan, not China
9623 Explicit session-wise language variant mapping (A flag and - flag)
9625 language=zh variant=zh-tw
9627 Taiwan is not China.
9628 But -{A|zh:China;zh-tw:Taiwan}- is China,
9629 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9630 and -{China}- is China.
9632 <p>Taiwan is not China.
9633 But Taiwan is Taiwan,
9634 (This should be stripped!)
9640 Explicit session-wise language variant mapping (H flag for hide)
9642 language=zh variant=zh-tw
9644 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9647 <p>(This should be stripped!)
9653 Adding explicit conversion rule for title (T flag)
9655 language=zh variant=zh-tw showtitle
9657 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9660 <p>Should be stripped!
9665 Testing that changing the language variant here in the tests actually works
9667 language=zh variant=zh showtitle
9669 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9672 <p>Should be stripped!
9677 Bug 24072: more test on conversion rule for title
9679 language=zh variant=zh-tw showtitle
9681 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9682 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9685 <p>This should be stripped!
9686 This won't take interferes with the title rule.
9691 Raw output of variant escape tags (R flag)
9693 language=zh variant=zh-tw
9695 Raw: -{R|zh:China;zh-tw:Taiwan}-
9697 <p>Raw: zh:China;zh-tw:Taiwan
9702 Nested using of manual convert syntax
9704 language=zh variant=zh-hk
9706 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9708 <p>Nested: Hello Hong Kong!
9713 Do not convert roman numbers to language variants
9715 language=sr variant=sr-ec
9719 <p>Фридрих IV је цар.
9724 Unclosed language converter markup "-{"
9735 Don't convert raw rule "-{R|=>}-" to "=>"
9752 Bug 529: Uncovered bullet
9763 Bug 529: Uncovered table already at line-start
9786 Bug 529: Uncovered bullet in parser function result
9788 * Foo {{lc:{{bullet}} }}
9797 Bug 5678: Double-parsed template argument
9799 {{lc:{{{1}}}|hello}}
9806 Bug 5678: Double-parsed template invocation
9808 {{lc:{{paramtest {{!}} param = hello }} }}
9810 <p>{{paramtest | param = hello }}
9815 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9841 Morwen/13: Unclosed link followed by heading
9848 <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>
9853 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9860 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9865 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9872 <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>
9887 Paragraphs inside divs (no extra line breaks)
9899 Paragraphs inside divs (extra line break on open)
9914 Paragraphs inside divs (extra line break on close)
9929 Paragraphs inside divs (extra line break on open and close)
9946 Nesting tags, paragraphs on lines which begin with <div>
9950 <div></div><strong>A
9959 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9961 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9965 <blockquote>Line one
9967 Line two</blockquote>
9969 <blockquote>Line one
9970 Line two</blockquote>
9975 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9982 Line two</blockquote>
9987 Line two</blockquote>
9992 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9996 <blockquote>Line one
10001 <blockquote>Line one
10009 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10028 Paragraphs inside blockquotes/divs (no extra line breaks)
10030 <blockquote><div>Line one
10032 Line two</div></blockquote>
10034 <blockquote><div>Line one
10035 Line two</div></blockquote>
10040 Paragraphs inside blockquotes/divs (extra line break on open)
10045 Line two</div></blockquote>
10050 Line two</div></blockquote>
10055 Paragraphs inside blockquotes/divs (extra line break on close)
10057 <blockquote><div>Line one
10060 </div></blockquote>
10062 <blockquote><div>Line one
10065 </div></blockquote>
10070 Paragraphs inside blockquotes/divs (extra line break on open and close)
10076 </div></blockquote>
10082 </div></blockquote>
10087 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10089 wgLinkHolderBatchSize=0
10095 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10096 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10097 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10102 Free external link invading image caption
10104 [[Image:Foobar.jpg|thumb|http://x|hello]]
10106 <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>
10111 Bug 15196: localised external link numbers
10115 [http://en.wikipedia.org/]
10117 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10122 Multibyte character in padleft
10124 {{padleft:-Hello|7|Æ}}
10131 Multibyte character in padright
10133 {{padright:Hello-|7|Æ}}
10142 wgUseDynamicDates=1
10146 <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>
10151 formatdate parser function
10153 {{#formatdate:2009-03-24}}
10155 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10160 formatdate parser function, with default format
10162 {{#formatdate:2009-03-24|mdy}}
10164 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10169 Linked date with autoformatting disabled
10171 wgUseDynamicDates=false
10175 <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>
10180 Spacing of numbers in formatted dates
10182 {{#formatdate:January 15}}
10184 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10189 Spacing of numbers in formatted dates (linked)
10191 wgUseDynamicDates=true
10195 <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>
10200 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
10202 language=nl title=[[MediaWiki:Common.css]]
10204 {{#formatdate:2009-03-24|dmy}}
10206 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10219 Edit comment with link
10223 I like the [[Main Page]] a lot
10225 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10229 Edit comment with link and link text
10233 I like the [[Main Page|best pages]] a lot
10235 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10239 Edit comment with link and link text with suffix
10243 I like the [[Main Page|best page]]s a lot
10245 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10249 Edit comment with section link (non-local, eg in history list)
10251 comment title=[[Main Page]]
10253 /* External links */ removed bogus entries
10255 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10259 Edit comment with section link and text before it (non-local, eg in history list)
10261 comment title=[[Main Page]]
10263 pre-comment text /* External links */ removed bogus entries
10265 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>
10269 Edit comment with section link (local, eg in diff view)
10271 comment local title=[[Main Page]]
10273 /* External links */ removed bogus entries
10275 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10279 Edit comment with subpage link (bug 14080)
10283 title=[[Subpage test]]
10285 Poked at a [[/subpage]] here...
10287 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10291 Edit comment with subpage link and link text (bug 14080)
10295 title=[[Subpage test]]
10297 Poked at a [[/subpage|neat little page]] here...
10299 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10303 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10306 title=[[Subpage test]]
10308 Poked at a [[/subpage]] here...
10310 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10314 Edit comment with bare anchor link (local, as on diff)
10318 title=[[Main Page]]
10322 <a href="#section">#section</a>
10326 Edit comment with bare anchor link (non-local, as on history)
10329 title=[[Main Page]]
10333 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10337 Anchor starting with underscore
10341 <p><a href="#_ref">One</a>
10346 Id starting with underscore
10348 <div id="_ref"></div>
10350 <div id="_ref"></div>
10355 Space normalisation on autocomment (bug 22784)
10358 title=[[Main Page]]
10360 /* __hello__world__ */
10362 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10366 percent-encoding and + signs in comments (Bug 26410)
10370 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10372 <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>
10376 Bad images - basic functionality
10385 Bad images - bug 16039: text after bad image disappears
10399 Verify that displaytitle works (bug #22501) no displaytitle
10403 wgAllowDisplayTitle=true
10404 wgRestrictDisplayTitle=false
10406 this is not the the title
10409 <p>this is not the the title
10414 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10419 wgAllowDisplayTitle=true
10420 wgRestrictDisplayTitle=false
10422 this is not the the title
10423 {{DISPLAYTITLE:whatever}}
10426 <p>this is not the the title
10431 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10436 wgAllowDisplayTitle=true
10437 wgRestrictDisplayTitle=true
10439 this is not the the title
10440 {{DISPLAYTITLE:whatever}}
10443 <p>this is not the the title
10448 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10453 wgAllowDisplayTitle=true
10454 wgRestrictDisplayTitle=true
10456 this is not the the title
10457 {{DISPLAYTITLE:screen}}
10460 <p>this is not the the title
10465 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10470 wgAllowDisplayTitle=false
10472 this is not the the title
10473 {{DISPLAYTITLE:screen}}
10476 <p>this is not the the title
10477 <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>
10482 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10487 wgAllowDisplayTitle=false
10489 this is not the the title
10492 <p>this is not the the title
10497 preload: check <noinclude> and <includeonly>
10501 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10507 preload: check <onlyinclude>
10511 Goodbye <onlyinclude>Hello world</onlyinclude>
10517 preload: can pass tags through if we want to
10521 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10523 <includeonly>Hello world</includeonly>
10527 preload: check that it doesn't try to do tricks
10531 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10533 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10537 Play a bit with r67090 and bug 3158
10541 <div style="width:50% !important"> </div>
10542 <div style="width:50% !important"> </div>
10543 <div style="width:50% !important"> </div>
10544 <div style="border : solid;"> </div>
10546 <div style="width:50% !important"> </div>
10547 <div style="width:50% !important"> </div>
10548 <div style="width:50% !important"> </div>
10549 <div style="border : solid;"> </div>
10554 HTML5 data attributes
10556 <span data-foo="bar">Baz</span>
10557 <p data-abc-def_hij="">Quuz</p>
10559 <p><span data-foo="bar">Baz</span>
10561 <p data-abc-def_hij="">Quuz</p>
10566 percent-encoding and + signs in internal links (Bug 26410)
10568 [[User:+%]] [[Page+title%]]
10569 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10570 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10571 [[%33%45]] [[%33%45+]]
10573 <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>
10574 <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>
10575 <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>
10576 <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>
10581 Special characters in embedded file links (bug 27679)
10583 [[File:Contains & ampersand.jpg]]
10584 [[File:Does not exist.jpg|Title with & ampersand]]
10586 <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>
10587 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10593 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10595 Text's been normalized?
10597 <p>Text's been normalized?
10602 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10604 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10606 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10611 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10613 [http://www.example.org/ ideograms]
10615 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10620 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10622 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10624 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10648 Bug 31098 Template which includes system messages which includes the template
10652 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10653 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10658 Deprecated presentational attributes are converted to css
10661 | valign=top align=left width=100 height=25% | Asdf
10663 <ul type="disc"></ul>
10667 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10669 <ul style="list-style-type: disc;"></ul>
10674 Bug31490 Turkish: ucfirst 'blah'
10685 Bug31490 Turkish: ucfirst 'ix'
10696 Bug31490 Turkish: lcfirst 'BLAH'
10707 Bug31490 Turkish: ucfırst (with a dotless i)
10713 <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>
10718 Bug31490 ucfırst (with a dotless i) with English language
10724 <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>
10729 Bug 26375: TOC with italics
10731 title=[[Main Page]]
10734 == ''Lost'' episodes ==
10736 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10738 <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>
10741 <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>
10746 Bug 26375: TOC with bold
10748 title=[[Main Page]]
10751 == '''should be bold''' then normal text ==
10753 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10755 <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>
10758 <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>
10763 Bug 33845: Headings become cursive in TOC when they contain an image
10765 title=[[Main Page]]
10768 == Image [[Image:foobar.jpg]] ==
10770 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10772 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10775 <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>
10780 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10782 title=[[Main Page]]
10785 == <blockquote>Quote</blockquote> ==
10787 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10789 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10792 <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>
10797 Unclosed tags in TOC
10799 title=[[Main Page]]
10803 <small>Hanc marginis exiguitas non caperet.</small>
10806 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10808 <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>
10811 <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>
10812 <p><small>Hanc marginis exiguitas non caperet.</small>
10818 Multiple tags in TOC
10821 == <i>Foo</i> <b>Bar</b> ==
10823 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10825 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10827 <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>
10828 <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>
10831 <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>
10832 <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>
10837 Tags with parameters in TOC
10840 == <sup class="in-h2">Hello</sup> ==
10842 == <sup class="a > b">Evilbye</sup> ==
10844 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10846 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10847 <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>
10850 <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>
10851 <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>
10856 span tags with directionality in TOC
10859 == <span dir="ltr">C++</span> ==
10861 == <span dir="rtl">זבנג!</span> ==
10863 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10865 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10867 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10869 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10871 <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>
10872 <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>
10873 <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>
10874 <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>
10875 <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>
10878 <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>
10879 <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>
10880 <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>
10881 <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>
10882 <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>
10889 == {{int:headline_sample}} ==
10893 Bug 32057: Title needed when expanding <h> nodes.
10895 title=[[Main Page]]
10899 <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>
10904 Strip marker in urlencode
10906 {{urlencode:x<nowiki/>y}}
10907 {{urlencode:x<nowiki/>y|wiki}}
10908 {{urlencode:x<nowiki/>y|path}}
10935 Strip marker in formatNum
10937 {{formatnum:1<nowiki/>2}}
10938 {{formatnum:1<nowiki/>2|R}}
10946 Strip marker in grammar
10950 {{grammar:elative|foo<nowiki/>bar}}
10957 Strip marker in padleft
10959 {{padleft:|2|x<nowiki/>y}}
10966 Strip marker in padright
10968 {{padright:|2|x<nowiki/>y}}
10975 Strip marker in anchorencode
10977 {{anchorencode:x<nowiki/>y}}
10984 nowiki inside link inside heading (bug 18295)
10986 ==[[foo|x<nowiki>y</nowiki>z]]==
10988 <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>
10993 new support for bdi element (bug 31817)
10995 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10997 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11002 Ignore pipe between table row attributes
11006 |- id=foo | style='color: red'
11014 <tr id="foo" style="color: red">
11021 Gallery override link with WikiLink (bug 34852)
11024 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11027 <ul class="gallery">
11028 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11029 <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>
11030 <div class="gallerytext">
11040 Gallery override link with absolute external link (bug 34852)
11043 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11046 <ul class="gallery">
11047 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11048 <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>
11049 <div class="gallerytext">
11059 Gallery override link with malicious javascript (bug 34852)
11062 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11065 <ul class="gallery">
11066 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11067 <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>
11068 <div class="gallerytext">
11078 Language parser function
11087 Padleft and padright as substr
11089 {{padleft:|3|abcde}}
11090 {{padright:|3|abcde}}
11098 Bug 34939 - Case insensitive link parsing ([HttP://])
11100 [HttP://MediaWiki.Org/]
11102 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11107 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11109 [HttP://MediaWiki.Org/ MediaWiki]
11111 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11116 Bug 34939 - Case insensitive link parsing (HttP://)
11118 HttP://MediaWiki.Org/
11120 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11125 ### Parsoids-specific tests
11126 ### Parsoid-PHP parser incompatibilities
11130 1. includeonly around the entire attribute
11134 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
11136 <p><span>bar</span>
11141 2. template around the entire attribute
11145 <span {{echo|id="v1"}}>bar</span>
11147 <p><span>bar</span>
11152 3. SOL-sensitive wikitext tokens as template-args
11171 Try for 100% code coverage