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: Pipe char between url and text
1511 [http://example.com | link]
1513 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1518 External links: protocol-relative URL in brackets
1520 [//example.com/ Test]
1522 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1527 External links: protocol-relative URL in brackets without text
1531 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1536 External links: protocol-relative URL in free text is left alone
1540 <p>//example.com/Foo
1545 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1547 foo//example.com/Foo
1549 <p>foo//example.com/Foo
1556 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1558 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1563 External image from https
1565 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1567 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1572 Link to non-http image, no img tag
1574 Link to non-http image, no img tag: ftp://example.com/test.jpg
1576 <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>
1581 External links: terminating separator
1583 Terminating separator: http://example.com/thing,
1585 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1590 External links: intervening separator
1592 Intervening separator: http://example.com/1,2,3
1594 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1599 External links: old bug with URL in query
1601 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1603 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1608 External links: old URL-in-URL bug, mixed protocols
1610 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1612 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1617 External links: URL in text
1619 URL in text: [http://example.com http://example.com]
1621 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1626 External links: Clickable images
1628 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1630 <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>
1635 External links: raw 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 ampersand
1646 Old & use: http://x&y
1648 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1653 External links: encoded equals (bug 6102)
1655 http://example.com/?foo=bar
1657 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1662 External links: [raw 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 ampersand]
1673 Old & use: [http://x&y]
1675 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1680 External links: [encoded equals] (bug 6102)
1682 [http://example.com/?foo=bar]
1684 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1689 External links: [IDN ignored character reference in hostname; strip it right off]
1691 [http://e‌xample.com/]
1693 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1697 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1698 # Where an external link could easily circumvent the sanitization of the text of
1699 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1700 # test demands a higher standard. That's a bit strange.
1704 # http://example.com -> [http://example.com|http://example.com]
1705 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1707 # The first example is sanitized, but the second is not. Any security benefits
1708 # from this production are trivial to circumvent. Either remove this test and
1709 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1710 # the test accordingly.
1715 External links: IDN ignored character reference in hostname; strip it right off
1717 http://e‌xample.com/
1719 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1724 External links: www.jpeg.org (bug 554)
1728 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1733 External links: URL within URL (original bug 2)
1735 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1737 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1742 BUG 361: URL inside bracketed URL
1744 [http://www.example.com/foo http://www.example.com/bar]
1746 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1751 BUG 361: URL within URL, not bracketed
1753 http://www.example.com/foo?=http://www.example.com/bar
1755 <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>
1760 BUG 289: ">"-token in URL-tail
1762 http://www.example.com/<hello>
1764 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1769 BUG 289: literal ">"-token in URL-tail
1771 http://www.example.com/<b>html</b>
1773 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1778 BUG 289: ">"-token in bracketed URL
1780 [http://www.example.com/<hello> stuff]
1782 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1787 BUG 289: literal ">"-token in bracketed URL
1789 [http://www.example.com/<b>html</b> stuff]
1791 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1796 BUG 289: literal double quote at end of URL
1798 http://www.example.com/"hello"
1800 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1805 BUG 289: literal double quote in bracketed URL
1807 [http://www.example.com/"hello" stuff]
1809 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1814 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1816 [http://www.example.com test]
1818 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1823 External links: wiki links within external link (Bug 3695)
1825 [http://example.com [[wikilink]] embedded in ext link]
1827 <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>
1832 BUG 787: Links with one slash after the url protocol are invalid
1836 [http:/example.com title]
1838 <p>http:/example.com
1839 </p><p>[http:/example.com title]
1844 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1846 ''[http://example.com text'']
1847 [http://example.com '''text]'''
1848 ''Something [http://example.com in italic'']
1849 ''Something [http://example.com mixed''''', even bold]'''
1850 '''''Now [http://example.com both''''']
1852 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1853 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1854 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1855 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1856 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1862 Bug 4781: %26 in URL
1864 http://www.example.com/?title=AT%26T
1866 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1870 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1871 # % is actually legal in HTML5. Any change in output would need testing though.
1873 Bug 4781, 5267: %25 in URL
1875 http://www.example.com/?title=100%25_Bran
1877 <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>
1882 Bug 4781, 5267: %28, %29 in URL
1884 http://www.example.com/?title=Ben-Hur_%281959_film%29
1886 <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>
1892 Bug 4781: %26 in autonumber URL
1894 [http://www.example.com/?title=AT%26T]
1896 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1901 Bug 4781, 5267: %26 in autonumber URL
1903 [http://www.example.com/?title=100%25_Bran]
1905 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1910 Bug 4781, 5267: %28, %29 in autonumber URL
1912 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1914 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1920 Bug 4781: %26 in bracketed URL
1922 [http://www.example.com/?title=AT%26T link]
1924 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1929 Bug 4781, 5267: %26 in bracketed URL
1931 [http://www.example.com/?title=100%25_Bran link]
1933 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1938 Bug 4781, 5267: %28, %29 in bracketed URL
1940 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1942 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1947 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1949 Some [http://example.com/ pretty ''italics'' and stuff]!
1951 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1956 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1958 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1960 <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>
1965 External link containing double-single-quotes with no space separating the url from text in italics
1967 [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]].]
1969 <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>
1974 URL-encoding in URL functions (single parameter)
1976 {{localurl:Some page|amp=&}}
1978 <p>/index.php?title=Some_page&amp=&
1983 URL-encoding in URL functions (multiple parameters)
1985 {{localurl:Some page|q=?&=&}}
1987 <p>/index.php?title=Some_page&q=?&amp=&
1994 http://example.com/index.php?foozoid%5B%5D=bar
1996 http://example.com/index.php?foozoid[]=bar
1998 <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>
1999 </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>
2004 IPv6 urls (bug 21261)
2008 http://[2404:130:0:1000::187:2]/index.php
2010 <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>
2021 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2023 Normal text. '''''Bold italic text.''''' Normal text.
2025 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2026 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2032 Unclosed and unmatched quotes
2034 '''''Bold italic text '''with bold deactivated''' in between.'''''
2036 '''''Bold italic text ''with italic deactivated'' in between.'''''
2040 ..spanning two paragraphs (should not work).'''
2042 '''Bold tag left open
2044 ''Italic tag left open
2048 <!-- Unmatching number of opening, closing tags: -->
2049 '''This year''''s election ''should'' beat '''last year''''s.
2051 ''Tom'''s car is bigger than ''Susan'''s.
2053 Plain ''italic'''s plain
2055 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2056 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2057 </p><p><b>Bold text..</b>
2058 </p><p>..spanning two paragraphs (should not work).
2059 </p><p><b>Bold tag left open</b>
2060 </p><p><i>Italic tag left open</i>
2062 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2063 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2064 </p><p>Plain <i>italic'</i>s plain
2071 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2074 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2075 # is the bare minimun required by the spec, see:
2076 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2078 A table with no data.
2084 # A table with nothing but a caption is invalid XHTML, we might want to render
2085 # this as <p>caption</p>
2087 A table with nothing but a caption
2095 </caption><tr><td></td></tr></table>
2121 Multiplication table
2123 {| border="1" cellpadding="2"
2124 |+Multiplication table
2126 ! × !! 1 !! 2 !! 3
2144 <table border="1" cellpadding="2">
2145 <caption>Multiplication table
2196 |rowspan=2| Cell 2, row 1 (and 2)
2207 <td rowspan="2"> Cell 2, row 1 (and 2)
2225 {| bgcolor=#ABCDEF border=2
2230 |the original table again
2238 <table bgcolor="#ABCDEF" border="2">
2246 <td>the original table again
2252 Invalid attributes in table cell (bug 1830)
2267 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2270 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2274 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2275 <td>]" onmouseover="alert(document.cookie)">test
2284 Indented table markup mixed with indented pre content (proposed in bug 6200)
2289 Text that should be rendered preformatted
2297 <pre>Text that should be rendered preformatted
2310 Plain link, capitalized
2314 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2319 Plain link, uncapitalized
2323 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2330 [[Main Page|The Main Page]]
2332 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2341 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2346 Broken link with fragment
2348 [[Zigzagzogzagzig#zug]]
2350 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2355 Special page link with fragment
2357 [[Special:Version#anchor]]
2359 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2364 Nonexistent special page link with fragment
2366 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2368 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2375 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2377 <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>
2384 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2386 <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>!!!
2391 Link with 3 brackets
2400 Piped link with 3 brackets
2402 [[[main page|the main page]]]
2404 <p>[[[main page|the main page]]]
2409 Link with multiple pipes
2411 [[Main Page|The|Main|Page]]
2413 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2420 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2422 <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>
2427 Piped link to namespace
2429 [[Meta:Disclaimers|The disclaimers]]
2431 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2438 [[Usually caused by a typo (oops}]]
2440 <p>[[Usually caused by a typo (oops}]]
2445 Link containing % (not as a hex sequence)
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 single hex sequence interpreted to char
2458 <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>
2463 Link containing % as a double hex sequence interpreted to hex sequence
2467 <p>[[7%2525 Solution]]
2472 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2473 Example for such a section: == < ==
2475 [[%23%3c]][[%23%3e]]
2477 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2482 Link containing "<#" and ">#" as a hex sequences
2484 [[%3c%23]][[%3e%23]]
2486 <p>[[%3c%23]][[%3e%23]]
2491 Link containing double-single-quotes '' (bug 4598)
2493 [[Lista d''e paise d''o munno]]
2495 <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>
2500 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2502 Some [[Link|pretty ''italics'' and stuff]]!
2504 <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>!
2509 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2511 ''Some [[Link|pretty ''italics'' and stuff]]!
2513 <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>
2518 Link with double quotes in title part (literal) and alternate part (interpreted)
2520 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2524 [[''Pentecoste''|Pentecoste]]
2526 [[''Pentecoste''|''Pentecoste'']]
2528 <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>
2529 </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>
2530 </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>
2531 </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>
2536 Broken image links with HTML captions (bug 39700)
2538 [[File:Nonexistent|<script></script>]]
2539 [[File:Nonexistent|100px|<script></script>]]
2540 [[File:Nonexistent|<]]
2541 [[File:Nonexistent|a<i>b</i>c]]
2543 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2544 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2545 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2546 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2553 [[http://www.example.com]]
2555 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2560 Plain link to URL with link text
2562 [[http://www.example.com Link text]]
2564 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2569 Plain link to protocol-relative URL
2571 [[//www.example.com]]
2573 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2578 Plain link to protocol-relative URL with link text
2580 [[//www.example.com Link text]]
2582 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2587 # I'm fairly sure the expected result here is wrong.
2588 # We want these to be URL links, not pseudo-pages with URLs for titles....
2589 # However the current output is also pretty screwy.
2592 # I'm changing it to match the current output--it arguably makes more
2593 # sense in the light of the test above. Old expected result was:
2594 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2596 # But I think this test is bordering on "garbage in, garbage out" anyway.
2601 Piped link to URL: [[http://www.example.com|an example URL]]
2603 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2608 BUG 2: [[page|http://url/]] should link to page, not http://url/
2610 [[Main Page|http://url/]]
2612 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2617 BUG 337: Escaped self-links should be bold
2621 [[Bug462]] [[Bug462]]
2623 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2628 Self-link to section should not be bold
2632 [[Main Page#section]]
2634 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2645 Self-link to numeric title
2651 <p><strong class="selflink">0</strong>
2656 Link to numeric-equivalent title
2662 <p><a href="/wiki/00" title="00">00</a>
2667 <nowiki> inside a link
2669 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2671 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2676 Non-breaking spaces in title
2678 [[ Main Page ]]
2680 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2685 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2691 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2696 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2702 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2707 Internal link with en linktrail: no apostrophes (bug 27473)
2713 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2718 Internal link with ca linktrail with apostrophes (bug 27473)
2724 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2729 Internal link with kaa linktrail with apostrophes (bug 27473)
2735 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2740 ### Interwiki links (see maintenance/interwiki.sql)
2744 Inline interwiki link
2746 [[MeatBall:SoftSecurity]]
2748 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2753 Inline interwiki link with empty title (bug 2372)
2757 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2762 Interwiki link encoding conversion (bug 1636)
2764 *[[Wikipedia:ro:Olteniţa]]
2765 *[[Wikipedia:ro:Olteniţa]]
2767 <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>
2768 </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>
2774 Interwiki link with fragment (bug 2130)
2776 [[MeatBall:SoftSecurity#foo]]
2778 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2793 Double interlanguage link
2804 Interlanguage link, with prefix links
2816 Double interlanguage link, with prefix links (bug 8897)
2843 Incorrecly removing closing slashes from correctly formed XHTML
2845 <br style="clear:both;" />
2847 <p><br style="clear:both;" />
2852 Failing to transform badly formed HTML into correct XHTML
2854 <br style="clear: left;">
2855 <br style="clear: right;">
2856 <br style="clear: both;">
2858 <p><br style="clear: left;" />
2859 <br style="clear: right;" />
2860 <br style="clear: both;" />
2865 Handling html with a div self-closing tag
2874 <p><div title />
2878 <p><div title=bar />
2879 <div title=bar/>
2881 <div title="bar/"></div>
2887 Handling html with a br self-closing tag
2896 <p><br title="title" />
2897 <br title="title" />
2906 Horizontal ruler (should it add that extra space?)
2920 Horizontal ruler -- 4+ dashes render hr
2929 Horizontal ruler -- eats additional dashes on the same line
2938 Horizontal ruler -- does not collaps dashes on consecutive lines
2949 Horizontal ruler -- <4 dashes render as plain text
2958 ### Block-level elements
2981 <ol><li>Numbered list
2998 ***#Number on level 4
3000 **#Number on level 3
3001 **#Number on level 3
3005 #** Level 3, but ordered
3008 <ol><li> with numbers
3010 <ul><li> and bullets
3012 <ol><li> and numbers
3014 </li><li>bullets again
3015 <ul><li>bullet level 2
3016 <ul><li>bullet level 3
3017 <ol><li>Number on level 4
3020 </li><li>bullet level 2
3021 <ol><li>Number on level 3
3022 </li><li>Number on level 3
3025 <ol><li>number level 2
3028 <ul><li><ul><li> Level 3
3032 <ol><li><ul><li><ul><li> Level 3, but ordered
3066 Nested lists 3 (first element empty)
3079 Nested lists 4 (first element empty)
3092 Nested lists 5 (both elements empty)
3105 Nested lists 6 (both elements empty)
3118 Nested lists 7 (skip initial nesting levels)
3122 <ul><li><ul><li><ul><li> foo
3130 Nested lists 8 (multiple nesting transitions)
3138 <ul><li><ul><li> bar
3149 List items are not parsed correctly following a <pre> block (bug 785)
3155 <ul><li> <pre>foo</pre>
3156 </li><li> <pre>bar</pre>
3163 List items from template
3174 * notSOL{{inner list}}
3193 List interrupted by empty line or heading
3203 <ul><li><ul><li> bar
3206 <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>
3207 <ul><li> Another list item
3218 Magic Word: {{CURRENTDAY}}
3227 Magic Word: {{CURRENTDAY2}}
3236 Magic Word: {{CURRENTDAYNAME}}
3245 Magic Word: {{CURRENTDOW}}
3254 Magic Word: {{CURRENTMONTH}}
3263 Magic Word: {{CURRENTMONTHABBREV}}
3265 {{CURRENTMONTHABBREV}}
3272 Magic Word: {{CURRENTMONTHNAME}}
3274 {{CURRENTMONTHNAME}}
3281 Magic Word: {{CURRENTMONTHNAMEGEN}}
3283 {{CURRENTMONTHNAMEGEN}}
3290 Magic Word: {{CURRENTTIME}}
3299 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3308 Magic Word: {{CURRENTYEAR}}
3317 Magic Word: {{FULLPAGENAME}}
3319 title=[[User:Ævar Arnfjörð Bjarmason]]
3323 <p>User:Ævar Arnfjörð Bjarmason
3328 Magic Word: {{FULLPAGENAMEE}}
3330 title=[[User:Ævar Arnfjörð Bjarmason]]
3334 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3339 Magic Word: {{NAMESPACE}}
3341 title=[[User:Ævar Arnfjörð Bjarmason]]
3350 Magic Word: {{NAMESPACEE}}
3352 title=[[User:Ævar Arnfjörð Bjarmason]]
3361 Magic Word: {{NAMESPACENUMBER}}
3363 title=[[User:Ævar Arnfjörð Bjarmason]]
3372 Magic Word: {{NUMBEROFFILES}}
3381 Magic Word: {{PAGENAME}}
3383 title=[[User:Ævar Arnfjörð Bjarmason]]
3387 <p>Ævar Arnfjörð Bjarmason
3392 Magic Word: {{PAGENAME}} with metacharacters
3394 title=[['foo & bar = baz']]
3398 <p><i>'foo & bar = baz'</i>
3403 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3405 title=[[*RFC 1234 http://example.com/]]
3409 <p>*RFC 1234 http://example.com/
3414 Magic Word: {{PAGENAMEE}}
3416 title=[[User:Ævar Arnfjörð Bjarmason]]
3420 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3425 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3427 title=[[*RFC 1234 http://example.com/]]
3431 <p>*RFC_1234_http://example.com/
3436 Magic Word: {{REVISIONID}}
3445 Magic Word: {{SCRIPTPATH}}
3454 Magic Word: {{SERVER}}
3458 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3463 Magic Word: {{SERVERNAME}}
3472 Magic Word: {{SITENAME}}
3481 Namespace 1 {{ns:1}}
3490 Namespace 1 {{ns:01}}
3499 Namespace 0 {{ns:0}} (bug 4783)
3507 Namespace 0 {{ns:00}} (bug 4783)
3515 Namespace -1 {{ns:-1}}
3524 Namespace User {{ns:User}}
3533 Namespace User talk {{ns:User_talk}}
3542 Namespace User talk {{ns:uSeR tAlK}}
3551 Namespace File {{ns:File}}
3560 Namespace File {{ns:Image}}
3569 Namespace (lang=de) Benutzer {{ns:User}}
3580 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3586 <p>Benutzer Diskussion
3594 {{urlencode:hi world?!}}
3595 {{urlencode:hi world?!|WIKI}}
3596 {{urlencode:hi world?!|PATH}}
3597 {{urlencode:hi world?!|QUERY}}
3610 Magic links: internal link to RFC (bug 479)
3614 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3619 Magic links: RFC (bug 479)
3623 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3628 Magic links: ISBN (bug 1937)
3632 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3637 Magic links: PMID incorrectly converts space to underscore
3641 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3650 Nonexistent template
3652 {{thistemplatedoesnotexist}}
3654 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3661 This is a test template
3669 <p>This is a test template
3674 Template with explicit namespace
3678 <p>This is a test template
3686 This is a test template with parameter {{{param}}}
3692 {{paramtest|param=foo}}
3694 <p>This is a test template with parameter foo
3699 Template:paramtestnum
3705 Template unnamed parameter
3707 {{paramtestnum|Main Page|the main page}}
3709 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3714 Template:templatesimple
3720 Template:templateredirect
3722 #redirect [[Template:templatesimple]]
3726 Template:templateasargtestnum
3732 Template:templateasargtest
3734 {{template{{{templ}}}}}
3738 Template:templateasargtest2
3744 Template with template name as unnamed argument
3746 {{templateasargtestnum|templatesimple}}
3753 Template with template name as argument
3755 {{templateasargtest|templ=simple}}
3762 Template with template name as argument (2)
3764 {{templateasargtest2|templ=templatesimple}}
3771 Template:templateasargtestdefault
3773 {{{{{templ|templatesimple}}}}}
3783 Template with default value
3785 {{templateasargtestdefault}}
3792 Template with default value (value set)
3794 {{templateasargtestdefault|templ=templa}}
3803 {{templateredirect}}
3810 Template with argument in separate line
3812 {{ templateasargtest |
3820 Template with complex template as argument
3823 param ={{ templateasargtest |
3826 <p>This is a test template with parameter (test)
3831 Template with thumb image (with link in description)
3834 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3836 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>
3841 Template:complextemplate
3843 {{{1}}} {{paramtest|
3844 param ={{{param}}}}}
3848 Template with complex arguments
3851 param ={{ templateasargtest |
3852 templ = simple }}|[[Template:complextemplate|link]]}}
3854 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3859 BUG 553: link with two variables in a piped link
3862 |[[{{{1}}}|{{{2}}}]]
3867 <td>[[{{{1}}}|{{{2}}}]]
3873 Magic variable as template parameter
3875 {{paramtest|param={{SITENAME}}}}
3877 <p>This is a test template with parameter MediaWiki
3884 [[{{{param}}}|link]]
3888 Template parameter as link source
3890 {{linktest|param=Main Page}}
3892 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3900 including another template, {{paramtest|param={{{arg}}}}}
3904 Template passing argument to another template
3906 {{paramtest2|arg='hmm'}}
3908 <p>including another template, This is a test template with parameter 'hmm'
3919 Template as link source
3923 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3941 Template infinite loop
3945 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3950 Template from main namespace
3969 BUG 529: Template with table, not included at beginning of line
3988 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4008 BUG 41: Template parameters shown as broken links
4020 ''None'' of '''this''' should be
4022 but rather passed unmodified
4026 # hmm, fix this or just deprecate msgnw and document its behavior?
4032 {{msgnw:MSGNW test}}
4034 <p>''None'' of '''this''' should be
4036 but rather passed unmodified
4044 {{int:youhavenewmessages|lots of money|not!}}
4046 <p>You have lots of money (not!).
4053 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4057 <includeonly> and <noinclude> being included
4068 <onlyinclude>Foo</onlyinclude>bar
4072 <onlyinclude> being included
4084 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4088 <onlyinclude> and <includeonly> being included
4097 <includeonly> and <noinclude> on a page
4099 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4106 <onlyinclude> on a page
4108 <onlyinclude>Foo</onlyinclude>bar
4115 Template:Includeonly section
4118 ==Includeonly section==
4124 Bug 6563: Edit link generation for section shown by <includeonly>
4126 {{includeonly section}}
4128 <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>
4129 <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>
4133 # Uses same input as the contents of [[Template:Includeonly section]]
4135 Bug 6563: Section extraction for section shown by <includeonly>
4140 ==Includeonly section==
4148 Bug 6563: Edit link generation for section suppressed by <includeonly>
4151 ==Includeonly section==
4155 <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>
4160 Bug 6563: Section extraction for section suppressed by <includeonly>
4165 ==Includeonly section==
4173 ### Testing parsing of templates where a template arg
4174 ### has the same name as the template itself.
4184 Templates: Template Name/Arg clash: 1. Use of positional param
4193 Templates: Template Name/Arg clash: 2. Use of named param
4202 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4211 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4220 Templates: 1. Simple use
4229 Templates: 2. Inside a block tag
4231 <div>{{echo|Foo}}</div>
4238 Templates: P-wrapping: 1a. Templates on consecutive lines
4249 Templates: P-wrapping: 1b. Templates on consecutive lines
4263 Templates: P-wrapping: 1c. Templates on consecutive lines
4266 {{echo|bar}} <div>baz</div>
4275 Templates: Inline Text: 1. Multiple tmeplate uses
4277 {{echo|Foo}}bar{{echo|baz}}
4284 Templates: Inline Text: 2. Back-to-back template uses
4286 {{echo|Foo}}{{echo|bar}}
4293 Templates: Block Tags: 1. Multiple template uses
4295 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4297 <div>Foo</div><div>bar</div><div>baz</div>
4302 Templates: Block Tags: 2. Back-to-back template uses
4304 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4306 <div>Foo</div><div>bar</div>
4311 Templates: Links: 1. Simple example
4313 {{echo|[[Foo|bar]]}}
4315 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4320 Templates: Links: 2. Generation of link href
4322 [[{{echo|Foo}}|bar]]
4324 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4329 Templates: Links: 3. Generation of part of a link href
4331 [[Fo{{echo|o}}|bar]]
4333 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4338 Templates: Links: 4. Multiple templates generating link href
4340 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4342 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4347 Templates: Links: 5. Generation of link text
4349 [[Foo|{{echo|bar}}]]
4351 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4356 Templates: Links: 5. Nested templates (only outermost template should be marked)
4358 {{echo|[[{{echo|Foo}}|bar]]}}
4360 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4365 Templates: HTML Tag: 1. Generation of HTML attr. key
4367 <div {{echo|style}}="color:red;">foo</div>
4369 <div style="color:red;">foo</div>
4374 Templates: HTML Tag: 2. Generation of HTML attr. value
4376 <div style={{echo|'color:red;'}}>foo</div>
4378 <div style="color:red;">foo</div>
4383 Templates: HTML Tag: 3. Generation of HTML attr key and value
4385 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4387 <div style="color:red;">foo</div>
4392 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4394 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4396 <div title="This is a long title with just one piece templated">foo</div>
4401 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4403 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4405 <div title="This is a long title with just one piece templated">foo</div>
4410 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4412 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4414 <div title="This is a long title with just one piece templated">foo</div>
4419 Templates: Tables: 1. Generating start of a HTML table
4421 {{echo|<table><tr><td>foo</td>}}</tr></table>
4423 <table><tr><td>foo</td></tr></table>
4428 Templates: Tables: 2a. Generating middle of a HTML table
4430 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4432 <table><tr><td>foo</td></tr></table>
4437 Templates: Tables: 2b. Generating middle of a HTML table
4439 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4441 <table><tr><td>foo</td></tr></table>
4446 Templates: Tables: 3. Generating end of a HTML table
4448 <table><tr>{{echo|<td>foo</td></tr></table>}}
4450 <table><tr><td>foo</td></tr></table>
4455 Templates: Tables: 4a. Generating a single tag of a HTML table
4457 {{echo|<table>}}<tr><td>foo</td></tr></table>
4459 <table><tr><td>foo</td></tr></table>
4464 Templates: Tables: 4b. Generating a single tag of a HTML table
4466 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4468 <table><tr><td>foo</td></tr></table>
4473 Templates: Tables: 4c. Generating a single tag of a HTML table
4475 <table><tr>{{echo|<td>}}foo</td></tr></table>
4477 <table><tr><td>foo</td></tr></table>
4482 Templates: Tables: 4d. Generating a single tag of a HTML table
4484 <table><tr><td>foo{{echo|</td>}}</tr></table>
4486 <table><tr><td>foo</td></tr></table>
4491 Templates: Tables: 4e. Generating a single tag of a HTML table
4493 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4495 <table><tr><td>foo</td></tr></table>
4500 Templates: Tables: 4f. Generating a single tag of a HTML table
4502 <table><tr><td>foo</td></tr>{{echo|</table>}}
4504 <table><tr><td>foo</td></tr></table>
4509 Templates: Pre: 1a. Templates that break a line should suppress <pre>
4517 Templates: Pre: 1b. Templates that break a line should suppress <pre>
4527 Parser Functions: 1. Simple example
4536 Parser Functions: 2. Nested use (only outermost should be marked up)
4545 ### Pre-save transform tests
4548 pre-save transform: subst:
4554 This is a test template
4558 pre-save transform: normal template
4568 pre-save transform: nonexistent template
4572 {{thistemplatedoesnotexist}}
4574 {{thistemplatedoesnotexist}}
4579 pre-save transform: subst magic variables
4588 # This is bug 89, which I fixed. -- wtm
4590 pre-save transform: subst: templates with parameters
4594 {{subst:paramtest|param="something else"}}
4596 This is a test template with parameter "something else"
4602 <nowiki>'''not wiki'''</nowiki>
4606 pre-save transform: nowiki in subst (bug 1188)
4610 {{subst:nowikitest}}
4612 <nowiki>'''not wiki'''</nowiki>
4617 Template:commenttest
4619 This template has <!-- a comment --> in it.
4623 pre-save transform: comment in subst (bug 1936)
4627 {{subst:commenttest}}
4629 This template has <!-- a comment --> in it.
4633 pre-save transform: unclosed tag
4637 <nowiki>'''not wiki'''
4639 <nowiki>'''not wiki'''
4643 pre-save transform: mixed tag case
4647 <NOwiki>'''not wiki'''</noWIKI>
4649 <NOwiki>'''not wiki'''</noWIKI>
4653 pre-save transform: unclosed comment in <nowiki>
4657 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4659 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4665 <span onmouseover="alert('crap')">Oh no</span>
4669 (confirming safety of fix for subst bug 1936)
4671 {{Template:dangerous}}
4673 <p><span>Oh no</span>
4678 pre-save transform: comment containing gallery (bug 5024)
4682 <!-- <gallery>data</gallery> -->
4684 <!-- <gallery>data</gallery> -->
4688 pre-save transform: comment containing extension
4692 <!-- <tag>data</tag> -->
4694 <!-- <tag>data</tag> -->
4698 pre-save transform: comment containing nowiki
4702 <!-- <nowiki>data</nowiki> -->
4704 <!-- <nowiki>data</nowiki> -->
4708 pre-save transform: <noinclude> in subst (bug 3298)
4718 pre-save transform: <onlyinclude> in subst (bug 3298)
4730 {{<includeonly>subst:</includeonly>Includes}}
4734 Template:SafeSubstTest
4736 {{<includeonly>safesubst:</includeonly>Includes}}
4740 bug 22297: safesubst: works during PST
4744 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4750 bug 22297: safesubst: works during normal parse
4759 subst: does not work during normal parse
4763 <p>{{subst:Includes}}
4768 pre-save transform: context links ("pipe trick")
4772 [[Article (context)|]]
4775 [[Bar:Article (context)|]]
4776 [[:Bar:Article (context)|]]
4778 [[|Article (context)]]
4782 [[Article (context)|Article]]
4783 [[Bar:Article|Article]]
4784 [[:Bar:Article|Article]]
4785 [[Bar:Article (context)|Article]]
4786 [[:Bar:Article (context)|Article]]
4788 [[Article (context)]]
4789 [[Bar:X (Y) Z|X (Y) Z]]
4790 [[:Bar:X (Y) Z|X (Y) Z]]
4794 pre-save transform: context links ("pipe trick") with interwiki prefix
4798 [[interwiki:Article|]]
4799 [[:interwiki:Article|]]
4800 [[interwiki:Bar:Article|]]
4801 [[:interwiki:Bar:Article|]]
4803 [[interwiki:Article|Article]]
4804 [[:interwiki:Article|Article]]
4805 [[interwiki:Bar:Article|Bar:Article]]
4806 [[:interwiki:Bar:Article|Bar:Article]]
4810 pre-save transform: context links ("pipe trick") with parens in title
4812 pst title=[[Somearticle (context)]]
4816 [[Article (context)|Article]]
4820 pre-save transform: context links ("pipe trick") with comma in title
4822 pst title=[[Someplace, Somewhere]]
4825 [[Otherplace, Elsewhere|]]
4826 [[Otherplace, Elsewhere, Anywhere|]]
4828 [[Otherplace, Somewhere|Otherplace]]
4829 [[Otherplace, Elsewhere|Otherplace]]
4830 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4834 pre-save transform: context links ("pipe trick") with parens and comma
4836 pst title=[[Someplace (IGNORED), Somewhere]]
4839 [[Otherplace (place), Elsewhere|]]
4841 [[Otherplace, Somewhere|Otherplace]]
4842 [[Otherplace (place), Elsewhere|Otherplace]]
4846 pre-save transform: context links ("pipe trick") with comma and parens
4848 pst title=[[Who, me? (context)]]
4851 [[Me, Myself, and I (1937 song)|]]
4853 [[Yes, you. (context)|Yes, you.]]
4854 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4858 pre-save transform: context links ("pipe trick") with namespace
4860 pst title=[[Ns:Somearticle]]
4864 [[Ns:Article|Article]]
4868 pre-save transform: context links ("pipe trick") with namespace and parens
4870 pst title=[[Ns:Somearticle (context)]]
4874 [[Ns:Article (context)|Article]]
4878 pre-save transform: context links ("pipe trick") with namespace and comma
4880 pst title=[[Ns:Somearticle, Context, Whatever]]
4884 [[Ns:Article, Context, Whatever|Article]]
4888 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4890 pst title=[[Ns:Somearticle, Context (context)]]
4894 [[Ns:Article (context)|Article]]
4898 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4900 pst title=[[Ns:Somearticle (IGNORED), Context]]
4904 [[Ns:Article, Context|Article]]
4908 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4912 [[Article(context)|]]
4913 [[Bar:Article(context)|]]
4914 [[:Bar:Article(context)|]]
4915 [[|Article(context)]]
4919 [[Article(context)|Article]]
4920 [[Bar:Article(context)|Article]]
4921 [[:Bar:Article(context)|Article]]
4922 [[Article(context)]]
4924 [[:Bar:X(Y)Z|X(Y)Z]]
4928 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4932 [[Article (context)|]]
4933 [[Bar:Article (context)|]]
4934 [[:Bar:Article (context)|]]
4935 [[|Article (context)]]
4939 [[Article (context)|Article]]
4940 [[Bar:Article (context)|Article]]
4941 [[:Bar:Article (context)|Article]]
4942 [[Article (context)]]
4943 [[Bar:X (Y) Z|X (Y) Z]]
4944 [[:Bar:X (Y) Z|X (Y) Z]]
4948 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4952 [[Article(context)|]]
4953 [[Bar:Article(context)|]]
4954 [[:Bar:Article(context)|]]
4955 [[|Article(context)]]
4959 [[Article(context)|Article]]
4960 [[Bar:Article(context)|Article]]
4961 [[:Bar:Article(context)|Article]]
4962 [[Article(context)]]
4964 [[:Bar:X(Y)Z|X(Y)Z]]
4968 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4972 [[Article (context), context|]]
4973 [[Article (context),context|]]
4974 [[Bar:Article (context), context|]]
4975 [[Bar:Article (context),context|]]
4976 [[:Bar:Article (context), context|]]
4977 [[:Bar:Article (context),context|]]
4979 [[Article (context), context|Article]]
4980 [[Article (context),context|Article]]
4981 [[Bar:Article (context), context|Article]]
4982 [[Bar:Article (context),context|Article]]
4983 [[:Bar:Article (context), context|Article]]
4984 [[:Bar:Article (context),context|Article]]
4988 pre-save transform: trim trailing empty lines
4992 Empty lines are trimmed
4998 Empty lines are trimmed
5002 pre-save transform: Signature expansion
5007 * <noinclude>~~~</noinclude>
5008 * <includeonly>~~~</includeonly>
5009 * <onlyinclude>~~~</onlyinclude>
5011 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5012 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5013 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5014 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5019 pre-save transform: Signature expansion in nowiki tags (bug 93)
5025 <nowiki>~~~~</nowiki>
5027 <includeonly><nowiki>~~~~</nowiki></includeonly>
5029 <noinclude><nowiki>~~~~</nowiki></noinclude>
5031 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5033 {{subst:Foo}} shall be converted to FOO
5035 As well as inside noinclude/onlyinclude
5036 <noinclude>{{subst:Foo}}</noinclude>
5037 <onlyinclude>{{subst:Foo}}</onlyinclude>
5039 But not inside includeonly
5040 <includeonly>{{subst:Foo}}</includeonly>
5044 <nowiki>~~~~</nowiki>
5046 <includeonly><nowiki>~~~~</nowiki></includeonly>
5048 <noinclude><nowiki>~~~~</nowiki></noinclude>
5050 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5052 FOO shall be converted to FOO
5054 As well as inside noinclude/onlyinclude
5055 <noinclude>FOO</noinclude>
5056 <onlyinclude>FOO</onlyinclude>
5058 But not inside includeonly
5059 <includeonly>{{subst:Foo}}</includeonly>
5063 ### Message transform tests
5066 message transform: magic variables
5076 message transform: should not transform wiki markup
5086 message transform: <noinclude> in transcluded template (bug 4926)
5096 message transform: <onlyinclude> in transcluded template (bug 4926)
5106 {{#special:}} page name, known
5110 {{#special:Recentchanges}}
5112 Special:RecentChanges
5116 {{#special:}} page name with subpage, known
5120 {{#special:Recentchanges/param}}
5122 Special:RecentChanges/param
5126 {{#special:}} page name, unknown
5130 {{#special:foobarnonexistent}}
5132 No such special page
5136 {{#speciale:}} page name, known
5140 {{#speciale:Recentchanges}}
5142 Special:RecentChanges
5146 {{#speciale:}} page name with subpage, known
5150 {{#speciale:Recentchanges/param}}
5152 Special:RecentChanges/param
5156 {{#speciale:}} page name, unknown
5160 {{#speciale:foobarnonexistent}}
5162 No_such_special_page
5171 [[Image:foobar.jpg]]
5173 <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>
5180 [[Image:foobar.jpg|right]]
5182 <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>
5187 Simple image (using File: namespace, now canonical)
5191 <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>
5198 [[Image:foobar.jpg|right|Caption text]]
5200 <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>
5205 Image with link parameter, wiki target
5207 [[Image:foobar.jpg|link=Target page]]
5209 <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>
5214 Image with link parameter, URL target
5216 [[Image:foobar.jpg|link=http://example.com/]]
5218 <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>
5223 Image with link parameter, wgExternalLinkTarget
5225 [[Image:foobar.jpg|link=http://example.com/]]
5227 wgExternalLinkTarget='foobar'
5229 <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>
5234 Image with link parameter, wgNoFollowLinks set to false
5236 [[Image:foobar.jpg|link=http://example.com/]]
5238 wgNoFollowLinks=false
5240 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5245 Image with link parameter, wgNoFollowDomainExceptions
5247 [[Image:foobar.jpg|link=http://example.com/]]
5249 wgNoFollowDomainExceptions='example.com'
5251 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5256 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5258 [[Image:foobar.jpg|link=http://example.com/|Title]]
5260 wgExternalLinkTarget='foobar'
5262 <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>
5267 Image with empty link parameter
5269 [[Image:foobar.jpg|link=]]
5271 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5276 Image with link parameter (wiki target) and unnamed parameter
5278 [[Image:foobar.jpg|link=Target page|Title]]
5280 <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>
5285 Image with link parameter (URL target) and unnamed parameter
5287 [[Image:foobar.jpg|link=http://example.com/|Title]]
5289 <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>
5294 Thumbnail image with link parameter
5296 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5298 <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>
5303 Image with frame and link
5305 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5307 <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>
5312 Image with frame and link and explicit alt
5314 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5316 <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>
5321 Image with wiki markup in implicit alt
5323 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5325 <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>
5330 Image with wiki markup in explicit alt
5332 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5334 <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>
5339 Link to image page- image page normally doesn't exists, hence edit link
5340 Add test with existing image page
5341 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5345 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5350 bug 18784 Link to non-existent image page with caption should use caption as link text
5352 [[:Image:test|caption]]
5354 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5359 Frameless image caption with a free URL
5361 [[Image:foobar.jpg|http://example.com]]
5363 <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>
5368 Thumbnail image caption with a free URL
5370 [[Image:foobar.jpg|thumb|http://example.com]]
5372 <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>
5377 Thumbnail image caption with a free URL and explicit alt
5379 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5381 <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>
5386 BUG 1887: A ISBN with a thumbnail
5388 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5390 <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>
5395 BUG 1887: A RFC with a thumbnail
5397 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5399 <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>
5404 BUG 1887: A mailto link with a thumbnail
5406 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5408 <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>
5412 # Pending resolution to bug 368
5414 BUG 648: Frameless image caption with a link
5416 [[Image:foobar.jpg|text with a [[link]] in it]]
5418 <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>
5423 BUG 648: Frameless image caption with a link (suffix)
5425 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5427 <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>
5432 BUG 648: Frameless image caption with an interwiki link
5434 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5436 <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>
5441 BUG 648: Frameless image caption with a piped interwiki link
5443 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5445 <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>
5450 Escape HTML special chars in image alt text
5452 [[Image:foobar.jpg|& < > "]]
5454 <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>
5459 BUG 499: Alt text should have Ӓ, not &1234;
5461 [[Image:foobar.jpg|♀]]
5463 <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>
5468 Broken image caption with link
5470 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5472 <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.
5477 Image caption containing another image
5479 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5481 <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>
5486 Image caption containing a newline
5488 [[Image:Foobar.jpg|This
5491 <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>
5497 Bug 3090: External links other than http: in image captions
5499 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5501 <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>
5508 [[Image:foobar.jpg|a|class=b]]
5510 <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>
5517 #REDIRECT [[File:Barfoo.jpg]]
5523 [[Image:Barfoo.jpg]]
5525 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5530 Missing image with uploads disabled
5534 [[Image:Foobaz.jpg]]
5536 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5545 Subpage test/subpage
5553 subpage title=[[Subpage test]]
5557 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5562 Subpage noslash link
5564 subpage title=[[Subpage test]]
5568 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5577 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5582 BUG 561: {{/Subpage}}
5584 subpage title=[[Page]]
5588 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5596 Category:MediaWiki User's Guide
5604 [[:Category:MediaWiki User's Guide]]
5606 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5615 [[Category:MediaWiki User's Guide]]
5617 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5621 PAGESINCATEGORY invalid title fatal (r33546 fix)
5623 {{PAGESINCATEGORY:<bogus>}}
5630 Category with different sort key
5634 [[Category:MediaWiki User's Guide|Foo]]
5636 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5640 Category with identical sort key
5644 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5646 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5650 Category with empty sort key
5655 [[Category:MediaWiki User's Guide|]]
5657 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5661 Category with empty sort key and parentheses
5666 [[Category:Foo (bar)|]]
5668 [[Category:Foo (bar)|Foo]]
5672 ### Inter-language links
5675 Inter-language links
5681 [[zh:食品]]
5683 es:Alimento fr:Nourriture zh:食品
5690 Basic section headings
5697 ===Smaller headline===
5700 <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>
5703 <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>
5706 <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>
5712 Section headings with TOC
5715 === Subheadline 1 ===
5716 ===== Skipping a level =====
5717 ====== Skipping a level ======
5721 ===Another headline===
5723 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5725 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5727 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5729 <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>
5731 <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>
5738 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5740 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5745 <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>
5746 <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>
5747 <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>
5748 <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>
5749 <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>
5752 <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>
5756 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5758 Handling of sections up to level 6 and beyond
5761 == Level 2 Heading==
5762 === Level 3 Heading===
5763 ==== Level 4 Heading====
5764 ===== Level 5 Heading=====
5765 ====== Level 6 Heading======
5766 ======= Level 7 Heading=======
5767 ======== Level 8 Heading========
5768 ========= Level 9 Heading=========
5769 ========== Level 10 Heading==========
5771 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5773 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5775 <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>
5777 <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>
5779 <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>
5781 <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>
5783 <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>
5784 <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>
5785 <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>
5786 <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>
5787 <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>
5800 <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>
5801 <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>
5802 <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>
5803 <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>
5804 <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>
5805 <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>
5806 <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>
5807 <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>
5808 <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>
5809 <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>
5814 TOC regression (bug 9764)
5818 ==== title 1.1.1 ====
5823 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5825 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5827 <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>
5829 <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>
5832 <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>
5835 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5837 <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>
5842 <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>
5843 <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>
5844 <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>
5845 <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>
5846 <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>
5847 <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>
5852 TOC with wgMaxTocLevel=3 (bug 6204)
5858 ==== title 1.1.1 ====
5863 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5865 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5867 <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>
5868 <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>
5871 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5873 <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>
5878 <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>
5879 <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>
5880 <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>
5881 <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>
5882 <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>
5883 <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>
5888 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5894 ====Section 1.1.1====
5895 ====Section 1.1.1.1====
5898 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5900 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5902 <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>
5905 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5908 <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>
5909 <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>
5910 <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>
5911 <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>
5912 <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>
5918 Resolving duplicate section names
5923 <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>
5924 <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>
5929 Resolving duplicate section names with differing case (bug 10721)
5934 <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>
5935 <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>
5947 Template with sections, __NOTOC__
5954 <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>
5955 <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>
5956 <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>
5957 <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>
5962 __NOEDITSECTION__ keyword
5968 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5969 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5974 Link inside a section heading
5976 ==Section with a [[Main Page|link]] in it==
5978 <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>
5983 TOC regression (bug 12077)
5990 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5992 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5994 <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>
5997 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6000 <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>
6001 <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>
6002 <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>
6007 BUG 1219 URL next to image (good)
6009 http://example.com [[Image:foobar.jpg]]
6011 <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>
6016 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6019 The line above must have a trailing space!
6022 But just in case it doesn't...
6024 <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>
6025 <p>The line above must have a trailing space!
6027 <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>
6028 <p>But just in case it doesn't...
6033 Header with special characters (bug 25462)
6035 The tooltips shall not show entities to the user (ie. be double escaped)
6052 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6054 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6056 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6057 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6058 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6059 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6060 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6063 <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>
6066 <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>
6069 <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>
6072 <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>
6075 <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>
6081 Headers with excess '=' characters
6082 (Are similar tests necessary beyond the 1st level?)
6086 =''italic'' heading==
6087 ==''italic'' heading=
6089 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6091 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6092 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6093 <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>
6094 <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>
6097 <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>
6098 <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>
6099 <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>
6100 <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>
6105 BUG 1219 URL next to image (broken)
6107 http://example.com[[Image:foobar.jpg]]
6109 <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>
6114 Bug 1186 news: in the middle of text
6116 http://en.wikinews.org/wiki/Wikinews:Workplace
6118 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6124 Namespaced link must have a title
6133 Namespaced link must have a title (bad fragment version)
6135 [[Project:#fragment]]
6137 <p>[[Project:#fragment]]
6143 div with no attributes
6145 <div>HTML rocks</div>
6147 <div>HTML rocks</div>
6152 div with double-quoted attribute
6154 <div id="rock">HTML rocks</div>
6156 <div id="rock">HTML rocks</div>
6161 div with single-quoted attribute
6163 <div id='rock'>HTML rocks</div>
6165 <div id="rock">HTML rocks</div>
6170 div with unquoted attribute
6172 <div id=rock>HTML rocks</div>
6174 <div id="rock">HTML rocks</div>
6179 div with illegal double attributes
6181 <div id="a" id="b">HTML rocks</div>
6183 <div id="b">HTML rocks</div>
6188 HTML multiple attributes correction
6190 <p class="error" class="awesome">Awesome!</p>
6192 <p class="awesome">Awesome!</p>
6197 Table multiple attributes correction
6200 !+ class="error" class="awesome"| status
6205 <th class="awesome"> status
6213 <DIV ID="x">HTML ROCKS</DIV>
6215 <div id="x">HTML ROCKS</div>
6221 text with amp in the middle of nowhere
6225 <p>Remember AT&T?
6230 text with character entity: eacute
6232 I always thought é was a cute letter.
6234 <p>I always thought é was a cute letter.
6239 text with undefined character entity: xacute
6241 I always thought &xacute; was a cute letter.
6243 <p>I always thought &xacute; was a cute letter.
6255 [[Media:Foobar.jpg]]
6257 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6262 Media link with text
6264 [[Media:Foobar.jpg|A neat file to look at]]
6266 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6270 # FIXME: this is still bad HTML tag nesting
6272 Media link with nasty text
6273 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6275 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6277 <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>
6282 Media link to nonexistent file (bug 1702)
6284 [[Media:No such.jpg]]
6286 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6291 Image link to nonexistent file (bug 1850 - good)
6293 [[Image:No such.jpg]]
6295 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6300 :Image link to nonexistent file (bug 1850 - bad)
6302 [[:Image:No such.jpg]]
6304 <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>
6311 Character reference normalization in link text (bug 1938)
6313 [[Main Page|this&that]]
6315 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6322 Test for unicode normalization
6324 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6328 (bug 19451) Links should refer to the normalized form.
6336 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6337 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6338 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6339 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6340 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6345 Empty attribute crash test (bug 2067)
6347 <font color="">foo</font>
6349 <p><font color="">foo</font>
6354 Empty attribute crash test single-quotes (bug 2067)
6356 <font color=''>foo</font>
6358 <p><font color="">foo</font>
6363 Attribute test: equals, then nothing
6365 <font color=>foo</font>
6372 Attribute test: unquoted value
6374 <font color=x>foo</font>
6376 <p><font color="x">foo</font>
6381 Attribute test: unquoted but illegal value (hash)
6383 <font color=#x>foo</font>
6385 <p><font color="#x">foo</font>
6390 Attribute test: no value
6392 <font color>foo</font>
6394 <p><font color="color">foo</font>
6399 Bug 2095: link with three closing brackets
6403 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6408 Bug 2095: link with pipe and three closing brackets
6412 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6417 Bug 2095: link with pipe and three closing brackets, version 2
6419 [[Main Page|[http://example.com/]]]
6421 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6431 Template:Dangerous attribute
6433 " onmouseover="alert(document.cookie)
6437 Template:Dangerous style attribute
6439 border-size: expression(alert(document.cookie))
6445 <div style="float: right; {{{1}}}">Magic div</div>
6449 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6451 <div title="{{test}}"></div>
6453 <div title="This is a test template"></div>
6458 Bug 2304: HTML attribute safety (dangerous template; 2309)
6460 <div title="{{dangerous attribute}}"></div>
6462 <div title=""></div>
6467 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6469 <div style="{{dangerous style attribute}}"></div>
6471 <div style="/* insecure input */"></div>
6476 Bug 2304: HTML attribute safety (safe parameter; 2309)
6478 {{div style|width: 200px}}
6480 <div style="float: right; width: 200px">Magic div</div>
6485 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6487 {{div style|width: expression(alert(document.cookie))}}
6489 <div style="/* insecure input */">Magic div</div>
6494 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6496 {{div style|"><script>alert(document.cookie)</script>}}
6498 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6503 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6505 {{div style|" ><script>alert(document.cookie)</script>}}
6507 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6512 Bug 2304: HTML attribute safety (link)
6514 <div title="[[Main Page]]"></div>
6516 <div title="[[Main Page]]"></div>
6521 Bug 2304: HTML attribute safety (italics)
6523 <div title="''foobar''"></div>
6525 <div title="''foobar''"></div>
6530 Bug 2304: HTML attribute safety (bold)
6532 <div title="'''foobar'''"></div>
6534 <div title="'''foobar'''"></div>
6540 Bug 2304: HTML attribute safety (ISBN)
6542 <div title="ISBN 1234567890"></div>
6544 <div title="ISBN 1234567890"></div>
6549 Bug 2304: HTML attribute safety (RFC)
6551 <div title="RFC 1234"></div>
6553 <div title="RFC 1234"></div>
6558 Bug 2304: HTML attribute safety (PMID)
6560 <div title="PMID 1234567890"></div>
6562 <div title="PMID 1234567890"></div>
6567 Bug 2304: HTML attribute safety (web link)
6569 <div title="http://example.com/"></div>
6571 <div title="http://example.com/"></div>
6576 Bug 2304: HTML attribute safety (named web link)
6578 <div title="[http://example.com/ link]"></div>
6580 <div title="[http://example.com/ link]"></div>
6585 Bug 3244: HTML attribute safety (extension; safe)
6587 <div style="<nowiki>background:blue</nowiki>"></div>
6589 <div style="background:blue"></div>
6594 Bug 3244: HTML attribute safety (extension; unsafe)
6596 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6598 <div style="/* insecure input */"></div>
6602 # More MSIE fun discovered by Tom Gilder
6605 MSIE CSS safety test: spurious slash
6607 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6609 <div style="/* insecure input */">evil</div>
6614 MSIE CSS safety test: hex code
6616 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6618 <div style="/* insecure input */">evil</div>
6623 MSIE CSS safety test: comment in url
6625 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6627 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6632 MSIE CSS safety test: comment in expression
6634 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6636 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6642 Table attribute legitimate extension
6645 !+ style="<nowiki>color:blue</nowiki>"| status
6650 <th style="color:blue"> status
6656 Table attribute safety
6659 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6664 <th style="/* insecure input */"> status
6670 CSS line continuation 1
6672 <div style="background-image: u\ rl(test.jpg);"></div>
6674 <div style="/* insecure input */"></div>
6679 CSS line continuation 2
6681 <div style="background-image: u\ rl(test.jpg); "></div>
6683 <div style="/* insecure input */"></div>
6694 Expansion of multi-line templates in attribute values (bug 6255)
6696 <div style="background: {{identity|#00FF00}}">-</div>
6698 <div style="background: #00FF00">-</div>
6704 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6706 <div style="background:
6709 <div style="background: #00FF00">-</div>
6714 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6716 <div style="background: #00FF00">-</div>
6718 <div style="background: #00FF00">-</div>
6723 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6726 Parser hook: empty input
6739 Parser hook: empty input using terminated empty elements
6752 Parser hook: empty input using terminated empty elements (space before)
6765 Parser hook: basic input
6779 Parser hook: case insensitive
6793 Parser hook: case insensitive, redux
6806 Parser hook: nested tags
6810 <tag><tag></tag></tag>
6821 Parser hook: basic arguments
6823 <tag width=200 height = "100" depth = '50' square></tag>
6842 Parser hook: argument containing a forward slash (bug 5344)
6844 <tag filename='/tmp/bla'></tag>
6850 string(8) "/tmp/bla"
6857 Parser hook: empty input using terminated empty elements (bug 2374)
6871 # </tag> should be output literally since there is no matching tag that begins it
6873 Parser hook: basic arguments using terminated empty elements (bug 2374)
6875 <tag width=200 height = "100" depth = '50' square/>
6898 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6902 Parser hook: static parser hook not inside a comment
6904 <statictag>hello, world</statictag>
6905 <statictag action=flush/>
6913 Parser hook: static parser hook inside a comment
6915 <!-- <statictag>hello, world</statictag> -->
6916 <statictag action=flush/>
6922 # Nested template calls; this case was broken by Parser.php rev 1.506,
6926 Template:One-parameter
6928 (My parameter is: {{{1}}})
6932 Template:Map-one-parameter
6938 Nested template calls
6940 {{Map-one-parameter|One-parameter|param}}
6942 <p>(My parameter is: param)
6951 Sanitizer: Closing of open tags
6953 <s></s><table></table>
6955 <s></s><table></table>
6960 Sanitizer: Closing of open but not closed tags
6969 Sanitizer: Closing of closed but not open tags
6978 Sanitizer: Closing of closed but not open table tags
6980 Table not started</td></tr></table>
6982 <p>Table not started</td></tr></table>
6987 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6989 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6991 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6996 Sanitizer: Validating the contents of the id attribute (bug 4515)
7002 Something, but definitely not <br id="9" />...
7006 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7010 <br id="foo" /><br id="foo" />
7012 Something need to be done. foo-2 ?
7016 Language converter: output gets cut off unexpectedly (bug 5757)
7020 this bit is safe: }-
7022 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7024 then we get cut off here: }-
7026 all additional text is vanished
7028 <p>this bit is safe: }-
7029 </p><p>but if we add a conversion instance: xxx
7030 </p><p>then we get cut off here: }-
7031 </p><p>all additional text is vanished
7036 Self closed html pairs (bug 5487)
7039 <center><font id="bug" />Centered text</center>
7040 <div><font id="bug2" />In div text</div>
7042 <center><font id="bug" />Centered text</center>
7043 <div><font id="bug2" />In div text</div>
7052 Punctuation: nbsp before exclamation
7056 <p>C'est grave !
7061 Punctuation: CSS !important (bug 11874)
7063 <div style="width:50% !important">important</div>
7065 <div style="width:50% !important">important</div>
7070 Punctuation: CSS ! important (bug 11874; with space after)
7072 <div style="width:50% ! important">important</div>
7074 <div style="width:50% ! important">important</div>
7080 HTML bullet list, closed tags (bug 5497)
7095 HTML bullet list, unclosed tags (bug 5497)
7112 HTML ordered list, closed tags (bug 5497)
7127 HTML ordered list, unclosed tags (bug 5497)
7144 HTML nested bullet list, closed tags (bug 5497)
7169 HTML nested bullet list, open tags (bug 5497)
7194 HTML nested ordered list, closed tags (bug 5497)
7219 HTML nested ordered list, open tags (bug 5497)
7244 HTML ordered list item with parameters oddity
7246 <ol><li id="fragment">One</li></ol>
7248 <ol><li id="fragment">One</li></ol>
7253 bug 5918: autonumbering
7255 [http://first/] [http://second] [ftp://ftp]
7259 [mailto:enclosed@mail.tld With target]
7261 [mailto:enclosed@mail.tld]
7263 mailto:inline@mail.tld
7265 <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>
7266 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7267 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7268 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7269 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7275 # Security and HTML correctness
7276 # From Nick Jenkins' fuzz testing
7280 Fuzz testing: Parser13
7295 Fuzz testing: Parser14
7300 <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>
7301 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7303 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7310 Fuzz testing: Parser14-table
7315 <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>
7316 <table style="__TOC__">
7322 # Known to produce bogus xml (extra </td>)
7324 Fuzz testing: Parser16
7344 Fuzz testing: Parser21
7347 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7352 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7362 Fuzz testing: Parser22
7364 http://===r:::https://b
7368 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7376 # Known to produce bad XML for now
7378 Fuzz testing: Parser24
7385 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7386 <br style="onmouseover='alert(document.cookie);' " />
7388 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7393 <u class="|">}}}} >
7394 <br style="onmouseover='alert(document.cookie);'" />
7396 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7405 # Note: the current result listed for this is not what the original one was,
7406 # but the original bug was JavaScript injection, which is fixed in any case.
7407 # It's not clear that the original result listed was any more correct than the
7408 # current one. Original result:
7411 # <li class="||">
7412 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7414 Fuzz testing: Parser25 (bug 6055)
7420 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7422 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7427 Fuzz testing: URL adjacent extension (with space, clean)
7430 http://example.com <nowiki>junk</nowiki>
7432 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7437 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7440 http://example.com<nowiki>junk</nowiki>
7442 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7447 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7450 http://example.com<pre>junk</pre>
7452 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7457 Fuzz testing: image with bogus manual thumbnail
7459 [[Image:foobar.jpg|thumbnail= ]]
7461 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7466 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7468 <pre dir=" "></pre>
7470 <pre dir=" "></pre>
7475 Parsing optional HTML elements (Bug 6171)
7480 <td> Some tabular data</td>
7481 <td> More tabular data ...
7482 <td> And yet som tabular data</td>
7488 <td> Some tabular data</td>
7489 <td> More tabular data ...
7490 </td><td> And yet som tabular data</td>
7497 Correct handling of <td>, <tr> (Bug 6171)
7502 <td> Some tabular data</td>
7503 <td> More tabular data ...</td>
7504 <td> And yet som tabular data</td>
7510 <td> Some tabular data</td>
7511 <td> More tabular data ...</td>
7512 <td> And yet som tabular data</td>
7520 Parsing crashing regression (fr:JavaScript)
7524 <p></body></x>
7529 Inline wiki vs wiki block nesting
7535 <p><b>Bold paragraph</b>
7536 </p><p>New wiki paragraph
7541 Inline HTML vs wiki block nesting
7549 <p><b>Bold paragraph</b>
7550 </p><p>New wiki paragraph
7554 # Original result was this:
7555 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7557 # While that might be marginally more intuitive, maybe, the six-apostrophe
7558 # construct is clearly pathological and the result stated here (which is what
7559 # the parser actually does) is about as reasonable as anything.
7561 Mixing markup for italics and bold
7564 '''bold''''''bold''bolditalics'''''
7566 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7574 Article for special page transclusion test
7578 Special page transclusion
7581 {{Special:Prefixindex/Xyzzyx}}
7583 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7588 Special page transclusion twice (bug 5021)
7591 {{Special:Prefixindex/Xyzzyx}}
7592 {{Special:Prefixindex/Xyzzyx}}
7594 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7595 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7600 Transclusion of default MediaWiki message
7602 {{MediaWiki:Mainpage}}
7609 Transclusion of nonexistent MediaWiki message
7611 {{MediaWiki:Mainpagexxx}}
7613 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7618 Transclusion of MediaWiki message with underscore
7620 {{MediaWiki:history_short}}
7627 Transclusion of MediaWiki message with space
7629 {{MediaWiki:history short}}
7636 Invalid header with following text
7646 Section extraction test (section 0)
7666 Section extraction test (section 1)
7688 Section extraction test (section 2)
7709 Section extraction test (section 3)
7729 Section extraction test (section 4)
7753 Section extraction test (section 5)
7773 Section extraction test (section 6)
7794 Section extraction test (section 7)
7814 Section extraction test (section 8)
7834 Section extraction test (section 9)
7855 Section extraction test (section 10)
7875 Section extraction test (nonexistent section 11)
7894 Section extraction test with bogus heading (section 1)
7899 ==bogus== not a legal section
7903 ==bogus== not a legal section
7907 Section extraction test with bogus heading (section 2)
7912 ==bogus== not a legal section
7919 Section extraction test with comment after heading (section 1)
7931 Section extraction test with comment after heading (section 2)
7943 Section extraction test with bogus <nowiki> heading (section 1)
7948 ==bogus== <nowiki>not a legal section</nowiki>
7952 ==bogus== <nowiki>not a legal section</nowiki>
7956 Section extraction test with bogus <nowiki> heading (section 2)
7961 ==bogus== <nowiki>not a legal section</nowiki>
7968 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7969 # instead of respecting commented sections
7971 Section extraction prefixed by comment (section 1)
7982 Section extraction prefixed by comment (section 2)
7993 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7994 # instead of respecting HTML-style headings
7996 Section extraction, mixed wiki and html (section 1)
8012 Section extraction, mixed wiki and html (section 2)
8028 # Formerly testing for bug 3342
8030 Section extraction, heading surrounded by <noinclude>
8034 <noinclude>==unmarked==</noinclude>
8040 # Test behaviour of bug 19910
8042 Sectiion with all-equals
8047 The line above must have a trailing space
8050 But just in case it doesn't...
8054 But just in case it doesn't...
8058 Section replacement test (section 0)
8089 Section replacement test (section 1)
8118 Section replacement test (section 2)
8148 Section replacement test (section 3)
8179 Section replacement test (section 4)
8206 Section replacement test (section 5)
8237 Section replacement test (section 6)
8267 Section replacement test (section 7)
8298 Section replacement test (section 8)
8329 Section replacement test (section 9)
8358 Section replacement test (section 10)
8388 Section replacement test with initial whitespace (bug 13728)
8392 Preformatted initial line
8396 Preformatted initial line
8403 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8415 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8428 Section extraction, <pre> around bogus header (bug 10309)
8445 Section replacement, <pre> around bogus header (bug 10309)
8447 noxml replace=2,"xxx"
8468 Handling of 
 in URLs
8472 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8479 5 quotes, code coverage +1 line
8486 Special:Search page linking.
8490 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8505 * {{SUBJECTPAGENAME}}
8506 * {{SUBJECTPAGENAMEE}}
8513 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8515 <ul><li> Parser test
8516 </li><li> Parser test
8517 </li><li> Parser test
8518 </li><li> Parser_test
8519 </li><li> Parser test
8520 </li><li> Parser_test
8521 </li><li> Talk:Parser test
8522 </li><li> Talk:Parser_test
8523 </li><li> Parser test
8524 </li><li> Parser_test
8531 </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>
8535 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8545 image4 |300px| centre
8546 image5.svg| http://///////
8551 <ul class="gallery">
8552 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8553 <div style="height: 150px;">Image1.png</div>
8554 <div class="gallerytext">
8557 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8558 <div style="height: 150px;">Image2.gif</div>
8559 <div class="gallerytext">
8564 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8565 <div style="height: 150px;">Image3</div>
8566 <div class="gallerytext">
8569 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8570 <div style="height: 150px;">Image4</div>
8571 <div class="gallerytext">
8576 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8577 <div style="height: 150px;">Image5.svg</div>
8578 <div class="gallerytext">
8579 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8583 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8584 <div style="height: 150px;">* image6</div>
8585 <div class="gallerytext">
8593 Gallery (with options)
8595 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8596 File:Nonexistant.jpg|caption
8597 File:Nonexistant.jpg
8598 image:foobar.jpg|some '''caption''' [[Main Page]]
8600 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8603 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8604 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8605 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8606 <div style="height: 70px;">Nonexistant.jpg</div>
8607 <div class="gallerytext">
8612 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8613 <div style="height: 70px;">Nonexistant.jpg</div>
8614 <div class="gallerytext">
8617 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8618 <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>
8619 <div class="gallerytext">
8620 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8624 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8625 <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>
8626 <div class="gallerytext">
8629 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8630 <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>
8631 <div class="gallerytext">
8641 Gallery with wikitext inside caption
8644 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8645 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8648 <ul class="gallery">
8649 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8650 <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>
8651 <div class="gallerytext">
8652 <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>
8656 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8657 <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>
8658 <div class="gallerytext">
8659 <p>This is a test template
8668 gallery (with showfilename option)
8670 <gallery showfilename>
8671 File:Nonexistant.jpg|caption
8672 File:Nonexistant.jpg
8673 image:foobar.jpg|some '''caption''' [[Main Page]]
8677 <ul class="gallery">
8678 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8679 <div style="height: 150px;">Nonexistant.jpg</div>
8680 <div class="gallerytext">
8681 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8686 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8687 <div style="height: 150px;">Nonexistant.jpg</div>
8688 <div class="gallerytext">
8689 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8693 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8694 <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>
8695 <div class="gallerytext">
8696 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8697 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8701 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8702 <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>
8703 <div class="gallerytext">
8704 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8713 Gallery (with namespace-less filenames)
8716 File:Nonexistant.jpg
8722 <ul class="gallery">
8723 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8724 <div style="height: 150px;">Nonexistant.jpg</div>
8725 <div class="gallerytext">
8728 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8729 <div style="height: 150px;">Nonexistant.jpg</div>
8730 <div class="gallerytext">
8733 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8734 <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>
8735 <div class="gallerytext">
8738 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8739 <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>
8740 <div class="gallerytext">
8748 HTML Hex character encoding (spells the word "JavaScript")
8750 JavaScript
8752 <p>JavaScript
8757 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8761 <p>&#xsee;&#XSEE;
8766 HTML Hex character encoding mixed case
8775 __FORCETOC__ override
8787 ISBN 978-0-1234-56 789
8789 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8794 ISBN followed by 5 spaces
8805 ISBN ISBN 1234567890
8807 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8812 Bug 22905: <abbr> followed by ISBN followed by </a>
8814 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8816 <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>
8825 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8830 Double RFC with a wiki link
8834 <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>
8843 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8848 Centre-aligned image
8850 [[Image:foobar.jpg|centre]]
8852 <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>
8859 [[Image:foobar.jpg|none]]
8861 <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>
8866 Width + Height sized image (using px) (height is ignored)
8868 [[Image:foobar.jpg|640x480px]]
8870 <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>
8875 Width-sized image (using px, no following whitespace)
8877 [[Image:foobar.jpg|640px]]
8879 <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>
8884 Width-sized image (using px, with following whitespace - test regression from r39467)
8886 [[Image:foobar.jpg|640px ]]
8888 <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>
8893 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8895 [[Image:foobar.jpg| 640px]]
8897 <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>
8902 Another italics / bold test
8910 # Note the results may be incorrect, as parserTest output included this:
8911 # XML error: Mismatched tag at byte 6120:
8912 # ...<dd> </dt></dl> </dd...
8920 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8931 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8933 Images with the "|" character in the comment
8935 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8937 <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>
8942 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8944 <html><script>alert(1);</script></html>
8946 <p><html><script>alert(1);</script></html>
8951 HTML with raw HTML ($wgRawHtml==true)
8955 <html><script>alert(1);</script></html>
8957 <p><script>alert(1);</script>
8962 Parents of subpages, one level up
8964 subpage title=[[Subpage test/L1/L2/L3]]
8968 <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>
8974 Parents of subpages, one level up, not named
8976 subpage title=[[Subpage test/L1/L2/L3]]
8980 <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>
8987 Parents of subpages, two levels up
8989 subpage title=[[Subpage test/L1/L2/L3]]
8995 <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
8996 </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>
9001 Parents of subpages, two levels up, without trailing slash or name.
9003 subpage title=[[Subpage test/L1/L2/L3]]
9012 Parents of subpages, two levels up, with lots of extra trailing slashes.
9014 subpage title=[[Subpage test/L1/L2/L3]]
9018 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9023 Definition list code coverage
9029 <dl><dt> title  </dt><dd> def
9030 </dd><dt> title </dt><dd> def
9031 </dd><dt>title</dt><dd> def
9037 Don't fall for the self-closing div
9039 <div>hello world</div/>
9041 <div>hello world</div>
9050 <p>[[:Template:Msg]]
9059 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9063 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9065 Always escape literal '>' in output, not just after '<'
9079 <p>This is a test template
9080 This is a test template
9092 Inclusion of !userCanEdit() content
9096 <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>
9102 Out-of-order TOC heading levels
9111 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9113 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9115 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9116 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9119 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9121 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9122 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9127 <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>
9128 <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>
9129 <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>
9130 <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>
9131 <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>
9132 <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>
9138 ISBN with a dummy number
9148 ISBN with space-delimited number
9152 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9158 ISBN with multiple spaces, no number
9177 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9178 </p><p>ISBN 12345678901
9184 ISBN with trailing year (bug 8110)
9186 ISBN 1-234-56789-0 - 2006
9188 ISBN 1 234 56789 0 - 2006
9190 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9191 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9199 {{anchorencode:foo bar©#%n}}
9201 <p>foo_bar.C2.A9.23.25n
9206 anchorencode trims spaces
9208 {{anchorencode: __pretty__please__}}
9215 anchorencode deals with links
9217 {{anchorencode: [[hello|world]] [[hi]]}}
9224 anchorencode deals with templates
9226 {{anchorencode: {{Foo}} }}
9233 anchorencode encodes like the TOC generator: (bug 18431)
9235 === _ +:.3A%3A&&]] ===
9236 {{anchorencode: _ +:.3A%3A&&]] }}
9239 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9240 <p>.2B:.3A.253A.26.26.5D.5D
9244 # Expected output in the following test is not necessarily expected (there
9245 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9246 # only testing for well-formedness.
9248 Bug 6200: blockquotes and paragraph formatting
9268 Bug 8293: Use of center tag ruins paragraph formatting
9290 ### Language variants related tests
9293 Self-link in language variants
9295 title=[[Dunav]] language=sr
9297 Both [[Dunav]] and [[Дунав]] are names for this river.
9299 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9305 Link to pages in language variants
9309 Main Page can be written as [[Маин Паге]]
9311 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9317 Multiple links to pages in language variants
9321 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9323 <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>.
9329 Simple template in language variants
9335 <p>This is a test template
9341 Template with explicit namespace in language variants
9347 <p>This is a test template
9353 Basic test for template parameter in language variants
9357 {{парамтест|param=foo}}
9359 <p>This is a test template with parameter foo
9365 Simple category in language variants
9369 [[Category:МедиаWики Усер'с Гуиде]]
9371 <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>
9376 Stripping -{}- tags (language variants)
9380 Latin proverb: -{Ne nuntium necare}-
9382 <p>Latin proverb: Ne nuntium necare
9388 Prevent conversion with -{}- tags (language variants)
9390 language=sr variant=sr-ec
9392 Latinski: -{Ne nuntium necare}-
9394 <p>Латински: Ne nuntium necare
9400 Prevent conversion of text with -{}- tags (language variants)
9402 language=sr variant=sr-ec
9404 Latinski: -{Ne nuntium necare}-
9406 <p>Латински: Ne nuntium necare
9412 Prevent conversion of links with -{}- tags (language variants)
9414 language=sr variant=sr-ec
9418 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9424 -{}- tags within headlines (within html for parserConvert())
9426 language=sr variant=sr-ec
9430 <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>
9436 Explicit definition of language variant alternatives
9438 language=zh variant=zh-tw
9440 -{zh:China;zh-tw:Taiwan}-, not China
9442 <p>Taiwan, not China
9448 Explicit session-wise language variant mapping (A flag and - flag)
9450 language=zh variant=zh-tw
9452 Taiwan is not China.
9453 But -{A|zh:China;zh-tw:Taiwan}- is China,
9454 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9455 and -{China}- is China.
9457 <p>Taiwan is not China.
9458 But Taiwan is Taiwan,
9459 (This should be stripped!)
9465 Explicit session-wise language variant mapping (H flag for hide)
9467 language=zh variant=zh-tw
9469 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9472 <p>(This should be stripped!)
9478 Adding explicit conversion rule for title (T flag)
9480 language=zh variant=zh-tw showtitle
9482 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9485 <p>Should be stripped!
9490 Testing that changing the language variant here in the tests actually works
9492 language=zh variant=zh showtitle
9494 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9497 <p>Should be stripped!
9502 Bug 24072: more test on conversion rule for title
9504 language=zh variant=zh-tw showtitle
9506 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9507 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9510 <p>This should be stripped!
9511 This won't take interferes with the title rule.
9516 Raw output of variant escape tags (R flag)
9518 language=zh variant=zh-tw
9520 Raw: -{R|zh:China;zh-tw:Taiwan}-
9522 <p>Raw: zh:China;zh-tw:Taiwan
9527 Nested using of manual convert syntax
9529 language=zh variant=zh-hk
9531 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9533 <p>Nested: Hello Hong Kong!
9538 Do not convert roman numbers to language variants
9540 language=sr variant=sr-ec
9544 <p>Фридрих IV је цар.
9549 Unclosed language converter markup "-{"
9560 Don't convert raw rule "-{R|=>}-" to "=>"
9577 Bug 529: Uncovered bullet
9588 Bug 529: Uncovered table already at line-start
9611 Bug 529: Uncovered bullet in parser function result
9613 * Foo {{lc:{{bullet}} }}
9622 Bug 5678: Double-parsed template argument
9624 {{lc:{{{1}}}|hello}}
9631 Bug 5678: Double-parsed template invocation
9633 {{lc:{{paramtest {{!}} param = hello }} }}
9635 <p>{{paramtest | param = hello }}
9640 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9666 Morwen/13: Unclosed link followed by heading
9673 <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>
9678 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9685 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9690 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9697 <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>
9712 Paragraphs inside divs (no extra line breaks)
9724 Paragraphs inside divs (extra line break on open)
9739 Paragraphs inside divs (extra line break on close)
9754 Paragraphs inside divs (extra line break on open and close)
9771 Nesting tags, paragraphs on lines which begin with <div>
9775 <div></div><strong>A
9784 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9786 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9790 <blockquote>Line one
9792 Line two</blockquote>
9794 <blockquote>Line one
9795 Line two</blockquote>
9800 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9807 Line two</blockquote>
9812 Line two</blockquote>
9817 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9821 <blockquote>Line one
9826 <blockquote>Line one
9834 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9853 Paragraphs inside blockquotes/divs (no extra line breaks)
9855 <blockquote><div>Line one
9857 Line two</div></blockquote>
9859 <blockquote><div>Line one
9860 Line two</div></blockquote>
9865 Paragraphs inside blockquotes/divs (extra line break on open)
9870 Line two</div></blockquote>
9875 Line two</div></blockquote>
9880 Paragraphs inside blockquotes/divs (extra line break on close)
9882 <blockquote><div>Line one
9887 <blockquote><div>Line one
9895 Paragraphs inside blockquotes/divs (extra line break on open and close)
9912 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9914 wgLinkHolderBatchSize=0
9920 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9921 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9922 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9927 Free external link invading image caption
9929 [[Image:Foobar.jpg|thumb|http://x|hello]]
9931 <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>
9936 Bug 15196: localised external link numbers
9940 [http://en.wikipedia.org/]
9942 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9947 Multibyte character in padleft
9949 {{padleft:-Hello|7|Æ}}
9956 Multibyte character in padright
9958 {{padright:Hello-|7|Æ}}
9971 <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>
9976 formatdate parser function
9978 {{#formatdate:2009-03-24}}
9980 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9985 formatdate parser function, with default format
9987 {{#formatdate:2009-03-24|mdy}}
9989 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9994 Linked date with autoformatting disabled
9996 wgUseDynamicDates=false
10000 <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>
10005 Spacing of numbers in formatted dates
10007 {{#formatdate:January 15}}
10009 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10014 Spacing of numbers in formatted dates (linked)
10016 wgUseDynamicDates=true
10020 <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>
10025 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
10027 language=nl title=[[MediaWiki:Common.css]]
10029 {{#formatdate:2009-03-24|dmy}}
10031 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10044 Edit comment with link
10048 I like the [[Main Page]] a lot
10050 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10054 Edit comment with link and link text
10058 I like the [[Main Page|best pages]] a lot
10060 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10064 Edit comment with link and link text with suffix
10068 I like the [[Main Page|best page]]s a lot
10070 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10074 Edit comment with section link (non-local, eg in history list)
10076 comment title=[[Main Page]]
10078 /* External links */ removed bogus entries
10080 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10084 Edit comment with section link and text before it (non-local, eg in history list)
10086 comment title=[[Main Page]]
10088 pre-comment text /* External links */ removed bogus entries
10090 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>
10094 Edit comment with section link (local, eg in diff view)
10096 comment local title=[[Main Page]]
10098 /* External links */ removed bogus entries
10100 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10104 Edit comment with subpage link (bug 14080)
10108 title=[[Subpage test]]
10110 Poked at a [[/subpage]] here...
10112 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10116 Edit comment with subpage link and link text (bug 14080)
10120 title=[[Subpage test]]
10122 Poked at a [[/subpage|neat little page]] here...
10124 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10128 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10131 title=[[Subpage test]]
10133 Poked at a [[/subpage]] here...
10135 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10139 Edit comment with bare anchor link (local, as on diff)
10143 title=[[Main Page]]
10147 <a href="#section">#section</a>
10151 Edit comment with bare anchor link (non-local, as on history)
10154 title=[[Main Page]]
10158 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10162 Anchor starting with underscore
10166 <p><a href="#_ref">One</a>
10171 Id starting with underscore
10173 <div id="_ref"></div>
10175 <div id="_ref"></div>
10180 Space normalisation on autocomment (bug 22784)
10183 title=[[Main Page]]
10185 /* __hello__world__ */
10187 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10191 percent-encoding and + signs in comments (Bug 26410)
10195 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10197 <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>
10201 Bad images - basic functionality
10210 Bad images - bug 16039: text after bad image disappears
10224 Verify that displaytitle works (bug #22501) no displaytitle
10228 wgAllowDisplayTitle=true
10229 wgRestrictDisplayTitle=false
10231 this is not the the title
10234 <p>this is not the the title
10239 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10244 wgAllowDisplayTitle=true
10245 wgRestrictDisplayTitle=false
10247 this is not the the title
10248 {{DISPLAYTITLE:whatever}}
10251 <p>this is not the the title
10256 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10261 wgAllowDisplayTitle=true
10262 wgRestrictDisplayTitle=true
10264 this is not the the title
10265 {{DISPLAYTITLE:whatever}}
10268 <p>this is not the the title
10273 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10278 wgAllowDisplayTitle=true
10279 wgRestrictDisplayTitle=true
10281 this is not the the title
10282 {{DISPLAYTITLE:screen}}
10285 <p>this is not the the title
10290 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10295 wgAllowDisplayTitle=false
10297 this is not the the title
10298 {{DISPLAYTITLE:screen}}
10301 <p>this is not the the title
10302 <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>
10307 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10312 wgAllowDisplayTitle=false
10314 this is not the the title
10317 <p>this is not the the title
10322 preload: check <noinclude> and <includeonly>
10326 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10332 preload: check <onlyinclude>
10336 Goodbye <onlyinclude>Hello world</onlyinclude>
10342 preload: can pass tags through if we want to
10346 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10348 <includeonly>Hello world</includeonly>
10352 preload: check that it doesn't try to do tricks
10356 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10358 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10362 Play a bit with r67090 and bug 3158
10366 <div style="width:50% !important"> </div>
10367 <div style="width:50% !important"> </div>
10368 <div style="width:50% !important"> </div>
10369 <div style="border : solid;"> </div>
10371 <div style="width:50% !important"> </div>
10372 <div style="width:50% !important"> </div>
10373 <div style="width:50% !important"> </div>
10374 <div style="border : solid;"> </div>
10379 HTML5 data attributes
10381 <span data-foo="bar">Baz</span>
10382 <p data-abc-def_hij="">Quuz</p>
10384 <p><span data-foo="bar">Baz</span>
10386 <p data-abc-def_hij="">Quuz</p>
10391 percent-encoding and + signs in internal links (Bug 26410)
10393 [[User:+%]] [[Page+title%]]
10394 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10395 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10396 [[%33%45]] [[%33%45+]]
10398 <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>
10399 <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>
10400 <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>
10401 <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>
10406 Special characters in embedded file links (bug 27679)
10408 [[File:Contains & ampersand.jpg]]
10409 [[File:Does not exist.jpg|Title with & ampersand]]
10411 <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>
10412 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10418 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10420 Text's been normalized?
10422 <p>Text's been normalized?
10427 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10429 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10431 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10436 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10438 [http://www.example.org/ ideograms]
10440 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10445 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10447 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10449 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10473 Bug 31098 Template which includes system messages which includes the template
10477 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10478 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10483 Deprecated presentational attributes are converted to css
10486 | valign=top align=left width=100 height=25% | Asdf
10488 <ul type="disc"></ul>
10492 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10494 <ul style="list-style-type: disc;"></ul>
10499 Bug31490 Turkish: ucfirst 'blah'
10510 Bug31490 Turkish: ucfirst 'ix'
10521 Bug31490 Turkish: lcfirst 'BLAH'
10532 Bug31490 Turkish: ucfırst (with a dotless i)
10538 <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>
10543 Bug31490 ucfırst (with a dotless i) with English language
10549 <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>
10554 Bug 26375: TOC with italics
10556 title=[[Main Page]]
10559 == ''Lost'' episodes ==
10561 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10563 <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>
10566 <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>
10571 Bug 26375: TOC with bold
10573 title=[[Main Page]]
10576 == '''should be bold''' then normal text ==
10578 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10580 <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>
10583 <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>
10588 Bug 33845: Headings become cursive in TOC when they contain an image
10590 title=[[Main Page]]
10593 == Image [[Image:foobar.jpg]] ==
10595 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10597 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10600 <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>
10605 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10607 title=[[Main Page]]
10610 == <blockquote>Quote</blockquote> ==
10612 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10614 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10617 <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>
10622 Unclosed tags in TOC
10624 title=[[Main Page]]
10628 <small>Hanc marginis exiguitas non caperet.</small>
10631 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10633 <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>
10636 <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>
10637 <p><small>Hanc marginis exiguitas non caperet.</small>
10643 Multiple tags in TOC
10646 == <i>Foo</i> <b>Bar</b> ==
10648 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10650 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10652 <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>
10653 <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>
10656 <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>
10657 <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>
10662 Tags with parameters in TOC
10665 == <sup class="in-h2">Hello</sup> ==
10667 == <sup class="a > b">Evilbye</sup> ==
10669 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10671 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10672 <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>
10675 <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>
10676 <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>
10681 span tags with directionality in TOC
10684 == <span dir="ltr">C++</span> ==
10686 == <span dir="rtl">זבנג!</span> ==
10688 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10690 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10692 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10694 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10696 <li class="toclevel-1 tocsection-1"><a href="#C.2B.2B"><span class="tocnumber">1</span> <span class="toctext"><span dir="ltr">C++</span></span></a></li>
10697 <li class="toclevel-1 tocsection-2"><a href="#.D7.96.D7.91.D7.A0.D7.92.21"><span class="tocnumber">2</span> <span class="toctext"><span dir="rtl">זבנג!</span></span></a></li>
10698 <li class="toclevel-1 tocsection-3"><a href="#The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">3</span> <span class="toctext"><span>The attributes on these span tags must be deleted from the TOC</span></span></a></li>
10699 <li class="toclevel-1 tocsection-4"><a href="#All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">4</span> <span class="toctext"><span>All attributes on these span tags must be deleted from the TOC</span></span></a></li>
10700 <li class="toclevel-1 tocsection-5"><a href="#Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">5</span> <span class="toctext"><span dir="ltr">Attributes after dir on these span tags must be deleted from the TOC</span></span></a></li>
10703 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span> <span class="mw-headline" id="C.2B.2B"> <span dir="ltr">C++</span> </span></h2>
10704 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span> <span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"> <span dir="rtl">זבנג!</span> </span></h2>
10705 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: The attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"> <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> </span></h2>
10706 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: All attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"> <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> </span></h2>
10707 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Attributes after dir on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"> <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> </span></h2>
10714 == {{int:headline_sample}} ==
10718 Bug 32057: Title needed when expanding <h> nodes.
10720 title=[[Main Page]]
10724 <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>
10729 Strip marker in urlencode
10731 {{urlencode:x<nowiki/>y}}
10732 {{urlencode:x<nowiki/>y|wiki}}
10733 {{urlencode:x<nowiki/>y|path}}
10760 Strip marker in formatNum
10762 {{formatnum:1<nowiki/>2}}
10763 {{formatnum:1<nowiki/>2|R}}
10771 Strip marker in grammar
10775 {{grammar:elative|foo<nowiki/>bar}}
10782 Strip marker in padleft
10784 {{padleft:|2|x<nowiki/>y}}
10791 Strip marker in padright
10793 {{padright:|2|x<nowiki/>y}}
10800 Strip marker in anchorencode
10802 {{anchorencode:x<nowiki/>y}}
10809 nowiki inside link inside heading (bug 18295)
10811 ==[[foo|x<nowiki>y</nowiki>z]]==
10813 <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>
10818 new support for bdi element (bug 31817)
10820 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10822 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10827 Ignore pipe between table row attributes
10831 |- id=foo | style='color: red'
10839 <tr id="foo" style="color: red">
10846 Gallery override link with WikiLink (bug 34852)
10849 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10852 <ul class="gallery">
10853 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10854 <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>
10855 <div class="gallerytext">
10865 Gallery override link with absolute external link (bug 34852)
10868 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10871 <ul class="gallery">
10872 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10873 <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>
10874 <div class="gallerytext">
10884 Gallery override link with malicious javascript (bug 34852)
10887 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10890 <ul class="gallery">
10891 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10892 <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>
10893 <div class="gallerytext">
10903 Language parser function
10912 Padleft and padright as substr
10914 {{padleft:|3|abcde}}
10915 {{padright:|3|abcde}}
10923 Bug 34939 - Case insensitive link parsing ([HttP://])
10925 [HttP://MediaWiki.Org/]
10927 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
10932 Bug 34939 - Case insensitive link parsing ([HttP:// title])
10934 [HttP://MediaWiki.Org/ MediaWiki]
10936 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
10941 Bug 34939 - Case insensitive link parsing (HttP://)
10943 HttP://MediaWiki.Org/
10945 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
10955 Try for 100% code coverage