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}}
979 <dl><dt> name </dt><dd> Definition
985 Definition list for indentation only
989 <dl><dd> Indented text
995 Definition list with no space
999 <dl><dt>name</dt><dd>Definition
1005 Definition list with URL link
1007 ; http://example.com/ : definition
1009 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1015 Definition list with bracketed URL link
1017 ;[http://www.example.com/ Example]:Something about it
1019 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1025 Definition list with wikilink containing colon
1027 ; [[Help:FAQ]]: The least-read page on Wikipedia
1029 <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
1034 # At Brion's and JeLuF's insistence... :)
1036 Definition list with news link containing colon
1038 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1040 <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!
1046 Malformed definition list with colon
1048 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1050 <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
1056 Definition lists: colon in external link text
1058 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1060 <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
1066 Definition lists: colon in HTML attribute
1068 ;<b style="display: inline">bold</b>
1070 <dl><dt><b style="display: inline">bold</b>
1077 Definition lists: self-closed tag
1079 ;one<br/>two : two-line fun
1081 <dl><dt>one<br />two </dt><dd> two-line fun
1087 Bug 11748: Literal closing tags
1093 <dd>test test test test test</dd>
1095 <dd>test test test test test</dd>
1100 <dd>test test test test test</dd>
1102 <dd>test test test test test</dd>
1107 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1110 ; term : description
1116 <dl><dt> term </dt><dd> description
1126 Definition list with empty definition and following paragraph
1131 <dl><dt> term</dt><dd>
1138 Definition Lists: No nesting: Multiple dd's
1152 Definition Lists: Indentation: Regular
1168 Definition Lists: Indentation: Missing 1st level
1182 Definition Lists: Indentation: Multi-level indent
1186 <dl><dd><dl><dd><dl><dd>i3
1193 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1194 ## as an empty dt item. It also ignores all but the last ";" when followed
1195 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1196 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1199 ## Ex: ";;t2 ::d2" is transformed into:
1211 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1212 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1223 ## All Parsoid only definition list tests have this difference.
1225 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1226 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1229 Definition Lists: Nesting: Multi-level (Parsoid only)
1259 Definition Lists: Nesting: Test 2 (Parsoid only)
1279 Definition Lists: Nesting: Test 3 (Parsoid only)
1307 Definition Lists: Nesting: Test 4
1312 <dl><dd><dl><dd><dl><dt>t3
1322 Definition Lists: Mixed Lists: Test 1
1328 <dl><dd><dl><dt><ul><li> foo
1340 Definition Lists: Mixed Lists: Test 2
1354 Definition Lists: Mixed Lists: Test 3
1359 <ul><li><dl><dd><dl><dd><dl><dd> d1
1370 Definition Lists: Mixed Lists: Test 4
1375 <ul><li><dl><dt>d1 </dt><dd>d2
1376 </dd><dt>d3 </dt><dd>d4
1384 Definition Lists: Mixed Lists: Test 5
1399 Definition Lists: Mixed Lists: Test 6
1404 <ol><li><ul><li><dl><dd>d1
1416 Definition Lists: Mixed Lists: Test 7
1430 Definition Lists: Mixed Lists: Test 8
1446 Definition Lists: Mixed Lists: Test 9
1450 <ul><li><dl><dt>foo </dt><dd>bar
1458 Definition Lists: Mixed Lists: Test 10
1462 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1471 Definition Lists: Mixed Lists: Test 11
1476 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1481 <dl><dt>boo </dt><dd>baz
1492 Definition Lists: Weird Ones: Test 1
1494 *#;*::;; foo : bar (who uses this?)
1496 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1512 External links: non-bracketed
1514 Non-bracketed: http://example.com
1516 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1521 External links: numbered
1523 Numbered: [http://example.com]
1524 Numbered: [http://example.net]
1525 Numbered: [http://example.com]
1527 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1528 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1529 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1534 External links: specified text
1536 Specified text: [http://example.com link]
1538 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1543 External links: trail
1545 Linktrails should not work for external links: [http://example.com link]s
1547 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1552 External links: dollar sign in URL
1554 http://example.com/1$2345
1556 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1561 External links: dollar sign in URL (named)
1563 [http://example.com/1$2345]
1565 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1570 External links: open square bracket forbidden in URL (bug 4377)
1572 http://example.com/1[2345
1574 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1579 External links: open square bracket forbidden in URL (named) (bug 4377)
1581 [http://example.com/1[2345]
1583 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1588 External links: nowiki in URL link text (bug 6230)
1590 [http://example.com/ <nowiki>''example site''</nowiki>]
1592 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1597 External links: newline forbidden in text (bug 6230 regression check)
1599 [http://example.com/ first
1602 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1608 External links: Pipe char between url and text
1610 [http://example.com | link]
1612 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1617 External links: protocol-relative URL in brackets
1619 [//example.com/ Test]
1621 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1626 External links: protocol-relative URL in brackets without text
1630 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1635 External links: protocol-relative URL in free text is left alone
1639 <p>//example.com/Foo
1644 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1646 foo//example.com/Foo
1648 <p>foo//example.com/Foo
1655 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1657 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1662 External image from https
1664 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1666 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1671 Link to non-http image, no img tag
1673 Link to non-http image, no img tag: ftp://example.com/test.jpg
1675 <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>
1680 External links: terminating separator
1682 Terminating separator: http://example.com/thing,
1684 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1689 External links: intervening separator
1691 Intervening separator: http://example.com/1,2,3
1693 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1698 External links: old bug with URL in query
1700 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1702 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1707 External links: old URL-in-URL bug, mixed protocols
1709 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1711 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1716 External links: URL in text
1718 URL in text: [http://example.com http://example.com]
1720 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1725 External links: Clickable images
1727 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1729 <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>
1734 External links: raw ampersand
1736 Old & use: http://x&y
1738 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1743 External links: encoded ampersand
1745 Old & use: http://x&y
1747 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1752 External links: encoded equals (bug 6102)
1754 http://example.com/?foo=bar
1756 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1761 External links: [raw ampersand]
1763 Old & use: [http://x&y]
1765 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1770 External links: [encoded ampersand]
1772 Old & use: [http://x&y]
1774 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1779 External links: [encoded equals] (bug 6102)
1781 [http://example.com/?foo=bar]
1783 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1788 External links: [IDN ignored character reference in hostname; strip it right off]
1790 [http://e‌xample.com/]
1792 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1796 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1797 # Where an external link could easily circumvent the sanitization of the text of
1798 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1799 # test demands a higher standard. That's a bit strange.
1803 # http://example.com -> [http://example.com|http://example.com]
1804 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1806 # The first example is sanitized, but the second is not. Any security benefits
1807 # from this production are trivial to circumvent. Either remove this test and
1808 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1809 # the test accordingly.
1814 External links: IDN ignored character reference in hostname; strip it right off
1816 http://e‌xample.com/
1818 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1823 External links: www.jpeg.org (bug 554)
1827 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1832 External links: URL within URL (original bug 2)
1834 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1836 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1841 BUG 361: URL inside bracketed URL
1843 [http://www.example.com/foo http://www.example.com/bar]
1845 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1850 BUG 361: URL within URL, not bracketed
1852 http://www.example.com/foo?=http://www.example.com/bar
1854 <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>
1859 BUG 289: ">"-token in URL-tail
1861 http://www.example.com/<hello>
1863 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1868 BUG 289: literal ">"-token in URL-tail
1870 http://www.example.com/<b>html</b>
1872 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1877 BUG 289: ">"-token in bracketed URL
1879 [http://www.example.com/<hello> stuff]
1881 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1886 BUG 289: literal ">"-token in bracketed URL
1888 [http://www.example.com/<b>html</b> stuff]
1890 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1895 BUG 289: literal double quote at end of URL
1897 http://www.example.com/"hello"
1899 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1904 BUG 289: literal double quote in bracketed URL
1906 [http://www.example.com/"hello" stuff]
1908 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1913 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1915 [http://www.example.com test]
1917 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1922 External links: wiki links within external link (Bug 3695)
1924 [http://example.com [[wikilink]] embedded in ext link]
1926 <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>
1931 BUG 787: Links with one slash after the url protocol are invalid
1935 [http:/example.com title]
1937 <p>http:/example.com
1938 </p><p>[http:/example.com title]
1943 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1945 ''[http://example.com text'']
1946 [http://example.com '''text]'''
1947 ''Something [http://example.com in italic'']
1948 ''Something [http://example.com mixed''''', even bold]'''
1949 '''''Now [http://example.com both''''']
1951 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1952 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1953 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1954 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1955 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1961 Bug 4781: %26 in URL
1963 http://www.example.com/?title=AT%26T
1965 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1969 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1970 # % is actually legal in HTML5. Any change in output would need testing though.
1972 Bug 4781, 5267: %25 in URL
1974 http://www.example.com/?title=100%25_Bran
1976 <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>
1981 Bug 4781, 5267: %28, %29 in URL
1983 http://www.example.com/?title=Ben-Hur_%281959_film%29
1985 <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>
1991 Bug 4781: %26 in autonumber URL
1993 [http://www.example.com/?title=AT%26T]
1995 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2000 Bug 4781, 5267: %26 in autonumber URL
2002 [http://www.example.com/?title=100%25_Bran]
2004 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2009 Bug 4781, 5267: %28, %29 in autonumber URL
2011 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2013 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2019 Bug 4781: %26 in bracketed URL
2021 [http://www.example.com/?title=AT%26T link]
2023 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2028 Bug 4781, 5267: %26 in bracketed URL
2030 [http://www.example.com/?title=100%25_Bran link]
2032 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2037 Bug 4781, 5267: %28, %29 in bracketed URL
2039 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2041 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2046 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2048 Some [http://example.com/ pretty ''italics'' and stuff]!
2050 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2055 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2057 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2059 <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>
2064 External link containing double-single-quotes with no space separating the url from text in italics
2066 [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]].]
2068 <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>
2073 URL-encoding in URL functions (single parameter)
2075 {{localurl:Some page|amp=&}}
2077 <p>/index.php?title=Some_page&amp=&
2082 URL-encoding in URL functions (multiple parameters)
2084 {{localurl:Some page|q=?&=&}}
2086 <p>/index.php?title=Some_page&q=?&amp=&
2093 http://example.com/index.php?foozoid%5B%5D=bar
2095 http://example.com/index.php?foozoid[]=bar
2097 <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>
2098 </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>
2103 IPv6 urls (bug 21261)
2107 http://[2404:130:0:1000::187:2]/index.php
2109 <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>
2120 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2122 Normal text. '''''Bold italic text.''''' Normal text.
2124 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2125 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2131 Unclosed and unmatched quotes
2133 '''''Bold italic text '''with bold deactivated''' in between.'''''
2135 '''''Bold italic text ''with italic deactivated'' in between.'''''
2139 ..spanning two paragraphs (should not work).'''
2141 '''Bold tag left open
2143 ''Italic tag left open
2147 <!-- Unmatching number of opening, closing tags: -->
2148 '''This year''''s election ''should'' beat '''last year''''s.
2150 ''Tom'''s car is bigger than ''Susan'''s.
2152 Plain ''italic'''s plain
2154 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2155 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2156 </p><p><b>Bold text..</b>
2157 </p><p>..spanning two paragraphs (should not work).
2158 </p><p><b>Bold tag left open</b>
2159 </p><p><i>Italic tag left open</i>
2161 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2162 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2163 </p><p>Plain <i>italic'</i>s plain
2170 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2173 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2174 # is the bare minimun required by the spec, see:
2175 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2177 A table with no data.
2183 # A table with nothing but a caption is invalid XHTML, we might want to render
2184 # this as <p>caption</p>
2186 A table with nothing but a caption
2194 </caption><tr><td></td></tr></table>
2220 Multiplication table
2222 {| border="1" cellpadding="2"
2223 |+Multiplication table
2225 ! × !! 1 !! 2 !! 3
2243 <table border="1" cellpadding="2">
2244 <caption>Multiplication table
2295 |rowspan=2| Cell 2, row 1 (and 2)
2306 <td rowspan="2"> Cell 2, row 1 (and 2)
2324 {| bgcolor=#ABCDEF border=2
2329 |the original table again
2337 <table bgcolor="#ABCDEF" border="2">
2345 <td>the original table again
2351 Invalid attributes in table cell (bug 1830)
2366 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2369 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2373 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2374 <td>]" onmouseover="alert(document.cookie)">test
2383 Indented table markup mixed with indented pre content (proposed in bug 6200)
2388 Text that should be rendered preformatted
2396 <pre>Text that should be rendered preformatted
2409 Plain link, capitalized
2413 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2418 Plain link, uncapitalized
2422 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2429 [[Main Page|The Main Page]]
2431 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2440 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2445 Broken link with fragment
2447 [[Zigzagzogzagzig#zug]]
2449 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2454 Special page link with fragment
2456 [[Special:Version#anchor]]
2458 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2463 Nonexistent special page link with fragment
2465 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2467 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2474 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2476 <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>
2483 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2485 <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>!!!
2490 Link with 3 brackets
2499 Piped link with 3 brackets
2501 [[[main page|the main page]]]
2503 <p>[[[main page|the main page]]]
2508 Link with multiple pipes
2510 [[Main Page|The|Main|Page]]
2512 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2519 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2521 <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>
2526 Piped link to namespace
2528 [[Meta:Disclaimers|The disclaimers]]
2530 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2537 [[Usually caused by a typo (oops}]]
2539 <p>[[Usually caused by a typo (oops}]]
2544 Link containing % (not as a hex sequence)
2548 <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>
2553 Link containing % as a single hex sequence interpreted to char
2557 <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>
2562 Link containing % as a double hex sequence interpreted to hex sequence
2566 <p>[[7%2525 Solution]]
2571 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2572 Example for such a section: == < ==
2574 [[%23%3c]][[%23%3e]]
2576 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2581 Link containing "<#" and ">#" as a hex sequences
2583 [[%3c%23]][[%3e%23]]
2585 <p>[[%3c%23]][[%3e%23]]
2590 Link containing double-single-quotes '' (bug 4598)
2592 [[Lista d''e paise d''o munno]]
2594 <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>
2599 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2601 Some [[Link|pretty ''italics'' and stuff]]!
2603 <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>!
2608 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2610 ''Some [[Link|pretty ''italics'' and stuff]]!
2612 <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>
2617 Link with double quotes in title part (literal) and alternate part (interpreted)
2619 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2623 [[''Pentecoste''|Pentecoste]]
2625 [[''Pentecoste''|''Pentecoste'']]
2627 <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>
2628 </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>
2629 </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>
2630 </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>
2635 Broken image links with HTML captions (bug 39700)
2637 [[File:Nonexistent|<script></script>]]
2638 [[File:Nonexistent|100px|<script></script>]]
2639 [[File:Nonexistent|<]]
2640 [[File:Nonexistent|a<i>b</i>c]]
2642 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2643 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2644 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2645 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2652 [[http://www.example.com]]
2654 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2659 Plain link to URL with link text
2661 [[http://www.example.com Link text]]
2663 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2668 Plain link to protocol-relative URL
2670 [[//www.example.com]]
2672 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2677 Plain link to protocol-relative URL with link text
2679 [[//www.example.com Link text]]
2681 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2686 # I'm fairly sure the expected result here is wrong.
2687 # We want these to be URL links, not pseudo-pages with URLs for titles....
2688 # However the current output is also pretty screwy.
2691 # I'm changing it to match the current output--it arguably makes more
2692 # sense in the light of the test above. Old expected result was:
2693 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2695 # But I think this test is bordering on "garbage in, garbage out" anyway.
2700 Piped link to URL: [[http://www.example.com|an example URL]]
2702 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2707 BUG 2: [[page|http://url/]] should link to page, not http://url/
2709 [[Main Page|http://url/]]
2711 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2716 BUG 337: Escaped self-links should be bold
2720 [[Bug462]] [[Bug462]]
2722 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2727 Self-link to section should not be bold
2731 [[Main Page#section]]
2733 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2744 Self-link to numeric title
2750 <p><strong class="selflink">0</strong>
2755 Link to numeric-equivalent title
2761 <p><a href="/wiki/00" title="00">00</a>
2766 <nowiki> inside a link
2768 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2770 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2775 Non-breaking spaces in title
2777 [[ Main Page ]]
2779 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2784 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2790 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2795 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2801 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2806 Internal link with en linktrail: no apostrophes (bug 27473)
2812 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2817 Internal link with ca linktrail with apostrophes (bug 27473)
2823 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2828 Internal link with kaa linktrail with apostrophes (bug 27473)
2834 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2839 ### Interwiki links (see maintenance/interwiki.sql)
2843 Inline interwiki link
2845 [[MeatBall:SoftSecurity]]
2847 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2852 Inline interwiki link with empty title (bug 2372)
2856 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2861 Interwiki link encoding conversion (bug 1636)
2863 *[[Wikipedia:ro:Olteniţa]]
2864 *[[Wikipedia:ro:Olteniţa]]
2866 <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>
2867 </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>
2873 Interwiki link with fragment (bug 2130)
2875 [[MeatBall:SoftSecurity#foo]]
2877 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2892 Double interlanguage link
2903 Interlanguage link, with prefix links
2915 Double interlanguage link, with prefix links (bug 8897)
2928 Parsoid-specific test: Wikilinks with should RT properly
2934 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
2952 Incorrecly removing closing slashes from correctly formed XHTML
2954 <br style="clear:both;" />
2956 <p><br style="clear:both;" />
2961 Failing to transform badly formed HTML into correct XHTML
2963 <br style="clear: left;">
2964 <br style="clear: right;">
2965 <br style="clear: both;">
2967 <p><br style="clear: left;" />
2968 <br style="clear: right;" />
2969 <br style="clear: both;" />
2974 Handling html with a div self-closing tag
2983 <p><div title />
2987 <p><div title=bar />
2988 <div title=bar/>
2990 <div title="bar/"></div>
2996 Handling html with a br self-closing tag
3005 <p><br title="title" />
3006 <br title="title" />
3015 Horizontal ruler (should it add that extra space?)
3029 Horizontal ruler -- 4+ dashes render hr
3038 Horizontal ruler -- eats additional dashes on the same line
3047 Horizontal ruler -- does not collaps dashes on consecutive lines
3058 Horizontal ruler -- <4 dashes render as plain text
3067 ### Block-level elements
3090 <ol><li>Numbered list
3107 ***#Number on level 4
3109 **#Number on level 3
3110 **#Number on level 3
3114 #** Level 3, but ordered
3117 <ol><li> with numbers
3119 <ul><li> and bullets
3121 <ol><li> and numbers
3123 </li><li>bullets again
3124 <ul><li>bullet level 2
3125 <ul><li>bullet level 3
3126 <ol><li>Number on level 4
3129 </li><li>bullet level 2
3130 <ol><li>Number on level 3
3131 </li><li>Number on level 3
3134 <ol><li>number level 2
3137 <ul><li><ul><li> Level 3
3141 <ol><li><ul><li><ul><li> Level 3, but ordered
3175 Nested lists 3 (first element empty)
3188 Nested lists 4 (first element empty)
3201 Nested lists 5 (both elements empty)
3214 Nested lists 6 (both elements empty)
3227 Nested lists 7 (skip initial nesting levels)
3231 <ul><li><ul><li><ul><li> foo
3239 Nested lists 8 (multiple nesting transitions)
3247 <ul><li><ul><li> bar
3258 List items are not parsed correctly following a <pre> block (bug 785)
3264 <ul><li> <pre>foo</pre>
3265 </li><li> <pre>bar</pre>
3272 List items from template
3283 * notSOL{{inner list}}
3302 List interrupted by empty line or heading
3312 <ul><li><ul><li> bar
3315 <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>
3316 <ul><li> Another list item
3327 Magic Word: {{CURRENTDAY}}
3336 Magic Word: {{CURRENTDAY2}}
3345 Magic Word: {{CURRENTDAYNAME}}
3354 Magic Word: {{CURRENTDOW}}
3363 Magic Word: {{CURRENTMONTH}}
3372 Magic Word: {{CURRENTMONTHABBREV}}
3374 {{CURRENTMONTHABBREV}}
3381 Magic Word: {{CURRENTMONTHNAME}}
3383 {{CURRENTMONTHNAME}}
3390 Magic Word: {{CURRENTMONTHNAMEGEN}}
3392 {{CURRENTMONTHNAMEGEN}}
3399 Magic Word: {{CURRENTTIME}}
3408 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3417 Magic Word: {{CURRENTYEAR}}
3426 Magic Word: {{FULLPAGENAME}}
3428 title=[[User:Ævar Arnfjörð Bjarmason]]
3432 <p>User:Ævar Arnfjörð Bjarmason
3437 Magic Word: {{FULLPAGENAMEE}}
3439 title=[[User:Ævar Arnfjörð Bjarmason]]
3443 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3448 Magic Word: {{NAMESPACE}}
3450 title=[[User:Ævar Arnfjörð Bjarmason]]
3459 Magic Word: {{NAMESPACEE}}
3461 title=[[User:Ævar Arnfjörð Bjarmason]]
3470 Magic Word: {{NAMESPACENUMBER}}
3472 title=[[User:Ævar Arnfjörð Bjarmason]]
3481 Magic Word: {{NUMBEROFFILES}}
3490 Magic Word: {{PAGENAME}}
3492 title=[[User:Ævar Arnfjörð Bjarmason]]
3496 <p>Ævar Arnfjörð Bjarmason
3501 Magic Word: {{PAGENAME}} with metacharacters
3503 title=[['foo & bar = baz']]
3507 <p><i>'foo & bar = baz'</i>
3512 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3514 title=[[*RFC 1234 http://example.com/]]
3518 <p>*RFC 1234 http://example.com/
3523 Magic Word: {{PAGENAMEE}}
3525 title=[[User:Ævar Arnfjörð Bjarmason]]
3529 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3534 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3536 title=[[*RFC 1234 http://example.com/]]
3540 <p>*RFC_1234_http://example.com/
3545 Magic Word: {{REVISIONID}}
3554 Magic Word: {{SCRIPTPATH}}
3563 Magic Word: {{SERVER}}
3567 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3572 Magic Word: {{SERVERNAME}}
3581 Magic Word: {{SITENAME}}
3590 Namespace 1 {{ns:1}}
3599 Namespace 1 {{ns:01}}
3608 Namespace 0 {{ns:0}} (bug 4783)
3616 Namespace 0 {{ns:00}} (bug 4783)
3624 Namespace -1 {{ns:-1}}
3633 Namespace User {{ns:User}}
3642 Namespace User talk {{ns:User_talk}}
3651 Namespace User talk {{ns:uSeR tAlK}}
3660 Namespace File {{ns:File}}
3669 Namespace File {{ns:Image}}
3678 Namespace (lang=de) Benutzer {{ns:User}}
3689 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3695 <p>Benutzer Diskussion
3703 {{urlencode:hi world?!}}
3704 {{urlencode:hi world?!|WIKI}}
3705 {{urlencode:hi world?!|PATH}}
3706 {{urlencode:hi world?!|QUERY}}
3719 Magic links: internal link to RFC (bug 479)
3723 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3728 Magic links: RFC (bug 479)
3732 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3737 Magic links: ISBN (bug 1937)
3741 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3746 Magic links: PMID incorrectly converts space to underscore
3750 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3759 Nonexistent template
3761 {{thistemplatedoesnotexist}}
3763 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3770 This is a test template
3778 <p>This is a test template
3783 Template with explicit namespace
3787 <p>This is a test template
3795 This is a test template with parameter {{{param}}}
3801 {{paramtest|param=foo}}
3803 <p>This is a test template with parameter foo
3808 Template:paramtestnum
3814 Template unnamed parameter
3816 {{paramtestnum|Main Page|the main page}}
3818 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3823 Template:templatesimple
3829 Template:templateredirect
3831 #redirect [[Template:templatesimple]]
3835 Template:templateasargtestnum
3841 Template:templateasargtest
3843 {{template{{{templ}}}}}
3847 Template:templateasargtest2
3853 Template with template name as unnamed argument
3855 {{templateasargtestnum|templatesimple}}
3862 Template with template name as argument
3864 {{templateasargtest|templ=simple}}
3871 Template with template name as argument (2)
3873 {{templateasargtest2|templ=templatesimple}}
3880 Template:templateasargtestdefault
3882 {{{{{templ|templatesimple}}}}}
3892 Template with default value
3894 {{templateasargtestdefault}}
3901 Template with default value (value set)
3903 {{templateasargtestdefault|templ=templa}}
3912 {{templateredirect}}
3919 Template with argument in separate line
3921 {{ templateasargtest |
3929 Template with complex template as argument
3932 param ={{ templateasargtest |
3935 <p>This is a test template with parameter (test)
3940 Template with thumb image (with link in description)
3943 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3945 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>
3950 Template:complextemplate
3952 {{{1}}} {{paramtest|
3953 param ={{{param}}}}}
3957 Template with complex arguments
3960 param ={{ templateasargtest |
3961 templ = simple }}|[[Template:complextemplate|link]]}}
3963 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3968 BUG 553: link with two variables in a piped link
3971 |[[{{{1}}}|{{{2}}}]]
3976 <td>[[{{{1}}}|{{{2}}}]]
3982 Magic variable as template parameter
3984 {{paramtest|param={{SITENAME}}}}
3986 <p>This is a test template with parameter MediaWiki
3993 [[{{{param}}}|link]]
3997 Template parameter as link source
3999 {{linktest|param=Main Page}}
4001 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4009 including another template, {{paramtest|param={{{arg}}}}}
4013 Template passing argument to another template
4015 {{paramtest2|arg='hmm'}}
4017 <p>including another template, This is a test template with parameter 'hmm'
4028 Template as link source
4032 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4050 Template infinite loop
4054 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4059 Template from main namespace
4078 BUG 529: Template with table, not included at beginning of line
4097 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4117 BUG 41: Template parameters shown as broken links
4129 ''None'' of '''this''' should be
4131 but rather passed unmodified
4135 # hmm, fix this or just deprecate msgnw and document its behavior?
4141 {{msgnw:MSGNW test}}
4143 <p>''None'' of '''this''' should be
4145 but rather passed unmodified
4153 {{int:youhavenewmessages|lots of money|not!}}
4155 <p>You have lots of money (not!).
4162 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4166 <includeonly> and <noinclude> being included
4177 <onlyinclude>Foo</onlyinclude>bar
4181 <onlyinclude> being included
4193 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4197 <onlyinclude> and <includeonly> being included
4206 <includeonly> and <noinclude> on a page
4208 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4215 <onlyinclude> on a page
4217 <onlyinclude>Foo</onlyinclude>bar
4224 Template:Includeonly section
4227 ==Includeonly section==
4233 Bug 6563: Edit link generation for section shown by <includeonly>
4235 {{includeonly section}}
4237 <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>
4238 <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>
4242 # Uses same input as the contents of [[Template:Includeonly section]]
4244 Bug 6563: Section extraction for section shown by <includeonly>
4249 ==Includeonly section==
4257 Bug 6563: Edit link generation for section suppressed by <includeonly>
4260 ==Includeonly section==
4264 <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>
4269 Bug 6563: Section extraction for section suppressed by <includeonly>
4274 ==Includeonly section==
4282 ### Testing parsing of templates where a template arg
4283 ### has the same name as the template itself.
4293 Templates: Template Name/Arg clash: 1. Use of positional param
4302 Templates: Template Name/Arg clash: 2. Use of named param
4311 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4320 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4324 Templates: 1. Simple use
4333 Templates: 2. Inside a block tag
4335 <div>{{echo|Foo}}</div>
4342 Templates: P-wrapping: 1a. Templates on consecutive lines
4353 Templates: P-wrapping: 1b. Templates on consecutive lines
4367 Templates: P-wrapping: 1c. Templates on consecutive lines
4370 {{echo|bar}} <div>baz</div>
4379 Templates: Inline Text: 1. Multiple tmeplate uses
4381 {{echo|Foo}}bar{{echo|baz}}
4388 Templates: Inline Text: 2. Back-to-back template uses
4390 {{echo|Foo}}{{echo|bar}}
4397 Templates: Block Tags: 1. Multiple template uses
4399 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4401 <div>Foo</div><div>bar</div><div>baz</div>
4406 Templates: Block Tags: 2. Back-to-back template uses
4408 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4410 <div>Foo</div><div>bar</div>
4415 Templates: Links: 1. Simple example
4417 {{echo|[[Foo|bar]]}}
4419 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4424 Templates: Links: 2. Generation of link href
4426 [[{{echo|Foo}}|bar]]
4428 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4433 Templates: Links: 3. Generation of part of a link href
4435 [[Fo{{echo|o}}|bar]]
4437 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4442 Templates: Links: 4. Multiple templates generating link href
4444 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4446 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4451 Templates: Links: 5. Generation of link text
4453 [[Foo|{{echo|bar}}]]
4455 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4460 Templates: Links: 5. Nested templates (only outermost template should be marked)
4462 {{echo|[[{{echo|Foo}}|bar]]}}
4464 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4469 Templates: HTML Tag: 1. Generation of HTML attr. key
4471 <div {{echo|style}}="color:red;">foo</div>
4473 <div style="color:red;">foo</div>
4478 Templates: HTML Tag: 2. Generation of HTML attr. value
4480 <div style={{echo|'color:red;'}}>foo</div>
4482 <div style="color:red;">foo</div>
4487 Templates: HTML Tag: 3. Generation of HTML attr key and value
4489 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4491 <div style="color:red;">foo</div>
4496 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4498 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4500 <div title="This is a long title with just one piece templated">foo</div>
4505 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4507 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4509 <div title="This is a long title with just one piece templated">foo</div>
4514 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4516 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4518 <div title="This is a long title with just one piece templated">foo</div>
4523 Templates: Tables: 1. Generating start of a HTML table
4525 {{echo|<table><tr><td>foo</td>}}</tr></table>
4527 <table><tr><td>foo</td></tr></table>
4532 Templates: Tables: 2a. Generating middle of a HTML table
4534 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4536 <table><tr><td>foo</td></tr></table>
4541 Templates: Tables: 2b. Generating middle of a HTML table
4543 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4545 <table><tr><td>foo</td></tr></table>
4550 Templates: Tables: 3. Generating end of a HTML table
4552 <table><tr>{{echo|<td>foo</td></tr></table>}}
4554 <table><tr><td>foo</td></tr></table>
4559 Templates: Tables: 4a. Generating a single tag of a HTML table
4561 {{echo|<table>}}<tr><td>foo</td></tr></table>
4563 <table><tr><td>foo</td></tr></table>
4568 Templates: Tables: 4b. Generating a single tag of a HTML table
4570 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4572 <table><tr><td>foo</td></tr></table>
4577 Templates: Tables: 4c. Generating a single tag of a HTML table
4579 <table><tr>{{echo|<td>}}foo</td></tr></table>
4581 <table><tr><td>foo</td></tr></table>
4586 Templates: Tables: 4d. Generating a single tag of a HTML table
4588 <table><tr><td>foo{{echo|</td>}}</tr></table>
4590 <table><tr><td>foo</td></tr></table>
4595 Templates: Tables: 4e. Generating a single tag of a HTML table
4597 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4599 <table><tr><td>foo</td></tr></table>
4604 Templates: Tables: 4f. Generating a single tag of a HTML table
4606 <table><tr><td>foo</td></tr>{{echo|</table>}}
4608 <table><tr><td>foo</td></tr></table>
4613 Parser Functions: 1. Simple example
4622 Parser Functions: 2. Nested use (only outermost should be marked up)
4631 ### Pre-save transform tests
4634 pre-save transform: subst:
4640 This is a test template
4644 pre-save transform: normal template
4654 pre-save transform: nonexistent template
4658 {{thistemplatedoesnotexist}}
4660 {{thistemplatedoesnotexist}}
4665 pre-save transform: subst magic variables
4674 # This is bug 89, which I fixed. -- wtm
4676 pre-save transform: subst: templates with parameters
4680 {{subst:paramtest|param="something else"}}
4682 This is a test template with parameter "something else"
4688 <nowiki>'''not wiki'''</nowiki>
4692 pre-save transform: nowiki in subst (bug 1188)
4696 {{subst:nowikitest}}
4698 <nowiki>'''not wiki'''</nowiki>
4703 Template:commenttest
4705 This template has <!-- a comment --> in it.
4709 pre-save transform: comment in subst (bug 1936)
4713 {{subst:commenttest}}
4715 This template has <!-- a comment --> in it.
4719 pre-save transform: unclosed tag
4723 <nowiki>'''not wiki'''
4725 <nowiki>'''not wiki'''
4729 pre-save transform: mixed tag case
4733 <NOwiki>'''not wiki'''</noWIKI>
4735 <NOwiki>'''not wiki'''</noWIKI>
4739 pre-save transform: unclosed comment in <nowiki>
4743 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4745 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4751 <span onmouseover="alert('crap')">Oh no</span>
4755 (confirming safety of fix for subst bug 1936)
4757 {{Template:dangerous}}
4759 <p><span>Oh no</span>
4764 pre-save transform: comment containing gallery (bug 5024)
4768 <!-- <gallery>data</gallery> -->
4770 <!-- <gallery>data</gallery> -->
4774 pre-save transform: comment containing extension
4778 <!-- <tag>data</tag> -->
4780 <!-- <tag>data</tag> -->
4784 pre-save transform: comment containing nowiki
4788 <!-- <nowiki>data</nowiki> -->
4790 <!-- <nowiki>data</nowiki> -->
4794 pre-save transform: <noinclude> in subst (bug 3298)
4804 pre-save transform: <onlyinclude> in subst (bug 3298)
4816 {{<includeonly>subst:</includeonly>Includes}}
4820 Template:SafeSubstTest
4822 {{<includeonly>safesubst:</includeonly>Includes}}
4826 bug 22297: safesubst: works during PST
4830 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4836 bug 22297: safesubst: works during normal parse
4845 subst: does not work during normal parse
4849 <p>{{subst:Includes}}
4854 pre-save transform: context links ("pipe trick")
4858 [[Article (context)|]]
4861 [[Bar:Article (context)|]]
4862 [[:Bar:Article (context)|]]
4864 [[|Article (context)]]
4868 [[Article (context)|Article]]
4869 [[Bar:Article|Article]]
4870 [[:Bar:Article|Article]]
4871 [[Bar:Article (context)|Article]]
4872 [[:Bar:Article (context)|Article]]
4874 [[Article (context)]]
4875 [[Bar:X (Y) Z|X (Y) Z]]
4876 [[:Bar:X (Y) Z|X (Y) Z]]
4880 pre-save transform: context links ("pipe trick") with interwiki prefix
4884 [[interwiki:Article|]]
4885 [[:interwiki:Article|]]
4886 [[interwiki:Bar:Article|]]
4887 [[:interwiki:Bar:Article|]]
4889 [[interwiki:Article|Article]]
4890 [[:interwiki:Article|Article]]
4891 [[interwiki:Bar:Article|Bar:Article]]
4892 [[:interwiki:Bar:Article|Bar:Article]]
4896 pre-save transform: context links ("pipe trick") with parens in title
4898 pst title=[[Somearticle (context)]]
4902 [[Article (context)|Article]]
4906 pre-save transform: context links ("pipe trick") with comma in title
4908 pst title=[[Someplace, Somewhere]]
4911 [[Otherplace, Elsewhere|]]
4912 [[Otherplace, Elsewhere, Anywhere|]]
4914 [[Otherplace, Somewhere|Otherplace]]
4915 [[Otherplace, Elsewhere|Otherplace]]
4916 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4920 pre-save transform: context links ("pipe trick") with parens and comma
4922 pst title=[[Someplace (IGNORED), Somewhere]]
4925 [[Otherplace (place), Elsewhere|]]
4927 [[Otherplace, Somewhere|Otherplace]]
4928 [[Otherplace (place), Elsewhere|Otherplace]]
4932 pre-save transform: context links ("pipe trick") with comma and parens
4934 pst title=[[Who, me? (context)]]
4937 [[Me, Myself, and I (1937 song)|]]
4939 [[Yes, you. (context)|Yes, you.]]
4940 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4944 pre-save transform: context links ("pipe trick") with namespace
4946 pst title=[[Ns:Somearticle]]
4950 [[Ns:Article|Article]]
4954 pre-save transform: context links ("pipe trick") with namespace and parens
4956 pst title=[[Ns:Somearticle (context)]]
4960 [[Ns:Article (context)|Article]]
4964 pre-save transform: context links ("pipe trick") with namespace and comma
4966 pst title=[[Ns:Somearticle, Context, Whatever]]
4970 [[Ns:Article, Context, Whatever|Article]]
4974 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4976 pst title=[[Ns:Somearticle, Context (context)]]
4980 [[Ns:Article (context)|Article]]
4984 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4986 pst title=[[Ns:Somearticle (IGNORED), Context]]
4990 [[Ns:Article, Context|Article]]
4994 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4998 [[Article(context)|]]
4999 [[Bar:Article(context)|]]
5000 [[:Bar:Article(context)|]]
5001 [[|Article(context)]]
5005 [[Article(context)|Article]]
5006 [[Bar:Article(context)|Article]]
5007 [[:Bar:Article(context)|Article]]
5008 [[Article(context)]]
5010 [[:Bar:X(Y)Z|X(Y)Z]]
5014 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5018 [[Article (context)|]]
5019 [[Bar:Article (context)|]]
5020 [[:Bar:Article (context)|]]
5021 [[|Article (context)]]
5025 [[Article (context)|Article]]
5026 [[Bar:Article (context)|Article]]
5027 [[:Bar:Article (context)|Article]]
5028 [[Article (context)]]
5029 [[Bar:X (Y) Z|X (Y) Z]]
5030 [[:Bar:X (Y) Z|X (Y) Z]]
5034 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5038 [[Article(context)|]]
5039 [[Bar:Article(context)|]]
5040 [[:Bar:Article(context)|]]
5041 [[|Article(context)]]
5045 [[Article(context)|Article]]
5046 [[Bar:Article(context)|Article]]
5047 [[:Bar:Article(context)|Article]]
5048 [[Article(context)]]
5050 [[:Bar:X(Y)Z|X(Y)Z]]
5054 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5058 [[Article (context), context|]]
5059 [[Article (context),context|]]
5060 [[Bar:Article (context), context|]]
5061 [[Bar:Article (context),context|]]
5062 [[:Bar:Article (context), context|]]
5063 [[:Bar:Article (context),context|]]
5065 [[Article (context), context|Article]]
5066 [[Article (context),context|Article]]
5067 [[Bar:Article (context), context|Article]]
5068 [[Bar:Article (context),context|Article]]
5069 [[:Bar:Article (context), context|Article]]
5070 [[:Bar:Article (context),context|Article]]
5074 pre-save transform: trim trailing empty lines
5078 Empty lines are trimmed
5084 Empty lines are trimmed
5088 pre-save transform: Signature expansion
5093 * <noinclude>~~~</noinclude>
5094 * <includeonly>~~~</includeonly>
5095 * <onlyinclude>~~~</onlyinclude>
5097 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5098 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5099 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5100 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5105 pre-save transform: Signature expansion in nowiki tags (bug 93)
5111 <nowiki>~~~~</nowiki>
5113 <includeonly><nowiki>~~~~</nowiki></includeonly>
5115 <noinclude><nowiki>~~~~</nowiki></noinclude>
5117 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5119 {{subst:Foo}} shall be converted to FOO
5121 As well as inside noinclude/onlyinclude
5122 <noinclude>{{subst:Foo}}</noinclude>
5123 <onlyinclude>{{subst:Foo}}</onlyinclude>
5125 But not inside includeonly
5126 <includeonly>{{subst:Foo}}</includeonly>
5130 <nowiki>~~~~</nowiki>
5132 <includeonly><nowiki>~~~~</nowiki></includeonly>
5134 <noinclude><nowiki>~~~~</nowiki></noinclude>
5136 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5138 FOO shall be converted to FOO
5140 As well as inside noinclude/onlyinclude
5141 <noinclude>FOO</noinclude>
5142 <onlyinclude>FOO</onlyinclude>
5144 But not inside includeonly
5145 <includeonly>{{subst:Foo}}</includeonly>
5149 ### Message transform tests
5152 message transform: magic variables
5162 message transform: should not transform wiki markup
5172 message transform: <noinclude> in transcluded template (bug 4926)
5182 message transform: <onlyinclude> in transcluded template (bug 4926)
5192 {{#special:}} page name, known
5196 {{#special:Recentchanges}}
5198 Special:RecentChanges
5202 {{#special:}} page name with subpage, known
5206 {{#special:Recentchanges/param}}
5208 Special:RecentChanges/param
5212 {{#special:}} page name, unknown
5216 {{#special:foobarnonexistent}}
5218 No such special page
5222 {{#speciale:}} page name, known
5226 {{#speciale:Recentchanges}}
5228 Special:RecentChanges
5232 {{#speciale:}} page name with subpage, known
5236 {{#speciale:Recentchanges/param}}
5238 Special:RecentChanges/param
5242 {{#speciale:}} page name, unknown
5246 {{#speciale:foobarnonexistent}}
5248 No_such_special_page
5257 [[Image:foobar.jpg]]
5259 <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>
5266 [[Image:foobar.jpg|right]]
5268 <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>
5273 Simple image (using File: namespace, now canonical)
5277 <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>
5284 [[Image:foobar.jpg|right|Caption text]]
5286 <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>
5291 Image with link parameter, wiki target
5293 [[Image:foobar.jpg|link=Target page]]
5295 <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>
5300 Image with link parameter, URL target
5302 [[Image:foobar.jpg|link=http://example.com/]]
5304 <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>
5309 Image with link parameter, wgExternalLinkTarget
5311 [[Image:foobar.jpg|link=http://example.com/]]
5313 wgExternalLinkTarget='foobar'
5315 <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>
5320 Image with link parameter, wgNoFollowLinks set to false
5322 [[Image:foobar.jpg|link=http://example.com/]]
5324 wgNoFollowLinks=false
5326 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5331 Image with link parameter, wgNoFollowDomainExceptions
5333 [[Image:foobar.jpg|link=http://example.com/]]
5335 wgNoFollowDomainExceptions='example.com'
5337 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5342 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5344 [[Image:foobar.jpg|link=http://example.com/|Title]]
5346 wgExternalLinkTarget='foobar'
5348 <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>
5353 Image with empty link parameter
5355 [[Image:foobar.jpg|link=]]
5357 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5362 Image with link parameter (wiki target) and unnamed parameter
5364 [[Image:foobar.jpg|link=Target page|Title]]
5366 <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>
5371 Image with link parameter (URL target) and unnamed parameter
5373 [[Image:foobar.jpg|link=http://example.com/|Title]]
5375 <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>
5380 Thumbnail image with link parameter
5382 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5384 <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>
5389 Image with frame and link
5391 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5393 <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>
5398 Image with frame and link and explicit alt
5400 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5402 <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>
5407 Image with wiki markup in implicit alt
5409 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5411 <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>
5416 Image with wiki markup in explicit alt
5418 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5420 <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>
5425 Link to image page- image page normally doesn't exists, hence edit link
5426 Add test with existing image page
5427 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5431 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5436 bug 18784 Link to non-existent image page with caption should use caption as link text
5438 [[:Image:test|caption]]
5440 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5445 Frameless image caption with a free URL
5447 [[Image:foobar.jpg|http://example.com]]
5449 <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>
5454 Thumbnail image caption with a free URL
5456 [[Image:foobar.jpg|thumb|http://example.com]]
5458 <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>
5463 Thumbnail image caption with a free URL and explicit alt
5465 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5467 <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>
5472 BUG 1887: A ISBN with a thumbnail
5474 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5476 <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>
5481 BUG 1887: A RFC with a thumbnail
5483 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5485 <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>
5490 BUG 1887: A mailto link with a thumbnail
5492 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5494 <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>
5498 # Pending resolution to bug 368
5500 BUG 648: Frameless image caption with a link
5502 [[Image:foobar.jpg|text with a [[link]] in it]]
5504 <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>
5509 BUG 648: Frameless image caption with a link (suffix)
5511 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5513 <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>
5518 BUG 648: Frameless image caption with an interwiki link
5520 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5522 <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>
5527 BUG 648: Frameless image caption with a piped interwiki link
5529 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5531 <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>
5536 Escape HTML special chars in image alt text
5538 [[Image:foobar.jpg|& < > "]]
5540 <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>
5545 BUG 499: Alt text should have Ӓ, not &1234;
5547 [[Image:foobar.jpg|♀]]
5549 <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>
5554 Broken image caption with link
5556 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5558 <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.
5563 Image caption containing another image
5565 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5567 <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>
5572 Image caption containing a newline
5574 [[Image:Foobar.jpg|This
5577 <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>
5583 Bug 3090: External links other than http: in image captions
5585 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5587 <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>
5594 [[Image:foobar.jpg|a|class=b]]
5596 <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>
5603 #REDIRECT [[File:Barfoo.jpg]]
5609 [[Image:Barfoo.jpg]]
5611 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5616 Missing image with uploads disabled
5620 [[Image:Foobaz.jpg]]
5622 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5631 Subpage test/subpage
5639 subpage title=[[Subpage test]]
5643 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5648 Subpage noslash link
5650 subpage title=[[Subpage test]]
5654 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5663 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5668 BUG 561: {{/Subpage}}
5670 subpage title=[[Page]]
5674 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5682 Category:MediaWiki User's Guide
5690 [[:Category:MediaWiki User's Guide]]
5692 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5701 [[Category:MediaWiki User's Guide]]
5703 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5707 PAGESINCATEGORY invalid title fatal (r33546 fix)
5709 {{PAGESINCATEGORY:<bogus>}}
5716 Category with different sort key
5720 [[Category:MediaWiki User's Guide|Foo]]
5722 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5726 Category with identical sort key
5730 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5732 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5736 Category with empty sort key
5741 [[Category:MediaWiki User's Guide|]]
5743 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5747 Category with empty sort key and parentheses
5752 [[Category:Foo (bar)|]]
5754 [[Category:Foo (bar)|Foo]]
5758 ### Inter-language links
5761 Inter-language links
5767 [[zh:食品]]
5769 es:Alimento fr:Nourriture zh:食品
5776 Basic section headings
5783 ===Smaller headline===
5786 <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>
5789 <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>
5792 <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>
5798 Section headings with TOC
5801 === Subheadline 1 ===
5802 ===== Skipping a level =====
5803 ====== Skipping a level ======
5807 ===Another headline===
5809 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5811 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5813 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5815 <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>
5817 <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>
5824 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5826 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5831 <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>
5832 <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>
5833 <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>
5834 <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>
5835 <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>
5838 <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>
5842 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5844 Handling of sections up to level 6 and beyond
5847 == Level 2 Heading==
5848 === Level 3 Heading===
5849 ==== Level 4 Heading====
5850 ===== Level 5 Heading=====
5851 ====== Level 6 Heading======
5852 ======= Level 7 Heading=======
5853 ======== Level 8 Heading========
5854 ========= Level 9 Heading=========
5855 ========== Level 10 Heading==========
5857 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5859 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5861 <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>
5863 <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>
5865 <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>
5867 <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>
5869 <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>
5870 <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>
5871 <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>
5872 <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>
5873 <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>
5886 <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>
5887 <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>
5888 <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>
5889 <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>
5890 <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>
5891 <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>
5892 <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>
5893 <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>
5894 <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>
5895 <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>
5900 TOC regression (bug 9764)
5904 ==== title 1.1.1 ====
5909 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5911 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5913 <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>
5915 <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>
5918 <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>
5921 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5923 <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>
5928 <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>
5929 <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>
5930 <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>
5931 <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>
5932 <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>
5933 <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>
5938 TOC with wgMaxTocLevel=3 (bug 6204)
5944 ==== title 1.1.1 ====
5949 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5951 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5953 <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>
5954 <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>
5957 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5959 <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>
5964 <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>
5965 <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>
5966 <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>
5967 <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>
5968 <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>
5969 <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>
5974 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5980 ====Section 1.1.1====
5981 ====Section 1.1.1.1====
5984 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5986 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5988 <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>
5991 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5994 <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>
5995 <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>
5996 <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>
5997 <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>
5998 <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>
6004 Resolving duplicate section names
6009 <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>
6010 <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>
6015 Resolving duplicate section names with differing case (bug 10721)
6020 <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>
6021 <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>
6033 Template with sections, __NOTOC__
6040 <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>
6041 <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>
6042 <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>
6043 <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>
6048 __NOEDITSECTION__ keyword
6054 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6055 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6060 Link inside a section heading
6062 ==Section with a [[Main Page|link]] in it==
6064 <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>
6069 TOC regression (bug 12077)
6076 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6078 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6080 <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>
6083 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</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 <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>
6093 BUG 1219 URL next to image (good)
6095 http://example.com [[Image:foobar.jpg]]
6097 <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>
6102 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6105 The line above must have a trailing space!
6108 But just in case it doesn't...
6110 <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>
6111 <p>The line above must have a trailing space!
6113 <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>
6114 <p>But just in case it doesn't...
6119 Header with special characters (bug 25462)
6121 The tooltips shall not show entities to the user (ie. be double escaped)
6138 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6140 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6142 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6143 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6144 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6145 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6146 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6149 <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>
6152 <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>
6155 <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>
6158 <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>
6161 <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>
6167 Headers with excess '=' characters
6168 (Are similar tests necessary beyond the 1st level?)
6172 =''italic'' heading==
6173 ==''italic'' heading=
6175 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6177 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6178 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6179 <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>
6180 <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>
6183 <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>
6184 <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>
6185 <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>
6186 <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>
6191 BUG 1219 URL next to image (broken)
6193 http://example.com[[Image:foobar.jpg]]
6195 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6200 Bug 1186 news: in the middle of text
6202 http://en.wikinews.org/wiki/Wikinews:Workplace
6204 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6210 Namespaced link must have a title
6219 Namespaced link must have a title (bad fragment version)
6221 [[Project:#fragment]]
6223 <p>[[Project:#fragment]]
6229 div with no attributes
6231 <div>HTML rocks</div>
6233 <div>HTML rocks</div>
6238 div with double-quoted attribute
6240 <div id="rock">HTML rocks</div>
6242 <div id="rock">HTML rocks</div>
6247 div with single-quoted attribute
6249 <div id='rock'>HTML rocks</div>
6251 <div id="rock">HTML rocks</div>
6256 div with unquoted attribute
6258 <div id=rock>HTML rocks</div>
6260 <div id="rock">HTML rocks</div>
6265 div with illegal double attributes
6267 <div id="a" id="b">HTML rocks</div>
6269 <div id="b">HTML rocks</div>
6274 HTML multiple attributes correction
6276 <p class="error" class="awesome">Awesome!</p>
6278 <p class="awesome">Awesome!</p>
6283 Table multiple attributes correction
6286 !+ class="error" class="awesome"| status
6291 <th class="awesome"> status
6299 <DIV ID="x">HTML ROCKS</DIV>
6301 <div id="x">HTML ROCKS</div>
6307 text with amp in the middle of nowhere
6311 <p>Remember AT&T?
6316 text with character entity: eacute
6318 I always thought é was a cute letter.
6320 <p>I always thought é was a cute letter.
6325 text with undefined character entity: xacute
6327 I always thought &xacute; was a cute letter.
6329 <p>I always thought &xacute; was a cute letter.
6341 [[Media:Foobar.jpg]]
6343 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6348 Media link with text
6350 [[Media:Foobar.jpg|A neat file to look at]]
6352 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6356 # FIXME: this is still bad HTML tag nesting
6358 Media link with nasty text
6359 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6361 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6363 <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>
6368 Media link to nonexistent file (bug 1702)
6370 [[Media:No such.jpg]]
6372 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6377 Image link to nonexistent file (bug 1850 - good)
6379 [[Image:No such.jpg]]
6381 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6386 :Image link to nonexistent file (bug 1850 - bad)
6388 [[:Image:No such.jpg]]
6390 <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>
6397 Character reference normalization in link text (bug 1938)
6399 [[Main Page|this&that]]
6401 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6408 Test for unicode normalization
6410 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6414 (bug 19451) Links should refer to the normalized form.
6422 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6423 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6424 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6425 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6426 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6431 Empty attribute crash test (bug 2067)
6433 <font color="">foo</font>
6435 <p><font color="">foo</font>
6440 Empty attribute crash test single-quotes (bug 2067)
6442 <font color=''>foo</font>
6444 <p><font color="">foo</font>
6449 Attribute test: equals, then nothing
6451 <font color=>foo</font>
6458 Attribute test: unquoted value
6460 <font color=x>foo</font>
6462 <p><font color="x">foo</font>
6467 Attribute test: unquoted but illegal value (hash)
6469 <font color=#x>foo</font>
6471 <p><font color="#x">foo</font>
6476 Attribute test: no value
6478 <font color>foo</font>
6480 <p><font color="color">foo</font>
6485 Bug 2095: link with three closing brackets
6489 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6494 Bug 2095: link with pipe and three closing brackets
6498 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6503 Bug 2095: link with pipe and three closing brackets, version 2
6505 [[Main Page|[http://example.com/]]]
6507 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6517 Template:Dangerous attribute
6519 " onmouseover="alert(document.cookie)
6523 Template:Dangerous style attribute
6525 border-size: expression(alert(document.cookie))
6531 <div style="float: right; {{{1}}}">Magic div</div>
6535 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6537 <div title="{{test}}"></div>
6539 <div title="This is a test template"></div>
6544 Bug 2304: HTML attribute safety (dangerous template; 2309)
6546 <div title="{{dangerous attribute}}"></div>
6548 <div title=""></div>
6553 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6555 <div style="{{dangerous style attribute}}"></div>
6557 <div style="/* insecure input */"></div>
6562 Bug 2304: HTML attribute safety (safe parameter; 2309)
6564 {{div style|width: 200px}}
6566 <div style="float: right; width: 200px">Magic div</div>
6571 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6573 {{div style|width: expression(alert(document.cookie))}}
6575 <div style="/* insecure input */">Magic div</div>
6580 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6582 {{div style|"><script>alert(document.cookie)</script>}}
6584 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6589 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6591 {{div style|" ><script>alert(document.cookie)</script>}}
6593 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6598 Bug 2304: HTML attribute safety (link)
6600 <div title="[[Main Page]]"></div>
6602 <div title="[[Main Page]]"></div>
6607 Bug 2304: HTML attribute safety (italics)
6609 <div title="''foobar''"></div>
6611 <div title="''foobar''"></div>
6616 Bug 2304: HTML attribute safety (bold)
6618 <div title="'''foobar'''"></div>
6620 <div title="'''foobar'''"></div>
6626 Bug 2304: HTML attribute safety (ISBN)
6628 <div title="ISBN 1234567890"></div>
6630 <div title="ISBN 1234567890"></div>
6635 Bug 2304: HTML attribute safety (RFC)
6637 <div title="RFC 1234"></div>
6639 <div title="RFC 1234"></div>
6644 Bug 2304: HTML attribute safety (PMID)
6646 <div title="PMID 1234567890"></div>
6648 <div title="PMID 1234567890"></div>
6653 Bug 2304: HTML attribute safety (web link)
6655 <div title="http://example.com/"></div>
6657 <div title="http://example.com/"></div>
6662 Bug 2304: HTML attribute safety (named web link)
6664 <div title="[http://example.com/ link]"></div>
6666 <div title="[http://example.com/ link]"></div>
6671 Bug 3244: HTML attribute safety (extension; safe)
6673 <div style="<nowiki>background:blue</nowiki>"></div>
6675 <div style="background:blue"></div>
6680 Bug 3244: HTML attribute safety (extension; unsafe)
6682 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6684 <div style="/* insecure input */"></div>
6688 # More MSIE fun discovered by Tom Gilder
6691 MSIE CSS safety test: spurious slash
6693 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6695 <div style="/* insecure input */">evil</div>
6700 MSIE CSS safety test: hex code
6702 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6704 <div style="/* insecure input */">evil</div>
6709 MSIE CSS safety test: comment in url
6711 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6713 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6718 MSIE CSS safety test: comment in expression
6720 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6722 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6728 Table attribute legitimate extension
6731 !+ style="<nowiki>color:blue</nowiki>"| status
6736 <th style="color:blue"> status
6742 Table attribute safety
6745 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6750 <th style="/* insecure input */"> status
6756 CSS line continuation 1
6758 <div style="background-image: u\ rl(test.jpg);"></div>
6760 <div style="/* insecure input */"></div>
6765 CSS line continuation 2
6767 <div style="background-image: u\ rl(test.jpg); "></div>
6769 <div style="/* insecure input */"></div>
6780 Expansion of multi-line templates in attribute values (bug 6255)
6782 <div style="background: {{identity|#00FF00}}">-</div>
6784 <div style="background: #00FF00">-</div>
6790 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6792 <div style="background:
6795 <div style="background: #00FF00">-</div>
6800 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6802 <div style="background: #00FF00">-</div>
6804 <div style="background: #00FF00">-</div>
6809 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6812 Parser hook: empty input
6825 Parser hook: empty input using terminated empty elements
6838 Parser hook: empty input using terminated empty elements (space before)
6851 Parser hook: basic input
6865 Parser hook: case insensitive
6879 Parser hook: case insensitive, redux
6892 Parser hook: nested tags
6896 <tag><tag></tag></tag>
6907 Parser hook: basic arguments
6909 <tag width=200 height = "100" depth = '50' square></tag>
6928 Parser hook: argument containing a forward slash (bug 5344)
6930 <tag filename='/tmp/bla'></tag>
6936 string(8) "/tmp/bla"
6943 Parser hook: empty input using terminated empty elements (bug 2374)
6957 # </tag> should be output literally since there is no matching tag that begins it
6959 Parser hook: basic arguments using terminated empty elements (bug 2374)
6961 <tag width=200 height = "100" depth = '50' square/>
6984 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6988 Parser hook: static parser hook not inside a comment
6990 <statictag>hello, world</statictag>
6991 <statictag action=flush/>
6999 Parser hook: static parser hook inside a comment
7001 <!-- <statictag>hello, world</statictag> -->
7002 <statictag action=flush/>
7008 # Nested template calls; this case was broken by Parser.php rev 1.506,
7012 Template:One-parameter
7014 (My parameter is: {{{1}}})
7018 Template:Map-one-parameter
7024 Nested template calls
7026 {{Map-one-parameter|One-parameter|param}}
7028 <p>(My parameter is: param)
7037 Sanitizer: Closing of open tags
7039 <s></s><table></table>
7041 <s></s><table></table>
7046 Sanitizer: Closing of open but not closed tags
7055 Sanitizer: Closing of closed but not open tags
7064 Sanitizer: Closing of closed but not open table tags
7066 Table not started</td></tr></table>
7068 <p>Table not started</td></tr></table>
7073 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7075 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7077 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7082 Sanitizer: Validating the contents of the id attribute (bug 4515)
7088 Something, but definitely not <br id="9" />...
7092 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7096 <br id="foo" /><br id="foo" />
7098 Something need to be done. foo-2 ?
7102 Language converter: output gets cut off unexpectedly (bug 5757)
7106 this bit is safe: }-
7108 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7110 then we get cut off here: }-
7112 all additional text is vanished
7114 <p>this bit is safe: }-
7115 </p><p>but if we add a conversion instance: xxx
7116 </p><p>then we get cut off here: }-
7117 </p><p>all additional text is vanished
7122 Self closed html pairs (bug 5487)
7125 <center><font id="bug" />Centered text</center>
7126 <div><font id="bug2" />In div text</div>
7128 <center><font id="bug" />Centered text</center>
7129 <div><font id="bug2" />In div text</div>
7138 Punctuation: nbsp before exclamation
7142 <p>C'est grave !
7147 Punctuation: CSS !important (bug 11874)
7149 <div style="width:50% !important">important</div>
7151 <div style="width:50% !important">important</div>
7156 Punctuation: CSS ! important (bug 11874; with space after)
7158 <div style="width:50% ! important">important</div>
7160 <div style="width:50% ! important">important</div>
7166 HTML bullet list, closed tags (bug 5497)
7181 HTML bullet list, unclosed tags (bug 5497)
7198 HTML ordered list, closed tags (bug 5497)
7213 HTML ordered list, unclosed tags (bug 5497)
7230 HTML nested bullet list, closed tags (bug 5497)
7255 HTML nested bullet list, open tags (bug 5497)
7280 HTML nested ordered list, closed tags (bug 5497)
7305 HTML nested ordered list, open tags (bug 5497)
7330 HTML ordered list item with parameters oddity
7332 <ol><li id="fragment">One</li></ol>
7334 <ol><li id="fragment">One</li></ol>
7339 bug 5918: autonumbering
7341 [http://first/] [http://second] [ftp://ftp]
7345 [mailto:enclosed@mail.tld With target]
7347 [mailto:enclosed@mail.tld]
7349 mailto:inline@mail.tld
7351 <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>
7352 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7353 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7354 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7355 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7361 # Security and HTML correctness
7362 # From Nick Jenkins' fuzz testing
7366 Fuzz testing: Parser13
7381 Fuzz testing: Parser14
7386 <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>
7387 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7389 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7396 Fuzz testing: Parser14-table
7401 <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>
7402 <table style="__TOC__">
7408 # Known to produce bogus xml (extra </td>)
7410 Fuzz testing: Parser16
7430 Fuzz testing: Parser21
7433 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7438 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7448 Fuzz testing: Parser22
7450 http://===r:::https://b
7454 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7462 # Known to produce bad XML for now
7464 Fuzz testing: Parser24
7471 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7472 <br style="onmouseover='alert(document.cookie);' " />
7474 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7479 <u class="|">}}}} >
7480 <br style="onmouseover='alert(document.cookie);'" />
7482 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7491 # Note: the current result listed for this is not what the original one was,
7492 # but the original bug was JavaScript injection, which is fixed in any case.
7493 # It's not clear that the original result listed was any more correct than the
7494 # current one. Original result:
7497 # <li class="||">
7498 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7500 Fuzz testing: Parser25 (bug 6055)
7506 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7508 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7513 Fuzz testing: URL adjacent extension (with space, clean)
7516 http://example.com <nowiki>junk</nowiki>
7518 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7523 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7526 http://example.com<nowiki>junk</nowiki>
7528 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7533 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7536 http://example.com<pre>junk</pre>
7538 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7543 Fuzz testing: image with bogus manual thumbnail
7545 [[Image:foobar.jpg|thumbnail= ]]
7547 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7552 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7554 <pre dir=" "></pre>
7556 <pre dir=" "></pre>
7561 Parsing optional HTML elements (Bug 6171)
7566 <td> Some tabular data</td>
7567 <td> More tabular data ...
7568 <td> And yet som tabular data</td>
7574 <td> Some tabular data</td>
7575 <td> More tabular data ...
7576 </td><td> And yet som tabular data</td>
7583 Correct handling of <td>, <tr> (Bug 6171)
7588 <td> Some tabular data</td>
7589 <td> More tabular data ...</td>
7590 <td> And yet som tabular data</td>
7596 <td> Some tabular data</td>
7597 <td> More tabular data ...</td>
7598 <td> And yet som tabular data</td>
7606 Parsing crashing regression (fr:JavaScript)
7610 <p></body></x>
7615 Inline wiki vs wiki block nesting
7621 <p><b>Bold paragraph</b>
7622 </p><p>New wiki paragraph
7627 Inline HTML vs wiki block nesting
7635 <p><b>Bold paragraph</b>
7636 </p><p>New wiki paragraph
7640 # Original result was this:
7641 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7643 # While that might be marginally more intuitive, maybe, the six-apostrophe
7644 # construct is clearly pathological and the result stated here (which is what
7645 # the parser actually does) is about as reasonable as anything.
7647 Mixing markup for italics and bold
7650 '''bold''''''bold''bolditalics'''''
7652 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7660 Article for special page transclusion test
7664 Special page transclusion
7667 {{Special:Prefixindex/Xyzzyx}}
7669 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7674 Special page transclusion twice (bug 5021)
7677 {{Special:Prefixindex/Xyzzyx}}
7678 {{Special:Prefixindex/Xyzzyx}}
7680 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7681 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7686 Transclusion of default MediaWiki message
7688 {{MediaWiki:Mainpage}}
7695 Transclusion of nonexistent MediaWiki message
7697 {{MediaWiki:Mainpagexxx}}
7699 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7704 Transclusion of MediaWiki message with underscore
7706 {{MediaWiki:history_short}}
7713 Transclusion of MediaWiki message with space
7715 {{MediaWiki:history short}}
7722 Invalid header with following text
7732 Section extraction test (section 0)
7752 Section extraction test (section 1)
7774 Section extraction test (section 2)
7795 Section extraction test (section 3)
7815 Section extraction test (section 4)
7839 Section extraction test (section 5)
7859 Section extraction test (section 6)
7880 Section extraction test (section 7)
7900 Section extraction test (section 8)
7920 Section extraction test (section 9)
7941 Section extraction test (section 10)
7961 Section extraction test (nonexistent section 11)
7980 Section extraction test with bogus heading (section 1)
7985 ==bogus== not a legal section
7989 ==bogus== not a legal section
7993 Section extraction test with bogus heading (section 2)
7998 ==bogus== not a legal section
8005 Section extraction test with comment after heading (section 1)
8017 Section extraction test with comment after heading (section 2)
8029 Section extraction test with bogus <nowiki> heading (section 1)
8034 ==bogus== <nowiki>not a legal section</nowiki>
8038 ==bogus== <nowiki>not a legal section</nowiki>
8042 Section extraction test with bogus <nowiki> heading (section 2)
8047 ==bogus== <nowiki>not a legal section</nowiki>
8054 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8055 # instead of respecting commented sections
8057 Section extraction prefixed by comment (section 1)
8068 Section extraction prefixed by comment (section 2)
8079 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8080 # instead of respecting HTML-style headings
8082 Section extraction, mixed wiki and html (section 1)
8098 Section extraction, mixed wiki and html (section 2)
8114 # Formerly testing for bug 3342
8116 Section extraction, heading surrounded by <noinclude>
8120 <noinclude>==unmarked==</noinclude>
8126 # Test behaviour of bug 19910
8128 Sectiion with all-equals
8133 The line above must have a trailing space
8136 But just in case it doesn't...
8140 But just in case it doesn't...
8144 Section replacement test (section 0)
8175 Section replacement test (section 1)
8204 Section replacement test (section 2)
8234 Section replacement test (section 3)
8265 Section replacement test (section 4)
8292 Section replacement test (section 5)
8323 Section replacement test (section 6)
8353 Section replacement test (section 7)
8384 Section replacement test (section 8)
8415 Section replacement test (section 9)
8444 Section replacement test (section 10)
8474 Section replacement test with initial whitespace (bug 13728)
8478 Preformatted initial line
8482 Preformatted initial line
8489 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8501 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8514 Section extraction, <pre> around bogus header (bug 10309)
8531 Section replacement, <pre> around bogus header (bug 10309)
8533 noxml replace=2,"xxx"
8554 Handling of 
 in URLs
8558 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8565 5 quotes, code coverage +1 line
8572 Special:Search page linking.
8576 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8591 * {{SUBJECTPAGENAME}}
8592 * {{SUBJECTPAGENAMEE}}
8599 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8601 <ul><li> Parser test
8602 </li><li> Parser test
8603 </li><li> Parser test
8604 </li><li> Parser_test
8605 </li><li> Parser test
8606 </li><li> Parser_test
8607 </li><li> Talk:Parser test
8608 </li><li> Talk:Parser_test
8609 </li><li> Parser test
8610 </li><li> Parser_test
8617 </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>
8621 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8631 image4 |300px| centre
8632 image5.svg| http://///////
8637 <ul class="gallery">
8638 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8639 <div style="height: 150px;">Image1.png</div>
8640 <div class="gallerytext">
8643 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8644 <div style="height: 150px;">Image2.gif</div>
8645 <div class="gallerytext">
8650 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8651 <div style="height: 150px;">Image3</div>
8652 <div class="gallerytext">
8655 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8656 <div style="height: 150px;">Image4</div>
8657 <div class="gallerytext">
8662 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8663 <div style="height: 150px;">Image5.svg</div>
8664 <div class="gallerytext">
8665 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8669 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8670 <div style="height: 150px;">* image6</div>
8671 <div class="gallerytext">
8679 Gallery (with options)
8681 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8682 File:Nonexistant.jpg|caption
8683 File:Nonexistant.jpg
8684 image:foobar.jpg|some '''caption''' [[Main Page]]
8686 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8689 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8690 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8691 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8692 <div style="height: 70px;">Nonexistant.jpg</div>
8693 <div class="gallerytext">
8698 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8699 <div style="height: 70px;">Nonexistant.jpg</div>
8700 <div class="gallerytext">
8703 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8704 <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>
8705 <div class="gallerytext">
8706 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8710 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8711 <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>
8712 <div class="gallerytext">
8715 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8716 <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>
8717 <div class="gallerytext">
8727 Gallery with wikitext inside caption
8730 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8731 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8734 <ul class="gallery">
8735 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8736 <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>
8737 <div class="gallerytext">
8738 <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>
8742 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8743 <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>
8744 <div class="gallerytext">
8745 <p>This is a test template
8754 gallery (with showfilename option)
8756 <gallery showfilename>
8757 File:Nonexistant.jpg|caption
8758 File:Nonexistant.jpg
8759 image:foobar.jpg|some '''caption''' [[Main Page]]
8763 <ul class="gallery">
8764 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8765 <div style="height: 150px;">Nonexistant.jpg</div>
8766 <div class="gallerytext">
8767 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8772 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8773 <div style="height: 150px;">Nonexistant.jpg</div>
8774 <div class="gallerytext">
8775 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8779 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8780 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8781 <div class="gallerytext">
8782 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8783 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8787 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8788 <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>
8789 <div class="gallerytext">
8790 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8799 Gallery (with namespace-less filenames)
8802 File:Nonexistant.jpg
8808 <ul class="gallery">
8809 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8810 <div style="height: 150px;">Nonexistant.jpg</div>
8811 <div class="gallerytext">
8814 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8815 <div style="height: 150px;">Nonexistant.jpg</div>
8816 <div class="gallerytext">
8819 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8820 <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>
8821 <div class="gallerytext">
8824 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8825 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
8826 <div class="gallerytext">
8834 HTML Hex character encoding (spells the word "JavaScript")
8836 JavaScript
8838 <p>JavaScript
8843 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8847 <p>&#xsee;&#XSEE;
8852 HTML Hex character encoding mixed case
8861 __FORCETOC__ override
8873 ISBN 978-0-1234-56 789
8875 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8880 ISBN followed by 5 spaces
8891 ISBN ISBN 1234567890
8893 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8898 Bug 22905: <abbr> followed by ISBN followed by </a>
8900 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8902 <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>
8911 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8916 Double RFC with a wiki link
8920 <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>
8929 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8934 Centre-aligned image
8936 [[Image:foobar.jpg|centre]]
8938 <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>
8945 [[Image:foobar.jpg|none]]
8947 <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>
8952 Width + Height sized image (using px) (height is ignored)
8954 [[Image:foobar.jpg|640x480px]]
8956 <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>
8961 Width-sized image (using px, no following whitespace)
8963 [[Image:foobar.jpg|640px]]
8965 <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>
8970 Width-sized image (using px, with following whitespace - test regression from r39467)
8972 [[Image:foobar.jpg|640px ]]
8974 <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>
8979 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8981 [[Image:foobar.jpg| 640px]]
8983 <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>
8988 Another italics / bold test
8996 # Note the results may be incorrect, as parserTest output included this:
8997 # XML error: Mismatched tag at byte 6120:
8998 # ...<dd> </dt></dl> </dd...
9006 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9017 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9019 Images with the "|" character in the comment
9021 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9023 <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>
9028 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9030 <html><script>alert(1);</script></html>
9032 <p><html><script>alert(1);</script></html>
9037 HTML with raw HTML ($wgRawHtml==true)
9041 <html><script>alert(1);</script></html>
9043 <p><script>alert(1);</script>
9048 Parents of subpages, one level up
9050 subpage title=[[Subpage test/L1/L2/L3]]
9054 <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>
9060 Parents of subpages, one level up, not named
9062 subpage title=[[Subpage test/L1/L2/L3]]
9066 <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>
9073 Parents of subpages, two levels up
9075 subpage title=[[Subpage test/L1/L2/L3]]
9081 <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
9082 </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>
9087 Parents of subpages, two levels up, without trailing slash or name.
9089 subpage title=[[Subpage test/L1/L2/L3]]
9098 Parents of subpages, two levels up, with lots of extra trailing slashes.
9100 subpage title=[[Subpage test/L1/L2/L3]]
9104 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9109 Definition list code coverage
9115 <dl><dt> title  </dt><dd> def
9116 </dd><dt> title </dt><dd> def
9117 </dd><dt>title</dt><dd> def
9123 Don't fall for the self-closing div
9125 <div>hello world</div/>
9127 <div>hello world</div>
9136 <p>[[:Template:Msg]]
9145 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9149 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9151 Always escape literal '>' in output, not just after '<'
9165 <p>This is a test template
9166 This is a test template
9178 Inclusion of !userCanEdit() content
9182 <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>
9188 Out-of-order TOC heading levels
9197 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9199 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9201 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9202 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9205 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9207 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9208 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9213 <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>
9214 <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>
9215 <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>
9216 <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>
9217 <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>
9218 <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>
9224 ISBN with a dummy number
9234 ISBN with space-delimited number
9238 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9244 ISBN with multiple spaces, no number
9263 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9264 </p><p>ISBN 12345678901
9270 ISBN with trailing year (bug 8110)
9272 ISBN 1-234-56789-0 - 2006
9274 ISBN 1 234 56789 0 - 2006
9276 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9277 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9285 {{anchorencode:foo bar©#%n}}
9287 <p>foo_bar.C2.A9.23.25n
9292 anchorencode trims spaces
9294 {{anchorencode: __pretty__please__}}
9301 anchorencode deals with links
9303 {{anchorencode: [[hello|world]] [[hi]]}}
9310 anchorencode deals with templates
9312 {{anchorencode: {{Foo}} }}
9319 anchorencode encodes like the TOC generator: (bug 18431)
9321 === _ +:.3A%3A&&]] ===
9322 {{anchorencode: _ +:.3A%3A&&]] }}
9325 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9326 <p>.2B:.3A.253A.26.26.5D.5D
9330 # Expected output in the following test is not necessarily expected (there
9331 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9332 # only testing for well-formedness.
9334 Bug 6200: blockquotes and paragraph formatting
9354 Bug 8293: Use of center tag ruins paragraph formatting
9376 ### Language variants related tests
9379 Self-link in language variants
9381 title=[[Dunav]] language=sr
9383 Both [[Dunav]] and [[Дунав]] are names for this river.
9385 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9391 Link to pages in language variants
9395 Main Page can be written as [[Маин Паге]]
9397 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9403 Multiple links to pages in language variants
9407 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9409 <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>.
9415 Simple template in language variants
9421 <p>This is a test template
9427 Template with explicit namespace in language variants
9433 <p>This is a test template
9439 Basic test for template parameter in language variants
9443 {{парамтест|param=foo}}
9445 <p>This is a test template with parameter foo
9451 Simple category in language variants
9455 [[Category:МедиаWики Усер'с Гуиде]]
9457 <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>
9462 Stripping -{}- tags (language variants)
9466 Latin proverb: -{Ne nuntium necare}-
9468 <p>Latin proverb: Ne nuntium necare
9474 Prevent conversion with -{}- tags (language variants)
9476 language=sr variant=sr-ec
9478 Latinski: -{Ne nuntium necare}-
9480 <p>Латински: Ne nuntium necare
9486 Prevent conversion of text with -{}- tags (language variants)
9488 language=sr variant=sr-ec
9490 Latinski: -{Ne nuntium necare}-
9492 <p>Латински: Ne nuntium necare
9498 Prevent conversion of links with -{}- tags (language variants)
9500 language=sr variant=sr-ec
9504 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9510 -{}- tags within headlines (within html for parserConvert())
9512 language=sr variant=sr-ec
9516 <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>
9522 Explicit definition of language variant alternatives
9524 language=zh variant=zh-tw
9526 -{zh:China;zh-tw:Taiwan}-, not China
9528 <p>Taiwan, not China
9534 Explicit session-wise language variant mapping (A flag and - flag)
9536 language=zh variant=zh-tw
9538 Taiwan is not China.
9539 But -{A|zh:China;zh-tw:Taiwan}- is China,
9540 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9541 and -{China}- is China.
9543 <p>Taiwan is not China.
9544 But Taiwan is Taiwan,
9545 (This should be stripped!)
9551 Explicit session-wise language variant mapping (H flag for hide)
9553 language=zh variant=zh-tw
9555 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9558 <p>(This should be stripped!)
9564 Adding explicit conversion rule for title (T flag)
9566 language=zh variant=zh-tw showtitle
9568 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9571 <p>Should be stripped!
9576 Testing that changing the language variant here in the tests actually works
9578 language=zh variant=zh showtitle
9580 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9583 <p>Should be stripped!
9588 Bug 24072: more test on conversion rule for title
9590 language=zh variant=zh-tw showtitle
9592 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9593 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9596 <p>This should be stripped!
9597 This won't take interferes with the title rule.
9602 Raw output of variant escape tags (R flag)
9604 language=zh variant=zh-tw
9606 Raw: -{R|zh:China;zh-tw:Taiwan}-
9608 <p>Raw: zh:China;zh-tw:Taiwan
9613 Nested using of manual convert syntax
9615 language=zh variant=zh-hk
9617 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9619 <p>Nested: Hello Hong Kong!
9624 Do not convert roman numbers to language variants
9626 language=sr variant=sr-ec
9630 <p>Фридрих IV је цар.
9635 Unclosed language converter markup "-{"
9646 Don't convert raw rule "-{R|=>}-" to "=>"
9663 Bug 529: Uncovered bullet
9674 Bug 529: Uncovered table already at line-start
9697 Bug 529: Uncovered bullet in parser function result
9699 * Foo {{lc:{{bullet}} }}
9708 Bug 5678: Double-parsed template argument
9710 {{lc:{{{1}}}|hello}}
9717 Bug 5678: Double-parsed template invocation
9719 {{lc:{{paramtest {{!}} param = hello }} }}
9721 <p>{{paramtest | param = hello }}
9726 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9752 Morwen/13: Unclosed link followed by heading
9759 <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>
9764 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9771 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9776 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9783 <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>
9798 Paragraphs inside divs (no extra line breaks)
9810 Paragraphs inside divs (extra line break on open)
9825 Paragraphs inside divs (extra line break on close)
9840 Paragraphs inside divs (extra line break on open and close)
9857 Nesting tags, paragraphs on lines which begin with <div>
9861 <div></div><strong>A
9870 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9872 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9876 <blockquote>Line one
9878 Line two</blockquote>
9880 <blockquote>Line one
9881 Line two</blockquote>
9886 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9893 Line two</blockquote>
9898 Line two</blockquote>
9903 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9907 <blockquote>Line one
9912 <blockquote>Line one
9920 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9939 Paragraphs inside blockquotes/divs (no extra line breaks)
9941 <blockquote><div>Line one
9943 Line two</div></blockquote>
9945 <blockquote><div>Line one
9946 Line two</div></blockquote>
9951 Paragraphs inside blockquotes/divs (extra line break on open)
9956 Line two</div></blockquote>
9961 Line two</div></blockquote>
9966 Paragraphs inside blockquotes/divs (extra line break on close)
9968 <blockquote><div>Line one
9973 <blockquote><div>Line one
9981 Paragraphs inside blockquotes/divs (extra line break on open and close)
9998 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10000 wgLinkHolderBatchSize=0
10006 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10007 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10008 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10013 Free external link invading image caption
10015 [[Image:Foobar.jpg|thumb|http://x|hello]]
10017 <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>
10022 Bug 15196: localised external link numbers
10026 [http://en.wikipedia.org/]
10028 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10033 Multibyte character in padleft
10035 {{padleft:-Hello|7|Æ}}
10042 Multibyte character in padright
10044 {{padright:Hello-|7|Æ}}
10053 wgUseDynamicDates=1
10057 <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>
10062 formatdate parser function
10064 {{#formatdate:2009-03-24}}
10066 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10071 formatdate parser function, with default format
10073 {{#formatdate:2009-03-24|mdy}}
10075 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10080 Linked date with autoformatting disabled
10082 wgUseDynamicDates=false
10086 <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>
10091 Spacing of numbers in formatted dates
10093 {{#formatdate:January 15}}
10095 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10100 Spacing of numbers in formatted dates (linked)
10102 wgUseDynamicDates=true
10106 <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>
10111 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
10113 language=nl title=[[MediaWiki:Common.css]]
10115 {{#formatdate:2009-03-24|dmy}}
10117 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10130 Edit comment with link
10134 I like the [[Main Page]] a lot
10136 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10140 Edit comment with link and link text
10144 I like the [[Main Page|best pages]] a lot
10146 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10150 Edit comment with link and link text with suffix
10154 I like the [[Main Page|best page]]s a lot
10156 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10160 Edit comment with section link (non-local, eg in history list)
10162 comment title=[[Main Page]]
10164 /* External links */ removed bogus entries
10166 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10170 Edit comment with section link and text before it (non-local, eg in history list)
10172 comment title=[[Main Page]]
10174 pre-comment text /* External links */ removed bogus entries
10176 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>
10180 Edit comment with section link (local, eg in diff view)
10182 comment local title=[[Main Page]]
10184 /* External links */ removed bogus entries
10186 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10190 Edit comment with subpage link (bug 14080)
10194 title=[[Subpage test]]
10196 Poked at a [[/subpage]] here...
10198 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10202 Edit comment with subpage link and link text (bug 14080)
10206 title=[[Subpage test]]
10208 Poked at a [[/subpage|neat little page]] here...
10210 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10214 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10217 title=[[Subpage test]]
10219 Poked at a [[/subpage]] here...
10221 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10225 Edit comment with bare anchor link (local, as on diff)
10229 title=[[Main Page]]
10233 <a href="#section">#section</a>
10237 Edit comment with bare anchor link (non-local, as on history)
10240 title=[[Main Page]]
10244 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10248 Anchor starting with underscore
10252 <p><a href="#_ref">One</a>
10257 Id starting with underscore
10259 <div id="_ref"></div>
10261 <div id="_ref"></div>
10266 Space normalisation on autocomment (bug 22784)
10269 title=[[Main Page]]
10271 /* __hello__world__ */
10273 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10277 percent-encoding and + signs in comments (Bug 26410)
10281 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10283 <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>
10287 Bad images - basic functionality
10296 Bad images - bug 16039: text after bad image disappears
10310 Verify that displaytitle works (bug #22501) no displaytitle
10314 wgAllowDisplayTitle=true
10315 wgRestrictDisplayTitle=false
10317 this is not the the title
10320 <p>this is not the the title
10325 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10330 wgAllowDisplayTitle=true
10331 wgRestrictDisplayTitle=false
10333 this is not the the title
10334 {{DISPLAYTITLE:whatever}}
10337 <p>this is not the the title
10342 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10347 wgAllowDisplayTitle=true
10348 wgRestrictDisplayTitle=true
10350 this is not the the title
10351 {{DISPLAYTITLE:whatever}}
10354 <p>this is not the the title
10359 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10364 wgAllowDisplayTitle=true
10365 wgRestrictDisplayTitle=true
10367 this is not the the title
10368 {{DISPLAYTITLE:screen}}
10371 <p>this is not the the title
10376 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10381 wgAllowDisplayTitle=false
10383 this is not the the title
10384 {{DISPLAYTITLE:screen}}
10387 <p>this is not the the title
10388 <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>
10393 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10398 wgAllowDisplayTitle=false
10400 this is not the the title
10403 <p>this is not the the title
10408 preload: check <noinclude> and <includeonly>
10412 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10418 preload: check <onlyinclude>
10422 Goodbye <onlyinclude>Hello world</onlyinclude>
10428 preload: can pass tags through if we want to
10432 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10434 <includeonly>Hello world</includeonly>
10438 preload: check that it doesn't try to do tricks
10442 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10444 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10448 Play a bit with r67090 and bug 3158
10452 <div style="width:50% !important"> </div>
10453 <div style="width:50% !important"> </div>
10454 <div style="width:50% !important"> </div>
10455 <div style="border : solid;"> </div>
10457 <div style="width:50% !important"> </div>
10458 <div style="width:50% !important"> </div>
10459 <div style="width:50% !important"> </div>
10460 <div style="border : solid;"> </div>
10465 HTML5 data attributes
10467 <span data-foo="bar">Baz</span>
10468 <p data-abc-def_hij="">Quuz</p>
10470 <p><span data-foo="bar">Baz</span>
10472 <p data-abc-def_hij="">Quuz</p>
10477 percent-encoding and + signs in internal links (Bug 26410)
10479 [[User:+%]] [[Page+title%]]
10480 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10481 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10482 [[%33%45]] [[%33%45+]]
10484 <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>
10485 <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>
10486 <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>
10487 <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>
10492 Special characters in embedded file links (bug 27679)
10494 [[File:Contains & ampersand.jpg]]
10495 [[File:Does not exist.jpg|Title with & ampersand]]
10497 <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>
10498 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10504 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10506 Text's been normalized?
10508 <p>Text's been normalized?
10513 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10515 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10517 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10522 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10524 [http://www.example.org/ ideograms]
10526 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10531 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10533 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10535 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10559 Bug 31098 Template which includes system messages which includes the template
10563 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10564 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10569 Deprecated presentational attributes are converted to css
10572 | valign=top align=left width=100 height=25% | Asdf
10574 <ul type="disc"></ul>
10578 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10580 <ul style="list-style-type: disc;"></ul>
10585 Bug31490 Turkish: ucfirst 'blah'
10596 Bug31490 Turkish: ucfirst 'ix'
10607 Bug31490 Turkish: lcfirst 'BLAH'
10618 Bug31490 Turkish: ucfırst (with a dotless i)
10624 <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>
10629 Bug31490 ucfırst (with a dotless i) with English language
10635 <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>
10640 Bug 26375: TOC with italics
10642 title=[[Main Page]]
10645 == ''Lost'' episodes ==
10647 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10649 <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>
10652 <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>
10657 Bug 26375: TOC with bold
10659 title=[[Main Page]]
10662 == '''should be bold''' then normal text ==
10664 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10666 <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>
10669 <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>
10674 Bug 33845: Headings become cursive in TOC when they contain an image
10676 title=[[Main Page]]
10679 == Image [[Image:foobar.jpg]] ==
10681 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10683 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10686 <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>
10691 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10693 title=[[Main Page]]
10696 == <blockquote>Quote</blockquote> ==
10698 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10700 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10703 <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>
10708 Unclosed tags in TOC
10710 title=[[Main Page]]
10714 <small>Hanc marginis exiguitas non caperet.</small>
10717 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10719 <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>
10722 <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>
10723 <p><small>Hanc marginis exiguitas non caperet.</small>
10729 Multiple tags in TOC
10732 == <i>Foo</i> <b>Bar</b> ==
10734 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10736 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10738 <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>
10739 <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>
10742 <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>
10743 <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>
10748 Tags with parameters in TOC
10751 == <sup class="in-h2">Hello</sup> ==
10753 == <sup class="a > b">Evilbye</sup> ==
10755 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10757 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10758 <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>
10761 <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>
10762 <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>
10767 span tags with directionality in TOC
10770 == <span dir="ltr">C++</span> ==
10772 == <span dir="rtl">זבנג!</span> ==
10774 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10776 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10778 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10780 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10782 <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>
10783 <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>
10784 <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>
10785 <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>
10786 <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>
10789 <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>
10790 <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>
10791 <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>
10792 <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>
10793 <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>
10800 == {{int:headline_sample}} ==
10804 Bug 32057: Title needed when expanding <h> nodes.
10806 title=[[Main Page]]
10810 <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>
10815 Strip marker in urlencode
10817 {{urlencode:x<nowiki/>y}}
10818 {{urlencode:x<nowiki/>y|wiki}}
10819 {{urlencode:x<nowiki/>y|path}}
10846 Strip marker in formatNum
10848 {{formatnum:1<nowiki/>2}}
10849 {{formatnum:1<nowiki/>2|R}}
10857 Strip marker in grammar
10861 {{grammar:elative|foo<nowiki/>bar}}
10868 Strip marker in padleft
10870 {{padleft:|2|x<nowiki/>y}}
10877 Strip marker in padright
10879 {{padright:|2|x<nowiki/>y}}
10886 Strip marker in anchorencode
10888 {{anchorencode:x<nowiki/>y}}
10895 nowiki inside link inside heading (bug 18295)
10897 ==[[foo|x<nowiki>y</nowiki>z]]==
10899 <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>
10904 new support for bdi element (bug 31817)
10906 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10908 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10913 Ignore pipe between table row attributes
10917 |- id=foo | style='color: red'
10925 <tr id="foo" style="color: red">
10932 Gallery override link with WikiLink (bug 34852)
10935 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10938 <ul class="gallery">
10939 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10940 <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>
10941 <div class="gallerytext">
10951 Gallery override link with absolute external link (bug 34852)
10954 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10957 <ul class="gallery">
10958 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10959 <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>
10960 <div class="gallerytext">
10970 Gallery override link with malicious javascript (bug 34852)
10973 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10976 <ul class="gallery">
10977 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10978 <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>
10979 <div class="gallerytext">
10989 Language parser function
10998 Padleft and padright as substr
11000 {{padleft:|3|abcde}}
11001 {{padright:|3|abcde}}
11009 Bug 34939 - Case insensitive link parsing ([HttP://])
11011 [HttP://MediaWiki.Org/]
11013 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11018 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11020 [HttP://MediaWiki.Org/ MediaWiki]
11022 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11027 Bug 34939 - Case insensitive link parsing (HttP://)
11029 HttP://MediaWiki.Org/
11031 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11041 Try for 100% code coverage