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]]
81 This is a simple paragraph.
83 <p>This is a simple paragraph.
88 Paragraphs with extra newline spacing
126 * plain''italic''plain
127 * plain''italic''plain''italic''plain
128 * plain'''bold'''plain
129 * plain'''bold'''plain'''bold'''plain
130 * plain''italic''plain'''bold'''plain
131 * plain'''bold'''plain''italic''plain
132 * plain''italic'''bold-italic'''italic''plain
133 * plain'''bold''bold-italic''bold'''plain
134 * plain'''''bold-italic'''italic''plain
135 * plain'''''bold-italic''bold'''plain
136 * plain''italic'''bold-italic'''''plain
137 * plain'''bold''bold-italic'''''plain
138 * plain l'''italic''plain
139 * plain l''''bold''' plain
142 </li><li> plain<i>italic</i>plain
143 </li><li> plain<i>italic</i>plain<i>italic</i>plain
144 </li><li> plain<b>bold</b>plain
145 </li><li> plain<b>bold</b>plain<b>bold</b>plain
146 </li><li> plain<i>italic</i>plain<b>bold</b>plain
147 </li><li> plain<b>bold</b>plain<i>italic</i>plain
148 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
149 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
150 </li><li> plain<i><b>bold-italic</b>italic</i>plain
151 </li><li> plain<b><i>bold-italic</i>bold</b>plain
152 </li><li> plain<i>italic<b>bold-italic</b></i>plain
153 </li><li> plain<b>bold<i>bold-italic</i></b>plain
154 </li><li> plain l'<i>italic</i>plain
155 </li><li> plain l'<b>bold</b> plain
161 ### 2-quote opening sequence tests
164 Italics and bold: 2-quote opening sequence: (2,2)
174 Italics and bold: 2-quote opening sequence: (2,3)
184 Italics and bold: 2-quote opening sequence: (2,4)
194 Italics and bold: 2-quote opening sequence: (2,5)
204 ### 3-quote opening sequence tests
208 Italics and bold: 3-quote opening sequence: (3,2)
218 Italics and bold: 3-quote opening sequence: (3,3)
228 Italics and bold: 3-quote opening sequence: (3,4)
238 Italics and bold: 3-quote opening sequence: (3,5)
248 ### 4-quote opening sequence tests
252 Italics and bold: 4-quote opening sequence: (4,2)
262 Italics and bold: 4-quote opening sequence: (4,3)
272 Italics and bold: 4-quote opening sequence: (4,4)
282 Italics and bold: 4-quote opening sequence: (4,5)
292 ### 5-quote opening sequence tests
296 Italics and bold: 5-quote opening sequence: (5,2)
306 Italics and bold: 5-quote opening sequence: (5,3)
316 Italics and bold: 5-quote opening sequence: (5,4)
320 <p><i><b>foo'</b></i>
326 Italics and bold: 5-quote opening sequence: (5,5)
335 ### multiple quote sequences in a line
338 Italics and bold: multiple quote sequences: (2,4,2)
342 <p><i>foo'<b>bar</b></i>
348 Italics and bold: multiple quote sequences: (2,4,3)
352 <p><i>foo'<b>bar</b></i>
358 Italics and bold: multiple quote sequences: (2,4,4)
362 <p><i>foo'<b>bar'</b></i>
368 Italics and bold: multiple quote sequences: (3,4,2)
378 Italics and bold: multiple quote sequences: (3,4,3)
387 ### other quote tests
390 Italics and bold: other quote tests: (2,3,5)
392 ''this is about '''foo's family'''''
394 <p><i>this is about <b>foo's family</b></i>
400 Italics and bold: other quote tests: (2,(3,3),2)
402 ''this is about '''foo's''' family''
404 <p><i>this is about <b>foo's</b> family</i>
410 Italics and bold: other quote tests: (3,2,3,2)
412 '''this is about ''foo'''s family''
414 <p><b>this is about <i>foo</i></b><i>s family</i>
420 Italics and bold: other quote tests: (3,2,3,3)
422 '''this is about ''foo'''s family'''
424 <p>'<i>this is about </i>foo<b>s family</b>
431 Italics and bold: other quote tests: (3,(2,2),3)
433 '''this is about ''foo's'' family'''
435 <p><b>this is about <i>foo's</i> family</b>
440 ### <nowiki> test cases
444 <nowiki> unordered list
446 <nowiki>* This is not an unordered list item.</nowiki>
448 <p>* This is not an unordered list item.
455 <nowiki>Lorem ipsum dolor
476 :There is not nowiki.
477 :There is <nowiki>nowiki</nowiki>.
479 #There is not nowiki.
480 #There is <nowiki>nowiki</nowiki>.
482 *There is not nowiki.
483 *There is <nowiki>nowiki</nowiki>.
485 <dl><dd>There is not nowiki.
486 </dd><dd>There is nowiki.
488 <ol><li>There is not nowiki.
489 </li><li>There is nowiki.
491 <ul><li>There is not nowiki.
492 </li><li>There is nowiki.
504 <!-- comment 1 --> asdf
553 asdf<!-- comment 1 -->jkl
563 <!-- foo --> b <!-- bar -->
577 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
583 Comment semantics and delimiters
585 <!-- --><!----><!-----><!------>
591 Comment semantics and delimiters, redux
593 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
594 -- foo -- funky huh? ... -->
600 Comment semantics and delimiters: directors cut
602 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
603 everything starting with < followed by !-- until the first -- and > we see,
604 that wouldn't be valid XML however, since in XML -- has to terminate a comment
612 Comment semantics: nesting
614 <!--<!-- no, we're not going to do anything fancy here -->-->
621 Comment semantics: unclosed comment at end
623 <!--This comment will run out to the end of the document
629 Comment in template title
638 Comment on its own line post-expand
650 Comment on its own line post-expand with non-significant whitespace
662 ### paragraph wraping tests
676 Block tag on one line
688 Block tag on both lines
700 Multiple lines without block tags
718 ### Preformatted text
727 And a [[Main Page|link]]
733 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
738 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
755 Regression with preformatted in <center>
768 # Expected output in the following test is not really expected (there should be
769 # <pre> in the output) -- it's only testing for well-formedness.
771 Bug 6200: Preformatted in <blockquote>
784 <pre> with attributes (bug 3202)
786 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
788 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
793 <pre> with width attribute (bug 3202)
795 <pre width="8">Narrow screen goodies</pre>
797 <pre width="8">Narrow screen goodies</pre>
802 <pre> with forbidden attribute (bug 3202)
804 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
806 <pre width="8">Narrow screen goodies</pre>
811 <pre> with forbidden attribute values (bug 3202)
813 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
815 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
820 <nowiki> inside <pre> (bug 13238)
828 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
836 <pre><nowiki>Foo</nowiki></pre>
841 <nowiki> and <pre> preference (first one wins)
880 <dl><dt> name </dt><dd> Definition
886 Definition list for indentation only
890 <dl><dd> Indented text
896 Definition list with no space
900 <dl><dt>name</dt><dd>Definition
906 Definition list with URL link
908 ; http://example.com/ : definition
910 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
916 Definition list with bracketed URL link
918 ;[http://www.example.com/ Example]:Something about it
920 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
926 Definition list with wikilink containing colon
928 ; [[Help:FAQ]]: The least-read page on Wikipedia
930 <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
935 # At Brion's and JeLuF's insistence... :)
937 Definition list with news link containing colon
939 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
941 <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!
947 Malformed definition list with colon
949 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
951 <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
957 Definition lists: colon in external link text
959 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
961 <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
967 Definition lists: colon in HTML attribute
969 ;<b style="display: inline">bold</b>
971 <dl><dt><b style="display: inline">bold</b>
978 Definition lists: self-closed tag
980 ;one<br/>two : two-line fun
982 <dl><dt>one<br />two </dt><dd> two-line fun
988 Bug 11748: Literal closing tags
994 <dd>test test test test test</dd>
996 <dd>test test test test test</dd>
1001 <dd>test test test test test</dd>
1003 <dd>test test test test test</dd>
1008 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1011 ; term : description
1017 <dl><dt> term </dt><dd> description
1027 Definition list with empty definition and following paragraph
1032 <dl><dt> term</dt><dd>
1039 Definition Lists: No nesting: Multiple dd's
1053 Definition Lists: Indentation: Regular
1069 Definition Lists: Indentation: Missing 1st level
1083 Definition Lists: Indentation: Multi-level indent
1087 <dl><dd><dl><dd><dl><dd>i3
1094 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1095 ## as an empty dt item. It also ignores all but the last ";" when followed
1096 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1097 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1100 ## Ex: ";;t2 ::d2" is transformed into:
1112 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1113 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1124 ## All Parsoid only definition list tests have this difference.
1126 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1127 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1130 Definition Lists: Nesting: Multi-level (Parsoid only)
1160 Definition Lists: Nesting: Test 2 (Parsoid only)
1180 Definition Lists: Nesting: Test 3 (Parsoid only)
1208 Definition Lists: Nesting: Test 4
1213 <dl><dd><dl><dd><dl><dt>t3
1223 Definition Lists: Mixed Lists: Test 1
1229 <dl><dd><dl><dt><ul><li> foo
1241 Definition Lists: Mixed Lists: Test 2
1255 Definition Lists: Mixed Lists: Test 3
1260 <ul><li><dl><dd><dl><dd><dl><dd> d1
1271 Definition Lists: Mixed Lists: Test 4
1276 <ul><li><dl><dt>d1 </dt><dd>d2
1277 </dd><dt>d3 </dt><dd>d4
1285 Definition Lists: Mixed Lists: Test 5
1300 Definition Lists: Mixed Lists: Test 6
1305 <ol><li><ul><li><dl><dd>d1
1317 Definition Lists: Mixed Lists: Test 7
1331 Definition Lists: Mixed Lists: Test 8
1347 Definition Lists: Mixed Lists: Test 9
1351 <ul><li><dl><dt>foo </dt><dd>bar
1359 Definition Lists: Mixed Lists: Test 10
1363 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1372 Definition Lists: Mixed Lists: Test 11
1377 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1382 <dl><dt>boo </dt><dd>baz
1393 Definition Lists: Weird Ones: Test 1
1395 *#;*::;; foo : bar (who uses this?)
1397 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1413 External links: non-bracketed
1415 Non-bracketed: http://example.com
1417 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1422 External links: numbered
1424 Numbered: [http://example.com]
1425 Numbered: [http://example.net]
1426 Numbered: [http://example.com]
1428 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1429 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1430 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1435 External links: specified text
1437 Specified text: [http://example.com link]
1439 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1444 External links: trail
1446 Linktrails should not work for external links: [http://example.com link]s
1448 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1453 External links: dollar sign in URL
1455 http://example.com/1$2345
1457 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1462 External links: dollar sign in URL (named)
1464 [http://example.com/1$2345]
1466 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1471 External links: open square bracket forbidden in URL (bug 4377)
1473 http://example.com/1[2345
1475 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1480 External links: open square bracket forbidden in URL (named) (bug 4377)
1482 [http://example.com/1[2345]
1484 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1489 External links: nowiki in URL link text (bug 6230)
1491 [http://example.com/ <nowiki>''example site''</nowiki>]
1493 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1498 External links: newline forbidden in text (bug 6230 regression check)
1500 [http://example.com/ first
1503 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1509 External links: protocol-relative URL in brackets
1511 [//example.com/ Test]
1513 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1518 External links: protocol-relative URL in brackets without text
1522 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1527 External links: protocol-relative URL in free text is left alone
1531 <p>//example.com/Foo
1536 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1538 foo//example.com/Foo
1540 <p>foo//example.com/Foo
1547 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1549 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1554 External image from https
1556 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1558 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1563 Link to non-http image, no img tag
1565 Link to non-http image, no img tag: ftp://example.com/test.jpg
1567 <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>
1572 External links: terminating separator
1574 Terminating separator: http://example.com/thing,
1576 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1581 External links: intervening separator
1583 Intervening separator: http://example.com/1,2,3
1585 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1590 External links: old bug with URL in query
1592 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1594 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1599 External links: old URL-in-URL bug, mixed protocols
1601 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1603 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1608 External links: URL in text
1610 URL in text: [http://example.com http://example.com]
1612 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1617 External links: Clickable images
1619 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1621 <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>
1626 External links: raw ampersand
1628 Old & use: http://x&y
1630 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1635 External links: encoded ampersand
1637 Old & use: http://x&y
1639 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1644 External links: encoded equals (bug 6102)
1646 http://example.com/?foo=bar
1648 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1653 External links: [raw ampersand]
1655 Old & use: [http://x&y]
1657 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1662 External links: [encoded ampersand]
1664 Old & use: [http://x&y]
1666 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1671 External links: [encoded equals] (bug 6102)
1673 [http://example.com/?foo=bar]
1675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1680 External links: [IDN ignored character reference in hostname; strip it right off]
1682 [http://e‌xample.com/]
1684 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1688 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1689 # Where an external link could easily circumvent the sanitization of the text of
1690 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1691 # test demands a higher standard. That's a bit strange.
1695 # http://example.com -> [http://example.com|http://example.com]
1696 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1698 # The first example is sanitized, but the second is not. Any security benefits
1699 # from this production are trivial to circumvent. Either remove this test and
1700 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1701 # the test accordingly.
1706 External links: IDN ignored character reference in hostname; strip it right off
1708 http://e‌xample.com/
1710 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1715 External links: www.jpeg.org (bug 554)
1719 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1724 External links: URL within URL (original bug 2)
1726 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1728 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1733 BUG 361: URL inside bracketed URL
1735 [http://www.example.com/foo http://www.example.com/bar]
1737 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1742 BUG 361: URL within URL, not bracketed
1744 http://www.example.com/foo?=http://www.example.com/bar
1746 <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>
1751 BUG 289: ">"-token in URL-tail
1753 http://www.example.com/<hello>
1755 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1760 BUG 289: literal ">"-token in URL-tail
1762 http://www.example.com/<b>html</b>
1764 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1769 BUG 289: ">"-token in bracketed URL
1771 [http://www.example.com/<hello> stuff]
1773 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1778 BUG 289: literal ">"-token in bracketed URL
1780 [http://www.example.com/<b>html</b> stuff]
1782 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1787 BUG 289: literal double quote at end of URL
1789 http://www.example.com/"hello"
1791 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1796 BUG 289: literal double quote in bracketed URL
1798 [http://www.example.com/"hello" stuff]
1800 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1805 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1807 [http://www.example.com test]
1809 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1814 External links: wiki links within external link (Bug 3695)
1816 [http://example.com [[wikilink]] embedded in ext link]
1818 <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>
1823 BUG 787: Links with one slash after the url protocol are invalid
1827 [http:/example.com title]
1829 <p>http:/example.com
1830 </p><p>[http:/example.com title]
1835 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1837 ''[http://example.com text'']
1838 [http://example.com '''text]'''
1839 ''Something [http://example.com in italic'']
1840 ''Something [http://example.com mixed''''', even bold]'''
1841 '''''Now [http://example.com both''''']
1843 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1844 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1845 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1846 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1847 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1853 Bug 4781: %26 in URL
1855 http://www.example.com/?title=AT%26T
1857 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1861 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1862 # % is actually legal in HTML5. Any change in output would need testing though.
1864 Bug 4781, 5267: %25 in URL
1866 http://www.example.com/?title=100%25_Bran
1868 <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>
1873 Bug 4781, 5267: %28, %29 in URL
1875 http://www.example.com/?title=Ben-Hur_%281959_film%29
1877 <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>
1883 Bug 4781: %26 in autonumber URL
1885 [http://www.example.com/?title=AT%26T]
1887 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1892 Bug 4781, 5267: %26 in autonumber URL
1894 [http://www.example.com/?title=100%25_Bran]
1896 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1901 Bug 4781, 5267: %28, %29 in autonumber URL
1903 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1905 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1911 Bug 4781: %26 in bracketed URL
1913 [http://www.example.com/?title=AT%26T link]
1915 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1920 Bug 4781, 5267: %26 in bracketed URL
1922 [http://www.example.com/?title=100%25_Bran link]
1924 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1929 Bug 4781, 5267: %28, %29 in bracketed URL
1931 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1933 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1938 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1940 Some [http://example.com/ pretty ''italics'' and stuff]!
1942 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1947 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1949 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1951 <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>
1956 External link containing double-single-quotes with no space separating the url from text in italics
1958 [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]].]
1960 <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>
1965 URL-encoding in URL functions (single parameter)
1967 {{localurl:Some page|amp=&}}
1969 <p>/index.php?title=Some_page&amp=&
1974 URL-encoding in URL functions (multiple parameters)
1976 {{localurl:Some page|q=?&=&}}
1978 <p>/index.php?title=Some_page&q=?&amp=&
1985 http://example.com/index.php?foozoid%5B%5D=bar
1987 http://example.com/index.php?foozoid[]=bar
1989 <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>
1990 </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>
1995 IPv6 urls (bug 21261)
1999 http://[2404:130:0:1000::187:2]/index.php
2001 <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>
2012 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2014 Normal text. '''''Bold italic text.''''' Normal text.
2016 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2017 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2023 Unclosed and unmatched quotes
2025 '''''Bold italic text '''with bold deactivated''' in between.'''''
2027 '''''Bold italic text ''with italic deactivated'' in between.'''''
2031 ..spanning two paragraphs (should not work).'''
2033 '''Bold tag left open
2035 ''Italic tag left open
2039 <!-- Unmatching number of opening, closing tags: -->
2040 '''This year''''s election ''should'' beat '''last year''''s.
2042 ''Tom'''s car is bigger than ''Susan'''s.
2044 Plain ''italic'''s plain
2046 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2047 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2048 </p><p><b>Bold text..</b>
2049 </p><p>..spanning two paragraphs (should not work).
2050 </p><p><b>Bold tag left open</b>
2051 </p><p><i>Italic tag left open</i>
2053 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2054 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2055 </p><p>Plain <i>italic'</i>s plain
2062 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2065 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2066 # is the bare minimun required by the spec, see:
2067 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2069 A table with no data.
2075 # A table with nothing but a caption is invalid XHTML, we might want to render
2076 # this as <p>caption</p>
2078 A table with nothing but a caption
2086 </caption><tr><td></td></tr></table>
2112 Multiplication table
2114 {| border="1" cellpadding="2"
2115 |+Multiplication table
2117 ! × !! 1 !! 2 !! 3
2135 <table border="1" cellpadding="2">
2136 <caption>Multiplication table
2187 |rowspan=2| Cell 2, row 1 (and 2)
2198 <td rowspan="2"> Cell 2, row 1 (and 2)
2216 {| bgcolor=#ABCDEF border=2
2221 |the original table again
2229 <table bgcolor="#ABCDEF" border="2">
2237 <td>the original table again
2243 Invalid attributes in table cell (bug 1830)
2258 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2261 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2265 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2266 <td>]" onmouseover="alert(document.cookie)">test
2275 Indented table markup mixed with indented pre content (proposed in bug 6200)
2280 Text that should be rendered preformatted
2288 <pre>Text that should be rendered preformatted
2301 Plain link, capitalized
2305 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2310 Plain link, uncapitalized
2314 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2321 [[Main Page|The Main Page]]
2323 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2332 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2337 Broken link with fragment
2339 [[Zigzagzogzagzig#zug]]
2341 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2346 Special page link with fragment
2348 [[Special:Version#anchor]]
2350 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2355 Nonexistent special page link with fragment
2357 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2359 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2366 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2368 <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>
2375 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2377 <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>!!!
2382 Link with 3 brackets
2391 Piped link with 3 brackets
2393 [[[main page|the main page]]]
2395 <p>[[[main page|the main page]]]
2400 Link with multiple pipes
2402 [[Main Page|The|Main|Page]]
2404 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2411 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2413 <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>
2418 Piped link to namespace
2420 [[Meta:Disclaimers|The disclaimers]]
2422 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2429 [[Usually caused by a typo (oops}]]
2431 <p>[[Usually caused by a typo (oops}]]
2436 Link containing % (not as a hex sequence)
2440 <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>
2445 Link containing % as a single hex sequence interpreted to char
2449 <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>
2454 Link containing % as a double hex sequence interpreted to hex sequence
2458 <p>[[7%2525 Solution]]
2463 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2464 Example for such a section: == < ==
2466 [[%23%3c]][[%23%3e]]
2468 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2473 Link containing "<#" and ">#" as a hex sequences
2475 [[%3c%23]][[%3e%23]]
2477 <p>[[%3c%23]][[%3e%23]]
2482 Link containing double-single-quotes '' (bug 4598)
2484 [[Lista d''e paise d''o munno]]
2486 <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>
2491 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2493 Some [[Link|pretty ''italics'' and stuff]]!
2495 <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>!
2500 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2502 ''Some [[Link|pretty ''italics'' and stuff]]!
2504 <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>
2509 Link with double quotes in title part (literal) and alternate part (interpreted)
2511 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2515 [[''Pentecoste''|Pentecoste]]
2517 [[''Pentecoste''|''Pentecoste'']]
2519 <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>
2520 </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>
2521 </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>
2522 </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>
2527 Broken image links with HTML captions (bug 39700)
2529 [[File:Nonexistent|<script></script>]]
2530 [[File:Nonexistent|100px|<script></script>]]
2531 [[File:Nonexistent|<]]
2532 [[File:Nonexistent|a<i>b</i>c]]
2534 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2535 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2536 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2537 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2544 [[http://www.example.com]]
2546 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2551 Plain link to URL with link text
2553 [[http://www.example.com Link text]]
2555 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2560 Plain link to protocol-relative URL
2562 [[//www.example.com]]
2564 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2569 Plain link to protocol-relative URL with link text
2571 [[//www.example.com Link text]]
2573 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2578 # I'm fairly sure the expected result here is wrong.
2579 # We want these to be URL links, not pseudo-pages with URLs for titles....
2580 # However the current output is also pretty screwy.
2583 # I'm changing it to match the current output--it arguably makes more
2584 # sense in the light of the test above. Old expected result was:
2585 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2587 # But I think this test is bordering on "garbage in, garbage out" anyway.
2592 Piped link to URL: [[http://www.example.com|an example URL]]
2594 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2599 BUG 2: [[page|http://url/]] should link to page, not http://url/
2601 [[Main Page|http://url/]]
2603 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2608 BUG 337: Escaped self-links should be bold
2612 [[Bug462]] [[Bug462]]
2614 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2619 Self-link to section should not be bold
2623 [[Main Page#section]]
2625 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2636 Self-link to numeric title
2642 <p><strong class="selflink">0</strong>
2647 Link to numeric-equivalent title
2653 <p><a href="/wiki/00" title="00">00</a>
2658 <nowiki> inside a link
2660 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2662 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2667 Non-breaking spaces in title
2669 [[ Main Page ]]
2671 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2676 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2682 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2687 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2693 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2698 Internal link with en linktrail: no apostrophes (bug 27473)
2704 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2709 Internal link with ca linktrail with apostrophes (bug 27473)
2715 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2720 Internal link with kaa linktrail with apostrophes (bug 27473)
2726 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2731 ### Interwiki links (see maintenance/interwiki.sql)
2735 Inline interwiki link
2737 [[MeatBall:SoftSecurity]]
2739 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2744 Inline interwiki link with empty title (bug 2372)
2748 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2753 Interwiki link encoding conversion (bug 1636)
2755 *[[Wikipedia:ro:Olteniţa]]
2756 *[[Wikipedia:ro:Olteniţa]]
2758 <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>
2759 </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>
2765 Interwiki link with fragment (bug 2130)
2767 [[MeatBall:SoftSecurity#foo]]
2769 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2784 Double interlanguage link
2795 Interlanguage link, with prefix links
2807 Double interlanguage link, with prefix links (bug 8897)
2834 Incorrecly removing closing slashes from correctly formed XHTML
2836 <br style="clear:both;" />
2838 <p><br style="clear:both;" />
2843 Failing to transform badly formed HTML into correct XHTML
2845 <br style="clear: left;">
2846 <br style="clear: right;">
2847 <br style="clear: both;">
2849 <p><br style="clear: left;" />
2850 <br style="clear: right;" />
2851 <br style="clear: both;" />
2856 Horizontal ruler (should it add that extra space?)
2870 Horizontal ruler -- 4+ dashes render hr
2879 Horizontal ruler -- eats additional dashes on the same line
2888 Horizontal ruler -- does not collaps dashes on consecutive lines
2899 Horizontal ruler -- <4 dashes render as plain text
2908 ### Block-level elements
2931 <ol><li>Numbered list
2948 ***#Number on level 4
2950 **#Number on level 3
2951 **#Number on level 3
2955 #** Level 3, but ordered
2958 <ol><li> with numbers
2960 <ul><li> and bullets
2962 <ol><li> and numbers
2964 </li><li>bullets again
2965 <ul><li>bullet level 2
2966 <ul><li>bullet level 3
2967 <ol><li>Number on level 4
2970 </li><li>bullet level 2
2971 <ol><li>Number on level 3
2972 </li><li>Number on level 3
2975 <ol><li>number level 2
2978 <ul><li><ul><li> Level 3
2982 <ol><li><ul><li><ul><li> Level 3, but ordered
3016 Nested lists 3 (first element empty)
3029 Nested lists 4 (first element empty)
3042 Nested lists 5 (both elements empty)
3055 Nested lists 6 (both elements empty)
3068 Nested lists 7 (skip initial nesting levels)
3072 <ul><li><ul><li><ul><li> foo
3080 Nested lists 8 (multiple nesting transitions)
3088 <ul><li><ul><li> bar
3099 List items are not parsed correctly following a <pre> block (bug 785)
3105 <ul><li> <pre>foo</pre>
3106 </li><li> <pre>bar</pre>
3113 List items from template
3124 * notSOL{{inner list}}
3143 List interrupted by empty line or heading
3153 <ul><li><ul><li> bar
3156 <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>
3157 <ul><li> Another list item
3168 Magic Word: {{CURRENTDAY}}
3177 Magic Word: {{CURRENTDAY2}}
3186 Magic Word: {{CURRENTDAYNAME}}
3195 Magic Word: {{CURRENTDOW}}
3204 Magic Word: {{CURRENTMONTH}}
3213 Magic Word: {{CURRENTMONTHABBREV}}
3215 {{CURRENTMONTHABBREV}}
3222 Magic Word: {{CURRENTMONTHNAME}}
3224 {{CURRENTMONTHNAME}}
3231 Magic Word: {{CURRENTMONTHNAMEGEN}}
3233 {{CURRENTMONTHNAMEGEN}}
3240 Magic Word: {{CURRENTTIME}}
3249 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3258 Magic Word: {{CURRENTYEAR}}
3267 Magic Word: {{FULLPAGENAME}}
3269 title=[[User:Ævar Arnfjörð Bjarmason]]
3273 <p>User:Ævar Arnfjörð Bjarmason
3278 Magic Word: {{FULLPAGENAMEE}}
3280 title=[[User:Ævar Arnfjörð Bjarmason]]
3284 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3289 Magic Word: {{NAMESPACE}}
3291 title=[[User:Ævar Arnfjörð Bjarmason]]
3300 Magic Word: {{NAMESPACEE}}
3302 title=[[User:Ævar Arnfjörð Bjarmason]]
3311 Magic Word: {{NAMESPACENUMBER}}
3313 title=[[User:Ævar Arnfjörð Bjarmason]]
3322 Magic Word: {{NUMBEROFFILES}}
3331 Magic Word: {{PAGENAME}}
3333 title=[[User:Ævar Arnfjörð Bjarmason]]
3337 <p>Ævar Arnfjörð Bjarmason
3342 Magic Word: {{PAGENAME}} with metacharacters
3344 title=[['foo & bar = baz']]
3348 <p><i>'foo & bar = baz'</i>
3353 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3355 title=[[*RFC 1234 http://example.com/]]
3359 <p>*RFC 1234 http://example.com/
3364 Magic Word: {{PAGENAMEE}}
3366 title=[[User:Ævar Arnfjörð Bjarmason]]
3370 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3375 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3377 title=[[*RFC 1234 http://example.com/]]
3381 <p>*RFC_1234_http://example.com/
3386 Magic Word: {{REVISIONID}}
3395 Magic Word: {{SCRIPTPATH}}
3404 Magic Word: {{SERVER}}
3408 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3413 Magic Word: {{SERVERNAME}}
3422 Magic Word: {{SITENAME}}
3431 Namespace 1 {{ns:1}}
3440 Namespace 1 {{ns:01}}
3449 Namespace 0 {{ns:0}} (bug 4783)
3457 Namespace 0 {{ns:00}} (bug 4783)
3465 Namespace -1 {{ns:-1}}
3474 Namespace User {{ns:User}}
3483 Namespace User talk {{ns:User_talk}}
3492 Namespace User talk {{ns:uSeR tAlK}}
3501 Namespace File {{ns:File}}
3510 Namespace File {{ns:Image}}
3519 Namespace (lang=de) Benutzer {{ns:User}}
3530 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3536 <p>Benutzer Diskussion
3544 {{urlencode:hi world?!}}
3545 {{urlencode:hi world?!|WIKI}}
3546 {{urlencode:hi world?!|PATH}}
3547 {{urlencode:hi world?!|QUERY}}
3560 Magic links: internal link to RFC (bug 479)
3564 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3569 Magic links: RFC (bug 479)
3573 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3578 Magic links: ISBN (bug 1937)
3582 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3587 Magic links: PMID incorrectly converts space to underscore
3591 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3600 Nonexistent template
3602 {{thistemplatedoesnotexist}}
3604 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3611 This is a test template
3619 <p>This is a test template
3624 Template with explicit namespace
3628 <p>This is a test template
3636 This is a test template with parameter {{{param}}}
3642 {{paramtest|param=foo}}
3644 <p>This is a test template with parameter foo
3649 Template:paramtestnum
3655 Template unnamed parameter
3657 {{paramtestnum|Main Page|the main page}}
3659 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3664 Template:templatesimple
3670 Template:templateredirect
3672 #redirect [[Template:templatesimple]]
3676 Template:templateasargtestnum
3682 Template:templateasargtest
3684 {{template{{{templ}}}}}
3688 Template:templateasargtest2
3694 Template with template name as unnamed argument
3696 {{templateasargtestnum|templatesimple}}
3703 Template with template name as argument
3705 {{templateasargtest|templ=simple}}
3712 Template with template name as argument (2)
3714 {{templateasargtest2|templ=templatesimple}}
3721 Template:templateasargtestdefault
3723 {{{{{templ|templatesimple}}}}}
3733 Template with default value
3735 {{templateasargtestdefault}}
3742 Template with default value (value set)
3744 {{templateasargtestdefault|templ=templa}}
3753 {{templateredirect}}
3760 Template with argument in separate line
3762 {{ templateasargtest |
3770 Template with complex template as argument
3773 param ={{ templateasargtest |
3776 <p>This is a test template with parameter (test)
3781 Template with thumb image (with link in description)
3784 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3786 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>
3791 Template:complextemplate
3793 {{{1}}} {{paramtest|
3794 param ={{{param}}}}}
3798 Template with complex arguments
3801 param ={{ templateasargtest |
3802 templ = simple }}|[[Template:complextemplate|link]]}}
3804 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3809 BUG 553: link with two variables in a piped link
3812 |[[{{{1}}}|{{{2}}}]]
3817 <td>[[{{{1}}}|{{{2}}}]]
3823 Magic variable as template parameter
3825 {{paramtest|param={{SITENAME}}}}
3827 <p>This is a test template with parameter MediaWiki
3834 [[{{{param}}}|link]]
3838 Template parameter as link source
3840 {{linktest|param=Main Page}}
3842 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3850 including another template, {{paramtest|param={{{arg}}}}}
3854 Template passing argument to another template
3856 {{paramtest2|arg='hmm'}}
3858 <p>including another template, This is a test template with parameter 'hmm'
3869 Template as link source
3873 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3891 Template infinite loop
3895 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3900 Template from main namespace
3919 BUG 529: Template with table, not included at beginning of line
3938 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3958 BUG 41: Template parameters shown as broken links
3970 ''None'' of '''this''' should be
3972 but rather passed unmodified
3976 # hmm, fix this or just deprecate msgnw and document its behavior?
3982 {{msgnw:MSGNW test}}
3984 <p>''None'' of '''this''' should be
3986 but rather passed unmodified
3994 {{int:youhavenewmessages|lots of money|not!}}
3996 <p>You have lots of money (not!).
4003 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4007 <includeonly> and <noinclude> being included
4018 <onlyinclude>Foo</onlyinclude>bar
4022 <onlyinclude> being included
4034 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4038 <onlyinclude> and <includeonly> being included
4047 <includeonly> and <noinclude> on a page
4049 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4056 <onlyinclude> on a page
4058 <onlyinclude>Foo</onlyinclude>bar
4065 Template:Includeonly section
4068 ==Includeonly section==
4074 Bug 6563: Edit link generation for section shown by <includeonly>
4076 {{includeonly section}}
4078 <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>
4079 <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>
4083 # Uses same input as the contents of [[Template:Includeonly section]]
4085 Bug 6563: Section extraction for section shown by <includeonly>
4090 ==Includeonly section==
4098 Bug 6563: Edit link generation for section suppressed by <includeonly>
4101 ==Includeonly section==
4105 <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>
4110 Bug 6563: Section extraction for section suppressed by <includeonly>
4115 ==Includeonly section==
4123 ### Pre-save transform tests
4126 pre-save transform: subst:
4132 This is a test template
4136 pre-save transform: normal template
4146 pre-save transform: nonexistent template
4150 {{thistemplatedoesnotexist}}
4152 {{thistemplatedoesnotexist}}
4157 pre-save transform: subst magic variables
4166 # This is bug 89, which I fixed. -- wtm
4168 pre-save transform: subst: templates with parameters
4172 {{subst:paramtest|param="something else"}}
4174 This is a test template with parameter "something else"
4180 <nowiki>'''not wiki'''</nowiki>
4184 pre-save transform: nowiki in subst (bug 1188)
4188 {{subst:nowikitest}}
4190 <nowiki>'''not wiki'''</nowiki>
4195 Template:commenttest
4197 This template has <!-- a comment --> in it.
4201 pre-save transform: comment in subst (bug 1936)
4205 {{subst:commenttest}}
4207 This template has <!-- a comment --> in it.
4211 pre-save transform: unclosed tag
4215 <nowiki>'''not wiki'''
4217 <nowiki>'''not wiki'''
4221 pre-save transform: mixed tag case
4225 <NOwiki>'''not wiki'''</noWIKI>
4227 <NOwiki>'''not wiki'''</noWIKI>
4231 pre-save transform: unclosed comment in <nowiki>
4235 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4237 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4243 <span onmouseover="alert('crap')">Oh no</span>
4247 (confirming safety of fix for subst bug 1936)
4249 {{Template:dangerous}}
4251 <p><span>Oh no</span>
4256 pre-save transform: comment containing gallery (bug 5024)
4260 <!-- <gallery>data</gallery> -->
4262 <!-- <gallery>data</gallery> -->
4266 pre-save transform: comment containing extension
4270 <!-- <tag>data</tag> -->
4272 <!-- <tag>data</tag> -->
4276 pre-save transform: comment containing nowiki
4280 <!-- <nowiki>data</nowiki> -->
4282 <!-- <nowiki>data</nowiki> -->
4286 pre-save transform: <noinclude> in subst (bug 3298)
4296 pre-save transform: <onlyinclude> in subst (bug 3298)
4308 {{<includeonly>subst:</includeonly>Includes}}
4312 Template:SafeSubstTest
4314 {{<includeonly>safesubst:</includeonly>Includes}}
4318 bug 22297: safesubst: works during PST
4322 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4328 bug 22297: safesubst: works during normal parse
4337 subst: does not work during normal parse
4341 <p>{{subst:Includes}}
4346 pre-save transform: context links ("pipe trick")
4350 [[Article (context)|]]
4353 [[Bar:Article (context)|]]
4354 [[:Bar:Article (context)|]]
4356 [[|Article (context)]]
4360 [[Article (context)|Article]]
4361 [[Bar:Article|Article]]
4362 [[:Bar:Article|Article]]
4363 [[Bar:Article (context)|Article]]
4364 [[:Bar:Article (context)|Article]]
4366 [[Article (context)]]
4367 [[Bar:X (Y) Z|X (Y) Z]]
4368 [[:Bar:X (Y) Z|X (Y) Z]]
4372 pre-save transform: context links ("pipe trick") with interwiki prefix
4376 [[interwiki:Article|]]
4377 [[:interwiki:Article|]]
4378 [[interwiki:Bar:Article|]]
4379 [[:interwiki:Bar:Article|]]
4381 [[interwiki:Article|Article]]
4382 [[:interwiki:Article|Article]]
4383 [[interwiki:Bar:Article|Bar:Article]]
4384 [[:interwiki:Bar:Article|Bar:Article]]
4388 pre-save transform: context links ("pipe trick") with parens in title
4390 pst title=[[Somearticle (context)]]
4394 [[Article (context)|Article]]
4398 pre-save transform: context links ("pipe trick") with comma in title
4400 pst title=[[Someplace, Somewhere]]
4403 [[Otherplace, Elsewhere|]]
4404 [[Otherplace, Elsewhere, Anywhere|]]
4406 [[Otherplace, Somewhere|Otherplace]]
4407 [[Otherplace, Elsewhere|Otherplace]]
4408 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4412 pre-save transform: context links ("pipe trick") with parens and comma
4414 pst title=[[Someplace (IGNORED), Somewhere]]
4417 [[Otherplace (place), Elsewhere|]]
4419 [[Otherplace, Somewhere|Otherplace]]
4420 [[Otherplace (place), Elsewhere|Otherplace]]
4424 pre-save transform: context links ("pipe trick") with comma and parens
4426 pst title=[[Who, me? (context)]]
4429 [[Me, Myself, and I (1937 song)|]]
4431 [[Yes, you. (context)|Yes, you.]]
4432 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4436 pre-save transform: context links ("pipe trick") with namespace
4438 pst title=[[Ns:Somearticle]]
4442 [[Ns:Article|Article]]
4446 pre-save transform: context links ("pipe trick") with namespace and parens
4448 pst title=[[Ns:Somearticle (context)]]
4452 [[Ns:Article (context)|Article]]
4456 pre-save transform: context links ("pipe trick") with namespace and comma
4458 pst title=[[Ns:Somearticle, Context, Whatever]]
4462 [[Ns:Article, Context, Whatever|Article]]
4466 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4468 pst title=[[Ns:Somearticle, Context (context)]]
4472 [[Ns:Article (context)|Article]]
4476 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4478 pst title=[[Ns:Somearticle (IGNORED), Context]]
4482 [[Ns:Article, Context|Article]]
4486 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4490 [[Article(context)|]]
4491 [[Bar:Article(context)|]]
4492 [[:Bar:Article(context)|]]
4493 [[|Article(context)]]
4497 [[Article(context)|Article]]
4498 [[Bar:Article(context)|Article]]
4499 [[:Bar:Article(context)|Article]]
4500 [[Article(context)]]
4502 [[:Bar:X(Y)Z|X(Y)Z]]
4506 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4510 [[Article (context)|]]
4511 [[Bar:Article (context)|]]
4512 [[:Bar:Article (context)|]]
4513 [[|Article (context)]]
4517 [[Article (context)|Article]]
4518 [[Bar:Article (context)|Article]]
4519 [[:Bar:Article (context)|Article]]
4520 [[Article (context)]]
4521 [[Bar:X (Y) Z|X (Y) Z]]
4522 [[:Bar:X (Y) Z|X (Y) Z]]
4526 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4530 [[Article(context)|]]
4531 [[Bar:Article(context)|]]
4532 [[:Bar:Article(context)|]]
4533 [[|Article(context)]]
4537 [[Article(context)|Article]]
4538 [[Bar:Article(context)|Article]]
4539 [[:Bar:Article(context)|Article]]
4540 [[Article(context)]]
4542 [[:Bar:X(Y)Z|X(Y)Z]]
4546 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4550 [[Article (context), context|]]
4551 [[Article (context),context|]]
4552 [[Bar:Article (context), context|]]
4553 [[Bar:Article (context),context|]]
4554 [[:Bar:Article (context), context|]]
4555 [[:Bar:Article (context),context|]]
4557 [[Article (context), context|Article]]
4558 [[Article (context),context|Article]]
4559 [[Bar:Article (context), context|Article]]
4560 [[Bar:Article (context),context|Article]]
4561 [[:Bar:Article (context), context|Article]]
4562 [[:Bar:Article (context),context|Article]]
4566 pre-save transform: trim trailing empty lines
4570 Empty lines are trimmed
4576 Empty lines are trimmed
4580 pre-save transform: Signature expansion
4585 * <noinclude>~~~</noinclude>
4586 * <includeonly>~~~</includeonly>
4587 * <onlyinclude>~~~</onlyinclude>
4589 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4590 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4591 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4592 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4597 pre-save transform: Signature expansion in nowiki tags (bug 93)
4603 <nowiki>~~~~</nowiki>
4605 <includeonly><nowiki>~~~~</nowiki></includeonly>
4607 <noinclude><nowiki>~~~~</nowiki></noinclude>
4609 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4611 {{subst:Foo}} shall be converted to FOO
4613 As well as inside noinclude/onlyinclude
4614 <noinclude>{{subst:Foo}}</noinclude>
4615 <onlyinclude>{{subst:Foo}}</onlyinclude>
4617 But not inside includeonly
4618 <includeonly>{{subst:Foo}}</includeonly>
4622 <nowiki>~~~~</nowiki>
4624 <includeonly><nowiki>~~~~</nowiki></includeonly>
4626 <noinclude><nowiki>~~~~</nowiki></noinclude>
4628 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4630 FOO shall be converted to FOO
4632 As well as inside noinclude/onlyinclude
4633 <noinclude>FOO</noinclude>
4634 <onlyinclude>FOO</onlyinclude>
4636 But not inside includeonly
4637 <includeonly>{{subst:Foo}}</includeonly>
4641 ### Message transform tests
4644 message transform: magic variables
4654 message transform: should not transform wiki markup
4664 message transform: <noinclude> in transcluded template (bug 4926)
4674 message transform: <onlyinclude> in transcluded template (bug 4926)
4684 {{#special:}} page name, known
4688 {{#special:Recentchanges}}
4690 Special:RecentChanges
4694 {{#special:}} page name with subpage, known
4698 {{#special:Recentchanges/param}}
4700 Special:RecentChanges/param
4704 {{#special:}} page name, unknown
4708 {{#special:foobarnonexistent}}
4710 No such special page
4714 {{#speciale:}} page name, known
4718 {{#speciale:Recentchanges}}
4720 Special:RecentChanges
4724 {{#speciale:}} page name with subpage, known
4728 {{#speciale:Recentchanges/param}}
4730 Special:RecentChanges/param
4734 {{#speciale:}} page name, unknown
4738 {{#speciale:foobarnonexistent}}
4740 No_such_special_page
4749 [[Image:foobar.jpg]]
4751 <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>
4758 [[Image:foobar.jpg|right]]
4760 <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>
4765 Simple image (using File: namespace, now canonical)
4769 <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>
4776 [[Image:foobar.jpg|right|Caption text]]
4778 <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>
4783 Image with link parameter, wiki target
4785 [[Image:foobar.jpg|link=Target page]]
4787 <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>
4792 Image with link parameter, URL target
4794 [[Image:foobar.jpg|link=http://example.com/]]
4796 <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>
4801 Image with link parameter, wgExternalLinkTarget
4803 [[Image:foobar.jpg|link=http://example.com/]]
4805 wgExternalLinkTarget='foobar'
4807 <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>
4812 Image with link parameter, wgNoFollowLinks set to false
4814 [[Image:foobar.jpg|link=http://example.com/]]
4816 wgNoFollowLinks=false
4818 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4823 Image with link parameter, wgNoFollowDomainExceptions
4825 [[Image:foobar.jpg|link=http://example.com/]]
4827 wgNoFollowDomainExceptions='example.com'
4829 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4834 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4836 [[Image:foobar.jpg|link=http://example.com/|Title]]
4838 wgExternalLinkTarget='foobar'
4840 <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>
4845 Image with empty link parameter
4847 [[Image:foobar.jpg|link=]]
4849 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4854 Image with link parameter (wiki target) and unnamed parameter
4856 [[Image:foobar.jpg|link=Target page|Title]]
4858 <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>
4863 Image with link parameter (URL target) and unnamed parameter
4865 [[Image:foobar.jpg|link=http://example.com/|Title]]
4867 <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>
4872 Thumbnail image with link parameter
4874 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4876 <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>
4881 Image with frame and link
4883 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4885 <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>
4890 Image with frame and link and explicit alt
4892 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4894 <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>
4899 Image with wiki markup in implicit alt
4901 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4903 <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>
4908 Image with wiki markup in explicit alt
4910 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4912 <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>
4917 Link to image page- image page normally doesn't exists, hence edit link
4918 Add test with existing image page
4919 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4923 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4928 bug 18784 Link to non-existent image page with caption should use caption as link text
4930 [[:Image:test|caption]]
4932 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4937 Frameless image caption with a free URL
4939 [[Image:foobar.jpg|http://example.com]]
4941 <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>
4946 Thumbnail image caption with a free URL
4948 [[Image:foobar.jpg|thumb|http://example.com]]
4950 <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>
4955 Thumbnail image caption with a free URL and explicit alt
4957 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4959 <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>
4964 BUG 1887: A ISBN with a thumbnail
4966 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4968 <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>
4973 BUG 1887: A RFC with a thumbnail
4975 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4977 <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>
4982 BUG 1887: A mailto link with a thumbnail
4984 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4986 <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>
4990 # Pending resolution to bug 368
4992 BUG 648: Frameless image caption with a link
4994 [[Image:foobar.jpg|text with a [[link]] in it]]
4996 <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>
5001 BUG 648: Frameless image caption with a link (suffix)
5003 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5005 <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>
5010 BUG 648: Frameless image caption with an interwiki link
5012 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5014 <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>
5019 BUG 648: Frameless image caption with a piped interwiki link
5021 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5023 <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>
5028 Escape HTML special chars in image alt text
5030 [[Image:foobar.jpg|& < > "]]
5032 <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>
5037 BUG 499: Alt text should have Ӓ, not &1234;
5039 [[Image:foobar.jpg|♀]]
5041 <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>
5046 Broken image caption with link
5048 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5050 <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.
5055 Image caption containing another image
5057 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5059 <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>
5064 Image caption containing a newline
5066 [[Image:Foobar.jpg|This
5069 <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>
5075 Bug 3090: External links other than http: in image captions
5077 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5079 <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>
5086 [[Image:foobar.jpg|a|class=b]]
5088 <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>
5095 #REDIRECT [[File:Barfoo.jpg]]
5101 [[Image:Barfoo.jpg]]
5103 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5108 Missing image with uploads disabled
5112 [[Image:Foobaz.jpg]]
5114 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5123 Subpage test/subpage
5131 subpage title=[[Subpage test]]
5135 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5140 Subpage noslash link
5142 subpage title=[[Subpage test]]
5146 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5155 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5160 BUG 561: {{/Subpage}}
5162 subpage title=[[Page]]
5166 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5174 Category:MediaWiki User's Guide
5182 [[:Category:MediaWiki User's Guide]]
5184 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5193 [[Category:MediaWiki User's Guide]]
5195 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5199 PAGESINCATEGORY invalid title fatal (r33546 fix)
5201 {{PAGESINCATEGORY:<bogus>}}
5208 ### Inter-language links
5211 Inter-language links
5217 [[zh:食品]]
5219 es:Alimento fr:Nourriture zh:食品
5226 Basic section headings
5233 ===Smaller headline===
5236 <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>
5239 <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>
5242 <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>
5248 Section headings with TOC
5251 === Subheadline 1 ===
5252 ===== Skipping a level =====
5253 ====== Skipping a level ======
5257 ===Another headline===
5259 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5261 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5263 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5265 <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>
5267 <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>
5274 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5276 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5281 <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>
5282 <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>
5283 <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>
5284 <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>
5285 <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>
5288 <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>
5292 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5294 Handling of sections up to level 6 and beyond
5297 == Level 2 Heading==
5298 === Level 3 Heading===
5299 ==== Level 4 Heading====
5300 ===== Level 5 Heading=====
5301 ====== Level 6 Heading======
5302 ======= Level 7 Heading=======
5303 ======== Level 8 Heading========
5304 ========= Level 9 Heading=========
5305 ========== Level 10 Heading==========
5307 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5309 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5311 <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>
5313 <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>
5315 <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>
5317 <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>
5319 <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>
5320 <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>
5321 <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>
5322 <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>
5323 <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>
5336 <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>
5337 <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>
5338 <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>
5339 <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>
5340 <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>
5341 <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>
5342 <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>
5343 <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>
5344 <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>
5345 <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>
5350 TOC regression (bug 9764)
5354 ==== title 1.1.1 ====
5359 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5361 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5363 <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>
5365 <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>
5368 <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>
5371 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5373 <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>
5378 <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>
5379 <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>
5380 <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>
5381 <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>
5382 <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>
5383 <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>
5388 TOC with wgMaxTocLevel=3 (bug 6204)
5394 ==== title 1.1.1 ====
5399 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5401 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5403 <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>
5404 <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>
5407 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5409 <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>
5414 <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>
5415 <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>
5416 <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>
5417 <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>
5418 <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>
5419 <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>
5424 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5430 ====Section 1.1.1====
5431 ====Section 1.1.1.1====
5434 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5436 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5438 <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>
5441 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5444 <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>
5445 <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>
5446 <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>
5447 <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>
5448 <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>
5454 Resolving duplicate section names
5459 <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>
5460 <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>
5465 Resolving duplicate section names with differing case (bug 10721)
5470 <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>
5471 <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>
5483 Template with sections, __NOTOC__
5490 <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>
5491 <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>
5492 <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>
5493 <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>
5498 __NOEDITSECTION__ keyword
5504 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5505 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5510 Link inside a section heading
5512 ==Section with a [[Main Page|link]] in it==
5514 <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>
5519 TOC regression (bug 12077)
5526 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5528 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5530 <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>
5533 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
5536 <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>
5537 <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>
5538 <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>
5543 BUG 1219 URL next to image (good)
5545 http://example.com [[Image:foobar.jpg]]
5547 <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>
5552 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5555 The line above must have a trailing space!
5558 But just in case it doesn't...
5560 <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>
5561 <p>The line above must have a trailing space!
5563 <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>
5564 <p>But just in case it doesn't...
5569 Header with special characters (bug 25462)
5571 The tooltips shall not show entities to the user (ie. be double escaped)
5588 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5590 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5592 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5593 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5594 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5595 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5596 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5599 <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>
5602 <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>
5605 <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>
5608 <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>
5611 <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>
5617 Headers with excess '=' characters
5618 (Are similar tests necessary beyond the 1st level?)
5622 =''italic'' heading==
5623 ==''italic'' heading=
5625 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5627 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
5628 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
5629 <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>
5630 <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>
5633 <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>
5634 <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>
5635 <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>
5636 <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>
5641 BUG 1219 URL next to image (broken)
5643 http://example.com[[Image:foobar.jpg]]
5645 <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>
5650 Bug 1186 news: in the middle of text
5652 http://en.wikinews.org/wiki/Wikinews:Workplace
5654 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5660 Namespaced link must have a title
5669 Namespaced link must have a title (bad fragment version)
5671 [[Project:#fragment]]
5673 <p>[[Project:#fragment]]
5679 div with no attributes
5681 <div>HTML rocks</div>
5683 <div>HTML rocks</div>
5688 div with double-quoted attribute
5690 <div id="rock">HTML rocks</div>
5692 <div id="rock">HTML rocks</div>
5697 div with single-quoted attribute
5699 <div id='rock'>HTML rocks</div>
5701 <div id="rock">HTML rocks</div>
5706 div with unquoted attribute
5708 <div id=rock>HTML rocks</div>
5710 <div id="rock">HTML rocks</div>
5715 div with illegal double attributes
5717 <div id="a" id="b">HTML rocks</div>
5719 <div id="b">HTML rocks</div>
5724 HTML multiple attributes correction
5726 <p class="error" class="awesome">Awesome!</p>
5728 <p class="awesome">Awesome!</p>
5733 Table multiple attributes correction
5736 !+ class="error" class="awesome"| status
5741 <th class="awesome"> status
5749 <DIV ID="x">HTML ROCKS</DIV>
5751 <div id="x">HTML ROCKS</div>
5757 text with amp in the middle of nowhere
5761 <p>Remember AT&T?
5766 text with character entity: eacute
5768 I always thought é was a cute letter.
5770 <p>I always thought é was a cute letter.
5775 text with undefined character entity: xacute
5777 I always thought &xacute; was a cute letter.
5779 <p>I always thought &xacute; was a cute letter.
5791 [[Media:Foobar.jpg]]
5793 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5798 Media link with text
5800 [[Media:Foobar.jpg|A neat file to look at]]
5802 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5806 # FIXME: this is still bad HTML tag nesting
5808 Media link with nasty text
5809 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5811 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5813 <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>
5818 Media link to nonexistent file (bug 1702)
5820 [[Media:No such.jpg]]
5822 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5827 Image link to nonexistent file (bug 1850 - good)
5829 [[Image:No such.jpg]]
5831 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5836 :Image link to nonexistent file (bug 1850 - bad)
5838 [[:Image:No such.jpg]]
5840 <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>
5847 Character reference normalization in link text (bug 1938)
5849 [[Main Page|this&that]]
5851 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5858 Test for unicode normalization
5860 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5864 (bug 19451) Links should refer to the normalized form.
5872 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5873 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5874 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5875 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5876 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5881 Empty attribute crash test (bug 2067)
5883 <font color="">foo</font>
5885 <p><font color="">foo</font>
5890 Empty attribute crash test single-quotes (bug 2067)
5892 <font color=''>foo</font>
5894 <p><font color="">foo</font>
5899 Attribute test: equals, then nothing
5901 <font color=>foo</font>
5908 Attribute test: unquoted value
5910 <font color=x>foo</font>
5912 <p><font color="x">foo</font>
5917 Attribute test: unquoted but illegal value (hash)
5919 <font color=#x>foo</font>
5921 <p><font color="#x">foo</font>
5926 Attribute test: no value
5928 <font color>foo</font>
5930 <p><font color="color">foo</font>
5935 Bug 2095: link with three closing brackets
5939 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5944 Bug 2095: link with pipe and three closing brackets
5948 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5953 Bug 2095: link with pipe and three closing brackets, version 2
5955 [[Main Page|[http://example.com/]]]
5957 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5967 Template:Dangerous attribute
5969 " onmouseover="alert(document.cookie)
5973 Template:Dangerous style attribute
5975 border-size: expression(alert(document.cookie))
5981 <div style="float: right; {{{1}}}">Magic div</div>
5985 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5987 <div title="{{test}}"></div>
5989 <div title="This is a test template"></div>
5994 Bug 2304: HTML attribute safety (dangerous template; 2309)
5996 <div title="{{dangerous attribute}}"></div>
5998 <div title=""></div>
6003 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6005 <div style="{{dangerous style attribute}}"></div>
6007 <div style="/* insecure input */"></div>
6012 Bug 2304: HTML attribute safety (safe parameter; 2309)
6014 {{div style|width: 200px}}
6016 <div style="float: right; width: 200px">Magic div</div>
6021 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6023 {{div style|width: expression(alert(document.cookie))}}
6025 <div style="/* insecure input */">Magic div</div>
6030 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6032 {{div style|"><script>alert(document.cookie)</script>}}
6034 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6039 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6041 {{div style|" ><script>alert(document.cookie)</script>}}
6043 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6048 Bug 2304: HTML attribute safety (link)
6050 <div title="[[Main Page]]"></div>
6052 <div title="[[Main Page]]"></div>
6057 Bug 2304: HTML attribute safety (italics)
6059 <div title="''foobar''"></div>
6061 <div title="''foobar''"></div>
6066 Bug 2304: HTML attribute safety (bold)
6068 <div title="'''foobar'''"></div>
6070 <div title="'''foobar'''"></div>
6076 Bug 2304: HTML attribute safety (ISBN)
6078 <div title="ISBN 1234567890"></div>
6080 <div title="ISBN 1234567890"></div>
6085 Bug 2304: HTML attribute safety (RFC)
6087 <div title="RFC 1234"></div>
6089 <div title="RFC 1234"></div>
6094 Bug 2304: HTML attribute safety (PMID)
6096 <div title="PMID 1234567890"></div>
6098 <div title="PMID 1234567890"></div>
6103 Bug 2304: HTML attribute safety (web link)
6105 <div title="http://example.com/"></div>
6107 <div title="http://example.com/"></div>
6112 Bug 2304: HTML attribute safety (named web link)
6114 <div title="[http://example.com/ link]"></div>
6116 <div title="[http://example.com/ link]"></div>
6121 Bug 3244: HTML attribute safety (extension; safe)
6123 <div style="<nowiki>background:blue</nowiki>"></div>
6125 <div style="background:blue"></div>
6130 Bug 3244: HTML attribute safety (extension; unsafe)
6132 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6134 <div style="/* insecure input */"></div>
6138 # More MSIE fun discovered by Tom Gilder
6141 MSIE CSS safety test: spurious slash
6143 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6145 <div style="/* insecure input */">evil</div>
6150 MSIE CSS safety test: hex code
6152 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6154 <div style="/* insecure input */">evil</div>
6159 MSIE CSS safety test: comment in url
6161 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6163 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6168 MSIE CSS safety test: comment in expression
6170 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6172 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6178 Table attribute legitimate extension
6181 !+ style="<nowiki>color:blue</nowiki>"| status
6186 <th style="color:blue"> status
6192 Table attribute safety
6195 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6200 <th style="/* insecure input */"> status
6206 CSS line continuation 1
6208 <div style="background-image: u\ rl(test.jpg);"></div>
6210 <div style="/* insecure input */"></div>
6215 CSS line continuation 2
6217 <div style="background-image: u\ rl(test.jpg); "></div>
6219 <div style="/* insecure input */"></div>
6230 Expansion of multi-line templates in attribute values (bug 6255)
6232 <div style="background: {{identity|#00FF00}}">-</div>
6234 <div style="background: #00FF00">-</div>
6240 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6242 <div style="background:
6245 <div style="background: #00FF00">-</div>
6250 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6252 <div style="background: #00FF00">-</div>
6254 <div style="background: #00FF00">-</div>
6259 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6262 Parser hook: empty input
6275 Parser hook: empty input using terminated empty elements
6288 Parser hook: empty input using terminated empty elements (space before)
6301 Parser hook: basic input
6315 Parser hook: case insensitive
6329 Parser hook: case insensitive, redux
6342 Parser hook: nested tags
6346 <tag><tag></tag></tag>
6357 Parser hook: basic arguments
6359 <tag width=200 height = "100" depth = '50' square></tag>
6378 Parser hook: argument containing a forward slash (bug 5344)
6380 <tag filename='/tmp/bla'></tag>
6386 string(8) "/tmp/bla"
6393 Parser hook: empty input using terminated empty elements (bug 2374)
6407 # </tag> should be output literally since there is no matching tag that begins it
6409 Parser hook: basic arguments using terminated empty elements (bug 2374)
6411 <tag width=200 height = "100" depth = '50' square/>
6434 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6438 Parser hook: static parser hook not inside a comment
6440 <statictag>hello, world</statictag>
6441 <statictag action=flush/>
6449 Parser hook: static parser hook inside a comment
6451 <!-- <statictag>hello, world</statictag> -->
6452 <statictag action=flush/>
6458 # Nested template calls; this case was broken by Parser.php rev 1.506,
6462 Template:One-parameter
6464 (My parameter is: {{{1}}})
6468 Template:Map-one-parameter
6474 Nested template calls
6476 {{Map-one-parameter|One-parameter|param}}
6478 <p>(My parameter is: param)
6487 Sanitizer: Closing of open tags
6489 <s></s><table></table>
6491 <s></s><table></table>
6496 Sanitizer: Closing of open but not closed tags
6505 Sanitizer: Closing of closed but not open tags
6514 Sanitizer: Closing of closed but not open table tags
6516 Table not started</td></tr></table>
6518 <p>Table not started</td></tr></table>
6523 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6525 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6527 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6532 Sanitizer: Validating the contents of the id attribute (bug 4515)
6538 Something, but definitely not <br id="9" />...
6542 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
6546 <br id="foo" /><br id="foo" />
6548 Something need to be done. foo-2 ?
6552 Language converter: output gets cut off unexpectedly (bug 5757)
6556 this bit is safe: }-
6558 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6560 then we get cut off here: }-
6562 all additional text is vanished
6564 <p>this bit is safe: }-
6565 </p><p>but if we add a conversion instance: xxx
6566 </p><p>then we get cut off here: }-
6567 </p><p>all additional text is vanished
6572 Self closed html pairs (bug 5487)
6575 <center><font id="bug" />Centered text</center>
6576 <div><font id="bug2" />In div text</div>
6578 <center><font id="bug" />Centered text</center>
6579 <div><font id="bug2" />In div text</div>
6588 Punctuation: nbsp before exclamation
6592 <p>C'est grave !
6597 Punctuation: CSS !important (bug 11874)
6599 <div style="width:50% !important">important</div>
6601 <div style="width:50% !important">important</div>
6606 Punctuation: CSS ! important (bug 11874; with space after)
6608 <div style="width:50% ! important">important</div>
6610 <div style="width:50% ! important">important</div>
6616 HTML bullet list, closed tags (bug 5497)
6631 HTML bullet list, unclosed tags (bug 5497)
6648 HTML ordered list, closed tags (bug 5497)
6663 HTML ordered list, unclosed tags (bug 5497)
6680 HTML nested bullet list, closed tags (bug 5497)
6705 HTML nested bullet list, open tags (bug 5497)
6730 HTML nested ordered list, closed tags (bug 5497)
6755 HTML nested ordered list, open tags (bug 5497)
6780 HTML ordered list item with parameters oddity
6782 <ol><li id="fragment">One</li></ol>
6784 <ol><li id="fragment">One</li></ol>
6789 bug 5918: autonumbering
6791 [http://first/] [http://second] [ftp://ftp]
6795 [mailto:enclosed@mail.tld With target]
6797 [mailto:enclosed@mail.tld]
6799 mailto:inline@mail.tld
6801 <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>
6802 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6803 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6804 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6805 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6811 # Security and HTML correctness
6812 # From Nick Jenkins' fuzz testing
6816 Fuzz testing: Parser13
6831 Fuzz testing: Parser14
6836 <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>
6837 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6839 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6846 Fuzz testing: Parser14-table
6851 <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>
6852 <table style="__TOC__">
6858 # Known to produce bogus xml (extra </td>)
6860 Fuzz testing: Parser16
6880 Fuzz testing: Parser21
6883 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6888 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6898 Fuzz testing: Parser22
6900 http://===r:::https://b
6904 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6912 # Known to produce bad XML for now
6914 Fuzz testing: Parser24
6921 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6922 <br style="onmouseover='alert(document.cookie);' " />
6924 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6929 <u class="|">}}}} >
6930 <br style="onmouseover='alert(document.cookie);'" />
6932 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6941 # Note: the current result listed for this is not what the original one was,
6942 # but the original bug was JavaScript injection, which is fixed in any case.
6943 # It's not clear that the original result listed was any more correct than the
6944 # current one. Original result:
6947 # <li class="||">
6948 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6950 Fuzz testing: Parser25 (bug 6055)
6956 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6958 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6963 Fuzz testing: URL adjacent extension (with space, clean)
6966 http://example.com <nowiki>junk</nowiki>
6968 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6973 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6976 http://example.com<nowiki>junk</nowiki>
6978 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6983 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6986 http://example.com<pre>junk</pre>
6988 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6993 Fuzz testing: image with bogus manual thumbnail
6995 [[Image:foobar.jpg|thumbnail= ]]
6997 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7002 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7004 <pre dir=" "></pre>
7006 <pre dir=" "></pre>
7011 Parsing optional HTML elements (Bug 6171)
7016 <td> Some tabular data</td>
7017 <td> More tabular data ...
7018 <td> And yet som tabular data</td>
7024 <td> Some tabular data</td>
7025 <td> More tabular data ...
7026 </td><td> And yet som tabular data</td>
7033 Correct handling of <td>, <tr> (Bug 6171)
7038 <td> Some tabular data</td>
7039 <td> More tabular data ...</td>
7040 <td> And yet som tabular data</td>
7046 <td> Some tabular data</td>
7047 <td> More tabular data ...</td>
7048 <td> And yet som tabular data</td>
7056 Parsing crashing regression (fr:JavaScript)
7060 <p></body></x>
7065 Inline wiki vs wiki block nesting
7071 <p><b>Bold paragraph</b>
7072 </p><p>New wiki paragraph
7077 Inline HTML vs wiki block nesting
7085 <p><b>Bold paragraph</b>
7086 </p><p>New wiki paragraph
7090 # Original result was this:
7091 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7093 # While that might be marginally more intuitive, maybe, the six-apostrophe
7094 # construct is clearly pathological and the result stated here (which is what
7095 # the parser actually does) is about as reasonable as anything.
7097 Mixing markup for italics and bold
7100 '''bold''''''bold''bolditalics'''''
7102 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7110 Article for special page transclusion test
7114 Special page transclusion
7117 {{Special:Prefixindex/Xyzzyx}}
7119 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7124 Special page transclusion twice (bug 5021)
7127 {{Special:Prefixindex/Xyzzyx}}
7128 {{Special:Prefixindex/Xyzzyx}}
7130 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7131 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7136 Transclusion of default MediaWiki message
7138 {{MediaWiki:Mainpage}}
7145 Transclusion of nonexistent MediaWiki message
7147 {{MediaWiki:Mainpagexxx}}
7149 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7154 Transclusion of MediaWiki message with underscore
7156 {{MediaWiki:history_short}}
7163 Transclusion of MediaWiki message with space
7165 {{MediaWiki:history short}}
7172 Invalid header with following text
7182 Section extraction test (section 0)
7202 Section extraction test (section 1)
7224 Section extraction test (section 2)
7245 Section extraction test (section 3)
7265 Section extraction test (section 4)
7289 Section extraction test (section 5)
7309 Section extraction test (section 6)
7330 Section extraction test (section 7)
7350 Section extraction test (section 8)
7370 Section extraction test (section 9)
7391 Section extraction test (section 10)
7411 Section extraction test (nonexistent section 11)
7430 Section extraction test with bogus heading (section 1)
7435 ==bogus== not a legal section
7439 ==bogus== not a legal section
7443 Section extraction test with bogus heading (section 2)
7448 ==bogus== not a legal section
7455 Section extraction test with comment after heading (section 1)
7467 Section extraction test with comment after heading (section 2)
7479 Section extraction test with bogus <nowiki> heading (section 1)
7484 ==bogus== <nowiki>not a legal section</nowiki>
7488 ==bogus== <nowiki>not a legal section</nowiki>
7492 Section extraction test with bogus <nowiki> heading (section 2)
7497 ==bogus== <nowiki>not a legal section</nowiki>
7504 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7505 # instead of respecting commented sections
7507 Section extraction prefixed by comment (section 1)
7518 Section extraction prefixed by comment (section 2)
7529 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7530 # instead of respecting HTML-style headings
7532 Section extraction, mixed wiki and html (section 1)
7548 Section extraction, mixed wiki and html (section 2)
7564 # Formerly testing for bug 3342
7566 Section extraction, heading surrounded by <noinclude>
7570 <noinclude>==unmarked==</noinclude>
7576 # Test behaviour of bug 19910
7578 Sectiion with all-equals
7583 The line above must have a trailing space
7586 But just in case it doesn't...
7590 But just in case it doesn't...
7594 Section replacement test (section 0)
7625 Section replacement test (section 1)
7654 Section replacement test (section 2)
7684 Section replacement test (section 3)
7715 Section replacement test (section 4)
7742 Section replacement test (section 5)
7773 Section replacement test (section 6)
7803 Section replacement test (section 7)
7834 Section replacement test (section 8)
7865 Section replacement test (section 9)
7894 Section replacement test (section 10)
7924 Section replacement test with initial whitespace (bug 13728)
7928 Preformatted initial line
7932 Preformatted initial line
7939 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7951 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7964 Section extraction, <pre> around bogus header (bug 10309)
7981 Section replacement, <pre> around bogus header (bug 10309)
7983 noxml replace=2,"xxx"
8004 Handling of 
 in URLs
8008 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8015 5 quotes, code coverage +1 line
8022 Special:Search page linking.
8026 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8041 * {{SUBJECTPAGENAME}}
8042 * {{SUBJECTPAGENAMEE}}
8049 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8051 <ul><li> Parser test
8052 </li><li> Parser test
8053 </li><li> Parser test
8054 </li><li> Parser_test
8055 </li><li> Parser test
8056 </li><li> Parser_test
8057 </li><li> Talk:Parser test
8058 </li><li> Talk:Parser_test
8059 </li><li> Parser test
8060 </li><li> Parser_test
8067 </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>
8071 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8081 image4 |300px| centre
8082 image5.svg| http://///////
8087 <ul class="gallery">
8088 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8089 <div style="height: 150px;">Image1.png</div>
8090 <div class="gallerytext">
8093 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8094 <div style="height: 150px;">Image2.gif</div>
8095 <div class="gallerytext">
8100 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8101 <div style="height: 150px;">Image3</div>
8102 <div class="gallerytext">
8105 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8106 <div style="height: 150px;">Image4</div>
8107 <div class="gallerytext">
8112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8113 <div style="height: 150px;">Image5.svg</div>
8114 <div class="gallerytext">
8115 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8119 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8120 <div style="height: 150px;">* image6</div>
8121 <div class="gallerytext">
8129 Gallery (with options)
8131 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8132 File:Nonexistant.jpg|caption
8133 File:Nonexistant.jpg
8134 image:foobar.jpg|some '''caption''' [[Main Page]]
8136 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8139 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8140 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8141 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8142 <div style="height: 70px;">Nonexistant.jpg</div>
8143 <div class="gallerytext">
8148 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8149 <div style="height: 70px;">Nonexistant.jpg</div>
8150 <div class="gallerytext">
8153 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8154 <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>
8155 <div class="gallerytext">
8156 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8160 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8161 <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>
8162 <div class="gallerytext">
8165 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8166 <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>
8167 <div class="gallerytext">
8177 Gallery with wikitext inside caption
8180 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8181 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8184 <ul class="gallery">
8185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8186 <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>
8187 <div class="gallerytext">
8188 <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>
8192 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8193 <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>
8194 <div class="gallerytext">
8195 <p>This is a test template
8204 gallery (with showfilename option)
8206 <gallery showfilename>
8207 File:Nonexistant.jpg|caption
8208 File:Nonexistant.jpg
8209 image:foobar.jpg|some '''caption''' [[Main Page]]
8213 <ul class="gallery">
8214 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8215 <div style="height: 150px;">Nonexistant.jpg</div>
8216 <div class="gallerytext">
8217 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8222 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8223 <div style="height: 150px;">Nonexistant.jpg</div>
8224 <div class="gallerytext">
8225 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8229 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8230 <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>
8231 <div class="gallerytext">
8232 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8233 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8237 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8238 <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>
8239 <div class="gallerytext">
8240 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8249 Gallery (with namespace-less filenames)
8252 File:Nonexistant.jpg
8258 <ul class="gallery">
8259 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8260 <div style="height: 150px;">Nonexistant.jpg</div>
8261 <div class="gallerytext">
8264 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8265 <div style="height: 150px;">Nonexistant.jpg</div>
8266 <div class="gallerytext">
8269 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8270 <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>
8271 <div class="gallerytext">
8274 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8275 <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>
8276 <div class="gallerytext">
8284 HTML Hex character encoding (spells the word "JavaScript")
8286 JavaScript
8288 <p>JavaScript
8293 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8297 <p>&#xsee;&#XSEE;
8302 HTML Hex character encoding mixed case
8311 __FORCETOC__ override
8323 ISBN 978-0-1234-56 789
8325 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8330 ISBN followed by 5 spaces
8341 ISBN ISBN 1234567890
8343 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8348 Bug 22905: <abbr> followed by ISBN followed by </a>
8350 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8352 <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>
8361 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8366 Double RFC with a wiki link
8370 <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>
8379 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8384 Centre-aligned image
8386 [[Image:foobar.jpg|centre]]
8388 <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>
8395 [[Image:foobar.jpg|none]]
8397 <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>
8402 Width + Height sized image (using px) (height is ignored)
8404 [[Image:foobar.jpg|640x480px]]
8406 <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>
8411 Width-sized image (using px, no following whitespace)
8413 [[Image:foobar.jpg|640px]]
8415 <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>
8420 Width-sized image (using px, with following whitespace - test regression from r39467)
8422 [[Image:foobar.jpg|640px ]]
8424 <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>
8429 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8431 [[Image:foobar.jpg| 640px]]
8433 <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>
8438 Another italics / bold test
8446 # Note the results may be incorrect, as parserTest output included this:
8447 # XML error: Mismatched tag at byte 6120:
8448 # ...<dd> </dt></dl> </dd...
8456 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8467 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8469 Images with the "|" character in the comment
8471 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8473 <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>
8478 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8480 <html><script>alert(1);</script></html>
8482 <p><html><script>alert(1);</script></html>
8487 HTML with raw HTML ($wgRawHtml==true)
8491 <html><script>alert(1);</script></html>
8493 <p><script>alert(1);</script>
8498 Parents of subpages, one level up
8500 subpage title=[[Subpage test/L1/L2/L3]]
8504 <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>
8510 Parents of subpages, one level up, not named
8512 subpage title=[[Subpage test/L1/L2/L3]]
8516 <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>
8523 Parents of subpages, two levels up
8525 subpage title=[[Subpage test/L1/L2/L3]]
8531 <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
8532 </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>
8537 Parents of subpages, two levels up, without trailing slash or name.
8539 subpage title=[[Subpage test/L1/L2/L3]]
8548 Parents of subpages, two levels up, with lots of extra trailing slashes.
8550 subpage title=[[Subpage test/L1/L2/L3]]
8554 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8559 Definition list code coverage
8565 <dl><dt> title  </dt><dd> def
8566 </dd><dt> title </dt><dd> def
8567 </dd><dt>title</dt><dd> def
8573 Don't fall for the self-closing div
8575 <div>hello world</div/>
8577 <div>hello world</div>
8586 <p>[[:Template:Msg]]
8595 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8599 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8601 Always escape literal '>' in output, not just after '<'
8615 <p>This is a test template
8616 This is a test template
8628 Inclusion of !userCanEdit() content
8632 <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>
8638 Out-of-order TOC heading levels
8647 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8649 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8651 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8652 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8655 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8657 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8658 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8663 <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>
8664 <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>
8665 <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>
8666 <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>
8667 <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>
8668 <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>
8674 ISBN with a dummy number
8684 ISBN with space-delimited number
8688 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8694 ISBN with multiple spaces, no number
8713 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8714 </p><p>ISBN 12345678901
8720 ISBN with trailing year (bug 8110)
8722 ISBN 1-234-56789-0 - 2006
8724 ISBN 1 234 56789 0 - 2006
8726 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8727 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8735 {{anchorencode:foo bar©#%n}}
8737 <p>foo_bar.C2.A9.23.25n
8742 anchorencode trims spaces
8744 {{anchorencode: __pretty__please__}}
8751 anchorencode deals with links
8753 {{anchorencode: [[hello|world]] [[hi]]}}
8760 anchorencode deals with templates
8762 {{anchorencode: {{Foo}} }}
8769 anchorencode encodes like the TOC generator: (bug 18431)
8771 === _ +:.3A%3A&&]] ===
8772 {{anchorencode: _ +:.3A%3A&&]] }}
8775 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8776 <p>.2B:.3A.253A.26.26.5D.5D
8780 # Expected output in the following test is not necessarily expected (there
8781 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8782 # only testing for well-formedness.
8784 Bug 6200: blockquotes and paragraph formatting
8804 Bug 8293: Use of center tag ruins paragraph formatting
8826 ### Language variants related tests
8829 Self-link in language variants
8831 title=[[Dunav]] language=sr
8833 Both [[Dunav]] and [[Дунав]] are names for this river.
8835 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8841 Link to pages in language variants
8845 Main Page can be written as [[Маин Паге]]
8847 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8853 Multiple links to pages in language variants
8857 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8859 <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>.
8865 Simple template in language variants
8871 <p>This is a test template
8877 Template with explicit namespace in language variants
8883 <p>This is a test template
8889 Basic test for template parameter in language variants
8893 {{парамтест|param=foo}}
8895 <p>This is a test template with parameter foo
8901 Simple category in language variants
8905 [[Category:МедиаWики Усер'с Гуиде]]
8907 <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>
8912 Stripping -{}- tags (language variants)
8916 Latin proverb: -{Ne nuntium necare}-
8918 <p>Latin proverb: Ne nuntium necare
8924 Prevent conversion with -{}- tags (language variants)
8926 language=sr variant=sr-ec
8928 Latinski: -{Ne nuntium necare}-
8930 <p>Латински: Ne nuntium necare
8936 Prevent conversion of text with -{}- tags (language variants)
8938 language=sr variant=sr-ec
8940 Latinski: -{Ne nuntium necare}-
8942 <p>Латински: Ne nuntium necare
8948 Prevent conversion of links with -{}- tags (language variants)
8950 language=sr variant=sr-ec
8954 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8960 -{}- tags within headlines (within html for parserConvert())
8962 language=sr variant=sr-ec
8966 <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>
8972 Explicit definition of language variant alternatives
8974 language=zh variant=zh-tw
8976 -{zh:China;zh-tw:Taiwan}-, not China
8978 <p>Taiwan, not China
8984 Explicit session-wise language variant mapping (A flag and - flag)
8986 language=zh variant=zh-tw
8988 Taiwan is not China.
8989 But -{A|zh:China;zh-tw:Taiwan}- is China,
8990 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8991 and -{China}- is China.
8993 <p>Taiwan is not China.
8994 But Taiwan is Taiwan,
8995 (This should be stripped!)
9001 Explicit session-wise language variant mapping (H flag for hide)
9003 language=zh variant=zh-tw
9005 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9008 <p>(This should be stripped!)
9014 Adding explicit conversion rule for title (T flag)
9016 language=zh variant=zh-tw showtitle
9018 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9021 <p>Should be stripped!
9026 Testing that changing the language variant here in the tests actually works
9028 language=zh variant=zh showtitle
9030 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9033 <p>Should be stripped!
9038 Bug 24072: more test on conversion rule for title
9040 language=zh variant=zh-tw showtitle
9042 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9043 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9046 <p>This should be stripped!
9047 This won't take interferes with the title rule.
9052 Raw output of variant escape tags (R flag)
9054 language=zh variant=zh-tw
9056 Raw: -{R|zh:China;zh-tw:Taiwan}-
9058 <p>Raw: zh:China;zh-tw:Taiwan
9063 Nested using of manual convert syntax
9065 language=zh variant=zh-hk
9067 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9069 <p>Nested: Hello Hong Kong!
9074 Do not convert roman numbers to language variants
9076 language=sr variant=sr-ec
9080 <p>Фридрих IV је цар.
9085 Unclosed language converter markup "-{"
9096 Don't convert raw rule "-{R|=>}-" to "=>"
9113 Bug 529: Uncovered bullet
9124 Bug 529: Uncovered table already at line-start
9147 Bug 529: Uncovered bullet in parser function result
9149 * Foo {{lc:{{bullet}} }}
9158 Bug 5678: Double-parsed template argument
9160 {{lc:{{{1}}}|hello}}
9167 Bug 5678: Double-parsed template invocation
9169 {{lc:{{paramtest {{!}} param = hello }} }}
9171 <p>{{paramtest | param = hello }}
9176 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9202 Morwen/13: Unclosed link followed by heading
9209 <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>
9214 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9221 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9226 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9233 <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>
9248 Paragraphs inside divs (no extra line breaks)
9260 Paragraphs inside divs (extra line break on open)
9275 Paragraphs inside divs (extra line break on close)
9290 Paragraphs inside divs (extra line break on open and close)
9307 Nesting tags, paragraphs on lines which begin with <div>
9311 <div></div><strong>A
9320 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9322 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9326 <blockquote>Line one
9328 Line two</blockquote>
9330 <blockquote>Line one
9331 Line two</blockquote>
9336 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9343 Line two</blockquote>
9348 Line two</blockquote>
9353 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9357 <blockquote>Line one
9362 <blockquote>Line one
9370 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9389 Paragraphs inside blockquotes/divs (no extra line breaks)
9391 <blockquote><div>Line one
9393 Line two</div></blockquote>
9395 <blockquote><div>Line one
9396 Line two</div></blockquote>
9401 Paragraphs inside blockquotes/divs (extra line break on open)
9406 Line two</div></blockquote>
9411 Line two</div></blockquote>
9416 Paragraphs inside blockquotes/divs (extra line break on close)
9418 <blockquote><div>Line one
9423 <blockquote><div>Line one
9431 Paragraphs inside blockquotes/divs (extra line break on open and close)
9448 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9450 wgLinkHolderBatchSize=0
9456 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9457 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9458 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9463 Free external link invading image caption
9465 [[Image:Foobar.jpg|thumb|http://x|hello]]
9467 <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>
9472 Bug 15196: localised external link numbers
9476 [http://en.wikipedia.org/]
9478 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9483 Multibyte character in padleft
9485 {{padleft:-Hello|7|Æ}}
9492 Multibyte character in padright
9494 {{padright:Hello-|7|Æ}}
9507 <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>
9512 formatdate parser function
9514 {{#formatdate:2009-03-24}}
9516 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9521 formatdate parser function, with default format
9523 {{#formatdate:2009-03-24|mdy}}
9525 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9530 Linked date with autoformatting disabled
9532 wgUseDynamicDates=false
9536 <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>
9541 Spacing of numbers in formatted dates
9543 {{#formatdate:January 15}}
9545 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9550 Spacing of numbers in formatted dates (linked)
9552 wgUseDynamicDates=true
9556 <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>
9561 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
9563 language=nl title=[[MediaWiki:Common.css]]
9565 {{#formatdate:2009-03-24|dmy}}
9567 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
9580 Edit comment with link
9584 I like the [[Main Page]] a lot
9586 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9590 Edit comment with link and link text
9594 I like the [[Main Page|best pages]] a lot
9596 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9600 Edit comment with link and link text with suffix
9604 I like the [[Main Page|best page]]s a lot
9606 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9610 Edit comment with section link (non-local, eg in history list)
9612 comment title=[[Main Page]]
9614 /* External links */ removed bogus entries
9616 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9620 Edit comment with section link and text before it (non-local, eg in history list)
9622 comment title=[[Main Page]]
9624 pre-comment text /* External links */ removed bogus entries
9626 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>
9630 Edit comment with section link (local, eg in diff view)
9632 comment local title=[[Main Page]]
9634 /* External links */ removed bogus entries
9636 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9640 Edit comment with subpage link (bug 14080)
9644 title=[[Subpage test]]
9646 Poked at a [[/subpage]] here...
9648 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9652 Edit comment with subpage link and link text (bug 14080)
9656 title=[[Subpage test]]
9658 Poked at a [[/subpage|neat little page]] here...
9660 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9664 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9667 title=[[Subpage test]]
9669 Poked at a [[/subpage]] here...
9671 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9675 Edit comment with bare anchor link (local, as on diff)
9683 <a href="#section">#section</a>
9687 Edit comment with bare anchor link (non-local, as on history)
9694 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9698 Anchor starting with underscore
9702 <p><a href="#_ref">One</a>
9707 Id starting with underscore
9709 <div id="_ref"></div>
9711 <div id="_ref"></div>
9716 Space normalisation on autocomment (bug 22784)
9721 /* __hello__world__ */
9723 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9727 percent-encoding and + signs in comments (Bug 26410)
9731 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9733 <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>
9737 Bad images - basic functionality
9746 Bad images - bug 16039: text after bad image disappears
9760 Verify that displaytitle works (bug #22501) no displaytitle
9764 wgAllowDisplayTitle=true
9765 wgRestrictDisplayTitle=false
9767 this is not the the title
9770 <p>this is not the the title
9775 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9780 wgAllowDisplayTitle=true
9781 wgRestrictDisplayTitle=false
9783 this is not the the title
9784 {{DISPLAYTITLE:whatever}}
9787 <p>this is not the the title
9792 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9797 wgAllowDisplayTitle=true
9798 wgRestrictDisplayTitle=true
9800 this is not the the title
9801 {{DISPLAYTITLE:whatever}}
9804 <p>this is not the the title
9809 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9814 wgAllowDisplayTitle=true
9815 wgRestrictDisplayTitle=true
9817 this is not the the title
9818 {{DISPLAYTITLE:screen}}
9821 <p>this is not the the title
9826 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9831 wgAllowDisplayTitle=false
9833 this is not the the title
9834 {{DISPLAYTITLE:screen}}
9837 <p>this is not the the title
9838 <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>
9843 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9848 wgAllowDisplayTitle=false
9850 this is not the the title
9853 <p>this is not the the title
9858 preload: check <noinclude> and <includeonly>
9862 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9868 preload: check <onlyinclude>
9872 Goodbye <onlyinclude>Hello world</onlyinclude>
9878 preload: can pass tags through if we want to
9882 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9884 <includeonly>Hello world</includeonly>
9888 preload: check that it doesn't try to do tricks
9892 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9894 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9898 Play a bit with r67090 and bug 3158
9902 <div style="width:50% !important"> </div>
9903 <div style="width:50% !important"> </div>
9904 <div style="width:50% !important"> </div>
9905 <div style="border : solid;"> </div>
9907 <div style="width:50% !important"> </div>
9908 <div style="width:50% !important"> </div>
9909 <div style="width:50% !important"> </div>
9910 <div style="border : solid;"> </div>
9915 HTML5 data attributes
9917 <span data-foo="bar">Baz</span>
9918 <p data-abc-def_hij="">Quuz</p>
9920 <p><span data-foo="bar">Baz</span>
9922 <p data-abc-def_hij="">Quuz</p>
9927 percent-encoding and + signs in internal links (Bug 26410)
9929 [[User:+%]] [[Page+title%]]
9930 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9931 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9932 [[%33%45]] [[%33%45+]]
9934 <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>
9935 <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>
9936 <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>
9937 <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>
9942 Special characters in embedded file links (bug 27679)
9944 [[File:Contains & ampersand.jpg]]
9945 [[File:Does not exist.jpg|Title with & ampersand]]
9947 <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>
9948 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9954 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9956 Text's been normalized?
9958 <p>Text's been normalized?
9963 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9965 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9967 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9972 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9974 [http://www.example.org/ ideograms]
9976 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9981 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9983 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9985 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10009 Bug 31098 Template which includes system messages which includes the template
10013 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10014 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10019 Deprecated presentational attributes are converted to css
10022 | valign=top align=left width=100 height=25% | Asdf
10024 <ul type="disc"></ul>
10028 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10030 <ul style="list-style-type: disc;"></ul>
10035 Bug31490 Turkish: ucfirst 'blah'
10046 Bug31490 Turkish: ucfirst 'ix'
10057 Bug31490 Turkish: lcfirst 'BLAH'
10068 Bug31490 Turkish: ucfırst (with a dotless i)
10074 <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>
10079 Bug31490 ucfırst (with a dotless i) with English language
10085 <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>
10090 Bug 26375: TOC with italics
10092 title=[[Main Page]]
10095 == ''Lost'' episodes ==
10097 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10099 <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>
10102 <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>
10107 Bug 26375: TOC with bold
10109 title=[[Main Page]]
10112 == '''should be bold''' then normal text ==
10114 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10116 <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>
10119 <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>
10124 Bug 33845: Headings become cursive in TOC when they contain an image
10126 title=[[Main Page]]
10129 == Image [[Image:foobar.jpg]] ==
10131 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10133 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10136 <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>
10141 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10143 title=[[Main Page]]
10146 == <blockquote>Quote</blockquote> ==
10148 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10150 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10153 <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>
10158 Unclosed tags in TOC
10160 title=[[Main Page]]
10164 <small>Hanc marginis exiguitas non caperet.</small>
10167 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10169 <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>
10172 <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>
10173 <p><small>Hanc marginis exiguitas non caperet.</small>
10179 Multiple tags in TOC
10182 == <i>Foo</i> <b>Bar</b> ==
10184 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10186 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10188 <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>
10189 <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>
10192 <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>
10193 <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>
10198 Tags with parameters in TOC
10201 == <sup class="in-h2">Hello</sup> ==
10203 == <sup class="a > b">Evilbye</sup> ==
10205 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10207 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10208 <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>
10211 <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>
10212 <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>
10219 == {{int:headline_sample}} ==
10223 Bug 32057: Title needed when expanding <h> nodes.
10225 title=[[Main Page]]
10229 <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>
10234 Strip marker in urlencode
10236 {{urlencode:x<nowiki/>y}}
10237 {{urlencode:x<nowiki/>y|wiki}}
10238 {{urlencode:x<nowiki/>y|path}}
10265 Strip marker in formatNum
10267 {{formatnum:1<nowiki/>2}}
10268 {{formatnum:1<nowiki/>2|R}}
10276 Strip marker in grammar
10280 {{grammar:elative|foo<nowiki/>bar}}
10287 Strip marker in padleft
10289 {{padleft:|2|x<nowiki/>y}}
10296 Strip marker in padright
10298 {{padright:|2|x<nowiki/>y}}
10305 Strip marker in anchorencode
10307 {{anchorencode:x<nowiki/>y}}
10314 nowiki inside link inside heading (bug 18295)
10316 ==[[foo|x<nowiki>y</nowiki>z]]==
10318 <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>
10323 new support for bdi element (bug 31817)
10325 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10327 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10332 Ignore pipe between table row attributes
10336 |- id=foo | style='color: red'
10344 <tr id="foo" style="color: red">
10351 Gallery override link with WikiLink (bug 34852)
10354 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10357 <ul class="gallery">
10358 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10359 <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>
10360 <div class="gallerytext">
10370 Gallery override link with absolute external link (bug 34852)
10373 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10376 <ul class="gallery">
10377 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10378 <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>
10379 <div class="gallerytext">
10389 Gallery override link with malicious javascript (bug 34852)
10392 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10395 <ul class="gallery">
10396 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10397 <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>
10398 <div class="gallerytext">
10408 Language parser function
10417 Padleft and padright as substr
10419 {{padleft:|3|abcde}}
10420 {{padright:|3|abcde}}
10428 Bug 34939 - Case insensitive link parsing ([HttP://])
10430 [HttP://MediaWiki.Org/]
10432 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
10437 Bug 34939 - Case insensitive link parsing ([HttP:// title])
10439 [HttP://MediaWiki.Org/ MediaWiki]
10441 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
10446 Bug 34939 - Case insensitive link parsing (HttP://)
10448 HttP://MediaWiki.Org/
10450 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
10460 Try for 100% code coverage