1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
87 This is a simple paragraph.
89 <p>This is a simple paragraph.
94 Paragraphs with extra newline spacing
132 * plain''italic''plain
133 * plain''italic''plain''italic''plain
134 * plain'''bold'''plain
135 * plain'''bold'''plain'''bold'''plain
136 * plain''italic''plain'''bold'''plain
137 * plain'''bold'''plain''italic''plain
138 * plain''italic'''bold-italic'''italic''plain
139 * plain'''bold''bold-italic''bold'''plain
140 * plain'''''bold-italic'''italic''plain
141 * plain'''''bold-italic''bold'''plain
142 * plain''italic'''bold-italic'''''plain
143 * plain'''bold''bold-italic'''''plain
144 * plain l'''italic''plain
145 * plain l''''bold''' plain
148 </li><li> plain<i>italic</i>plain
149 </li><li> plain<i>italic</i>plain<i>italic</i>plain
150 </li><li> plain<b>bold</b>plain
151 </li><li> plain<b>bold</b>plain<b>bold</b>plain
152 </li><li> plain<i>italic</i>plain<b>bold</b>plain
153 </li><li> plain<b>bold</b>plain<i>italic</i>plain
154 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
155 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
156 </li><li> plain<i><b>bold-italic</b>italic</i>plain
157 </li><li> plain<b><i>bold-italic</i>bold</b>plain
158 </li><li> plain<i>italic<b>bold-italic</b></i>plain
159 </li><li> plain<b>bold<i>bold-italic</i></b>plain
160 </li><li> plain l'<i>italic</i>plain
161 </li><li> plain l'<b>bold</b> plain
167 ### 2-quote opening sequence tests
170 Italics and bold: 2-quote opening sequence: (2,2)
180 Italics and bold: 2-quote opening sequence: (2,3)
190 Italics and bold: 2-quote opening sequence: (2,4)
200 Italics and bold: 2-quote opening sequence: (2,5)
210 ### 3-quote opening sequence tests
214 Italics and bold: 3-quote opening sequence: (3,2)
224 Italics and bold: 3-quote opening sequence: (3,3)
234 Italics and bold: 3-quote opening sequence: (3,4)
244 Italics and bold: 3-quote opening sequence: (3,5)
254 ### 4-quote opening sequence tests
258 Italics and bold: 4-quote opening sequence: (4,2)
268 Italics and bold: 4-quote opening sequence: (4,3)
278 Italics and bold: 4-quote opening sequence: (4,4)
288 Italics and bold: 4-quote opening sequence: (4,5)
298 ### 5-quote opening sequence tests
302 Italics and bold: 5-quote opening sequence: (5,2)
312 Italics and bold: 5-quote opening sequence: (5,3)
322 Italics and bold: 5-quote opening sequence: (5,4)
326 <p><i><b>foo'</b></i>
332 Italics and bold: 5-quote opening sequence: (5,5)
341 ### multiple quote sequences in a line
344 Italics and bold: multiple quote sequences: (2,4,2)
348 <p><i>foo'<b>bar</b></i>
354 Italics and bold: multiple quote sequences: (2,4,3)
358 <p><i>foo'<b>bar</b></i>
364 Italics and bold: multiple quote sequences: (2,4,4)
368 <p><i>foo'<b>bar'</b></i>
374 Italics and bold: multiple quote sequences: (3,4,2)
384 Italics and bold: multiple quote sequences: (3,4,3)
393 ### other quote tests
396 Italics and bold: other quote tests: (2,3,5)
398 ''this is about '''foo's family'''''
400 <p><i>this is about <b>foo's family</b></i>
406 Italics and bold: other quote tests: (2,(3,3),2)
408 ''this is about '''foo's''' family''
410 <p><i>this is about <b>foo's</b> family</i>
416 Italics and bold: other quote tests: (3,2,3,2)
418 '''this is about ''foo'''s family''
420 <p><b>this is about <i>foo</i></b><i>s family</i>
426 Italics and bold: other quote tests: (3,2,3,3)
428 '''this is about ''foo'''s family'''
430 <p>'<i>this is about </i>foo<b>s family</b>
437 Italics and bold: other quote tests: (3,(2,2),3)
439 '''this is about ''foo's'' family'''
441 <p><b>this is about <i>foo's</i> family</b>
446 ### <nowiki> test cases
450 <nowiki> unordered list
452 <nowiki>* This is not an unordered list item.</nowiki>
454 <p>* This is not an unordered list item.
461 <nowiki>Lorem ipsum dolor
482 :There is not nowiki.
483 :There is <nowiki>nowiki</nowiki>.
485 #There is not nowiki.
486 #There is <nowiki>nowiki</nowiki>.
488 *There is not nowiki.
489 *There is <nowiki>nowiki</nowiki>.
491 <dl><dd>There is not nowiki.
492 </dd><dd>There is nowiki.
494 <ol><li>There is not nowiki.
495 </li><li>There is nowiki.
497 <ul><li>There is not nowiki.
498 </li><li>There is nowiki.
510 <!-- comment 1 --> asdf
559 asdf<!-- comment 1 -->jkl
569 <!-- foo --> b <!-- bar -->
583 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
589 Comment semantics and delimiters
591 <!-- --><!----><!-----><!------>
597 Comment semantics and delimiters, redux
599 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
600 -- foo -- funky huh? ... -->
606 Comment semantics and delimiters: directors cut
608 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
609 everything starting with < followed by !-- until the first -- and > we see,
610 that wouldn't be valid XML however, since in XML -- has to terminate a comment
618 Comment semantics: nesting
620 <!--<!-- no, we're not going to do anything fancy here -->-->
627 Comment semantics: unclosed comment at end
629 <!--This comment will run out to the end of the document
635 Comment in template title
644 Comment on its own line post-expand
656 Comment on its own line post-expand with non-significant whitespace
668 ### paragraph wraping tests
682 Block tag on one line
694 Block tag on both lines
706 Multiple lines without block tags
724 ### Preformatted text
733 And a [[Main Page|link]]
739 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
744 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
761 Regression with preformatted in <center>
774 # Expected output in the following test is not really expected (there should be
775 # <pre> in the output) -- it's only testing for well-formedness.
777 Bug 6200: Preformatted in <blockquote>
790 <pre> with attributes (bug 3202)
792 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
794 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
799 <pre> with width attribute (bug 3202)
801 <pre width="8">Narrow screen goodies</pre>
803 <pre width="8">Narrow screen goodies</pre>
808 <pre> with forbidden attribute (bug 3202)
810 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
812 <pre width="8">Narrow screen goodies</pre>
817 <pre> with forbidden attribute values (bug 3202)
819 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
821 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
826 <nowiki> inside <pre> (bug 13238)
834 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
842 <pre><nowiki>Foo</nowiki></pre>
847 <nowiki> and <pre> preference (first one wins)
878 Templates: Pre: 1a. Templates that break a line should suppress <pre>
886 Templates: Pre: 1b. Templates that break a line should suppress <pre>
896 Templates: Pre: 1c: Wrapping should be based one expanded content
908 Templates: Pre: 1d: Wrapping should be based one expanded content
936 <dl><dt> name </dt><dd> Definition
942 Definition list for indentation only
946 <dl><dd> Indented text
952 Definition list with no space
956 <dl><dt>name</dt><dd>Definition
962 Definition list with URL link
964 ; http://example.com/ : definition
966 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
972 Definition list with bracketed URL link
974 ;[http://www.example.com/ Example]:Something about it
976 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
982 Definition list with wikilink containing colon
984 ; [[Help:FAQ]]: The least-read page on Wikipedia
986 <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
991 # At Brion's and JeLuF's insistence... :)
993 Definition list with news link containing colon
995 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
997 <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!
1003 Malformed definition list with colon
1005 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1007 <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
1013 Definition lists: colon in external link text
1015 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1017 <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
1023 Definition lists: colon in HTML attribute
1025 ;<b style="display: inline">bold</b>
1027 <dl><dt><b style="display: inline">bold</b>
1034 Definition lists: self-closed tag
1036 ;one<br/>two : two-line fun
1038 <dl><dt>one<br />two </dt><dd> two-line fun
1044 Bug 11748: Literal closing tags
1050 <dd>test test test test test</dd>
1052 <dd>test test test test test</dd>
1057 <dd>test test test test test</dd>
1059 <dd>test test test test test</dd>
1064 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1067 ; term : description
1073 <dl><dt> term </dt><dd> description
1083 Definition list with empty definition and following paragraph
1088 <dl><dt> term</dt><dd>
1095 Definition Lists: No nesting: Multiple dd's
1109 Definition Lists: Indentation: Regular
1125 Definition Lists: Indentation: Missing 1st level
1139 Definition Lists: Indentation: Multi-level indent
1143 <dl><dd><dl><dd><dl><dd>i3
1150 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1151 ## as an empty dt item. It also ignores all but the last ";" when followed
1152 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1153 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1156 ## Ex: ";;t2 ::d2" is transformed into:
1168 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1169 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1180 ## All Parsoid only definition list tests have this difference.
1182 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1183 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1186 Definition Lists: Nesting: Multi-level (Parsoid only)
1216 Definition Lists: Nesting: Test 2 (Parsoid only)
1236 Definition Lists: Nesting: Test 3 (Parsoid only)
1264 Definition Lists: Nesting: Test 4
1269 <dl><dd><dl><dd><dl><dt>t3
1279 Definition Lists: Mixed Lists: Test 1
1285 <dl><dd><dl><dt><ul><li> foo
1297 Definition Lists: Mixed Lists: Test 2
1311 Definition Lists: Mixed Lists: Test 3
1316 <ul><li><dl><dd><dl><dd><dl><dd> d1
1327 Definition Lists: Mixed Lists: Test 4
1332 <ul><li><dl><dt>d1 </dt><dd>d2
1333 </dd><dt>d3 </dt><dd>d4
1341 Definition Lists: Mixed Lists: Test 5
1356 Definition Lists: Mixed Lists: Test 6
1361 <ol><li><ul><li><dl><dd>d1
1373 Definition Lists: Mixed Lists: Test 7
1387 Definition Lists: Mixed Lists: Test 8
1403 Definition Lists: Mixed Lists: Test 9
1407 <ul><li><dl><dt>foo </dt><dd>bar
1415 Definition Lists: Mixed Lists: Test 10
1419 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1428 Definition Lists: Mixed Lists: Test 11
1433 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1438 <dl><dt>boo </dt><dd>baz
1449 Definition Lists: Weird Ones: Test 1
1451 *#;*::;; foo : bar (who uses this?)
1453 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1469 External links: non-bracketed
1471 Non-bracketed: http://example.com
1473 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1478 External links: numbered
1480 Numbered: [http://example.com]
1481 Numbered: [http://example.net]
1482 Numbered: [http://example.com]
1484 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1485 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1486 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1491 External links: specified text
1493 Specified text: [http://example.com link]
1495 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1500 External links: trail
1502 Linktrails should not work for external links: [http://example.com link]s
1504 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1509 External links: dollar sign in URL
1511 http://example.com/1$2345
1513 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1518 External links: dollar sign in URL (named)
1520 [http://example.com/1$2345]
1522 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1527 External links: open square bracket forbidden in URL (bug 4377)
1529 http://example.com/1[2345
1531 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1536 External links: open square bracket forbidden in URL (named) (bug 4377)
1538 [http://example.com/1[2345]
1540 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1545 External links: nowiki in URL link text (bug 6230)
1547 [http://example.com/ <nowiki>''example site''</nowiki>]
1549 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1554 External links: newline forbidden in text (bug 6230 regression check)
1556 [http://example.com/ first
1559 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1565 External links: Pipe char between url and text
1567 [http://example.com | link]
1569 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1574 External links: protocol-relative URL in brackets
1576 [//example.com/ Test]
1578 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1583 External links: protocol-relative URL in brackets without text
1587 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1592 External links: protocol-relative URL in free text is left alone
1596 <p>//example.com/Foo
1601 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1603 foo//example.com/Foo
1605 <p>foo//example.com/Foo
1612 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1614 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1619 External image from https
1621 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1623 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1628 Link to non-http image, no img tag
1630 Link to non-http image, no img tag: ftp://example.com/test.jpg
1632 <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>
1637 External links: terminating separator
1639 Terminating separator: http://example.com/thing,
1641 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1646 External links: intervening separator
1648 Intervening separator: http://example.com/1,2,3
1650 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1655 External links: old bug with URL in query
1657 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1659 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1664 External links: old URL-in-URL bug, mixed protocols
1666 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1668 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1673 External links: URL in text
1675 URL in text: [http://example.com http://example.com]
1677 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1682 External links: Clickable images
1684 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1686 <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>
1691 External links: raw ampersand
1693 Old & use: http://x&y
1695 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1700 External links: encoded ampersand
1702 Old & use: http://x&y
1704 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1709 External links: encoded equals (bug 6102)
1711 http://example.com/?foo=bar
1713 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1718 External links: [raw ampersand]
1720 Old & use: [http://x&y]
1722 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1727 External links: [encoded ampersand]
1729 Old & use: [http://x&y]
1731 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1736 External links: [encoded equals] (bug 6102)
1738 [http://example.com/?foo=bar]
1740 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1745 External links: [IDN ignored character reference in hostname; strip it right off]
1747 [http://e‌xample.com/]
1749 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1753 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1754 # Where an external link could easily circumvent the sanitization of the text of
1755 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1756 # test demands a higher standard. That's a bit strange.
1760 # http://example.com -> [http://example.com|http://example.com]
1761 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1763 # The first example is sanitized, but the second is not. Any security benefits
1764 # from this production are trivial to circumvent. Either remove this test and
1765 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1766 # the test accordingly.
1771 External links: IDN ignored character reference in hostname; strip it right off
1773 http://e‌xample.com/
1775 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1780 External links: www.jpeg.org (bug 554)
1784 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1789 External links: URL within URL (original bug 2)
1791 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1793 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1798 BUG 361: URL inside bracketed URL
1800 [http://www.example.com/foo http://www.example.com/bar]
1802 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1807 BUG 361: URL within URL, not bracketed
1809 http://www.example.com/foo?=http://www.example.com/bar
1811 <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>
1816 BUG 289: ">"-token in URL-tail
1818 http://www.example.com/<hello>
1820 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1825 BUG 289: literal ">"-token in URL-tail
1827 http://www.example.com/<b>html</b>
1829 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1834 BUG 289: ">"-token in bracketed URL
1836 [http://www.example.com/<hello> stuff]
1838 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1843 BUG 289: literal ">"-token in bracketed URL
1845 [http://www.example.com/<b>html</b> stuff]
1847 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1852 BUG 289: literal double quote at end of URL
1854 http://www.example.com/"hello"
1856 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1861 BUG 289: literal double quote in bracketed URL
1863 [http://www.example.com/"hello" stuff]
1865 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1870 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1872 [http://www.example.com test]
1874 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1879 External links: wiki links within external link (Bug 3695)
1881 [http://example.com [[wikilink]] embedded in ext link]
1883 <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>
1888 BUG 787: Links with one slash after the url protocol are invalid
1892 [http:/example.com title]
1894 <p>http:/example.com
1895 </p><p>[http:/example.com title]
1900 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1902 ''[http://example.com text'']
1903 [http://example.com '''text]'''
1904 ''Something [http://example.com in italic'']
1905 ''Something [http://example.com mixed''''', even bold]'''
1906 '''''Now [http://example.com both''''']
1908 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1909 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1910 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1911 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1912 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1918 Bug 4781: %26 in URL
1920 http://www.example.com/?title=AT%26T
1922 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1926 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1927 # % is actually legal in HTML5. Any change in output would need testing though.
1929 Bug 4781, 5267: %25 in URL
1931 http://www.example.com/?title=100%25_Bran
1933 <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>
1938 Bug 4781, 5267: %28, %29 in URL
1940 http://www.example.com/?title=Ben-Hur_%281959_film%29
1942 <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>
1948 Bug 4781: %26 in autonumber URL
1950 [http://www.example.com/?title=AT%26T]
1952 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1957 Bug 4781, 5267: %26 in autonumber URL
1959 [http://www.example.com/?title=100%25_Bran]
1961 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1966 Bug 4781, 5267: %28, %29 in autonumber URL
1968 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1970 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1976 Bug 4781: %26 in bracketed URL
1978 [http://www.example.com/?title=AT%26T link]
1980 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1985 Bug 4781, 5267: %26 in bracketed URL
1987 [http://www.example.com/?title=100%25_Bran link]
1989 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1994 Bug 4781, 5267: %28, %29 in bracketed URL
1996 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1998 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2003 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2005 Some [http://example.com/ pretty ''italics'' and stuff]!
2007 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2012 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2014 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2016 <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>
2021 External link containing double-single-quotes with no space separating the url from text in italics
2023 [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]].]
2025 <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>
2030 URL-encoding in URL functions (single parameter)
2032 {{localurl:Some page|amp=&}}
2034 <p>/index.php?title=Some_page&amp=&
2039 URL-encoding in URL functions (multiple parameters)
2041 {{localurl:Some page|q=?&=&}}
2043 <p>/index.php?title=Some_page&q=?&amp=&
2050 http://example.com/index.php?foozoid%5B%5D=bar
2052 http://example.com/index.php?foozoid[]=bar
2054 <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>
2055 </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>
2060 IPv6 urls (bug 21261)
2064 http://[2404:130:0:1000::187:2]/index.php
2066 <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>
2077 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2079 Normal text. '''''Bold italic text.''''' Normal text.
2081 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2082 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2088 Unclosed and unmatched quotes
2090 '''''Bold italic text '''with bold deactivated''' in between.'''''
2092 '''''Bold italic text ''with italic deactivated'' in between.'''''
2096 ..spanning two paragraphs (should not work).'''
2098 '''Bold tag left open
2100 ''Italic tag left open
2104 <!-- Unmatching number of opening, closing tags: -->
2105 '''This year''''s election ''should'' beat '''last year''''s.
2107 ''Tom'''s car is bigger than ''Susan'''s.
2109 Plain ''italic'''s plain
2111 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2112 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2113 </p><p><b>Bold text..</b>
2114 </p><p>..spanning two paragraphs (should not work).
2115 </p><p><b>Bold tag left open</b>
2116 </p><p><i>Italic tag left open</i>
2118 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2119 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2120 </p><p>Plain <i>italic'</i>s plain
2127 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2130 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2131 # is the bare minimun required by the spec, see:
2132 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2134 A table with no data.
2140 # A table with nothing but a caption is invalid XHTML, we might want to render
2141 # this as <p>caption</p>
2143 A table with nothing but a caption
2151 </caption><tr><td></td></tr></table>
2177 Multiplication table
2179 {| border="1" cellpadding="2"
2180 |+Multiplication table
2182 ! × !! 1 !! 2 !! 3
2200 <table border="1" cellpadding="2">
2201 <caption>Multiplication table
2252 |rowspan=2| Cell 2, row 1 (and 2)
2263 <td rowspan="2"> Cell 2, row 1 (and 2)
2281 {| bgcolor=#ABCDEF border=2
2286 |the original table again
2294 <table bgcolor="#ABCDEF" border="2">
2302 <td>the original table again
2308 Invalid attributes in table cell (bug 1830)
2323 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2326 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2330 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2331 <td>]" onmouseover="alert(document.cookie)">test
2340 Indented table markup mixed with indented pre content (proposed in bug 6200)
2345 Text that should be rendered preformatted
2353 <pre>Text that should be rendered preformatted
2366 Plain link, capitalized
2370 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2375 Plain link, uncapitalized
2379 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2386 [[Main Page|The Main Page]]
2388 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2397 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2402 Broken link with fragment
2404 [[Zigzagzogzagzig#zug]]
2406 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2411 Special page link with fragment
2413 [[Special:Version#anchor]]
2415 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2420 Nonexistent special page link with fragment
2422 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2424 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2431 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2433 <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>
2440 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2442 <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>!!!
2447 Link with 3 brackets
2456 Piped link with 3 brackets
2458 [[[main page|the main page]]]
2460 <p>[[[main page|the main page]]]
2465 Link with multiple pipes
2467 [[Main Page|The|Main|Page]]
2469 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2476 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2478 <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>
2483 Piped link to namespace
2485 [[Meta:Disclaimers|The disclaimers]]
2487 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2494 [[Usually caused by a typo (oops}]]
2496 <p>[[Usually caused by a typo (oops}]]
2501 Link containing % (not as a hex sequence)
2505 <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>
2510 Link containing % as a single hex sequence interpreted to char
2514 <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>
2519 Link containing % as a double hex sequence interpreted to hex sequence
2523 <p>[[7%2525 Solution]]
2528 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2529 Example for such a section: == < ==
2531 [[%23%3c]][[%23%3e]]
2533 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2538 Link containing "<#" and ">#" as a hex sequences
2540 [[%3c%23]][[%3e%23]]
2542 <p>[[%3c%23]][[%3e%23]]
2547 Link containing double-single-quotes '' (bug 4598)
2549 [[Lista d''e paise d''o munno]]
2551 <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>
2556 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2558 Some [[Link|pretty ''italics'' and stuff]]!
2560 <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>!
2565 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2567 ''Some [[Link|pretty ''italics'' and stuff]]!
2569 <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>
2574 Link with double quotes in title part (literal) and alternate part (interpreted)
2576 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2580 [[''Pentecoste''|Pentecoste]]
2582 [[''Pentecoste''|''Pentecoste'']]
2584 <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>
2585 </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>
2586 </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>
2587 </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>
2592 Broken image links with HTML captions (bug 39700)
2594 [[File:Nonexistent|<script></script>]]
2595 [[File:Nonexistent|100px|<script></script>]]
2596 [[File:Nonexistent|<]]
2597 [[File:Nonexistent|a<i>b</i>c]]
2599 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2600 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2601 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2602 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2609 [[http://www.example.com]]
2611 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2616 Plain link to URL with link text
2618 [[http://www.example.com Link text]]
2620 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2625 Plain link to protocol-relative URL
2627 [[//www.example.com]]
2629 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2634 Plain link to protocol-relative URL with link text
2636 [[//www.example.com Link text]]
2638 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2643 # I'm fairly sure the expected result here is wrong.
2644 # We want these to be URL links, not pseudo-pages with URLs for titles....
2645 # However the current output is also pretty screwy.
2648 # I'm changing it to match the current output--it arguably makes more
2649 # sense in the light of the test above. Old expected result was:
2650 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2652 # But I think this test is bordering on "garbage in, garbage out" anyway.
2657 Piped link to URL: [[http://www.example.com|an example URL]]
2659 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2664 BUG 2: [[page|http://url/]] should link to page, not http://url/
2666 [[Main Page|http://url/]]
2668 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2673 BUG 337: Escaped self-links should be bold
2677 [[Bug462]] [[Bug462]]
2679 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2684 Self-link to section should not be bold
2688 [[Main Page#section]]
2690 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2701 Self-link to numeric title
2707 <p><strong class="selflink">0</strong>
2712 Link to numeric-equivalent title
2718 <p><a href="/wiki/00" title="00">00</a>
2723 <nowiki> inside a link
2725 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2727 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2732 Non-breaking spaces in title
2734 [[ Main Page ]]
2736 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2741 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2747 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2752 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2758 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2763 Internal link with en linktrail: no apostrophes (bug 27473)
2769 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2774 Internal link with ca linktrail with apostrophes (bug 27473)
2780 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2785 Internal link with kaa linktrail with apostrophes (bug 27473)
2791 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2796 ### Interwiki links (see maintenance/interwiki.sql)
2800 Inline interwiki link
2802 [[MeatBall:SoftSecurity]]
2804 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2809 Inline interwiki link with empty title (bug 2372)
2813 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2818 Interwiki link encoding conversion (bug 1636)
2820 *[[Wikipedia:ro:Olteniţa]]
2821 *[[Wikipedia:ro:Olteniţa]]
2823 <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>
2824 </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>
2830 Interwiki link with fragment (bug 2130)
2832 [[MeatBall:SoftSecurity#foo]]
2834 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2849 Double interlanguage link
2860 Interlanguage link, with prefix links
2872 Double interlanguage link, with prefix links (bug 8897)
2885 Parsoid-specific test: Wikilinks with should RT properly
2891 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
2909 Incorrecly removing closing slashes from correctly formed XHTML
2911 <br style="clear:both;" />
2913 <p><br style="clear:both;" />
2918 Failing to transform badly formed HTML into correct XHTML
2920 <br style="clear: left;">
2921 <br style="clear: right;">
2922 <br style="clear: both;">
2924 <p><br style="clear: left;" />
2925 <br style="clear: right;" />
2926 <br style="clear: both;" />
2931 Handling html with a div self-closing tag
2940 <p><div title />
2944 <p><div title=bar />
2945 <div title=bar/>
2947 <div title="bar/"></div>
2953 Handling html with a br self-closing tag
2962 <p><br title="title" />
2963 <br title="title" />
2972 Horizontal ruler (should it add that extra space?)
2986 Horizontal ruler -- 4+ dashes render hr
2995 Horizontal ruler -- eats additional dashes on the same line
3004 Horizontal ruler -- does not collaps dashes on consecutive lines
3015 Horizontal ruler -- <4 dashes render as plain text
3024 ### Block-level elements
3047 <ol><li>Numbered list
3064 ***#Number on level 4
3066 **#Number on level 3
3067 **#Number on level 3
3071 #** Level 3, but ordered
3074 <ol><li> with numbers
3076 <ul><li> and bullets
3078 <ol><li> and numbers
3080 </li><li>bullets again
3081 <ul><li>bullet level 2
3082 <ul><li>bullet level 3
3083 <ol><li>Number on level 4
3086 </li><li>bullet level 2
3087 <ol><li>Number on level 3
3088 </li><li>Number on level 3
3091 <ol><li>number level 2
3094 <ul><li><ul><li> Level 3
3098 <ol><li><ul><li><ul><li> Level 3, but ordered
3132 Nested lists 3 (first element empty)
3145 Nested lists 4 (first element empty)
3158 Nested lists 5 (both elements empty)
3171 Nested lists 6 (both elements empty)
3184 Nested lists 7 (skip initial nesting levels)
3188 <ul><li><ul><li><ul><li> foo
3196 Nested lists 8 (multiple nesting transitions)
3204 <ul><li><ul><li> bar
3215 List items are not parsed correctly following a <pre> block (bug 785)
3221 <ul><li> <pre>foo</pre>
3222 </li><li> <pre>bar</pre>
3229 List items from template
3240 * notSOL{{inner list}}
3259 List interrupted by empty line or heading
3269 <ul><li><ul><li> bar
3272 <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>
3273 <ul><li> Another list item
3284 Magic Word: {{CURRENTDAY}}
3293 Magic Word: {{CURRENTDAY2}}
3302 Magic Word: {{CURRENTDAYNAME}}
3311 Magic Word: {{CURRENTDOW}}
3320 Magic Word: {{CURRENTMONTH}}
3329 Magic Word: {{CURRENTMONTHABBREV}}
3331 {{CURRENTMONTHABBREV}}
3338 Magic Word: {{CURRENTMONTHNAME}}
3340 {{CURRENTMONTHNAME}}
3347 Magic Word: {{CURRENTMONTHNAMEGEN}}
3349 {{CURRENTMONTHNAMEGEN}}
3356 Magic Word: {{CURRENTTIME}}
3365 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3374 Magic Word: {{CURRENTYEAR}}
3383 Magic Word: {{FULLPAGENAME}}
3385 title=[[User:Ævar Arnfjörð Bjarmason]]
3389 <p>User:Ævar Arnfjörð Bjarmason
3394 Magic Word: {{FULLPAGENAMEE}}
3396 title=[[User:Ævar Arnfjörð Bjarmason]]
3400 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3405 Magic Word: {{NAMESPACE}}
3407 title=[[User:Ævar Arnfjörð Bjarmason]]
3416 Magic Word: {{NAMESPACEE}}
3418 title=[[User:Ævar Arnfjörð Bjarmason]]
3427 Magic Word: {{NAMESPACENUMBER}}
3429 title=[[User:Ævar Arnfjörð Bjarmason]]
3438 Magic Word: {{NUMBEROFFILES}}
3447 Magic Word: {{PAGENAME}}
3449 title=[[User:Ævar Arnfjörð Bjarmason]]
3453 <p>Ævar Arnfjörð Bjarmason
3458 Magic Word: {{PAGENAME}} with metacharacters
3460 title=[['foo & bar = baz']]
3464 <p><i>'foo & bar = baz'</i>
3469 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3471 title=[[*RFC 1234 http://example.com/]]
3475 <p>*RFC 1234 http://example.com/
3480 Magic Word: {{PAGENAMEE}}
3482 title=[[User:Ævar Arnfjörð Bjarmason]]
3486 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3491 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3493 title=[[*RFC 1234 http://example.com/]]
3497 <p>*RFC_1234_http://example.com/
3502 Magic Word: {{REVISIONID}}
3511 Magic Word: {{SCRIPTPATH}}
3520 Magic Word: {{SERVER}}
3524 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3529 Magic Word: {{SERVERNAME}}
3538 Magic Word: {{SITENAME}}
3547 Namespace 1 {{ns:1}}
3556 Namespace 1 {{ns:01}}
3565 Namespace 0 {{ns:0}} (bug 4783)
3573 Namespace 0 {{ns:00}} (bug 4783)
3581 Namespace -1 {{ns:-1}}
3590 Namespace User {{ns:User}}
3599 Namespace User talk {{ns:User_talk}}
3608 Namespace User talk {{ns:uSeR tAlK}}
3617 Namespace File {{ns:File}}
3626 Namespace File {{ns:Image}}
3635 Namespace (lang=de) Benutzer {{ns:User}}
3646 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3652 <p>Benutzer Diskussion
3660 {{urlencode:hi world?!}}
3661 {{urlencode:hi world?!|WIKI}}
3662 {{urlencode:hi world?!|PATH}}
3663 {{urlencode:hi world?!|QUERY}}
3676 Magic links: internal link to RFC (bug 479)
3680 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3685 Magic links: RFC (bug 479)
3689 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3694 Magic links: ISBN (bug 1937)
3698 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3703 Magic links: PMID incorrectly converts space to underscore
3707 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3716 Nonexistent template
3718 {{thistemplatedoesnotexist}}
3720 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3727 This is a test template
3735 <p>This is a test template
3740 Template with explicit namespace
3744 <p>This is a test template
3752 This is a test template with parameter {{{param}}}
3758 {{paramtest|param=foo}}
3760 <p>This is a test template with parameter foo
3765 Template:paramtestnum
3771 Template unnamed parameter
3773 {{paramtestnum|Main Page|the main page}}
3775 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3780 Template:templatesimple
3786 Template:templateredirect
3788 #redirect [[Template:templatesimple]]
3792 Template:templateasargtestnum
3798 Template:templateasargtest
3800 {{template{{{templ}}}}}
3804 Template:templateasargtest2
3810 Template with template name as unnamed argument
3812 {{templateasargtestnum|templatesimple}}
3819 Template with template name as argument
3821 {{templateasargtest|templ=simple}}
3828 Template with template name as argument (2)
3830 {{templateasargtest2|templ=templatesimple}}
3837 Template:templateasargtestdefault
3839 {{{{{templ|templatesimple}}}}}
3849 Template with default value
3851 {{templateasargtestdefault}}
3858 Template with default value (value set)
3860 {{templateasargtestdefault|templ=templa}}
3869 {{templateredirect}}
3876 Template with argument in separate line
3878 {{ templateasargtest |
3886 Template with complex template as argument
3889 param ={{ templateasargtest |
3892 <p>This is a test template with parameter (test)
3897 Template with thumb image (with link in description)
3900 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3902 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>
3907 Template:complextemplate
3909 {{{1}}} {{paramtest|
3910 param ={{{param}}}}}
3914 Template with complex arguments
3917 param ={{ templateasargtest |
3918 templ = simple }}|[[Template:complextemplate|link]]}}
3920 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3925 BUG 553: link with two variables in a piped link
3928 |[[{{{1}}}|{{{2}}}]]
3933 <td>[[{{{1}}}|{{{2}}}]]
3939 Magic variable as template parameter
3941 {{paramtest|param={{SITENAME}}}}
3943 <p>This is a test template with parameter MediaWiki
3950 [[{{{param}}}|link]]
3954 Template parameter as link source
3956 {{linktest|param=Main Page}}
3958 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3966 including another template, {{paramtest|param={{{arg}}}}}
3970 Template passing argument to another template
3972 {{paramtest2|arg='hmm'}}
3974 <p>including another template, This is a test template with parameter 'hmm'
3985 Template as link source
3989 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4007 Template infinite loop
4011 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4016 Template from main namespace
4035 BUG 529: Template with table, not included at beginning of line
4054 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4074 BUG 41: Template parameters shown as broken links
4086 ''None'' of '''this''' should be
4088 but rather passed unmodified
4092 # hmm, fix this or just deprecate msgnw and document its behavior?
4098 {{msgnw:MSGNW test}}
4100 <p>''None'' of '''this''' should be
4102 but rather passed unmodified
4110 {{int:youhavenewmessages|lots of money|not!}}
4112 <p>You have lots of money (not!).
4119 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4123 <includeonly> and <noinclude> being included
4134 <onlyinclude>Foo</onlyinclude>bar
4138 <onlyinclude> being included
4150 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4154 <onlyinclude> and <includeonly> being included
4163 <includeonly> and <noinclude> on a page
4165 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4172 <onlyinclude> on a page
4174 <onlyinclude>Foo</onlyinclude>bar
4181 Template:Includeonly section
4184 ==Includeonly section==
4190 Bug 6563: Edit link generation for section shown by <includeonly>
4192 {{includeonly section}}
4194 <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>
4195 <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>
4199 # Uses same input as the contents of [[Template:Includeonly section]]
4201 Bug 6563: Section extraction for section shown by <includeonly>
4206 ==Includeonly section==
4214 Bug 6563: Edit link generation for section suppressed by <includeonly>
4217 ==Includeonly section==
4221 <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>
4226 Bug 6563: Section extraction for section suppressed by <includeonly>
4231 ==Includeonly section==
4239 ### Testing parsing of templates where a template arg
4240 ### has the same name as the template itself.
4250 Templates: Template Name/Arg clash: 1. Use of positional param
4259 Templates: Template Name/Arg clash: 2. Use of named param
4268 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4277 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4281 Templates: 1. Simple use
4290 Templates: 2. Inside a block tag
4292 <div>{{echo|Foo}}</div>
4299 Templates: P-wrapping: 1a. Templates on consecutive lines
4310 Templates: P-wrapping: 1b. Templates on consecutive lines
4324 Templates: P-wrapping: 1c. Templates on consecutive lines
4327 {{echo|bar}} <div>baz</div>
4336 Templates: Inline Text: 1. Multiple tmeplate uses
4338 {{echo|Foo}}bar{{echo|baz}}
4345 Templates: Inline Text: 2. Back-to-back template uses
4347 {{echo|Foo}}{{echo|bar}}
4354 Templates: Block Tags: 1. Multiple template uses
4356 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4358 <div>Foo</div><div>bar</div><div>baz</div>
4363 Templates: Block Tags: 2. Back-to-back template uses
4365 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4367 <div>Foo</div><div>bar</div>
4372 Templates: Links: 1. Simple example
4374 {{echo|[[Foo|bar]]}}
4376 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4381 Templates: Links: 2. Generation of link href
4383 [[{{echo|Foo}}|bar]]
4385 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4390 Templates: Links: 3. Generation of part of a link href
4392 [[Fo{{echo|o}}|bar]]
4394 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4399 Templates: Links: 4. Multiple templates generating link href
4401 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4403 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4408 Templates: Links: 5. Generation of link text
4410 [[Foo|{{echo|bar}}]]
4412 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4417 Templates: Links: 5. Nested templates (only outermost template should be marked)
4419 {{echo|[[{{echo|Foo}}|bar]]}}
4421 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4426 Templates: HTML Tag: 1. Generation of HTML attr. key
4428 <div {{echo|style}}="color:red;">foo</div>
4430 <div style="color:red;">foo</div>
4435 Templates: HTML Tag: 2. Generation of HTML attr. value
4437 <div style={{echo|'color:red;'}}>foo</div>
4439 <div style="color:red;">foo</div>
4444 Templates: HTML Tag: 3. Generation of HTML attr key and value
4446 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4448 <div style="color:red;">foo</div>
4453 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4455 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4457 <div title="This is a long title with just one piece templated">foo</div>
4462 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4464 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4466 <div title="This is a long title with just one piece templated">foo</div>
4471 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4473 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4475 <div title="This is a long title with just one piece templated">foo</div>
4480 Templates: Tables: 1. Generating start of a HTML table
4482 {{echo|<table><tr><td>foo</td>}}</tr></table>
4484 <table><tr><td>foo</td></tr></table>
4489 Templates: Tables: 2a. Generating middle of a HTML table
4491 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4493 <table><tr><td>foo</td></tr></table>
4498 Templates: Tables: 2b. Generating middle of a HTML table
4500 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4502 <table><tr><td>foo</td></tr></table>
4507 Templates: Tables: 3. Generating end of a HTML table
4509 <table><tr>{{echo|<td>foo</td></tr></table>}}
4511 <table><tr><td>foo</td></tr></table>
4516 Templates: Tables: 4a. Generating a single tag of a HTML table
4518 {{echo|<table>}}<tr><td>foo</td></tr></table>
4520 <table><tr><td>foo</td></tr></table>
4525 Templates: Tables: 4b. Generating a single tag of a HTML table
4527 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4529 <table><tr><td>foo</td></tr></table>
4534 Templates: Tables: 4c. Generating a single tag of a HTML table
4536 <table><tr>{{echo|<td>}}foo</td></tr></table>
4538 <table><tr><td>foo</td></tr></table>
4543 Templates: Tables: 4d. Generating a single tag of a HTML table
4545 <table><tr><td>foo{{echo|</td>}}</tr></table>
4547 <table><tr><td>foo</td></tr></table>
4552 Templates: Tables: 4e. Generating a single tag of a HTML table
4554 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4556 <table><tr><td>foo</td></tr></table>
4561 Templates: Tables: 4f. Generating a single tag of a HTML table
4563 <table><tr><td>foo</td></tr>{{echo|</table>}}
4565 <table><tr><td>foo</td></tr></table>
4570 Parser Functions: 1. Simple example
4579 Parser Functions: 2. Nested use (only outermost should be marked up)
4588 ### Pre-save transform tests
4591 pre-save transform: subst:
4597 This is a test template
4601 pre-save transform: normal template
4611 pre-save transform: nonexistent template
4615 {{thistemplatedoesnotexist}}
4617 {{thistemplatedoesnotexist}}
4622 pre-save transform: subst magic variables
4631 # This is bug 89, which I fixed. -- wtm
4633 pre-save transform: subst: templates with parameters
4637 {{subst:paramtest|param="something else"}}
4639 This is a test template with parameter "something else"
4645 <nowiki>'''not wiki'''</nowiki>
4649 pre-save transform: nowiki in subst (bug 1188)
4653 {{subst:nowikitest}}
4655 <nowiki>'''not wiki'''</nowiki>
4660 Template:commenttest
4662 This template has <!-- a comment --> in it.
4666 pre-save transform: comment in subst (bug 1936)
4670 {{subst:commenttest}}
4672 This template has <!-- a comment --> in it.
4676 pre-save transform: unclosed tag
4680 <nowiki>'''not wiki'''
4682 <nowiki>'''not wiki'''
4686 pre-save transform: mixed tag case
4690 <NOwiki>'''not wiki'''</noWIKI>
4692 <NOwiki>'''not wiki'''</noWIKI>
4696 pre-save transform: unclosed comment in <nowiki>
4700 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4702 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4708 <span onmouseover="alert('crap')">Oh no</span>
4712 (confirming safety of fix for subst bug 1936)
4714 {{Template:dangerous}}
4716 <p><span>Oh no</span>
4721 pre-save transform: comment containing gallery (bug 5024)
4725 <!-- <gallery>data</gallery> -->
4727 <!-- <gallery>data</gallery> -->
4731 pre-save transform: comment containing extension
4735 <!-- <tag>data</tag> -->
4737 <!-- <tag>data</tag> -->
4741 pre-save transform: comment containing nowiki
4745 <!-- <nowiki>data</nowiki> -->
4747 <!-- <nowiki>data</nowiki> -->
4751 pre-save transform: <noinclude> in subst (bug 3298)
4761 pre-save transform: <onlyinclude> in subst (bug 3298)
4773 {{<includeonly>subst:</includeonly>Includes}}
4777 Template:SafeSubstTest
4779 {{<includeonly>safesubst:</includeonly>Includes}}
4783 bug 22297: safesubst: works during PST
4787 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4793 bug 22297: safesubst: works during normal parse
4802 subst: does not work during normal parse
4806 <p>{{subst:Includes}}
4811 pre-save transform: context links ("pipe trick")
4815 [[Article (context)|]]
4818 [[Bar:Article (context)|]]
4819 [[:Bar:Article (context)|]]
4821 [[|Article (context)]]
4825 [[Article (context)|Article]]
4826 [[Bar:Article|Article]]
4827 [[:Bar:Article|Article]]
4828 [[Bar:Article (context)|Article]]
4829 [[:Bar:Article (context)|Article]]
4831 [[Article (context)]]
4832 [[Bar:X (Y) Z|X (Y) Z]]
4833 [[:Bar:X (Y) Z|X (Y) Z]]
4837 pre-save transform: context links ("pipe trick") with interwiki prefix
4841 [[interwiki:Article|]]
4842 [[:interwiki:Article|]]
4843 [[interwiki:Bar:Article|]]
4844 [[:interwiki:Bar:Article|]]
4846 [[interwiki:Article|Article]]
4847 [[:interwiki:Article|Article]]
4848 [[interwiki:Bar:Article|Bar:Article]]
4849 [[:interwiki:Bar:Article|Bar:Article]]
4853 pre-save transform: context links ("pipe trick") with parens in title
4855 pst title=[[Somearticle (context)]]
4859 [[Article (context)|Article]]
4863 pre-save transform: context links ("pipe trick") with comma in title
4865 pst title=[[Someplace, Somewhere]]
4868 [[Otherplace, Elsewhere|]]
4869 [[Otherplace, Elsewhere, Anywhere|]]
4871 [[Otherplace, Somewhere|Otherplace]]
4872 [[Otherplace, Elsewhere|Otherplace]]
4873 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4877 pre-save transform: context links ("pipe trick") with parens and comma
4879 pst title=[[Someplace (IGNORED), Somewhere]]
4882 [[Otherplace (place), Elsewhere|]]
4884 [[Otherplace, Somewhere|Otherplace]]
4885 [[Otherplace (place), Elsewhere|Otherplace]]
4889 pre-save transform: context links ("pipe trick") with comma and parens
4891 pst title=[[Who, me? (context)]]
4894 [[Me, Myself, and I (1937 song)|]]
4896 [[Yes, you. (context)|Yes, you.]]
4897 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4901 pre-save transform: context links ("pipe trick") with namespace
4903 pst title=[[Ns:Somearticle]]
4907 [[Ns:Article|Article]]
4911 pre-save transform: context links ("pipe trick") with namespace and parens
4913 pst title=[[Ns:Somearticle (context)]]
4917 [[Ns:Article (context)|Article]]
4921 pre-save transform: context links ("pipe trick") with namespace and comma
4923 pst title=[[Ns:Somearticle, Context, Whatever]]
4927 [[Ns:Article, Context, Whatever|Article]]
4931 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4933 pst title=[[Ns:Somearticle, Context (context)]]
4937 [[Ns:Article (context)|Article]]
4941 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4943 pst title=[[Ns:Somearticle (IGNORED), Context]]
4947 [[Ns:Article, Context|Article]]
4951 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4955 [[Article(context)|]]
4956 [[Bar:Article(context)|]]
4957 [[:Bar:Article(context)|]]
4958 [[|Article(context)]]
4962 [[Article(context)|Article]]
4963 [[Bar:Article(context)|Article]]
4964 [[:Bar:Article(context)|Article]]
4965 [[Article(context)]]
4967 [[:Bar:X(Y)Z|X(Y)Z]]
4971 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4975 [[Article (context)|]]
4976 [[Bar:Article (context)|]]
4977 [[:Bar:Article (context)|]]
4978 [[|Article (context)]]
4982 [[Article (context)|Article]]
4983 [[Bar:Article (context)|Article]]
4984 [[:Bar:Article (context)|Article]]
4985 [[Article (context)]]
4986 [[Bar:X (Y) Z|X (Y) Z]]
4987 [[:Bar:X (Y) Z|X (Y) Z]]
4991 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4995 [[Article(context)|]]
4996 [[Bar:Article(context)|]]
4997 [[:Bar:Article(context)|]]
4998 [[|Article(context)]]
5002 [[Article(context)|Article]]
5003 [[Bar:Article(context)|Article]]
5004 [[:Bar:Article(context)|Article]]
5005 [[Article(context)]]
5007 [[:Bar:X(Y)Z|X(Y)Z]]
5011 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5015 [[Article (context), context|]]
5016 [[Article (context),context|]]
5017 [[Bar:Article (context), context|]]
5018 [[Bar:Article (context),context|]]
5019 [[:Bar:Article (context), context|]]
5020 [[:Bar:Article (context),context|]]
5022 [[Article (context), context|Article]]
5023 [[Article (context),context|Article]]
5024 [[Bar:Article (context), context|Article]]
5025 [[Bar:Article (context),context|Article]]
5026 [[:Bar:Article (context), context|Article]]
5027 [[:Bar:Article (context),context|Article]]
5031 pre-save transform: trim trailing empty lines
5035 Empty lines are trimmed
5041 Empty lines are trimmed
5045 pre-save transform: Signature expansion
5050 * <noinclude>~~~</noinclude>
5051 * <includeonly>~~~</includeonly>
5052 * <onlyinclude>~~~</onlyinclude>
5054 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5055 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5056 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5057 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5062 pre-save transform: Signature expansion in nowiki tags (bug 93)
5068 <nowiki>~~~~</nowiki>
5070 <includeonly><nowiki>~~~~</nowiki></includeonly>
5072 <noinclude><nowiki>~~~~</nowiki></noinclude>
5074 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5076 {{subst:Foo}} shall be converted to FOO
5078 As well as inside noinclude/onlyinclude
5079 <noinclude>{{subst:Foo}}</noinclude>
5080 <onlyinclude>{{subst:Foo}}</onlyinclude>
5082 But not inside includeonly
5083 <includeonly>{{subst:Foo}}</includeonly>
5087 <nowiki>~~~~</nowiki>
5089 <includeonly><nowiki>~~~~</nowiki></includeonly>
5091 <noinclude><nowiki>~~~~</nowiki></noinclude>
5093 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5095 FOO shall be converted to FOO
5097 As well as inside noinclude/onlyinclude
5098 <noinclude>FOO</noinclude>
5099 <onlyinclude>FOO</onlyinclude>
5101 But not inside includeonly
5102 <includeonly>{{subst:Foo}}</includeonly>
5106 ### Message transform tests
5109 message transform: magic variables
5119 message transform: should not transform wiki markup
5129 message transform: <noinclude> in transcluded template (bug 4926)
5139 message transform: <onlyinclude> in transcluded template (bug 4926)
5149 {{#special:}} page name, known
5153 {{#special:Recentchanges}}
5155 Special:RecentChanges
5159 {{#special:}} page name with subpage, known
5163 {{#special:Recentchanges/param}}
5165 Special:RecentChanges/param
5169 {{#special:}} page name, unknown
5173 {{#special:foobarnonexistent}}
5175 No such special page
5179 {{#speciale:}} page name, known
5183 {{#speciale:Recentchanges}}
5185 Special:RecentChanges
5189 {{#speciale:}} page name with subpage, known
5193 {{#speciale:Recentchanges/param}}
5195 Special:RecentChanges/param
5199 {{#speciale:}} page name, unknown
5203 {{#speciale:foobarnonexistent}}
5205 No_such_special_page
5214 [[Image:foobar.jpg]]
5216 <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>
5223 [[Image:foobar.jpg|right]]
5225 <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>
5230 Simple image (using File: namespace, now canonical)
5234 <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>
5241 [[Image:foobar.jpg|right|Caption text]]
5243 <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>
5248 Image with link parameter, wiki target
5250 [[Image:foobar.jpg|link=Target page]]
5252 <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>
5257 Image with link parameter, URL target
5259 [[Image:foobar.jpg|link=http://example.com/]]
5261 <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>
5266 Image with link parameter, wgExternalLinkTarget
5268 [[Image:foobar.jpg|link=http://example.com/]]
5270 wgExternalLinkTarget='foobar'
5272 <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>
5277 Image with link parameter, wgNoFollowLinks set to false
5279 [[Image:foobar.jpg|link=http://example.com/]]
5281 wgNoFollowLinks=false
5283 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5288 Image with link parameter, wgNoFollowDomainExceptions
5290 [[Image:foobar.jpg|link=http://example.com/]]
5292 wgNoFollowDomainExceptions='example.com'
5294 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5299 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5301 [[Image:foobar.jpg|link=http://example.com/|Title]]
5303 wgExternalLinkTarget='foobar'
5305 <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>
5310 Image with empty link parameter
5312 [[Image:foobar.jpg|link=]]
5314 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5319 Image with link parameter (wiki target) and unnamed parameter
5321 [[Image:foobar.jpg|link=Target page|Title]]
5323 <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>
5328 Image with link parameter (URL target) and unnamed parameter
5330 [[Image:foobar.jpg|link=http://example.com/|Title]]
5332 <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>
5337 Thumbnail image with link parameter
5339 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5341 <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>
5346 Image with frame and link
5348 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5350 <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>
5355 Image with frame and link and explicit alt
5357 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5359 <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>
5364 Image with wiki markup in implicit alt
5366 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5368 <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>
5373 Image with wiki markup in explicit alt
5375 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5377 <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>
5382 Link to image page- image page normally doesn't exists, hence edit link
5383 Add test with existing image page
5384 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5388 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5393 bug 18784 Link to non-existent image page with caption should use caption as link text
5395 [[:Image:test|caption]]
5397 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5402 Frameless image caption with a free URL
5404 [[Image:foobar.jpg|http://example.com]]
5406 <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>
5411 Thumbnail image caption with a free URL
5413 [[Image:foobar.jpg|thumb|http://example.com]]
5415 <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>
5420 Thumbnail image caption with a free URL and explicit alt
5422 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5424 <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>
5429 BUG 1887: A ISBN with a thumbnail
5431 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5433 <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>
5438 BUG 1887: A RFC with a thumbnail
5440 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5442 <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>
5447 BUG 1887: A mailto link with a thumbnail
5449 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5451 <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>
5455 # Pending resolution to bug 368
5457 BUG 648: Frameless image caption with a link
5459 [[Image:foobar.jpg|text with a [[link]] in it]]
5461 <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>
5466 BUG 648: Frameless image caption with a link (suffix)
5468 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5470 <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>
5475 BUG 648: Frameless image caption with an interwiki link
5477 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5479 <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>
5484 BUG 648: Frameless image caption with a piped interwiki link
5486 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5488 <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>
5493 Escape HTML special chars in image alt text
5495 [[Image:foobar.jpg|& < > "]]
5497 <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>
5502 BUG 499: Alt text should have Ӓ, not &1234;
5504 [[Image:foobar.jpg|♀]]
5506 <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>
5511 Broken image caption with link
5513 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5515 <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.
5520 Image caption containing another image
5522 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5524 <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>
5529 Image caption containing a newline
5531 [[Image:Foobar.jpg|This
5534 <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>
5540 Bug 3090: External links other than http: in image captions
5542 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5544 <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>
5551 [[Image:foobar.jpg|a|class=b]]
5553 <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>
5560 #REDIRECT [[File:Barfoo.jpg]]
5566 [[Image:Barfoo.jpg]]
5568 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5573 Missing image with uploads disabled
5577 [[Image:Foobaz.jpg]]
5579 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5588 Subpage test/subpage
5596 subpage title=[[Subpage test]]
5600 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5605 Subpage noslash link
5607 subpage title=[[Subpage test]]
5611 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5620 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5625 BUG 561: {{/Subpage}}
5627 subpage title=[[Page]]
5631 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5639 Category:MediaWiki User's Guide
5647 [[:Category:MediaWiki User's Guide]]
5649 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5658 [[Category:MediaWiki User's Guide]]
5660 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5664 PAGESINCATEGORY invalid title fatal (r33546 fix)
5666 {{PAGESINCATEGORY:<bogus>}}
5673 Category with different sort key
5677 [[Category:MediaWiki User's Guide|Foo]]
5679 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5683 Category with identical sort key
5687 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5689 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5693 Category with empty sort key
5698 [[Category:MediaWiki User's Guide|]]
5700 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5704 Category with empty sort key and parentheses
5709 [[Category:Foo (bar)|]]
5711 [[Category:Foo (bar)|Foo]]
5715 ### Inter-language links
5718 Inter-language links
5724 [[zh:食品]]
5726 es:Alimento fr:Nourriture zh:食品
5733 Basic section headings
5740 ===Smaller headline===
5743 <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 <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>
5749 <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>
5755 Section headings with TOC
5758 === Subheadline 1 ===
5759 ===== Skipping a level =====
5760 ====== Skipping a level ======
5764 ===Another headline===
5766 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5768 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5770 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5772 <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>
5774 <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>
5781 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5783 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5788 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
5789 <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>
5790 <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>
5791 <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>
5792 <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>
5795 <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>
5799 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5801 Handling of sections up to level 6 and beyond
5804 == Level 2 Heading==
5805 === Level 3 Heading===
5806 ==== Level 4 Heading====
5807 ===== Level 5 Heading=====
5808 ====== Level 6 Heading======
5809 ======= Level 7 Heading=======
5810 ======== Level 8 Heading========
5811 ========= Level 9 Heading=========
5812 ========== Level 10 Heading==========
5814 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5816 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5818 <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>
5820 <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>
5822 <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>
5824 <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>
5826 <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>
5827 <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>
5828 <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>
5829 <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>
5830 <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>
5843 <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>
5844 <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>
5845 <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>
5846 <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>
5847 <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>
5848 <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>
5849 <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>
5850 <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>
5851 <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>
5852 <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>
5857 TOC regression (bug 9764)
5861 ==== title 1.1.1 ====
5866 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5868 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5870 <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>
5872 <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>
5875 <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>
5878 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5880 <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>
5885 <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>
5886 <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>
5887 <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>
5888 <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>
5889 <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>
5890 <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>
5895 TOC with wgMaxTocLevel=3 (bug 6204)
5901 ==== title 1.1.1 ====
5906 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5908 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5910 <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>
5911 <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>
5914 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5916 <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>
5921 <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>
5922 <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>
5923 <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>
5924 <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>
5925 <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>
5926 <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>
5931 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5937 ====Section 1.1.1====
5938 ====Section 1.1.1.1====
5941 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5943 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5945 <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>
5948 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5951 <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>
5952 <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>
5953 <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>
5954 <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>
5955 <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>
5961 Resolving duplicate section names
5966 <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>
5967 <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>
5972 Resolving duplicate section names with differing case (bug 10721)
5977 <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>
5978 <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>
5990 Template with sections, __NOTOC__
5997 <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>
5998 <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>
5999 <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>
6000 <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>
6005 __NOEDITSECTION__ keyword
6011 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6012 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6017 Link inside a section heading
6019 ==Section with a [[Main Page|link]] in it==
6021 <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>
6026 TOC regression (bug 12077)
6033 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6035 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6037 <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>
6040 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6043 <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>
6044 <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>
6045 <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>
6050 BUG 1219 URL next to image (good)
6052 http://example.com [[Image:foobar.jpg]]
6054 <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>
6059 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6062 The line above must have a trailing space!
6065 But just in case it doesn't...
6067 <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>
6068 <p>The line above must have a trailing space!
6070 <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>
6071 <p>But just in case it doesn't...
6076 Header with special characters (bug 25462)
6078 The tooltips shall not show entities to the user (ie. be double escaped)
6095 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6097 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6099 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6100 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6101 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6102 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6103 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6106 <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>
6109 <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>
6112 <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>
6115 <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>
6118 <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>
6124 Headers with excess '=' characters
6125 (Are similar tests necessary beyond the 1st level?)
6129 =''italic'' heading==
6130 ==''italic'' heading=
6132 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6134 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6135 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6136 <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>
6137 <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>
6140 <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>
6141 <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>
6142 <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>
6143 <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>
6148 BUG 1219 URL next to image (broken)
6150 http://example.com[[Image:foobar.jpg]]
6152 <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>
6157 Bug 1186 news: in the middle of text
6159 http://en.wikinews.org/wiki/Wikinews:Workplace
6161 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6167 Namespaced link must have a title
6176 Namespaced link must have a title (bad fragment version)
6178 [[Project:#fragment]]
6180 <p>[[Project:#fragment]]
6186 div with no attributes
6188 <div>HTML rocks</div>
6190 <div>HTML rocks</div>
6195 div with double-quoted attribute
6197 <div id="rock">HTML rocks</div>
6199 <div id="rock">HTML rocks</div>
6204 div with single-quoted attribute
6206 <div id='rock'>HTML rocks</div>
6208 <div id="rock">HTML rocks</div>
6213 div with unquoted attribute
6215 <div id=rock>HTML rocks</div>
6217 <div id="rock">HTML rocks</div>
6222 div with illegal double attributes
6224 <div id="a" id="b">HTML rocks</div>
6226 <div id="b">HTML rocks</div>
6231 HTML multiple attributes correction
6233 <p class="error" class="awesome">Awesome!</p>
6235 <p class="awesome">Awesome!</p>
6240 Table multiple attributes correction
6243 !+ class="error" class="awesome"| status
6248 <th class="awesome"> status
6256 <DIV ID="x">HTML ROCKS</DIV>
6258 <div id="x">HTML ROCKS</div>
6264 text with amp in the middle of nowhere
6268 <p>Remember AT&T?
6273 text with character entity: eacute
6275 I always thought é was a cute letter.
6277 <p>I always thought é was a cute letter.
6282 text with undefined character entity: xacute
6284 I always thought &xacute; was a cute letter.
6286 <p>I always thought &xacute; was a cute letter.
6298 [[Media:Foobar.jpg]]
6300 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6305 Media link with text
6307 [[Media:Foobar.jpg|A neat file to look at]]
6309 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6313 # FIXME: this is still bad HTML tag nesting
6315 Media link with nasty text
6316 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6318 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6320 <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>
6325 Media link to nonexistent file (bug 1702)
6327 [[Media:No such.jpg]]
6329 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6334 Image link to nonexistent file (bug 1850 - good)
6336 [[Image:No such.jpg]]
6338 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6343 :Image link to nonexistent file (bug 1850 - bad)
6345 [[:Image:No such.jpg]]
6347 <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>
6354 Character reference normalization in link text (bug 1938)
6356 [[Main Page|this&that]]
6358 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6365 Test for unicode normalization
6367 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6371 (bug 19451) Links should refer to the normalized form.
6379 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6380 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6381 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6382 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6383 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6388 Empty attribute crash test (bug 2067)
6390 <font color="">foo</font>
6392 <p><font color="">foo</font>
6397 Empty attribute crash test single-quotes (bug 2067)
6399 <font color=''>foo</font>
6401 <p><font color="">foo</font>
6406 Attribute test: equals, then nothing
6408 <font color=>foo</font>
6415 Attribute test: unquoted value
6417 <font color=x>foo</font>
6419 <p><font color="x">foo</font>
6424 Attribute test: unquoted but illegal value (hash)
6426 <font color=#x>foo</font>
6428 <p><font color="#x">foo</font>
6433 Attribute test: no value
6435 <font color>foo</font>
6437 <p><font color="color">foo</font>
6442 Bug 2095: link with three closing brackets
6446 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6451 Bug 2095: link with pipe and three closing brackets
6455 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6460 Bug 2095: link with pipe and three closing brackets, version 2
6462 [[Main Page|[http://example.com/]]]
6464 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6474 Template:Dangerous attribute
6476 " onmouseover="alert(document.cookie)
6480 Template:Dangerous style attribute
6482 border-size: expression(alert(document.cookie))
6488 <div style="float: right; {{{1}}}">Magic div</div>
6492 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6494 <div title="{{test}}"></div>
6496 <div title="This is a test template"></div>
6501 Bug 2304: HTML attribute safety (dangerous template; 2309)
6503 <div title="{{dangerous attribute}}"></div>
6505 <div title=""></div>
6510 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6512 <div style="{{dangerous style attribute}}"></div>
6514 <div style="/* insecure input */"></div>
6519 Bug 2304: HTML attribute safety (safe parameter; 2309)
6521 {{div style|width: 200px}}
6523 <div style="float: right; width: 200px">Magic div</div>
6528 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6530 {{div style|width: expression(alert(document.cookie))}}
6532 <div style="/* insecure input */">Magic div</div>
6537 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6539 {{div style|"><script>alert(document.cookie)</script>}}
6541 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6546 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6548 {{div style|" ><script>alert(document.cookie)</script>}}
6550 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6555 Bug 2304: HTML attribute safety (link)
6557 <div title="[[Main Page]]"></div>
6559 <div title="[[Main Page]]"></div>
6564 Bug 2304: HTML attribute safety (italics)
6566 <div title="''foobar''"></div>
6568 <div title="''foobar''"></div>
6573 Bug 2304: HTML attribute safety (bold)
6575 <div title="'''foobar'''"></div>
6577 <div title="'''foobar'''"></div>
6583 Bug 2304: HTML attribute safety (ISBN)
6585 <div title="ISBN 1234567890"></div>
6587 <div title="ISBN 1234567890"></div>
6592 Bug 2304: HTML attribute safety (RFC)
6594 <div title="RFC 1234"></div>
6596 <div title="RFC 1234"></div>
6601 Bug 2304: HTML attribute safety (PMID)
6603 <div title="PMID 1234567890"></div>
6605 <div title="PMID 1234567890"></div>
6610 Bug 2304: HTML attribute safety (web link)
6612 <div title="http://example.com/"></div>
6614 <div title="http://example.com/"></div>
6619 Bug 2304: HTML attribute safety (named web link)
6621 <div title="[http://example.com/ link]"></div>
6623 <div title="[http://example.com/ link]"></div>
6628 Bug 3244: HTML attribute safety (extension; safe)
6630 <div style="<nowiki>background:blue</nowiki>"></div>
6632 <div style="background:blue"></div>
6637 Bug 3244: HTML attribute safety (extension; unsafe)
6639 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6641 <div style="/* insecure input */"></div>
6645 # More MSIE fun discovered by Tom Gilder
6648 MSIE CSS safety test: spurious slash
6650 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6652 <div style="/* insecure input */">evil</div>
6657 MSIE CSS safety test: hex code
6659 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6661 <div style="/* insecure input */">evil</div>
6666 MSIE CSS safety test: comment in url
6668 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6670 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6675 MSIE CSS safety test: comment in expression
6677 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6679 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6685 Table attribute legitimate extension
6688 !+ style="<nowiki>color:blue</nowiki>"| status
6693 <th style="color:blue"> status
6699 Table attribute safety
6702 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6707 <th style="/* insecure input */"> status
6713 CSS line continuation 1
6715 <div style="background-image: u\ rl(test.jpg);"></div>
6717 <div style="/* insecure input */"></div>
6722 CSS line continuation 2
6724 <div style="background-image: u\ rl(test.jpg); "></div>
6726 <div style="/* insecure input */"></div>
6737 Expansion of multi-line templates in attribute values (bug 6255)
6739 <div style="background: {{identity|#00FF00}}">-</div>
6741 <div style="background: #00FF00">-</div>
6747 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6749 <div style="background:
6752 <div style="background: #00FF00">-</div>
6757 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6759 <div style="background: #00FF00">-</div>
6761 <div style="background: #00FF00">-</div>
6766 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6769 Parser hook: empty input
6782 Parser hook: empty input using terminated empty elements
6795 Parser hook: empty input using terminated empty elements (space before)
6808 Parser hook: basic input
6822 Parser hook: case insensitive
6836 Parser hook: case insensitive, redux
6849 Parser hook: nested tags
6853 <tag><tag></tag></tag>
6864 Parser hook: basic arguments
6866 <tag width=200 height = "100" depth = '50' square></tag>
6885 Parser hook: argument containing a forward slash (bug 5344)
6887 <tag filename='/tmp/bla'></tag>
6893 string(8) "/tmp/bla"
6900 Parser hook: empty input using terminated empty elements (bug 2374)
6914 # </tag> should be output literally since there is no matching tag that begins it
6916 Parser hook: basic arguments using terminated empty elements (bug 2374)
6918 <tag width=200 height = "100" depth = '50' square/>
6941 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6945 Parser hook: static parser hook not inside a comment
6947 <statictag>hello, world</statictag>
6948 <statictag action=flush/>
6956 Parser hook: static parser hook inside a comment
6958 <!-- <statictag>hello, world</statictag> -->
6959 <statictag action=flush/>
6965 # Nested template calls; this case was broken by Parser.php rev 1.506,
6969 Template:One-parameter
6971 (My parameter is: {{{1}}})
6975 Template:Map-one-parameter
6981 Nested template calls
6983 {{Map-one-parameter|One-parameter|param}}
6985 <p>(My parameter is: param)
6994 Sanitizer: Closing of open tags
6996 <s></s><table></table>
6998 <s></s><table></table>
7003 Sanitizer: Closing of open but not closed tags
7012 Sanitizer: Closing of closed but not open tags
7021 Sanitizer: Closing of closed but not open table tags
7023 Table not started</td></tr></table>
7025 <p>Table not started</td></tr></table>
7030 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7032 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7034 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7039 Sanitizer: Validating the contents of the id attribute (bug 4515)
7045 Something, but definitely not <br id="9" />...
7049 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7053 <br id="foo" /><br id="foo" />
7055 Something need to be done. foo-2 ?
7059 Language converter: output gets cut off unexpectedly (bug 5757)
7063 this bit is safe: }-
7065 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7067 then we get cut off here: }-
7069 all additional text is vanished
7071 <p>this bit is safe: }-
7072 </p><p>but if we add a conversion instance: xxx
7073 </p><p>then we get cut off here: }-
7074 </p><p>all additional text is vanished
7079 Self closed html pairs (bug 5487)
7082 <center><font id="bug" />Centered text</center>
7083 <div><font id="bug2" />In div text</div>
7085 <center><font id="bug" />Centered text</center>
7086 <div><font id="bug2" />In div text</div>
7095 Punctuation: nbsp before exclamation
7099 <p>C'est grave !
7104 Punctuation: CSS !important (bug 11874)
7106 <div style="width:50% !important">important</div>
7108 <div style="width:50% !important">important</div>
7113 Punctuation: CSS ! important (bug 11874; with space after)
7115 <div style="width:50% ! important">important</div>
7117 <div style="width:50% ! important">important</div>
7123 HTML bullet list, closed tags (bug 5497)
7138 HTML bullet list, unclosed tags (bug 5497)
7155 HTML ordered list, closed tags (bug 5497)
7170 HTML ordered list, unclosed tags (bug 5497)
7187 HTML nested bullet list, closed tags (bug 5497)
7212 HTML nested bullet list, open tags (bug 5497)
7237 HTML nested ordered list, closed tags (bug 5497)
7262 HTML nested ordered list, open tags (bug 5497)
7287 HTML ordered list item with parameters oddity
7289 <ol><li id="fragment">One</li></ol>
7291 <ol><li id="fragment">One</li></ol>
7296 bug 5918: autonumbering
7298 [http://first/] [http://second] [ftp://ftp]
7302 [mailto:enclosed@mail.tld With target]
7304 [mailto:enclosed@mail.tld]
7306 mailto:inline@mail.tld
7308 <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>
7309 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7310 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7311 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7312 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7318 # Security and HTML correctness
7319 # From Nick Jenkins' fuzz testing
7323 Fuzz testing: Parser13
7338 Fuzz testing: Parser14
7343 <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>
7344 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7346 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7353 Fuzz testing: Parser14-table
7358 <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>
7359 <table style="__TOC__">
7365 # Known to produce bogus xml (extra </td>)
7367 Fuzz testing: Parser16
7387 Fuzz testing: Parser21
7390 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7395 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7405 Fuzz testing: Parser22
7407 http://===r:::https://b
7411 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7419 # Known to produce bad XML for now
7421 Fuzz testing: Parser24
7428 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7429 <br style="onmouseover='alert(document.cookie);' " />
7431 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7436 <u class="|">}}}} >
7437 <br style="onmouseover='alert(document.cookie);'" />
7439 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7448 # Note: the current result listed for this is not what the original one was,
7449 # but the original bug was JavaScript injection, which is fixed in any case.
7450 # It's not clear that the original result listed was any more correct than the
7451 # current one. Original result:
7454 # <li class="||">
7455 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7457 Fuzz testing: Parser25 (bug 6055)
7463 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7465 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7470 Fuzz testing: URL adjacent extension (with space, clean)
7473 http://example.com <nowiki>junk</nowiki>
7475 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7480 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7483 http://example.com<nowiki>junk</nowiki>
7485 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7490 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7493 http://example.com<pre>junk</pre>
7495 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7500 Fuzz testing: image with bogus manual thumbnail
7502 [[Image:foobar.jpg|thumbnail= ]]
7504 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7509 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7511 <pre dir=" "></pre>
7513 <pre dir=" "></pre>
7518 Parsing optional HTML elements (Bug 6171)
7523 <td> Some tabular data</td>
7524 <td> More tabular data ...
7525 <td> And yet som tabular data</td>
7531 <td> Some tabular data</td>
7532 <td> More tabular data ...
7533 </td><td> And yet som tabular data</td>
7540 Correct handling of <td>, <tr> (Bug 6171)
7545 <td> Some tabular data</td>
7546 <td> More tabular data ...</td>
7547 <td> And yet som tabular data</td>
7553 <td> Some tabular data</td>
7554 <td> More tabular data ...</td>
7555 <td> And yet som tabular data</td>
7563 Parsing crashing regression (fr:JavaScript)
7567 <p></body></x>
7572 Inline wiki vs wiki block nesting
7578 <p><b>Bold paragraph</b>
7579 </p><p>New wiki paragraph
7584 Inline HTML vs wiki block nesting
7592 <p><b>Bold paragraph</b>
7593 </p><p>New wiki paragraph
7597 # Original result was this:
7598 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7600 # While that might be marginally more intuitive, maybe, the six-apostrophe
7601 # construct is clearly pathological and the result stated here (which is what
7602 # the parser actually does) is about as reasonable as anything.
7604 Mixing markup for italics and bold
7607 '''bold''''''bold''bolditalics'''''
7609 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7617 Article for special page transclusion test
7621 Special page transclusion
7624 {{Special:Prefixindex/Xyzzyx}}
7626 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7631 Special page transclusion twice (bug 5021)
7634 {{Special:Prefixindex/Xyzzyx}}
7635 {{Special:Prefixindex/Xyzzyx}}
7637 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7638 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7643 Transclusion of default MediaWiki message
7645 {{MediaWiki:Mainpage}}
7652 Transclusion of nonexistent MediaWiki message
7654 {{MediaWiki:Mainpagexxx}}
7656 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7661 Transclusion of MediaWiki message with underscore
7663 {{MediaWiki:history_short}}
7670 Transclusion of MediaWiki message with space
7672 {{MediaWiki:history short}}
7679 Invalid header with following text
7689 Section extraction test (section 0)
7709 Section extraction test (section 1)
7731 Section extraction test (section 2)
7752 Section extraction test (section 3)
7772 Section extraction test (section 4)
7796 Section extraction test (section 5)
7816 Section extraction test (section 6)
7837 Section extraction test (section 7)
7857 Section extraction test (section 8)
7877 Section extraction test (section 9)
7898 Section extraction test (section 10)
7918 Section extraction test (nonexistent section 11)
7937 Section extraction test with bogus heading (section 1)
7942 ==bogus== not a legal section
7946 ==bogus== not a legal section
7950 Section extraction test with bogus heading (section 2)
7955 ==bogus== not a legal section
7962 Section extraction test with comment after heading (section 1)
7974 Section extraction test with comment after heading (section 2)
7986 Section extraction test with bogus <nowiki> heading (section 1)
7991 ==bogus== <nowiki>not a legal section</nowiki>
7995 ==bogus== <nowiki>not a legal section</nowiki>
7999 Section extraction test with bogus <nowiki> heading (section 2)
8004 ==bogus== <nowiki>not a legal section</nowiki>
8011 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8012 # instead of respecting commented sections
8014 Section extraction prefixed by comment (section 1)
8025 Section extraction prefixed by comment (section 2)
8036 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8037 # instead of respecting HTML-style headings
8039 Section extraction, mixed wiki and html (section 1)
8055 Section extraction, mixed wiki and html (section 2)
8071 # Formerly testing for bug 3342
8073 Section extraction, heading surrounded by <noinclude>
8077 <noinclude>==unmarked==</noinclude>
8083 # Test behaviour of bug 19910
8085 Sectiion with all-equals
8090 The line above must have a trailing space
8093 But just in case it doesn't...
8097 But just in case it doesn't...
8101 Section replacement test (section 0)
8132 Section replacement test (section 1)
8161 Section replacement test (section 2)
8191 Section replacement test (section 3)
8222 Section replacement test (section 4)
8249 Section replacement test (section 5)
8280 Section replacement test (section 6)
8310 Section replacement test (section 7)
8341 Section replacement test (section 8)
8372 Section replacement test (section 9)
8401 Section replacement test (section 10)
8431 Section replacement test with initial whitespace (bug 13728)
8435 Preformatted initial line
8439 Preformatted initial line
8446 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8458 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8471 Section extraction, <pre> around bogus header (bug 10309)
8488 Section replacement, <pre> around bogus header (bug 10309)
8490 noxml replace=2,"xxx"
8511 Handling of 
 in URLs
8515 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8522 5 quotes, code coverage +1 line
8529 Special:Search page linking.
8533 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8548 * {{SUBJECTPAGENAME}}
8549 * {{SUBJECTPAGENAMEE}}
8556 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8558 <ul><li> Parser test
8559 </li><li> Parser test
8560 </li><li> Parser test
8561 </li><li> Parser_test
8562 </li><li> Parser test
8563 </li><li> Parser_test
8564 </li><li> Talk:Parser test
8565 </li><li> Talk:Parser_test
8566 </li><li> Parser test
8567 </li><li> Parser_test
8574 </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>
8578 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8588 image4 |300px| centre
8589 image5.svg| http://///////
8594 <ul class="gallery">
8595 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8596 <div style="height: 150px;">Image1.png</div>
8597 <div class="gallerytext">
8600 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8601 <div style="height: 150px;">Image2.gif</div>
8602 <div class="gallerytext">
8607 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8608 <div style="height: 150px;">Image3</div>
8609 <div class="gallerytext">
8612 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8613 <div style="height: 150px;">Image4</div>
8614 <div class="gallerytext">
8619 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8620 <div style="height: 150px;">Image5.svg</div>
8621 <div class="gallerytext">
8622 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8626 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8627 <div style="height: 150px;">* image6</div>
8628 <div class="gallerytext">
8636 Gallery (with options)
8638 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8639 File:Nonexistant.jpg|caption
8640 File:Nonexistant.jpg
8641 image:foobar.jpg|some '''caption''' [[Main Page]]
8643 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8646 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8647 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8648 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8649 <div style="height: 70px;">Nonexistant.jpg</div>
8650 <div class="gallerytext">
8655 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8656 <div style="height: 70px;">Nonexistant.jpg</div>
8657 <div class="gallerytext">
8660 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8661 <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>
8662 <div class="gallerytext">
8663 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8667 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8668 <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>
8669 <div class="gallerytext">
8672 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8673 <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>
8674 <div class="gallerytext">
8684 Gallery with wikitext inside caption
8687 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8688 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8691 <ul class="gallery">
8692 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8693 <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>
8694 <div class="gallerytext">
8695 <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>
8699 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8700 <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>
8701 <div class="gallerytext">
8702 <p>This is a test template
8711 gallery (with showfilename option)
8713 <gallery showfilename>
8714 File:Nonexistant.jpg|caption
8715 File:Nonexistant.jpg
8716 image:foobar.jpg|some '''caption''' [[Main Page]]
8720 <ul class="gallery">
8721 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8722 <div style="height: 150px;">Nonexistant.jpg</div>
8723 <div class="gallerytext">
8724 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8729 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8730 <div style="height: 150px;">Nonexistant.jpg</div>
8731 <div class="gallerytext">
8732 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8736 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8737 <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>
8738 <div class="gallerytext">
8739 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8740 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8744 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8745 <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>
8746 <div class="gallerytext">
8747 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8756 Gallery (with namespace-less filenames)
8759 File:Nonexistant.jpg
8765 <ul class="gallery">
8766 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8767 <div style="height: 150px;">Nonexistant.jpg</div>
8768 <div class="gallerytext">
8771 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8772 <div style="height: 150px;">Nonexistant.jpg</div>
8773 <div class="gallerytext">
8776 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8777 <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>
8778 <div class="gallerytext">
8781 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8782 <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>
8783 <div class="gallerytext">
8791 HTML Hex character encoding (spells the word "JavaScript")
8793 JavaScript
8795 <p>JavaScript
8800 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8804 <p>&#xsee;&#XSEE;
8809 HTML Hex character encoding mixed case
8818 __FORCETOC__ override
8830 ISBN 978-0-1234-56 789
8832 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8837 ISBN followed by 5 spaces
8848 ISBN ISBN 1234567890
8850 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8855 Bug 22905: <abbr> followed by ISBN followed by </a>
8857 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8859 <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>
8868 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8873 Double RFC with a wiki link
8877 <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>
8886 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8891 Centre-aligned image
8893 [[Image:foobar.jpg|centre]]
8895 <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>
8902 [[Image:foobar.jpg|none]]
8904 <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>
8909 Width + Height sized image (using px) (height is ignored)
8911 [[Image:foobar.jpg|640x480px]]
8913 <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>
8918 Width-sized image (using px, no following whitespace)
8920 [[Image:foobar.jpg|640px]]
8922 <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>
8927 Width-sized image (using px, with following whitespace - test regression from r39467)
8929 [[Image:foobar.jpg|640px ]]
8931 <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>
8936 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8938 [[Image:foobar.jpg| 640px]]
8940 <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>
8945 Another italics / bold test
8953 # Note the results may be incorrect, as parserTest output included this:
8954 # XML error: Mismatched tag at byte 6120:
8955 # ...<dd> </dt></dl> </dd...
8963 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8974 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8976 Images with the "|" character in the comment
8978 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8980 <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>
8985 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8987 <html><script>alert(1);</script></html>
8989 <p><html><script>alert(1);</script></html>
8994 HTML with raw HTML ($wgRawHtml==true)
8998 <html><script>alert(1);</script></html>
9000 <p><script>alert(1);</script>
9005 Parents of subpages, one level up
9007 subpage title=[[Subpage test/L1/L2/L3]]
9011 <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>
9017 Parents of subpages, one level up, not named
9019 subpage title=[[Subpage test/L1/L2/L3]]
9023 <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>
9030 Parents of subpages, two levels up
9032 subpage title=[[Subpage test/L1/L2/L3]]
9038 <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
9039 </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>
9044 Parents of subpages, two levels up, without trailing slash or name.
9046 subpage title=[[Subpage test/L1/L2/L3]]
9055 Parents of subpages, two levels up, with lots of extra trailing slashes.
9057 subpage title=[[Subpage test/L1/L2/L3]]
9061 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9066 Definition list code coverage
9072 <dl><dt> title  </dt><dd> def
9073 </dd><dt> title </dt><dd> def
9074 </dd><dt>title</dt><dd> def
9080 Don't fall for the self-closing div
9082 <div>hello world</div/>
9084 <div>hello world</div>
9093 <p>[[:Template:Msg]]
9102 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9106 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9108 Always escape literal '>' in output, not just after '<'
9122 <p>This is a test template
9123 This is a test template
9135 Inclusion of !userCanEdit() content
9139 <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>
9145 Out-of-order TOC heading levels
9154 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9156 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9158 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9159 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9162 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9164 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9165 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9170 <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>
9171 <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>
9172 <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>
9173 <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>
9174 <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>
9175 <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>
9181 ISBN with a dummy number
9191 ISBN with space-delimited number
9195 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9201 ISBN with multiple spaces, no number
9220 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9221 </p><p>ISBN 12345678901
9227 ISBN with trailing year (bug 8110)
9229 ISBN 1-234-56789-0 - 2006
9231 ISBN 1 234 56789 0 - 2006
9233 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9234 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9242 {{anchorencode:foo bar©#%n}}
9244 <p>foo_bar.C2.A9.23.25n
9249 anchorencode trims spaces
9251 {{anchorencode: __pretty__please__}}
9258 anchorencode deals with links
9260 {{anchorencode: [[hello|world]] [[hi]]}}
9267 anchorencode deals with templates
9269 {{anchorencode: {{Foo}} }}
9276 anchorencode encodes like the TOC generator: (bug 18431)
9278 === _ +:.3A%3A&&]] ===
9279 {{anchorencode: _ +:.3A%3A&&]] }}
9282 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9283 <p>.2B:.3A.253A.26.26.5D.5D
9287 # Expected output in the following test is not necessarily expected (there
9288 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9289 # only testing for well-formedness.
9291 Bug 6200: blockquotes and paragraph formatting
9311 Bug 8293: Use of center tag ruins paragraph formatting
9333 ### Language variants related tests
9336 Self-link in language variants
9338 title=[[Dunav]] language=sr
9340 Both [[Dunav]] and [[Дунав]] are names for this river.
9342 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9348 Link to pages in language variants
9352 Main Page can be written as [[Маин Паге]]
9354 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9360 Multiple links to pages in language variants
9364 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9366 <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>.
9372 Simple template in language variants
9378 <p>This is a test template
9384 Template with explicit namespace in language variants
9390 <p>This is a test template
9396 Basic test for template parameter in language variants
9400 {{парамтест|param=foo}}
9402 <p>This is a test template with parameter foo
9408 Simple category in language variants
9412 [[Category:МедиаWики Усер'с Гуиде]]
9414 <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>
9419 Stripping -{}- tags (language variants)
9423 Latin proverb: -{Ne nuntium necare}-
9425 <p>Latin proverb: Ne nuntium necare
9431 Prevent conversion with -{}- tags (language variants)
9433 language=sr variant=sr-ec
9435 Latinski: -{Ne nuntium necare}-
9437 <p>Латински: Ne nuntium necare
9443 Prevent conversion of text with -{}- tags (language variants)
9445 language=sr variant=sr-ec
9447 Latinski: -{Ne nuntium necare}-
9449 <p>Латински: Ne nuntium necare
9455 Prevent conversion of links with -{}- tags (language variants)
9457 language=sr variant=sr-ec
9461 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9467 -{}- tags within headlines (within html for parserConvert())
9469 language=sr variant=sr-ec
9473 <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>
9479 Explicit definition of language variant alternatives
9481 language=zh variant=zh-tw
9483 -{zh:China;zh-tw:Taiwan}-, not China
9485 <p>Taiwan, not China
9491 Explicit session-wise language variant mapping (A flag and - flag)
9493 language=zh variant=zh-tw
9495 Taiwan is not China.
9496 But -{A|zh:China;zh-tw:Taiwan}- is China,
9497 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9498 and -{China}- is China.
9500 <p>Taiwan is not China.
9501 But Taiwan is Taiwan,
9502 (This should be stripped!)
9508 Explicit session-wise language variant mapping (H flag for hide)
9510 language=zh variant=zh-tw
9512 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9515 <p>(This should be stripped!)
9521 Adding explicit conversion rule for title (T flag)
9523 language=zh variant=zh-tw showtitle
9525 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9528 <p>Should be stripped!
9533 Testing that changing the language variant here in the tests actually works
9535 language=zh variant=zh showtitle
9537 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9540 <p>Should be stripped!
9545 Bug 24072: more test on conversion rule for title
9547 language=zh variant=zh-tw showtitle
9549 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9550 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9553 <p>This should be stripped!
9554 This won't take interferes with the title rule.
9559 Raw output of variant escape tags (R flag)
9561 language=zh variant=zh-tw
9563 Raw: -{R|zh:China;zh-tw:Taiwan}-
9565 <p>Raw: zh:China;zh-tw:Taiwan
9570 Nested using of manual convert syntax
9572 language=zh variant=zh-hk
9574 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9576 <p>Nested: Hello Hong Kong!
9581 Do not convert roman numbers to language variants
9583 language=sr variant=sr-ec
9587 <p>Фридрих IV је цар.
9592 Unclosed language converter markup "-{"
9603 Don't convert raw rule "-{R|=>}-" to "=>"
9620 Bug 529: Uncovered bullet
9631 Bug 529: Uncovered table already at line-start
9654 Bug 529: Uncovered bullet in parser function result
9656 * Foo {{lc:{{bullet}} }}
9665 Bug 5678: Double-parsed template argument
9667 {{lc:{{{1}}}|hello}}
9674 Bug 5678: Double-parsed template invocation
9676 {{lc:{{paramtest {{!}} param = hello }} }}
9678 <p>{{paramtest | param = hello }}
9683 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9709 Morwen/13: Unclosed link followed by heading
9716 <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>
9721 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9728 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9733 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9740 <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>
9755 Paragraphs inside divs (no extra line breaks)
9767 Paragraphs inside divs (extra line break on open)
9782 Paragraphs inside divs (extra line break on close)
9797 Paragraphs inside divs (extra line break on open and close)
9814 Nesting tags, paragraphs on lines which begin with <div>
9818 <div></div><strong>A
9827 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9829 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9833 <blockquote>Line one
9835 Line two</blockquote>
9837 <blockquote>Line one
9838 Line two</blockquote>
9843 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9850 Line two</blockquote>
9855 Line two</blockquote>
9860 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9864 <blockquote>Line one
9869 <blockquote>Line one
9877 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9896 Paragraphs inside blockquotes/divs (no extra line breaks)
9898 <blockquote><div>Line one
9900 Line two</div></blockquote>
9902 <blockquote><div>Line one
9903 Line two</div></blockquote>
9908 Paragraphs inside blockquotes/divs (extra line break on open)
9913 Line two</div></blockquote>
9918 Line two</div></blockquote>
9923 Paragraphs inside blockquotes/divs (extra line break on close)
9925 <blockquote><div>Line one
9930 <blockquote><div>Line one
9938 Paragraphs inside blockquotes/divs (extra line break on open and close)
9955 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9957 wgLinkHolderBatchSize=0
9963 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9964 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9965 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9970 Free external link invading image caption
9972 [[Image:Foobar.jpg|thumb|http://x|hello]]
9974 <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>
9979 Bug 15196: localised external link numbers
9983 [http://en.wikipedia.org/]
9985 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9990 Multibyte character in padleft
9992 {{padleft:-Hello|7|Æ}}
9999 Multibyte character in padright
10001 {{padright:Hello-|7|Æ}}
10010 wgUseDynamicDates=1
10014 <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>
10019 formatdate parser function
10021 {{#formatdate:2009-03-24}}
10023 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10028 formatdate parser function, with default format
10030 {{#formatdate:2009-03-24|mdy}}
10032 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10037 Linked date with autoformatting disabled
10039 wgUseDynamicDates=false
10043 <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>
10048 Spacing of numbers in formatted dates
10050 {{#formatdate:January 15}}
10052 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10057 Spacing of numbers in formatted dates (linked)
10059 wgUseDynamicDates=true
10063 <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>
10068 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
10070 language=nl title=[[MediaWiki:Common.css]]
10072 {{#formatdate:2009-03-24|dmy}}
10074 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10087 Edit comment with link
10091 I like the [[Main Page]] a lot
10093 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10097 Edit comment with link and link text
10101 I like the [[Main Page|best pages]] a lot
10103 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10107 Edit comment with link and link text with suffix
10111 I like the [[Main Page|best page]]s a lot
10113 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10117 Edit comment with section link (non-local, eg in history list)
10119 comment title=[[Main Page]]
10121 /* External links */ removed bogus entries
10123 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10127 Edit comment with section link and text before it (non-local, eg in history list)
10129 comment title=[[Main Page]]
10131 pre-comment text /* External links */ removed bogus entries
10133 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>
10137 Edit comment with section link (local, eg in diff view)
10139 comment local title=[[Main Page]]
10141 /* External links */ removed bogus entries
10143 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10147 Edit comment with subpage link (bug 14080)
10151 title=[[Subpage test]]
10153 Poked at a [[/subpage]] here...
10155 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10159 Edit comment with subpage link and link text (bug 14080)
10163 title=[[Subpage test]]
10165 Poked at a [[/subpage|neat little page]] here...
10167 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10171 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10174 title=[[Subpage test]]
10176 Poked at a [[/subpage]] here...
10178 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10182 Edit comment with bare anchor link (local, as on diff)
10186 title=[[Main Page]]
10190 <a href="#section">#section</a>
10194 Edit comment with bare anchor link (non-local, as on history)
10197 title=[[Main Page]]
10201 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10205 Anchor starting with underscore
10209 <p><a href="#_ref">One</a>
10214 Id starting with underscore
10216 <div id="_ref"></div>
10218 <div id="_ref"></div>
10223 Space normalisation on autocomment (bug 22784)
10226 title=[[Main Page]]
10228 /* __hello__world__ */
10230 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10234 percent-encoding and + signs in comments (Bug 26410)
10238 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10240 <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>
10244 Bad images - basic functionality
10253 Bad images - bug 16039: text after bad image disappears
10267 Verify that displaytitle works (bug #22501) no displaytitle
10271 wgAllowDisplayTitle=true
10272 wgRestrictDisplayTitle=false
10274 this is not the the title
10277 <p>this is not the the title
10282 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10287 wgAllowDisplayTitle=true
10288 wgRestrictDisplayTitle=false
10290 this is not the the title
10291 {{DISPLAYTITLE:whatever}}
10294 <p>this is not the the title
10299 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10304 wgAllowDisplayTitle=true
10305 wgRestrictDisplayTitle=true
10307 this is not the the title
10308 {{DISPLAYTITLE:whatever}}
10311 <p>this is not the the title
10316 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10321 wgAllowDisplayTitle=true
10322 wgRestrictDisplayTitle=true
10324 this is not the the title
10325 {{DISPLAYTITLE:screen}}
10328 <p>this is not the the title
10333 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10338 wgAllowDisplayTitle=false
10340 this is not the the title
10341 {{DISPLAYTITLE:screen}}
10344 <p>this is not the the title
10345 <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>
10350 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10355 wgAllowDisplayTitle=false
10357 this is not the the title
10360 <p>this is not the the title
10365 preload: check <noinclude> and <includeonly>
10369 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10375 preload: check <onlyinclude>
10379 Goodbye <onlyinclude>Hello world</onlyinclude>
10385 preload: can pass tags through if we want to
10389 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10391 <includeonly>Hello world</includeonly>
10395 preload: check that it doesn't try to do tricks
10399 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10401 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10405 Play a bit with r67090 and bug 3158
10409 <div style="width:50% !important"> </div>
10410 <div style="width:50% !important"> </div>
10411 <div style="width:50% !important"> </div>
10412 <div style="border : solid;"> </div>
10414 <div style="width:50% !important"> </div>
10415 <div style="width:50% !important"> </div>
10416 <div style="width:50% !important"> </div>
10417 <div style="border : solid;"> </div>
10422 HTML5 data attributes
10424 <span data-foo="bar">Baz</span>
10425 <p data-abc-def_hij="">Quuz</p>
10427 <p><span data-foo="bar">Baz</span>
10429 <p data-abc-def_hij="">Quuz</p>
10434 percent-encoding and + signs in internal links (Bug 26410)
10436 [[User:+%]] [[Page+title%]]
10437 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10438 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10439 [[%33%45]] [[%33%45+]]
10441 <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>
10442 <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>
10443 <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>
10444 <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>
10449 Special characters in embedded file links (bug 27679)
10451 [[File:Contains & ampersand.jpg]]
10452 [[File:Does not exist.jpg|Title with & ampersand]]
10454 <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>
10455 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10461 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10463 Text's been normalized?
10465 <p>Text's been normalized?
10470 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10472 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10474 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10479 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10481 [http://www.example.org/ ideograms]
10483 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10488 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10490 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10492 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10516 Bug 31098 Template which includes system messages which includes the template
10520 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10521 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10526 Deprecated presentational attributes are converted to css
10529 | valign=top align=left width=100 height=25% | Asdf
10531 <ul type="disc"></ul>
10535 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10537 <ul style="list-style-type: disc;"></ul>
10542 Bug31490 Turkish: ucfirst 'blah'
10553 Bug31490 Turkish: ucfirst 'ix'
10564 Bug31490 Turkish: lcfirst 'BLAH'
10575 Bug31490 Turkish: ucfırst (with a dotless i)
10581 <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>
10586 Bug31490 ucfırst (with a dotless i) with English language
10592 <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>
10597 Bug 26375: TOC with italics
10599 title=[[Main Page]]
10602 == ''Lost'' episodes ==
10604 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10606 <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>
10609 <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>
10614 Bug 26375: TOC with bold
10616 title=[[Main Page]]
10619 == '''should be bold''' then normal text ==
10621 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10623 <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>
10626 <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>
10631 Bug 33845: Headings become cursive in TOC when they contain an image
10633 title=[[Main Page]]
10636 == Image [[Image:foobar.jpg]] ==
10638 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10640 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10643 <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>
10648 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10650 title=[[Main Page]]
10653 == <blockquote>Quote</blockquote> ==
10655 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10657 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10660 <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>
10665 Unclosed tags in TOC
10667 title=[[Main Page]]
10671 <small>Hanc marginis exiguitas non caperet.</small>
10674 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10676 <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>
10679 <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>
10680 <p><small>Hanc marginis exiguitas non caperet.</small>
10686 Multiple tags in TOC
10689 == <i>Foo</i> <b>Bar</b> ==
10691 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10693 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10695 <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>
10696 <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>
10699 <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>
10700 <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>
10705 Tags with parameters in TOC
10708 == <sup class="in-h2">Hello</sup> ==
10710 == <sup class="a > b">Evilbye</sup> ==
10712 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10714 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10715 <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>
10718 <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>
10719 <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>
10724 span tags with directionality in TOC
10727 == <span dir="ltr">C++</span> ==
10729 == <span dir="rtl">זבנג!</span> ==
10731 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10733 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10735 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10737 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10739 <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>
10740 <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>
10741 <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>
10742 <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>
10743 <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>
10746 <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>
10747 <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>
10748 <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>
10749 <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>
10750 <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>
10757 == {{int:headline_sample}} ==
10761 Bug 32057: Title needed when expanding <h> nodes.
10763 title=[[Main Page]]
10767 <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>
10772 Strip marker in urlencode
10774 {{urlencode:x<nowiki/>y}}
10775 {{urlencode:x<nowiki/>y|wiki}}
10776 {{urlencode:x<nowiki/>y|path}}
10803 Strip marker in formatNum
10805 {{formatnum:1<nowiki/>2}}
10806 {{formatnum:1<nowiki/>2|R}}
10814 Strip marker in grammar
10818 {{grammar:elative|foo<nowiki/>bar}}
10825 Strip marker in padleft
10827 {{padleft:|2|x<nowiki/>y}}
10834 Strip marker in padright
10836 {{padright:|2|x<nowiki/>y}}
10843 Strip marker in anchorencode
10845 {{anchorencode:x<nowiki/>y}}
10852 nowiki inside link inside heading (bug 18295)
10854 ==[[foo|x<nowiki>y</nowiki>z]]==
10856 <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>
10861 new support for bdi element (bug 31817)
10863 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10865 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10870 Ignore pipe between table row attributes
10874 |- id=foo | style='color: red'
10882 <tr id="foo" style="color: red">
10889 Gallery override link with WikiLink (bug 34852)
10892 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10895 <ul class="gallery">
10896 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10897 <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>
10898 <div class="gallerytext">
10908 Gallery override link with absolute external link (bug 34852)
10911 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10914 <ul class="gallery">
10915 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10916 <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>
10917 <div class="gallerytext">
10927 Gallery override link with malicious javascript (bug 34852)
10930 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10933 <ul class="gallery">
10934 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10935 <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>
10936 <div class="gallerytext">
10946 Language parser function
10955 Padleft and padright as substr
10957 {{padleft:|3|abcde}}
10958 {{padright:|3|abcde}}
10966 Bug 34939 - Case insensitive link parsing ([HttP://])
10968 [HttP://MediaWiki.Org/]
10970 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
10975 Bug 34939 - Case insensitive link parsing ([HttP:// title])
10977 [HttP://MediaWiki.Org/ MediaWiki]
10979 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
10984 Bug 34939 - Case insensitive link parsing (HttP://)
10986 HttP://MediaWiki.Org/
10988 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
10998 Try for 100% code coverage