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 Category with template
5839 [[Category:{{echo|Foo}}]]
5841 [[Category:{{echo|Foo}}]]
5845 Category with template in sort key
5850 [[Category:Foo|{{echo|Bar}}]]
5852 [[Category:Foo|{{echo|Bar}}]]
5856 Category with template in sort key and title
5861 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
5863 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
5867 ### Inter-language links
5870 Inter-language links
5876 [[zh:食品]]
5878 es:Alimento fr:Nourriture zh:食品
5882 Duplicate interlanguage links (bug 24502)
5898 Basic section headings
5905 ===Smaller headline===
5908 <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>
5911 <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>
5914 <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>
5920 Section headings with TOC
5923 === Subheadline 1 ===
5924 ===== Skipping a level =====
5925 ====== Skipping a level ======
5929 ===Another headline===
5931 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5933 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5935 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5937 <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>
5939 <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>
5946 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5948 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5953 <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>
5954 <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>
5955 <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>
5956 <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>
5957 <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>
5960 <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>
5964 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5966 Handling of sections up to level 6 and beyond
5969 == Level 2 Heading==
5970 === Level 3 Heading===
5971 ==== Level 4 Heading====
5972 ===== Level 5 Heading=====
5973 ====== Level 6 Heading======
5974 ======= Level 7 Heading=======
5975 ======== Level 8 Heading========
5976 ========= Level 9 Heading=========
5977 ========== Level 10 Heading==========
5979 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5981 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5983 <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>
5985 <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>
5987 <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>
5989 <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>
5991 <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>
5992 <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>
5993 <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>
5994 <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>
5995 <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>
6008 <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>
6009 <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>
6010 <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>
6011 <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>
6012 <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>
6013 <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>
6014 <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>
6015 <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>
6016 <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>
6017 <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>
6022 TOC regression (bug 9764)
6026 ==== title 1.1.1 ====
6031 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6033 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6035 <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>
6037 <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>
6040 <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>
6043 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6045 <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>
6050 <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>
6051 <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>
6052 <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>
6053 <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>
6054 <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>
6055 <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>
6060 TOC with wgMaxTocLevel=3 (bug 6204)
6066 ==== title 1.1.1 ====
6071 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6073 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6075 <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>
6076 <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>
6079 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6081 <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>
6086 <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>
6087 <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>
6088 <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>
6089 <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>
6090 <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>
6091 <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>
6096 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6102 ====Section 1.1.1====
6103 ====Section 1.1.1.1====
6106 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6108 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6110 <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>
6113 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6116 <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>
6117 <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>
6118 <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>
6119 <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>
6120 <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>
6126 Resolving duplicate section names
6131 <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>
6132 <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>
6137 Resolving duplicate section names with differing case (bug 10721)
6142 <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>
6143 <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>
6155 Template with sections, __NOTOC__
6162 <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>
6163 <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>
6164 <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>
6165 <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>
6170 __NOEDITSECTION__ keyword
6176 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6177 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6182 Link inside a section heading
6184 ==Section with a [[Main Page|link]] in it==
6186 <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>
6191 TOC regression (bug 12077)
6198 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6200 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6202 <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>
6205 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6208 <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>
6209 <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>
6210 <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>
6215 BUG 1219 URL next to image (good)
6217 http://example.com [[Image:foobar.jpg]]
6219 <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>
6224 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6227 The line above must have a trailing space!
6230 But just in case it doesn't...
6232 <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>
6233 <p>The line above must have a trailing space!
6235 <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>
6236 <p>But just in case it doesn't...
6241 Header with special characters (bug 25462)
6243 The tooltips shall not show entities to the user (ie. be double escaped)
6260 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6262 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6264 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6265 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6266 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6267 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6268 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6271 <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>
6274 <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>
6277 <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>
6280 <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>
6283 <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>
6289 Headers with excess '=' characters
6290 (Are similar tests necessary beyond the 1st level?)
6294 =''italic'' heading==
6295 ==''italic'' heading=
6297 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6299 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6300 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6301 <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>
6302 <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>
6305 <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>
6306 <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>
6307 <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>
6308 <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>
6313 BUG 1219 URL next to image (broken)
6315 http://example.com[[Image:foobar.jpg]]
6317 <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>
6322 Bug 1186 news: in the middle of text
6324 http://en.wikinews.org/wiki/Wikinews:Workplace
6326 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6332 Namespaced link must have a title
6341 Namespaced link must have a title (bad fragment version)
6343 [[Project:#fragment]]
6345 <p>[[Project:#fragment]]
6351 div with no attributes
6353 <div>HTML rocks</div>
6355 <div>HTML rocks</div>
6360 div with double-quoted attribute
6362 <div id="rock">HTML rocks</div>
6364 <div id="rock">HTML rocks</div>
6369 div with single-quoted attribute
6371 <div id='rock'>HTML rocks</div>
6373 <div id="rock">HTML rocks</div>
6378 div with unquoted attribute
6380 <div id=rock>HTML rocks</div>
6382 <div id="rock">HTML rocks</div>
6387 div with illegal double attributes
6389 <div id="a" id="b">HTML rocks</div>
6391 <div id="b">HTML rocks</div>
6396 HTML multiple attributes correction
6398 <p class="error" class="awesome">Awesome!</p>
6400 <p class="awesome">Awesome!</p>
6405 Table multiple attributes correction
6408 !+ class="error" class="awesome"| status
6413 <th class="awesome"> status
6421 <DIV ID="x">HTML ROCKS</DIV>
6423 <div id="x">HTML ROCKS</div>
6429 text with amp in the middle of nowhere
6433 <p>Remember AT&T?
6438 text with character entity: eacute
6440 I always thought é was a cute letter.
6442 <p>I always thought é was a cute letter.
6447 text with undefined character entity: xacute
6449 I always thought &xacute; was a cute letter.
6451 <p>I always thought &xacute; was a cute letter.
6463 [[Media:Foobar.jpg]]
6465 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6470 Media link with text
6472 [[Media:Foobar.jpg|A neat file to look at]]
6474 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6478 # FIXME: this is still bad HTML tag nesting
6480 Media link with nasty text
6481 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6483 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6485 <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>
6490 Media link to nonexistent file (bug 1702)
6492 [[Media:No such.jpg]]
6494 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6499 Image link to nonexistent file (bug 1850 - good)
6501 [[Image:No such.jpg]]
6503 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6508 :Image link to nonexistent file (bug 1850 - bad)
6510 [[:Image:No such.jpg]]
6512 <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>
6519 Character reference normalization in link text (bug 1938)
6521 [[Main Page|this&that]]
6523 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6530 Test for unicode normalization
6532 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6536 (bug 19451) Links should refer to the normalized form.
6544 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6545 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6546 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6547 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6548 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6553 Empty attribute crash test (bug 2067)
6555 <font color="">foo</font>
6557 <p><font color="">foo</font>
6562 Empty attribute crash test single-quotes (bug 2067)
6564 <font color=''>foo</font>
6566 <p><font color="">foo</font>
6571 Attribute test: equals, then nothing
6573 <font color=>foo</font>
6580 Attribute test: unquoted value
6582 <font color=x>foo</font>
6584 <p><font color="x">foo</font>
6589 Attribute test: unquoted but illegal value (hash)
6591 <font color=#x>foo</font>
6593 <p><font color="#x">foo</font>
6598 Attribute test: no value
6600 <font color>foo</font>
6602 <p><font color="color">foo</font>
6607 Bug 2095: link with three closing brackets
6611 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6616 Bug 2095: link with pipe and three closing brackets
6620 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6625 Bug 2095: link with pipe and three closing brackets, version 2
6627 [[Main Page|[http://example.com/]]]
6629 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6639 Template:Dangerous attribute
6641 " onmouseover="alert(document.cookie)
6645 Template:Dangerous style attribute
6647 border-size: expression(alert(document.cookie))
6653 <div style="float: right; {{{1}}}">Magic div</div>
6657 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6659 <div title="{{test}}"></div>
6661 <div title="This is a test template"></div>
6666 Bug 2304: HTML attribute safety (dangerous template; 2309)
6668 <div title="{{dangerous attribute}}"></div>
6670 <div title=""></div>
6675 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6677 <div style="{{dangerous style attribute}}"></div>
6679 <div style="/* insecure input */"></div>
6684 Bug 2304: HTML attribute safety (safe parameter; 2309)
6686 {{div style|width: 200px}}
6688 <div style="float: right; width: 200px">Magic div</div>
6693 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6695 {{div style|width: expression(alert(document.cookie))}}
6697 <div style="/* insecure input */">Magic div</div>
6702 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6704 {{div style|"><script>alert(document.cookie)</script>}}
6706 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6711 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6713 {{div style|" ><script>alert(document.cookie)</script>}}
6715 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6720 Bug 2304: HTML attribute safety (link)
6722 <div title="[[Main Page]]"></div>
6724 <div title="[[Main Page]]"></div>
6729 Bug 2304: HTML attribute safety (italics)
6731 <div title="''foobar''"></div>
6733 <div title="''foobar''"></div>
6738 Bug 2304: HTML attribute safety (bold)
6740 <div title="'''foobar'''"></div>
6742 <div title="'''foobar'''"></div>
6748 Bug 2304: HTML attribute safety (ISBN)
6750 <div title="ISBN 1234567890"></div>
6752 <div title="ISBN 1234567890"></div>
6757 Bug 2304: HTML attribute safety (RFC)
6759 <div title="RFC 1234"></div>
6761 <div title="RFC 1234"></div>
6766 Bug 2304: HTML attribute safety (PMID)
6768 <div title="PMID 1234567890"></div>
6770 <div title="PMID 1234567890"></div>
6775 Bug 2304: HTML attribute safety (web link)
6777 <div title="http://example.com/"></div>
6779 <div title="http://example.com/"></div>
6784 Bug 2304: HTML attribute safety (named web link)
6786 <div title="[http://example.com/ link]"></div>
6788 <div title="[http://example.com/ link]"></div>
6793 Bug 3244: HTML attribute safety (extension; safe)
6795 <div style="<nowiki>background:blue</nowiki>"></div>
6797 <div style="background:blue"></div>
6802 Bug 3244: HTML attribute safety (extension; unsafe)
6804 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6806 <div style="/* insecure input */"></div>
6810 # More MSIE fun discovered by Tom Gilder
6813 MSIE CSS safety test: spurious slash
6815 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6817 <div style="/* insecure input */">evil</div>
6822 MSIE CSS safety test: hex code
6824 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6826 <div style="/* insecure input */">evil</div>
6831 MSIE CSS safety test: comment in url
6833 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6835 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6840 MSIE CSS safety test: comment in expression
6842 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6844 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6850 Table attribute legitimate extension
6853 !+ style="<nowiki>color:blue</nowiki>"| status
6858 <th style="color:blue"> status
6864 Table attribute safety
6867 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6872 <th style="/* insecure input */"> status
6878 CSS line continuation 1
6880 <div style="background-image: u\ rl(test.jpg);"></div>
6882 <div style="/* insecure input */"></div>
6887 CSS line continuation 2
6889 <div style="background-image: u\ rl(test.jpg); "></div>
6891 <div style="/* insecure input */"></div>
6902 Expansion of multi-line templates in attribute values (bug 6255)
6904 <div style="background: {{identity|#00FF00}}">-</div>
6906 <div style="background: #00FF00">-</div>
6912 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6914 <div style="background:
6917 <div style="background: #00FF00">-</div>
6922 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6924 <div style="background: #00FF00">-</div>
6926 <div style="background: #00FF00">-</div>
6931 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6934 Parser hook: empty input
6947 Parser hook: empty input using terminated empty elements
6960 Parser hook: empty input using terminated empty elements (space before)
6973 Parser hook: basic input
6987 Parser hook: case insensitive
7001 Parser hook: case insensitive, redux
7014 Parser hook: nested tags
7018 <tag><tag></tag></tag>
7029 Parser hook: basic arguments
7031 <tag width=200 height = "100" depth = '50' square></tag>
7050 Parser hook: argument containing a forward slash (bug 5344)
7052 <tag filename='/tmp/bla'></tag>
7058 string(8) "/tmp/bla"
7065 Parser hook: empty input using terminated empty elements (bug 2374)
7079 # </tag> should be output literally since there is no matching tag that begins it
7081 Parser hook: basic arguments using terminated empty elements (bug 2374)
7083 <tag width=200 height = "100" depth = '50' square/>
7106 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7110 Parser hook: static parser hook not inside a comment
7112 <statictag>hello, world</statictag>
7113 <statictag action=flush/>
7121 Parser hook: static parser hook inside a comment
7123 <!-- <statictag>hello, world</statictag> -->
7124 <statictag action=flush/>
7130 # Nested template calls; this case was broken by Parser.php rev 1.506,
7134 Template:One-parameter
7136 (My parameter is: {{{1}}})
7140 Template:Map-one-parameter
7146 Nested template calls
7148 {{Map-one-parameter|One-parameter|param}}
7150 <p>(My parameter is: param)
7159 Sanitizer: Closing of open tags
7161 <s></s><table></table>
7163 <s></s><table></table>
7168 Sanitizer: Closing of open but not closed tags
7177 Sanitizer: Closing of closed but not open tags
7186 Sanitizer: Closing of closed but not open table tags
7188 Table not started</td></tr></table>
7190 <p>Table not started</td></tr></table>
7195 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7197 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7199 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7204 Sanitizer: Validating the contents of the id attribute (bug 4515)
7210 Something, but definitely not <br id="9" />...
7214 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7218 <br id="foo" /><br id="foo" />
7220 Something need to be done. foo-2 ?
7224 Language converter: output gets cut off unexpectedly (bug 5757)
7228 this bit is safe: }-
7230 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7232 then we get cut off here: }-
7234 all additional text is vanished
7236 <p>this bit is safe: }-
7237 </p><p>but if we add a conversion instance: xxx
7238 </p><p>then we get cut off here: }-
7239 </p><p>all additional text is vanished
7244 Self closed html pairs (bug 5487)
7247 <center><font id="bug" />Centered text</center>
7248 <div><font id="bug2" />In div text</div>
7250 <center><font id="bug" />Centered text</center>
7251 <div><font id="bug2" />In div text</div>
7260 Punctuation: nbsp before exclamation
7264 <p>C'est grave !
7269 Punctuation: CSS !important (bug 11874)
7271 <div style="width:50% !important">important</div>
7273 <div style="width:50% !important">important</div>
7278 Punctuation: CSS ! important (bug 11874; with space after)
7280 <div style="width:50% ! important">important</div>
7282 <div style="width:50% ! important">important</div>
7288 HTML bullet list, closed tags (bug 5497)
7303 HTML bullet list, unclosed tags (bug 5497)
7320 HTML ordered list, closed tags (bug 5497)
7335 HTML ordered list, unclosed tags (bug 5497)
7352 HTML nested bullet list, closed tags (bug 5497)
7377 HTML nested bullet list, open tags (bug 5497)
7402 HTML nested ordered list, closed tags (bug 5497)
7427 HTML nested ordered list, open tags (bug 5497)
7452 HTML ordered list item with parameters oddity
7454 <ol><li id="fragment">One</li></ol>
7456 <ol><li id="fragment">One</li></ol>
7461 bug 5918: autonumbering
7463 [http://first/] [http://second] [ftp://ftp]
7467 [mailto:enclosed@mail.tld With target]
7469 [mailto:enclosed@mail.tld]
7471 mailto:inline@mail.tld
7473 <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>
7474 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7475 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7476 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7477 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7483 # Security and HTML correctness
7484 # From Nick Jenkins' fuzz testing
7488 Fuzz testing: Parser13
7503 Fuzz testing: Parser14
7508 <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>
7509 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7511 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7518 Fuzz testing: Parser14-table
7523 <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>
7524 <table style="__TOC__">
7530 # Known to produce bogus xml (extra </td>)
7532 Fuzz testing: Parser16
7552 Fuzz testing: Parser21
7555 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7560 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7570 Fuzz testing: Parser22
7572 http://===r:::https://b
7576 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7584 # Known to produce bad XML for now
7586 Fuzz testing: Parser24
7593 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7594 <br style="onmouseover='alert(document.cookie);' " />
7596 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7601 <u class="|">}}}} >
7602 <br style="onmouseover='alert(document.cookie);'" />
7604 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7613 # Note: the current result listed for this is not what the original one was,
7614 # but the original bug was JavaScript injection, which is fixed in any case.
7615 # It's not clear that the original result listed was any more correct than the
7616 # current one. Original result:
7619 # <li class="||">
7620 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7622 Fuzz testing: Parser25 (bug 6055)
7628 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7630 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7635 Fuzz testing: URL adjacent extension (with space, clean)
7638 http://example.com <nowiki>junk</nowiki>
7640 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7645 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7648 http://example.com<nowiki>junk</nowiki>
7650 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7655 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7658 http://example.com<pre>junk</pre>
7660 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7665 Fuzz testing: image with bogus manual thumbnail
7667 [[Image:foobar.jpg|thumbnail= ]]
7669 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7674 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7676 <pre dir=" "></pre>
7678 <pre dir=" "></pre>
7683 Parsing optional HTML elements (Bug 6171)
7688 <td> Some tabular data</td>
7689 <td> More tabular data ...
7690 <td> And yet som tabular data</td>
7696 <td> Some tabular data</td>
7697 <td> More tabular data ...
7698 </td><td> And yet som tabular data</td>
7705 Correct handling of <td>, <tr> (Bug 6171)
7710 <td> Some tabular data</td>
7711 <td> More tabular data ...</td>
7712 <td> And yet som tabular data</td>
7718 <td> Some tabular data</td>
7719 <td> More tabular data ...</td>
7720 <td> And yet som tabular data</td>
7728 Parsing crashing regression (fr:JavaScript)
7732 <p></body></x>
7737 Inline wiki vs wiki block nesting
7743 <p><b>Bold paragraph</b>
7744 </p><p>New wiki paragraph
7749 Inline HTML vs wiki block nesting
7757 <p><b>Bold paragraph</b>
7758 </p><p>New wiki paragraph
7762 # Original result was this:
7763 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7765 # While that might be marginally more intuitive, maybe, the six-apostrophe
7766 # construct is clearly pathological and the result stated here (which is what
7767 # the parser actually does) is about as reasonable as anything.
7769 Mixing markup for italics and bold
7772 '''bold''''''bold''bolditalics'''''
7774 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7782 Article for special page transclusion test
7786 Special page transclusion
7789 {{Special:Prefixindex/Xyzzyx}}
7791 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7796 Special page transclusion twice (bug 5021)
7799 {{Special:Prefixindex/Xyzzyx}}
7800 {{Special:Prefixindex/Xyzzyx}}
7802 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7803 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7808 Transclusion of default MediaWiki message
7810 {{MediaWiki:Mainpage}}
7817 Transclusion of nonexistent MediaWiki message
7819 {{MediaWiki:Mainpagexxx}}
7821 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7826 Transclusion of MediaWiki message with underscore
7828 {{MediaWiki:history_short}}
7835 Transclusion of MediaWiki message with space
7837 {{MediaWiki:history short}}
7844 Invalid header with following text
7854 Section extraction test (section 0)
7874 Section extraction test (section 1)
7896 Section extraction test (section 2)
7917 Section extraction test (section 3)
7937 Section extraction test (section 4)
7961 Section extraction test (section 5)
7981 Section extraction test (section 6)
8002 Section extraction test (section 7)
8022 Section extraction test (section 8)
8042 Section extraction test (section 9)
8063 Section extraction test (section 10)
8083 Section extraction test (nonexistent section 11)
8102 Section extraction test with bogus heading (section 1)
8107 ==bogus== not a legal section
8111 ==bogus== not a legal section
8115 Section extraction test with bogus heading (section 2)
8120 ==bogus== not a legal section
8127 Section extraction test with comment after heading (section 1)
8139 Section extraction test with comment after heading (section 2)
8151 Section extraction test with bogus <nowiki> heading (section 1)
8156 ==bogus== <nowiki>not a legal section</nowiki>
8160 ==bogus== <nowiki>not a legal section</nowiki>
8164 Section extraction test with bogus <nowiki> heading (section 2)
8169 ==bogus== <nowiki>not a legal section</nowiki>
8176 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8177 # instead of respecting commented sections
8179 Section extraction prefixed by comment (section 1)
8190 Section extraction prefixed by comment (section 2)
8201 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8202 # instead of respecting HTML-style headings
8204 Section extraction, mixed wiki and html (section 1)
8220 Section extraction, mixed wiki and html (section 2)
8236 # Formerly testing for bug 3342
8238 Section extraction, heading surrounded by <noinclude>
8242 <noinclude>==unmarked==</noinclude>
8248 # Test behaviour of bug 19910
8250 Sectiion with all-equals
8255 The line above must have a trailing space
8258 But just in case it doesn't...
8262 But just in case it doesn't...
8266 Section replacement test (section 0)
8297 Section replacement test (section 1)
8326 Section replacement test (section 2)
8356 Section replacement test (section 3)
8387 Section replacement test (section 4)
8414 Section replacement test (section 5)
8445 Section replacement test (section 6)
8475 Section replacement test (section 7)
8506 Section replacement test (section 8)
8537 Section replacement test (section 9)
8566 Section replacement test (section 10)
8596 Section replacement test with initial whitespace (bug 13728)
8600 Preformatted initial line
8604 Preformatted initial line
8611 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8623 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8636 Section extraction, <pre> around bogus header (bug 10309)
8653 Section replacement, <pre> around bogus header (bug 10309)
8655 noxml replace=2,"xxx"
8676 Handling of 
 in URLs
8680 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8687 5 quotes, code coverage +1 line
8694 Special:Search page linking.
8698 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8713 * {{SUBJECTPAGENAME}}
8714 * {{SUBJECTPAGENAMEE}}
8721 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8723 <ul><li> Parser test
8724 </li><li> Parser test
8725 </li><li> Parser test
8726 </li><li> Parser_test
8727 </li><li> Parser test
8728 </li><li> Parser_test
8729 </li><li> Talk:Parser test
8730 </li><li> Talk:Parser_test
8731 </li><li> Parser test
8732 </li><li> Parser_test
8739 </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>
8743 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8753 image4 |300px| centre
8754 image5.svg| http://///////
8759 <ul class="gallery">
8760 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8761 <div style="height: 150px;">Image1.png</div>
8762 <div class="gallerytext">
8765 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8766 <div style="height: 150px;">Image2.gif</div>
8767 <div class="gallerytext">
8772 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8773 <div style="height: 150px;">Image3</div>
8774 <div class="gallerytext">
8777 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8778 <div style="height: 150px;">Image4</div>
8779 <div class="gallerytext">
8784 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8785 <div style="height: 150px;">Image5.svg</div>
8786 <div class="gallerytext">
8787 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8791 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8792 <div style="height: 150px;">* image6</div>
8793 <div class="gallerytext">
8801 Gallery (with options)
8803 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8804 File:Nonexistant.jpg|caption
8805 File:Nonexistant.jpg
8806 image:foobar.jpg|some '''caption''' [[Main Page]]
8808 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8811 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8812 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8813 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8814 <div style="height: 70px;">Nonexistant.jpg</div>
8815 <div class="gallerytext">
8820 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8821 <div style="height: 70px;">Nonexistant.jpg</div>
8822 <div class="gallerytext">
8825 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8826 <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>
8827 <div class="gallerytext">
8828 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8832 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8833 <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>
8834 <div class="gallerytext">
8837 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8838 <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>
8839 <div class="gallerytext">
8849 Gallery with wikitext inside caption
8852 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8853 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8856 <ul class="gallery">
8857 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8858 <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>
8859 <div class="gallerytext">
8860 <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>
8864 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8865 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8866 <div class="gallerytext">
8867 <p>This is a test template
8876 gallery (with showfilename option)
8878 <gallery showfilename>
8879 File:Nonexistant.jpg|caption
8880 File:Nonexistant.jpg
8881 image:foobar.jpg|some '''caption''' [[Main Page]]
8885 <ul class="gallery">
8886 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8887 <div style="height: 150px;">Nonexistant.jpg</div>
8888 <div class="gallerytext">
8889 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8894 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8895 <div style="height: 150px;">Nonexistant.jpg</div>
8896 <div class="gallerytext">
8897 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8901 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8902 <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>
8903 <div class="gallerytext">
8904 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8905 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8909 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8910 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8911 <div class="gallerytext">
8912 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8921 Gallery (with namespace-less filenames)
8924 File:Nonexistant.jpg
8930 <ul class="gallery">
8931 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8932 <div style="height: 150px;">Nonexistant.jpg</div>
8933 <div class="gallerytext">
8936 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8937 <div style="height: 150px;">Nonexistant.jpg</div>
8938 <div class="gallerytext">
8941 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8942 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8943 <div class="gallerytext">
8946 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8947 <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>
8948 <div class="gallerytext">
8956 HTML Hex character encoding (spells the word "JavaScript")
8958 JavaScript
8960 <p>JavaScript
8965 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8969 <p>&#xsee;&#XSEE;
8974 HTML Hex character encoding mixed case
8983 __FORCETOC__ override
8995 ISBN 978-0-1234-56 789
8997 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9002 ISBN followed by 5 spaces
9013 ISBN ISBN 1234567890
9015 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9020 Bug 22905: <abbr> followed by ISBN followed by </a>
9022 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9024 <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>
9033 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9038 Double RFC with a wiki link
9042 <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>
9051 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9056 Centre-aligned image
9058 [[Image:foobar.jpg|centre]]
9060 <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>
9067 [[Image:foobar.jpg|none]]
9069 <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>
9074 Width + Height sized image (using px) (height is ignored)
9076 [[Image:foobar.jpg|640x480px]]
9078 <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>
9083 Width-sized image (using px, no following whitespace)
9085 [[Image:foobar.jpg|640px]]
9087 <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>
9092 Width-sized image (using px, with following whitespace - test regression from r39467)
9094 [[Image:foobar.jpg|640px ]]
9096 <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>
9101 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9103 [[Image:foobar.jpg| 640px]]
9105 <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>
9110 Another italics / bold test
9118 # Note the results may be incorrect, as parserTest output included this:
9119 # XML error: Mismatched tag at byte 6120:
9120 # ...<dd> </dt></dl> </dd...
9128 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9139 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9141 Images with the "|" character in the comment
9143 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9145 <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>
9150 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9152 <html><script>alert(1);</script></html>
9154 <p><html><script>alert(1);</script></html>
9159 HTML with raw HTML ($wgRawHtml==true)
9163 <html><script>alert(1);</script></html>
9165 <p><script>alert(1);</script>
9170 Parents of subpages, one level up
9172 subpage title=[[Subpage test/L1/L2/L3]]
9176 <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>
9182 Parents of subpages, one level up, not named
9184 subpage title=[[Subpage test/L1/L2/L3]]
9188 <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>
9195 Parents of subpages, two levels up
9197 subpage title=[[Subpage test/L1/L2/L3]]
9203 <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
9204 </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>
9209 Parents of subpages, two levels up, without trailing slash or name.
9211 subpage title=[[Subpage test/L1/L2/L3]]
9220 Parents of subpages, two levels up, with lots of extra trailing slashes.
9222 subpage title=[[Subpage test/L1/L2/L3]]
9226 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9231 Definition list code coverage
9237 <dl><dt> title  </dt><dd> def
9238 </dd><dt> title </dt><dd> def
9239 </dd><dt>title</dt><dd> def
9245 Don't fall for the self-closing div
9247 <div>hello world</div/>
9249 <div>hello world</div>
9258 <p>[[:Template:Msg]]
9267 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9271 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9273 Always escape literal '>' in output, not just after '<'
9287 <p>This is a test template
9288 This is a test template
9300 Inclusion of !userCanEdit() content
9304 <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>
9310 Out-of-order TOC heading levels
9319 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9321 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9323 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9324 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9327 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9329 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9330 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9335 <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>
9336 <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>
9337 <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>
9338 <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>
9339 <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>
9340 <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>
9346 ISBN with a dummy number
9356 ISBN with space-delimited number
9360 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9366 ISBN with multiple spaces, no number
9385 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9386 </p><p>ISBN 12345678901
9392 ISBN with trailing year (bug 8110)
9394 ISBN 1-234-56789-0 - 2006
9396 ISBN 1 234 56789 0 - 2006
9398 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9399 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9407 {{anchorencode:foo bar©#%n}}
9409 <p>foo_bar.C2.A9.23.25n
9414 anchorencode trims spaces
9416 {{anchorencode: __pretty__please__}}
9423 anchorencode deals with links
9425 {{anchorencode: [[hello|world]] [[hi]]}}
9432 anchorencode deals with templates
9434 {{anchorencode: {{Foo}} }}
9441 anchorencode encodes like the TOC generator: (bug 18431)
9443 === _ +:.3A%3A&&]] ===
9444 {{anchorencode: _ +:.3A%3A&&]] }}
9447 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9448 <p>.2B:.3A.253A.26.26.5D.5D
9452 # Expected output in the following test is not necessarily expected (there
9453 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9454 # only testing for well-formedness.
9456 Bug 6200: blockquotes and paragraph formatting
9476 Bug 8293: Use of center tag ruins paragraph formatting
9498 ### Language variants related tests
9501 Self-link in language variants
9503 title=[[Dunav]] language=sr
9505 Both [[Dunav]] and [[Дунав]] are names for this river.
9507 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9513 Link to pages in language variants
9517 Main Page can be written as [[Маин Паге]]
9519 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9525 Multiple links to pages in language variants
9529 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9531 <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>.
9537 Simple template in language variants
9543 <p>This is a test template
9549 Template with explicit namespace in language variants
9555 <p>This is a test template
9561 Basic test for template parameter in language variants
9565 {{парамтест|param=foo}}
9567 <p>This is a test template with parameter foo
9573 Simple category in language variants
9577 [[Category:МедиаWики Усер'с Гуиде]]
9579 <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>
9584 Stripping -{}- tags (language variants)
9588 Latin proverb: -{Ne nuntium necare}-
9590 <p>Latin proverb: Ne nuntium necare
9596 Prevent conversion with -{}- tags (language variants)
9598 language=sr variant=sr-ec
9600 Latinski: -{Ne nuntium necare}-
9602 <p>Латински: Ne nuntium necare
9608 Prevent conversion of text with -{}- tags (language variants)
9610 language=sr variant=sr-ec
9612 Latinski: -{Ne nuntium necare}-
9614 <p>Латински: Ne nuntium necare
9620 Prevent conversion of links with -{}- tags (language variants)
9622 language=sr variant=sr-ec
9626 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9632 -{}- tags within headlines (within html for parserConvert())
9634 language=sr variant=sr-ec
9638 <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>
9644 Explicit definition of language variant alternatives
9646 language=zh variant=zh-tw
9648 -{zh:China;zh-tw:Taiwan}-, not China
9650 <p>Taiwan, not China
9656 Explicit session-wise language variant mapping (A flag and - flag)
9658 language=zh variant=zh-tw
9660 Taiwan is not China.
9661 But -{A|zh:China;zh-tw:Taiwan}- is China,
9662 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9663 and -{China}- is China.
9665 <p>Taiwan is not China.
9666 But Taiwan is Taiwan,
9667 (This should be stripped!)
9673 Explicit session-wise language variant mapping (H flag for hide)
9675 language=zh variant=zh-tw
9677 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9680 <p>(This should be stripped!)
9686 Adding explicit conversion rule for title (T flag)
9688 language=zh variant=zh-tw showtitle
9690 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9693 <p>Should be stripped!
9698 Testing that changing the language variant here in the tests actually works
9700 language=zh variant=zh showtitle
9702 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9705 <p>Should be stripped!
9710 Bug 24072: more test on conversion rule for title
9712 language=zh variant=zh-tw showtitle
9714 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9715 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9718 <p>This should be stripped!
9719 This won't take interferes with the title rule.
9724 Raw output of variant escape tags (R flag)
9726 language=zh variant=zh-tw
9728 Raw: -{R|zh:China;zh-tw:Taiwan}-
9730 <p>Raw: zh:China;zh-tw:Taiwan
9735 Nested using of manual convert syntax
9737 language=zh variant=zh-hk
9739 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9741 <p>Nested: Hello Hong Kong!
9746 Do not convert roman numbers to language variants
9748 language=sr variant=sr-ec
9752 <p>Фридрих IV је цар.
9757 Unclosed language converter markup "-{"
9768 Don't convert raw rule "-{R|=>}-" to "=>"
9785 Bug 529: Uncovered bullet
9796 Bug 529: Uncovered table already at line-start
9819 Bug 529: Uncovered bullet in parser function result
9821 * Foo {{lc:{{bullet}} }}
9830 Bug 5678: Double-parsed template argument
9832 {{lc:{{{1}}}|hello}}
9839 Bug 5678: Double-parsed template invocation
9841 {{lc:{{paramtest {{!}} param = hello }} }}
9843 <p>{{paramtest | param = hello }}
9848 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9874 Morwen/13: Unclosed link followed by heading
9881 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
9886 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9893 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9898 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9905 <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>
9920 Paragraphs inside divs (no extra line breaks)
9932 Paragraphs inside divs (extra line break on open)
9947 Paragraphs inside divs (extra line break on close)
9962 Paragraphs inside divs (extra line break on open and close)
9979 Nesting tags, paragraphs on lines which begin with <div>
9983 <div></div><strong>A
9992 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9994 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9998 <blockquote>Line one
10000 Line two</blockquote>
10002 <blockquote>Line one
10003 Line two</blockquote>
10008 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10015 Line two</blockquote>
10020 Line two</blockquote>
10025 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10029 <blockquote>Line one
10034 <blockquote>Line one
10042 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10061 Paragraphs inside blockquotes/divs (no extra line breaks)
10063 <blockquote><div>Line one
10065 Line two</div></blockquote>
10067 <blockquote><div>Line one
10068 Line two</div></blockquote>
10073 Paragraphs inside blockquotes/divs (extra line break on open)
10078 Line two</div></blockquote>
10083 Line two</div></blockquote>
10088 Paragraphs inside blockquotes/divs (extra line break on close)
10090 <blockquote><div>Line one
10093 </div></blockquote>
10095 <blockquote><div>Line one
10098 </div></blockquote>
10103 Paragraphs inside blockquotes/divs (extra line break on open and close)
10109 </div></blockquote>
10115 </div></blockquote>
10120 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10122 wgLinkHolderBatchSize=0
10128 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10129 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10130 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10135 Free external link invading image caption
10137 [[Image:Foobar.jpg|thumb|http://x|hello]]
10139 <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>
10144 Bug 15196: localised external link numbers
10148 [http://en.wikipedia.org/]
10150 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10155 Multibyte character in padleft
10157 {{padleft:-Hello|7|Æ}}
10164 Multibyte character in padright
10166 {{padright:Hello-|7|Æ}}
10175 wgUseDynamicDates=1
10179 <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>
10184 formatdate parser function
10186 {{#formatdate:2009-03-24}}
10188 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10193 formatdate parser function, with default format
10195 {{#formatdate:2009-03-24|mdy}}
10197 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10202 Linked date with autoformatting disabled
10204 wgUseDynamicDates=false
10208 <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>
10213 Spacing of numbers in formatted dates
10215 {{#formatdate:January 15}}
10217 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10222 Spacing of numbers in formatted dates (linked)
10224 wgUseDynamicDates=true
10228 <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>
10233 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
10235 language=nl title=[[MediaWiki:Common.css]]
10237 {{#formatdate:2009-03-24|dmy}}
10239 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10252 Edit comment with link
10256 I like the [[Main Page]] a lot
10258 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10262 Edit comment with link and link text
10266 I like the [[Main Page|best pages]] a lot
10268 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10272 Edit comment with link and link text with suffix
10276 I like the [[Main Page|best page]]s a lot
10278 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10282 Edit comment with section link (non-local, eg in history list)
10284 comment title=[[Main Page]]
10286 /* External links */ removed bogus entries
10288 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10292 Edit comment with section link and text before it (non-local, eg in history list)
10294 comment title=[[Main Page]]
10296 pre-comment text /* External links */ removed bogus entries
10298 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>
10302 Edit comment with section link (local, eg in diff view)
10304 comment local title=[[Main Page]]
10306 /* External links */ removed bogus entries
10308 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10312 Edit comment with subpage link (bug 14080)
10316 title=[[Subpage test]]
10318 Poked at a [[/subpage]] here...
10320 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10324 Edit comment with subpage link and link text (bug 14080)
10328 title=[[Subpage test]]
10330 Poked at a [[/subpage|neat little page]] here...
10332 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10336 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10339 title=[[Subpage test]]
10341 Poked at a [[/subpage]] here...
10343 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10347 Edit comment with bare anchor link (local, as on diff)
10351 title=[[Main Page]]
10355 <a href="#section">#section</a>
10359 Edit comment with bare anchor link (non-local, as on history)
10362 title=[[Main Page]]
10366 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10370 Anchor starting with underscore
10374 <p><a href="#_ref">One</a>
10379 Id starting with underscore
10381 <div id="_ref"></div>
10383 <div id="_ref"></div>
10388 Space normalisation on autocomment (bug 22784)
10391 title=[[Main Page]]
10393 /* __hello__world__ */
10395 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10399 percent-encoding and + signs in comments (Bug 26410)
10403 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10405 <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>
10409 Bad images - basic functionality
10418 Bad images - bug 16039: text after bad image disappears
10432 Verify that displaytitle works (bug #22501) no displaytitle
10436 wgAllowDisplayTitle=true
10437 wgRestrictDisplayTitle=false
10439 this is not the the title
10442 <p>this is not the the title
10447 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10452 wgAllowDisplayTitle=true
10453 wgRestrictDisplayTitle=false
10455 this is not the the title
10456 {{DISPLAYTITLE:whatever}}
10459 <p>this is not the the title
10464 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10469 wgAllowDisplayTitle=true
10470 wgRestrictDisplayTitle=true
10472 this is not the the title
10473 {{DISPLAYTITLE:whatever}}
10476 <p>this is not the the title
10481 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10486 wgAllowDisplayTitle=true
10487 wgRestrictDisplayTitle=true
10489 this is not the the title
10490 {{DISPLAYTITLE:screen}}
10493 <p>this is not the the title
10498 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10503 wgAllowDisplayTitle=false
10505 this is not the the title
10506 {{DISPLAYTITLE:screen}}
10509 <p>this is not the the title
10510 <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>
10515 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10520 wgAllowDisplayTitle=false
10522 this is not the the title
10525 <p>this is not the the title
10530 preload: check <noinclude> and <includeonly>
10534 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10540 preload: check <onlyinclude>
10544 Goodbye <onlyinclude>Hello world</onlyinclude>
10550 preload: can pass tags through if we want to
10554 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10556 <includeonly>Hello world</includeonly>
10560 preload: check that it doesn't try to do tricks
10564 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10566 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10570 Play a bit with r67090 and bug 3158
10574 <div style="width:50% !important"> </div>
10575 <div style="width:50% !important"> </div>
10576 <div style="width:50% !important"> </div>
10577 <div style="border : solid;"> </div>
10579 <div style="width:50% !important"> </div>
10580 <div style="width:50% !important"> </div>
10581 <div style="width:50% !important"> </div>
10582 <div style="border : solid;"> </div>
10587 HTML5 data attributes
10589 <span data-foo="bar">Baz</span>
10590 <p data-abc-def_hij="">Quuz</p>
10592 <p><span data-foo="bar">Baz</span>
10594 <p data-abc-def_hij="">Quuz</p>
10599 percent-encoding and + signs in internal links (Bug 26410)
10601 [[User:+%]] [[Page+title%]]
10602 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10603 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10604 [[%33%45]] [[%33%45+]]
10606 <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>
10607 <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>
10608 <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>
10609 <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>
10614 Special characters in embedded file links (bug 27679)
10616 [[File:Contains & ampersand.jpg]]
10617 [[File:Does not exist.jpg|Title with & ampersand]]
10619 <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>
10620 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10626 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10628 Text's been normalized?
10630 <p>Text's been normalized?
10635 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10637 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10639 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10644 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10646 [http://www.example.org/ ideograms]
10648 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10653 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10655 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10657 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10681 Bug 31098 Template which includes system messages which includes the template
10685 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10686 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10691 Deprecated presentational attributes are converted to css
10694 | valign=top align=left width=100 height=25% | Asdf
10696 <ul type="disc"></ul>
10700 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10702 <ul style="list-style-type: disc;"></ul>
10707 Bug31490 Turkish: ucfirst 'blah'
10718 Bug31490 Turkish: ucfirst 'ix'
10729 Bug31490 Turkish: lcfirst 'BLAH'
10740 Bug31490 Turkish: ucfırst (with a dotless i)
10746 <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>
10751 Bug31490 ucfırst (with a dotless i) with English language
10757 <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>
10762 Bug 26375: TOC with italics
10764 title=[[Main Page]]
10767 == ''Lost'' episodes ==
10769 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10771 <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>
10774 <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>
10779 Bug 26375: TOC with bold
10781 title=[[Main Page]]
10784 == '''should be bold''' then normal text ==
10786 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10788 <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>
10791 <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>
10796 Bug 33845: Headings become cursive in TOC when they contain an image
10798 title=[[Main Page]]
10801 == Image [[Image:foobar.jpg]] ==
10803 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10805 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10808 <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>
10813 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10815 title=[[Main Page]]
10818 == <blockquote>Quote</blockquote> ==
10820 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10822 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10825 <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>
10830 Unclosed tags in TOC
10832 title=[[Main Page]]
10836 <small>Hanc marginis exiguitas non caperet.</small>
10839 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10841 <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>
10844 <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>
10845 <p><small>Hanc marginis exiguitas non caperet.</small>
10851 Multiple tags in TOC
10854 == <i>Foo</i> <b>Bar</b> ==
10856 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10860 <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>
10861 <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>
10864 <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>
10865 <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>
10870 Tags with parameters in TOC
10873 == <sup class="in-h2">Hello</sup> ==
10875 == <sup class="a > b">Evilbye</sup> ==
10877 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10879 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10880 <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>
10883 <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>
10884 <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>
10889 span tags with directionality in TOC
10892 == <span dir="ltr">C++</span> ==
10894 == <span dir="rtl">זבנג!</span> ==
10896 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10898 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10900 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10902 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10904 <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>
10905 <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>
10906 <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>
10907 <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>
10908 <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>
10911 <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>
10912 <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>
10913 <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>
10914 <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>
10915 <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>
10922 == {{int:headline_sample}} ==
10926 Bug 32057: Title needed when expanding <h> nodes.
10928 title=[[Main Page]]
10932 <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>
10937 Strip marker in urlencode
10939 {{urlencode:x<nowiki/>y}}
10940 {{urlencode:x<nowiki/>y|wiki}}
10941 {{urlencode:x<nowiki/>y|path}}
10968 Strip marker in formatNum
10970 {{formatnum:1<nowiki/>2}}
10971 {{formatnum:1<nowiki/>2|R}}
10979 Strip marker in grammar
10983 {{grammar:elative|foo<nowiki/>bar}}
10990 Strip marker in padleft
10992 {{padleft:|2|x<nowiki/>y}}
10999 Strip marker in padright
11001 {{padright:|2|x<nowiki/>y}}
11008 Strip marker in anchorencode
11010 {{anchorencode:x<nowiki/>y}}
11017 nowiki inside link inside heading (bug 18295)
11019 ==[[foo|x<nowiki>y</nowiki>z]]==
11021 <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>
11026 new support for bdi element (bug 31817)
11028 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11030 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11035 Ignore pipe between table row attributes
11039 |- id=foo | style='color: red'
11047 <tr id="foo" style="color: red">
11054 Gallery override link with WikiLink (bug 34852)
11057 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11060 <ul class="gallery">
11061 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11062 <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>
11063 <div class="gallerytext">
11073 Gallery override link with absolute external link (bug 34852)
11076 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11079 <ul class="gallery">
11080 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11081 <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>
11082 <div class="gallerytext">
11092 Gallery override link with malicious javascript (bug 34852)
11095 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11098 <ul class="gallery">
11099 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11100 <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>
11101 <div class="gallerytext">
11111 Language parser function
11120 Padleft and padright as substr
11122 {{padleft:|3|abcde}}
11123 {{padright:|3|abcde}}
11131 Bug 34939 - Case insensitive link parsing ([HttP://])
11133 [HttP://MediaWiki.Org/]
11135 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11140 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11142 [HttP://MediaWiki.Org/ MediaWiki]
11144 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11149 Bug 34939 - Case insensitive link parsing (HttP://)
11151 HttP://MediaWiki.Org/
11153 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11158 ### Parsoids-specific tests
11159 ### Parsoid-PHP parser incompatibilities
11163 1. includeonly around the entire attribute
11167 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
11169 <p><span>bar</span>
11174 2. template around the entire attribute
11178 <span {{echo|id="v1"}}>bar</span>
11180 <p><span>bar</span>
11185 3. SOL-sensitive wikitext tokens as template-args
11204 Try for 100% code coverage