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 on expanded content
908 Templates: Pre: 1d: Wrapping should be based on expanded content
929 Templates: Pre: 1e. Wrapping should be based on expanded content
936 {{echo|<!--cmt--> foo}}
938 <!--cmt-->{{echo| foo}}
940 {{echo|{{echo| }}bar}}
963 <dl><dt> name </dt><dd> Definition
969 Definition list for indentation only
973 <dl><dd> Indented text
979 Definition list with no space
983 <dl><dt>name</dt><dd>Definition
989 Definition list with URL link
991 ; http://example.com/ : definition
993 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
999 Definition list with bracketed URL link
1001 ;[http://www.example.com/ Example]:Something about it
1003 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1009 Definition list with wikilink containing colon
1011 ; [[Help:FAQ]]: The least-read page on Wikipedia
1013 <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
1018 # At Brion's and JeLuF's insistence... :)
1020 Definition list with news link containing colon
1022 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1024 <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!
1030 Malformed definition list with colon
1032 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1034 <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
1040 Definition lists: colon in external link text
1042 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1044 <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
1050 Definition lists: colon in HTML attribute
1052 ;<b style="display: inline">bold</b>
1054 <dl><dt><b style="display: inline">bold</b>
1061 Definition lists: self-closed tag
1063 ;one<br/>two : two-line fun
1065 <dl><dt>one<br />two </dt><dd> two-line fun
1071 Bug 11748: Literal closing tags
1077 <dd>test test test test test</dd>
1079 <dd>test test test test test</dd>
1084 <dd>test test test test test</dd>
1086 <dd>test test test test test</dd>
1091 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1094 ; term : description
1100 <dl><dt> term </dt><dd> description
1110 Definition list with empty definition and following paragraph
1115 <dl><dt> term</dt><dd>
1122 Definition Lists: No nesting: Multiple dd's
1136 Definition Lists: Indentation: Regular
1152 Definition Lists: Indentation: Missing 1st level
1166 Definition Lists: Indentation: Multi-level indent
1170 <dl><dd><dl><dd><dl><dd>i3
1177 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1178 ## as an empty dt item. It also ignores all but the last ";" when followed
1179 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1180 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1183 ## Ex: ";;t2 ::d2" is transformed into:
1195 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1196 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1207 ## All Parsoid only definition list tests have this difference.
1209 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1210 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1213 Definition Lists: Nesting: Multi-level (Parsoid only)
1243 Definition Lists: Nesting: Test 2 (Parsoid only)
1263 Definition Lists: Nesting: Test 3 (Parsoid only)
1291 Definition Lists: Nesting: Test 4
1296 <dl><dd><dl><dd><dl><dt>t3
1306 Definition Lists: Mixed Lists: Test 1
1312 <dl><dd><dl><dt><ul><li> foo
1324 Definition Lists: Mixed Lists: Test 2
1338 Definition Lists: Mixed Lists: Test 3
1343 <ul><li><dl><dd><dl><dd><dl><dd> d1
1354 Definition Lists: Mixed Lists: Test 4
1359 <ul><li><dl><dt>d1 </dt><dd>d2
1360 </dd><dt>d3 </dt><dd>d4
1368 Definition Lists: Mixed Lists: Test 5
1383 Definition Lists: Mixed Lists: Test 6
1388 <ol><li><ul><li><dl><dd>d1
1400 Definition Lists: Mixed Lists: Test 7
1414 Definition Lists: Mixed Lists: Test 8
1430 Definition Lists: Mixed Lists: Test 9
1434 <ul><li><dl><dt>foo </dt><dd>bar
1442 Definition Lists: Mixed Lists: Test 10
1446 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1455 Definition Lists: Mixed Lists: Test 11
1460 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1465 <dl><dt>boo </dt><dd>baz
1476 Definition Lists: Weird Ones: Test 1
1478 *#;*::;; foo : bar (who uses this?)
1480 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1496 External links: non-bracketed
1498 Non-bracketed: http://example.com
1500 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1505 External links: numbered
1507 Numbered: [http://example.com]
1508 Numbered: [http://example.net]
1509 Numbered: [http://example.com]
1511 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1512 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1513 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1518 External links: specified text
1520 Specified text: [http://example.com link]
1522 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1527 External links: trail
1529 Linktrails should not work for external links: [http://example.com link]s
1531 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1536 External links: dollar sign in URL
1538 http://example.com/1$2345
1540 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1545 External links: dollar sign in URL (named)
1547 [http://example.com/1$2345]
1549 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1554 External links: open square bracket forbidden in URL (bug 4377)
1556 http://example.com/1[2345
1558 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1563 External links: open square bracket forbidden in URL (named) (bug 4377)
1565 [http://example.com/1[2345]
1567 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1572 External links: nowiki in URL link text (bug 6230)
1574 [http://example.com/ <nowiki>''example site''</nowiki>]
1576 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1581 External links: newline forbidden in text (bug 6230 regression check)
1583 [http://example.com/ first
1586 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1592 External links: Pipe char between url and text
1594 [http://example.com | link]
1596 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1601 External links: protocol-relative URL in brackets
1603 [//example.com/ Test]
1605 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1610 External links: protocol-relative URL in brackets without text
1614 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1619 External links: protocol-relative URL in free text is left alone
1623 <p>//example.com/Foo
1628 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1630 foo//example.com/Foo
1632 <p>foo//example.com/Foo
1639 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1641 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1646 External image from https
1648 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1650 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1655 Link to non-http image, no img tag
1657 Link to non-http image, no img tag: ftp://example.com/test.jpg
1659 <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>
1664 External links: terminating separator
1666 Terminating separator: http://example.com/thing,
1668 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1673 External links: intervening separator
1675 Intervening separator: http://example.com/1,2,3
1677 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1682 External links: old bug with URL in query
1684 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1686 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1691 External links: old URL-in-URL bug, mixed protocols
1693 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1695 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1700 External links: URL in text
1702 URL in text: [http://example.com http://example.com]
1704 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1709 External links: Clickable images
1711 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1713 <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>
1718 External links: raw ampersand
1720 Old & use: http://x&y
1722 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1727 External links: encoded ampersand
1729 Old & use: http://x&y
1731 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1736 External links: encoded equals (bug 6102)
1738 http://example.com/?foo=bar
1740 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1745 External links: [raw ampersand]
1747 Old & use: [http://x&y]
1749 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1754 External links: [encoded ampersand]
1756 Old & use: [http://x&y]
1758 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1763 External links: [encoded equals] (bug 6102)
1765 [http://example.com/?foo=bar]
1767 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1772 External links: [IDN ignored character reference in hostname; strip it right off]
1774 [http://e‌xample.com/]
1776 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1780 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1781 # Where an external link could easily circumvent the sanitization of the text of
1782 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1783 # test demands a higher standard. That's a bit strange.
1787 # http://example.com -> [http://example.com|http://example.com]
1788 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1790 # The first example is sanitized, but the second is not. Any security benefits
1791 # from this production are trivial to circumvent. Either remove this test and
1792 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1793 # the test accordingly.
1798 External links: IDN ignored character reference in hostname; strip it right off
1800 http://e‌xample.com/
1802 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1807 External links: www.jpeg.org (bug 554)
1811 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1816 External links: URL within URL (original bug 2)
1818 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1820 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1825 BUG 361: URL inside bracketed URL
1827 [http://www.example.com/foo http://www.example.com/bar]
1829 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1834 BUG 361: URL within URL, not bracketed
1836 http://www.example.com/foo?=http://www.example.com/bar
1838 <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>
1843 BUG 289: ">"-token in URL-tail
1845 http://www.example.com/<hello>
1847 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1852 BUG 289: literal ">"-token in URL-tail
1854 http://www.example.com/<b>html</b>
1856 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1861 BUG 289: ">"-token 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 BUG 289: literal ">"-token in bracketed URL
1872 [http://www.example.com/<b>html</b> stuff]
1874 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1879 BUG 289: literal double quote at end of URL
1881 http://www.example.com/"hello"
1883 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1888 BUG 289: literal double quote in bracketed URL
1890 [http://www.example.com/"hello" stuff]
1892 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1897 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1899 [http://www.example.com test]
1901 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1906 External links: wiki links within external link (Bug 3695)
1908 [http://example.com [[wikilink]] embedded in ext link]
1910 <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>
1915 BUG 787: Links with one slash after the url protocol are invalid
1919 [http:/example.com title]
1921 <p>http:/example.com
1922 </p><p>[http:/example.com title]
1927 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1929 ''[http://example.com text'']
1930 [http://example.com '''text]'''
1931 ''Something [http://example.com in italic'']
1932 ''Something [http://example.com mixed''''', even bold]'''
1933 '''''Now [http://example.com both''''']
1935 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1936 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1937 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1938 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1939 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1945 Bug 4781: %26 in URL
1947 http://www.example.com/?title=AT%26T
1949 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1953 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1954 # % is actually legal in HTML5. Any change in output would need testing though.
1956 Bug 4781, 5267: %25 in URL
1958 http://www.example.com/?title=100%25_Bran
1960 <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>
1965 Bug 4781, 5267: %28, %29 in URL
1967 http://www.example.com/?title=Ben-Hur_%281959_film%29
1969 <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>
1975 Bug 4781: %26 in autonumber URL
1977 [http://www.example.com/?title=AT%26T]
1979 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1984 Bug 4781, 5267: %26 in autonumber URL
1986 [http://www.example.com/?title=100%25_Bran]
1988 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1993 Bug 4781, 5267: %28, %29 in autonumber URL
1995 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1997 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2003 Bug 4781: %26 in bracketed URL
2005 [http://www.example.com/?title=AT%26T link]
2007 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2012 Bug 4781, 5267: %26 in bracketed URL
2014 [http://www.example.com/?title=100%25_Bran link]
2016 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2021 Bug 4781, 5267: %28, %29 in bracketed URL
2023 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2025 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2030 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2032 Some [http://example.com/ pretty ''italics'' and stuff]!
2034 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2039 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2041 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2043 <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>
2048 External link containing double-single-quotes with no space separating the url from text in italics
2050 [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]].]
2052 <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>
2057 URL-encoding in URL functions (single parameter)
2059 {{localurl:Some page|amp=&}}
2061 <p>/index.php?title=Some_page&amp=&
2066 URL-encoding in URL functions (multiple parameters)
2068 {{localurl:Some page|q=?&=&}}
2070 <p>/index.php?title=Some_page&q=?&amp=&
2077 http://example.com/index.php?foozoid%5B%5D=bar
2079 http://example.com/index.php?foozoid[]=bar
2081 <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>
2082 </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>
2087 IPv6 urls (bug 21261)
2091 http://[2404:130:0:1000::187:2]/index.php
2093 <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>
2104 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2106 Normal text. '''''Bold italic text.''''' Normal text.
2108 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2109 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2115 Unclosed and unmatched quotes
2117 '''''Bold italic text '''with bold deactivated''' in between.'''''
2119 '''''Bold italic text ''with italic deactivated'' in between.'''''
2123 ..spanning two paragraphs (should not work).'''
2125 '''Bold tag left open
2127 ''Italic tag left open
2131 <!-- Unmatching number of opening, closing tags: -->
2132 '''This year''''s election ''should'' beat '''last year''''s.
2134 ''Tom'''s car is bigger than ''Susan'''s.
2136 Plain ''italic'''s plain
2138 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2139 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2140 </p><p><b>Bold text..</b>
2141 </p><p>..spanning two paragraphs (should not work).
2142 </p><p><b>Bold tag left open</b>
2143 </p><p><i>Italic tag left open</i>
2145 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2146 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2147 </p><p>Plain <i>italic'</i>s plain
2154 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2157 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2158 # is the bare minimun required by the spec, see:
2159 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2161 A table with no data.
2167 # A table with nothing but a caption is invalid XHTML, we might want to render
2168 # this as <p>caption</p>
2170 A table with nothing but a caption
2178 </caption><tr><td></td></tr></table>
2204 Multiplication table
2206 {| border="1" cellpadding="2"
2207 |+Multiplication table
2209 ! × !! 1 !! 2 !! 3
2227 <table border="1" cellpadding="2">
2228 <caption>Multiplication table
2279 |rowspan=2| Cell 2, row 1 (and 2)
2290 <td rowspan="2"> Cell 2, row 1 (and 2)
2308 {| bgcolor=#ABCDEF border=2
2313 |the original table again
2321 <table bgcolor="#ABCDEF" border="2">
2329 <td>the original table again
2335 Invalid attributes in table cell (bug 1830)
2350 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2353 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2357 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2358 <td>]" onmouseover="alert(document.cookie)">test
2367 Indented table markup mixed with indented pre content (proposed in bug 6200)
2372 Text that should be rendered preformatted
2380 <pre>Text that should be rendered preformatted
2393 Plain link, capitalized
2397 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2402 Plain link, uncapitalized
2406 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2413 [[Main Page|The Main Page]]
2415 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2424 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2429 Broken link with fragment
2431 [[Zigzagzogzagzig#zug]]
2433 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2438 Special page link with fragment
2440 [[Special:Version#anchor]]
2442 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2447 Nonexistent special page link with fragment
2449 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2451 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2458 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2460 <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>
2467 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2469 <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>!!!
2474 Link with 3 brackets
2483 Piped link with 3 brackets
2485 [[[main page|the main page]]]
2487 <p>[[[main page|the main page]]]
2492 Link with multiple pipes
2494 [[Main Page|The|Main|Page]]
2496 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2503 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2505 <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>
2510 Piped link to namespace
2512 [[Meta:Disclaimers|The disclaimers]]
2514 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2521 [[Usually caused by a typo (oops}]]
2523 <p>[[Usually caused by a typo (oops}]]
2528 Link containing % (not as a hex sequence)
2532 <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>
2537 Link containing % as a single hex sequence interpreted to char
2541 <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>
2546 Link containing % as a double hex sequence interpreted to hex sequence
2550 <p>[[7%2525 Solution]]
2555 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2556 Example for such a section: == < ==
2558 [[%23%3c]][[%23%3e]]
2560 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2565 Link containing "<#" and ">#" as a hex sequences
2567 [[%3c%23]][[%3e%23]]
2569 <p>[[%3c%23]][[%3e%23]]
2574 Link containing double-single-quotes '' (bug 4598)
2576 [[Lista d''e paise d''o munno]]
2578 <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>
2583 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2585 Some [[Link|pretty ''italics'' and stuff]]!
2587 <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>!
2592 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2594 ''Some [[Link|pretty ''italics'' and stuff]]!
2596 <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>
2601 Link with double quotes in title part (literal) and alternate part (interpreted)
2603 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2607 [[''Pentecoste''|Pentecoste]]
2609 [[''Pentecoste''|''Pentecoste'']]
2611 <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>
2612 </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>
2613 </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>
2614 </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>
2619 Broken image links with HTML captions (bug 39700)
2621 [[File:Nonexistent|<script></script>]]
2622 [[File:Nonexistent|100px|<script></script>]]
2623 [[File:Nonexistent|<]]
2624 [[File:Nonexistent|a<i>b</i>c]]
2626 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2627 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2628 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2629 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2636 [[http://www.example.com]]
2638 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2643 Plain link to URL with link text
2645 [[http://www.example.com Link text]]
2647 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2652 Plain link to protocol-relative URL
2654 [[//www.example.com]]
2656 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2661 Plain link to protocol-relative URL with link text
2663 [[//www.example.com Link text]]
2665 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2670 # I'm fairly sure the expected result here is wrong.
2671 # We want these to be URL links, not pseudo-pages with URLs for titles....
2672 # However the current output is also pretty screwy.
2675 # I'm changing it to match the current output--it arguably makes more
2676 # sense in the light of the test above. Old expected result was:
2677 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2679 # But I think this test is bordering on "garbage in, garbage out" anyway.
2684 Piped link to URL: [[http://www.example.com|an example URL]]
2686 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2691 BUG 2: [[page|http://url/]] should link to page, not http://url/
2693 [[Main Page|http://url/]]
2695 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2700 BUG 337: Escaped self-links should be bold
2704 [[Bug462]] [[Bug462]]
2706 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2711 Self-link to section should not be bold
2715 [[Main Page#section]]
2717 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2728 Self-link to numeric title
2734 <p><strong class="selflink">0</strong>
2739 Link to numeric-equivalent title
2745 <p><a href="/wiki/00" title="00">00</a>
2750 <nowiki> inside a link
2752 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2754 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2759 Non-breaking spaces in title
2761 [[ Main Page ]]
2763 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2768 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2774 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2779 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2785 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2790 Internal link with en linktrail: no apostrophes (bug 27473)
2796 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2801 Internal link with ca linktrail with apostrophes (bug 27473)
2807 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2812 Internal link with kaa linktrail with apostrophes (bug 27473)
2818 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2823 ### Interwiki links (see maintenance/interwiki.sql)
2827 Inline interwiki link
2829 [[MeatBall:SoftSecurity]]
2831 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2836 Inline interwiki link with empty title (bug 2372)
2840 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2845 Interwiki link encoding conversion (bug 1636)
2847 *[[Wikipedia:ro:Olteniţa]]
2848 *[[Wikipedia:ro:Olteniţa]]
2850 <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>
2851 </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>
2857 Interwiki link with fragment (bug 2130)
2859 [[MeatBall:SoftSecurity#foo]]
2861 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2876 Double interlanguage link
2887 Interlanguage link, with prefix links
2899 Double interlanguage link, with prefix links (bug 8897)
2912 Parsoid-specific test: Wikilinks with should RT properly
2918 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
2936 Incorrecly removing closing slashes from correctly formed XHTML
2938 <br style="clear:both;" />
2940 <p><br style="clear:both;" />
2945 Failing to transform badly formed HTML into correct XHTML
2947 <br style="clear: left;">
2948 <br style="clear: right;">
2949 <br style="clear: both;">
2951 <p><br style="clear: left;" />
2952 <br style="clear: right;" />
2953 <br style="clear: both;" />
2958 Handling html with a div self-closing tag
2967 <p><div title />
2971 <p><div title=bar />
2972 <div title=bar/>
2974 <div title="bar/"></div>
2980 Handling html with a br self-closing tag
2989 <p><br title="title" />
2990 <br title="title" />
2999 Horizontal ruler (should it add that extra space?)
3013 Horizontal ruler -- 4+ dashes render hr
3022 Horizontal ruler -- eats additional dashes on the same line
3031 Horizontal ruler -- does not collaps dashes on consecutive lines
3042 Horizontal ruler -- <4 dashes render as plain text
3051 ### Block-level elements
3074 <ol><li>Numbered list
3091 ***#Number on level 4
3093 **#Number on level 3
3094 **#Number on level 3
3098 #** Level 3, but ordered
3101 <ol><li> with numbers
3103 <ul><li> and bullets
3105 <ol><li> and numbers
3107 </li><li>bullets again
3108 <ul><li>bullet level 2
3109 <ul><li>bullet level 3
3110 <ol><li>Number on level 4
3113 </li><li>bullet level 2
3114 <ol><li>Number on level 3
3115 </li><li>Number on level 3
3118 <ol><li>number level 2
3121 <ul><li><ul><li> Level 3
3125 <ol><li><ul><li><ul><li> Level 3, but ordered
3159 Nested lists 3 (first element empty)
3172 Nested lists 4 (first element empty)
3185 Nested lists 5 (both elements empty)
3198 Nested lists 6 (both elements empty)
3211 Nested lists 7 (skip initial nesting levels)
3215 <ul><li><ul><li><ul><li> foo
3223 Nested lists 8 (multiple nesting transitions)
3231 <ul><li><ul><li> bar
3242 List items are not parsed correctly following a <pre> block (bug 785)
3248 <ul><li> <pre>foo</pre>
3249 </li><li> <pre>bar</pre>
3256 List items from template
3267 * notSOL{{inner list}}
3286 List interrupted by empty line or heading
3296 <ul><li><ul><li> bar
3299 <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>
3300 <ul><li> Another list item
3311 Magic Word: {{CURRENTDAY}}
3320 Magic Word: {{CURRENTDAY2}}
3329 Magic Word: {{CURRENTDAYNAME}}
3338 Magic Word: {{CURRENTDOW}}
3347 Magic Word: {{CURRENTMONTH}}
3356 Magic Word: {{CURRENTMONTHABBREV}}
3358 {{CURRENTMONTHABBREV}}
3365 Magic Word: {{CURRENTMONTHNAME}}
3367 {{CURRENTMONTHNAME}}
3374 Magic Word: {{CURRENTMONTHNAMEGEN}}
3376 {{CURRENTMONTHNAMEGEN}}
3383 Magic Word: {{CURRENTTIME}}
3392 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3401 Magic Word: {{CURRENTYEAR}}
3410 Magic Word: {{FULLPAGENAME}}
3412 title=[[User:Ævar Arnfjörð Bjarmason]]
3416 <p>User:Ævar Arnfjörð Bjarmason
3421 Magic Word: {{FULLPAGENAMEE}}
3423 title=[[User:Ævar Arnfjörð Bjarmason]]
3427 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3432 Magic Word: {{NAMESPACE}}
3434 title=[[User:Ævar Arnfjörð Bjarmason]]
3443 Magic Word: {{NAMESPACEE}}
3445 title=[[User:Ævar Arnfjörð Bjarmason]]
3454 Magic Word: {{NAMESPACENUMBER}}
3456 title=[[User:Ævar Arnfjörð Bjarmason]]
3465 Magic Word: {{NUMBEROFFILES}}
3474 Magic Word: {{PAGENAME}}
3476 title=[[User:Ævar Arnfjörð Bjarmason]]
3480 <p>Ævar Arnfjörð Bjarmason
3485 Magic Word: {{PAGENAME}} with metacharacters
3487 title=[['foo & bar = baz']]
3491 <p><i>'foo & bar = baz'</i>
3496 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3498 title=[[*RFC 1234 http://example.com/]]
3502 <p>*RFC 1234 http://example.com/
3507 Magic Word: {{PAGENAMEE}}
3509 title=[[User:Ævar Arnfjörð Bjarmason]]
3513 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3518 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3520 title=[[*RFC 1234 http://example.com/]]
3524 <p>*RFC_1234_http://example.com/
3529 Magic Word: {{REVISIONID}}
3538 Magic Word: {{SCRIPTPATH}}
3547 Magic Word: {{SERVER}}
3551 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3556 Magic Word: {{SERVERNAME}}
3565 Magic Word: {{SITENAME}}
3574 Namespace 1 {{ns:1}}
3583 Namespace 1 {{ns:01}}
3592 Namespace 0 {{ns:0}} (bug 4783)
3600 Namespace 0 {{ns:00}} (bug 4783)
3608 Namespace -1 {{ns:-1}}
3617 Namespace User {{ns:User}}
3626 Namespace User talk {{ns:User_talk}}
3635 Namespace User talk {{ns:uSeR tAlK}}
3644 Namespace File {{ns:File}}
3653 Namespace File {{ns:Image}}
3662 Namespace (lang=de) Benutzer {{ns:User}}
3673 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3679 <p>Benutzer Diskussion
3687 {{urlencode:hi world?!}}
3688 {{urlencode:hi world?!|WIKI}}
3689 {{urlencode:hi world?!|PATH}}
3690 {{urlencode:hi world?!|QUERY}}
3703 Magic links: internal link to RFC (bug 479)
3707 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3712 Magic links: RFC (bug 479)
3716 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3721 Magic links: ISBN (bug 1937)
3725 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3730 Magic links: PMID incorrectly converts space to underscore
3734 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3743 Nonexistent template
3745 {{thistemplatedoesnotexist}}
3747 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3754 This is a test template
3762 <p>This is a test template
3767 Template with explicit namespace
3771 <p>This is a test template
3779 This is a test template with parameter {{{param}}}
3785 {{paramtest|param=foo}}
3787 <p>This is a test template with parameter foo
3792 Template:paramtestnum
3798 Template unnamed parameter
3800 {{paramtestnum|Main Page|the main page}}
3802 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3807 Template:templatesimple
3813 Template:templateredirect
3815 #redirect [[Template:templatesimple]]
3819 Template:templateasargtestnum
3825 Template:templateasargtest
3827 {{template{{{templ}}}}}
3831 Template:templateasargtest2
3837 Template with template name as unnamed argument
3839 {{templateasargtestnum|templatesimple}}
3846 Template with template name as argument
3848 {{templateasargtest|templ=simple}}
3855 Template with template name as argument (2)
3857 {{templateasargtest2|templ=templatesimple}}
3864 Template:templateasargtestdefault
3866 {{{{{templ|templatesimple}}}}}
3876 Template with default value
3878 {{templateasargtestdefault}}
3885 Template with default value (value set)
3887 {{templateasargtestdefault|templ=templa}}
3896 {{templateredirect}}
3903 Template with argument in separate line
3905 {{ templateasargtest |
3913 Template with complex template as argument
3916 param ={{ templateasargtest |
3919 <p>This is a test template with parameter (test)
3924 Template with thumb image (with link in description)
3927 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3929 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>
3934 Template:complextemplate
3936 {{{1}}} {{paramtest|
3937 param ={{{param}}}}}
3941 Template with complex arguments
3944 param ={{ templateasargtest |
3945 templ = simple }}|[[Template:complextemplate|link]]}}
3947 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3952 BUG 553: link with two variables in a piped link
3955 |[[{{{1}}}|{{{2}}}]]
3960 <td>[[{{{1}}}|{{{2}}}]]
3966 Magic variable as template parameter
3968 {{paramtest|param={{SITENAME}}}}
3970 <p>This is a test template with parameter MediaWiki
3977 [[{{{param}}}|link]]
3981 Template parameter as link source
3983 {{linktest|param=Main Page}}
3985 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3993 including another template, {{paramtest|param={{{arg}}}}}
3997 Template passing argument to another template
3999 {{paramtest2|arg='hmm'}}
4001 <p>including another template, This is a test template with parameter 'hmm'
4012 Template as link source
4016 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4034 Template infinite loop
4038 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4043 Template from main namespace
4062 BUG 529: Template with table, not included at beginning of line
4081 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4101 BUG 41: Template parameters shown as broken links
4113 ''None'' of '''this''' should be
4115 but rather passed unmodified
4119 # hmm, fix this or just deprecate msgnw and document its behavior?
4125 {{msgnw:MSGNW test}}
4127 <p>''None'' of '''this''' should be
4129 but rather passed unmodified
4137 {{int:youhavenewmessages|lots of money|not!}}
4139 <p>You have lots of money (not!).
4146 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4150 <includeonly> and <noinclude> being included
4161 <onlyinclude>Foo</onlyinclude>bar
4165 <onlyinclude> being included
4177 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4181 <onlyinclude> and <includeonly> being included
4190 <includeonly> and <noinclude> on a page
4192 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4199 <onlyinclude> on a page
4201 <onlyinclude>Foo</onlyinclude>bar
4208 Template:Includeonly section
4211 ==Includeonly section==
4217 Bug 6563: Edit link generation for section shown by <includeonly>
4219 {{includeonly section}}
4221 <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>
4222 <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>
4226 # Uses same input as the contents of [[Template:Includeonly section]]
4228 Bug 6563: Section extraction for section shown by <includeonly>
4233 ==Includeonly section==
4241 Bug 6563: Edit link generation for section suppressed by <includeonly>
4244 ==Includeonly section==
4248 <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>
4253 Bug 6563: Section extraction for section suppressed by <includeonly>
4258 ==Includeonly section==
4266 ### Testing parsing of templates where a template arg
4267 ### has the same name as the template itself.
4277 Templates: Template Name/Arg clash: 1. Use of positional param
4286 Templates: Template Name/Arg clash: 2. Use of named param
4295 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4304 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4308 Templates: 1. Simple use
4317 Templates: 2. Inside a block tag
4319 <div>{{echo|Foo}}</div>
4326 Templates: P-wrapping: 1a. Templates on consecutive lines
4337 Templates: P-wrapping: 1b. Templates on consecutive lines
4351 Templates: P-wrapping: 1c. Templates on consecutive lines
4354 {{echo|bar}} <div>baz</div>
4363 Templates: Inline Text: 1. Multiple tmeplate uses
4365 {{echo|Foo}}bar{{echo|baz}}
4372 Templates: Inline Text: 2. Back-to-back template uses
4374 {{echo|Foo}}{{echo|bar}}
4381 Templates: Block Tags: 1. Multiple template uses
4383 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4385 <div>Foo</div><div>bar</div><div>baz</div>
4390 Templates: Block Tags: 2. Back-to-back template uses
4392 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4394 <div>Foo</div><div>bar</div>
4399 Templates: Links: 1. Simple example
4401 {{echo|[[Foo|bar]]}}
4403 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4408 Templates: Links: 2. Generation of link href
4410 [[{{echo|Foo}}|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: 3. Generation of part of a link href
4419 [[Fo{{echo|o}}|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: Links: 4. Multiple templates generating link href
4428 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4430 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4435 Templates: Links: 5. Generation of link text
4437 [[Foo|{{echo|bar}}]]
4439 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4444 Templates: Links: 5. Nested templates (only outermost template should be marked)
4446 {{echo|[[{{echo|Foo}}|bar]]}}
4448 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4453 Templates: HTML Tag: 1. Generation of HTML attr. key
4455 <div {{echo|style}}="color:red;">foo</div>
4457 <div style="color:red;">foo</div>
4462 Templates: HTML Tag: 2. Generation of HTML attr. value
4464 <div style={{echo|'color:red;'}}>foo</div>
4466 <div style="color:red;">foo</div>
4471 Templates: HTML Tag: 3. Generation of HTML attr key and value
4473 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4475 <div style="color:red;">foo</div>
4480 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4482 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4484 <div title="This is a long title with just one piece templated">foo</div>
4489 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4491 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4493 <div title="This is a long title with just one piece templated">foo</div>
4498 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4500 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4502 <div title="This is a long title with just one piece templated">foo</div>
4507 Templates: Tables: 1. Generating start of a HTML table
4509 {{echo|<table><tr><td>foo</td>}}</tr></table>
4511 <table><tr><td>foo</td></tr></table>
4516 Templates: Tables: 2a. Generating middle of a HTML table
4518 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4520 <table><tr><td>foo</td></tr></table>
4525 Templates: Tables: 2b. Generating middle of a HTML table
4527 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4529 <table><tr><td>foo</td></tr></table>
4534 Templates: Tables: 3. Generating end of a HTML table
4536 <table><tr>{{echo|<td>foo</td></tr></table>}}
4538 <table><tr><td>foo</td></tr></table>
4543 Templates: Tables: 4a. Generating a single tag of a HTML table
4545 {{echo|<table>}}<tr><td>foo</td></tr></table>
4547 <table><tr><td>foo</td></tr></table>
4552 Templates: Tables: 4b. Generating a single tag of a HTML table
4554 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4556 <table><tr><td>foo</td></tr></table>
4561 Templates: Tables: 4c. Generating a single tag of a HTML table
4563 <table><tr>{{echo|<td>}}foo</td></tr></table>
4565 <table><tr><td>foo</td></tr></table>
4570 Templates: Tables: 4d. Generating a single tag of a HTML table
4572 <table><tr><td>foo{{echo|</td>}}</tr></table>
4574 <table><tr><td>foo</td></tr></table>
4579 Templates: Tables: 4e. Generating a single tag of a HTML table
4581 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4583 <table><tr><td>foo</td></tr></table>
4588 Templates: Tables: 4f. Generating a single tag of a HTML table
4590 <table><tr><td>foo</td></tr>{{echo|</table>}}
4592 <table><tr><td>foo</td></tr></table>
4597 Parser Functions: 1. Simple example
4606 Parser Functions: 2. Nested use (only outermost should be marked up)
4615 ### Pre-save transform tests
4618 pre-save transform: subst:
4624 This is a test template
4628 pre-save transform: normal template
4638 pre-save transform: nonexistent template
4642 {{thistemplatedoesnotexist}}
4644 {{thistemplatedoesnotexist}}
4649 pre-save transform: subst magic variables
4658 # This is bug 89, which I fixed. -- wtm
4660 pre-save transform: subst: templates with parameters
4664 {{subst:paramtest|param="something else"}}
4666 This is a test template with parameter "something else"
4672 <nowiki>'''not wiki'''</nowiki>
4676 pre-save transform: nowiki in subst (bug 1188)
4680 {{subst:nowikitest}}
4682 <nowiki>'''not wiki'''</nowiki>
4687 Template:commenttest
4689 This template has <!-- a comment --> in it.
4693 pre-save transform: comment in subst (bug 1936)
4697 {{subst:commenttest}}
4699 This template has <!-- a comment --> in it.
4703 pre-save transform: unclosed tag
4707 <nowiki>'''not wiki'''
4709 <nowiki>'''not wiki'''
4713 pre-save transform: mixed tag case
4717 <NOwiki>'''not wiki'''</noWIKI>
4719 <NOwiki>'''not wiki'''</noWIKI>
4723 pre-save transform: unclosed comment in <nowiki>
4727 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4729 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4735 <span onmouseover="alert('crap')">Oh no</span>
4739 (confirming safety of fix for subst bug 1936)
4741 {{Template:dangerous}}
4743 <p><span>Oh no</span>
4748 pre-save transform: comment containing gallery (bug 5024)
4752 <!-- <gallery>data</gallery> -->
4754 <!-- <gallery>data</gallery> -->
4758 pre-save transform: comment containing extension
4762 <!-- <tag>data</tag> -->
4764 <!-- <tag>data</tag> -->
4768 pre-save transform: comment containing nowiki
4772 <!-- <nowiki>data</nowiki> -->
4774 <!-- <nowiki>data</nowiki> -->
4778 pre-save transform: <noinclude> in subst (bug 3298)
4788 pre-save transform: <onlyinclude> in subst (bug 3298)
4800 {{<includeonly>subst:</includeonly>Includes}}
4804 Template:SafeSubstTest
4806 {{<includeonly>safesubst:</includeonly>Includes}}
4810 bug 22297: safesubst: works during PST
4814 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4820 bug 22297: safesubst: works during normal parse
4829 subst: does not work during normal parse
4833 <p>{{subst:Includes}}
4838 pre-save transform: context links ("pipe trick")
4842 [[Article (context)|]]
4845 [[Bar:Article (context)|]]
4846 [[:Bar:Article (context)|]]
4848 [[|Article (context)]]
4852 [[Article (context)|Article]]
4853 [[Bar:Article|Article]]
4854 [[:Bar:Article|Article]]
4855 [[Bar:Article (context)|Article]]
4856 [[:Bar:Article (context)|Article]]
4858 [[Article (context)]]
4859 [[Bar:X (Y) Z|X (Y) Z]]
4860 [[:Bar:X (Y) Z|X (Y) Z]]
4864 pre-save transform: context links ("pipe trick") with interwiki prefix
4868 [[interwiki:Article|]]
4869 [[:interwiki:Article|]]
4870 [[interwiki:Bar:Article|]]
4871 [[:interwiki:Bar:Article|]]
4873 [[interwiki:Article|Article]]
4874 [[:interwiki:Article|Article]]
4875 [[interwiki:Bar:Article|Bar:Article]]
4876 [[:interwiki:Bar:Article|Bar:Article]]
4880 pre-save transform: context links ("pipe trick") with parens in title
4882 pst title=[[Somearticle (context)]]
4886 [[Article (context)|Article]]
4890 pre-save transform: context links ("pipe trick") with comma in title
4892 pst title=[[Someplace, Somewhere]]
4895 [[Otherplace, Elsewhere|]]
4896 [[Otherplace, Elsewhere, Anywhere|]]
4898 [[Otherplace, Somewhere|Otherplace]]
4899 [[Otherplace, Elsewhere|Otherplace]]
4900 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4904 pre-save transform: context links ("pipe trick") with parens and comma
4906 pst title=[[Someplace (IGNORED), Somewhere]]
4909 [[Otherplace (place), Elsewhere|]]
4911 [[Otherplace, Somewhere|Otherplace]]
4912 [[Otherplace (place), Elsewhere|Otherplace]]
4916 pre-save transform: context links ("pipe trick") with comma and parens
4918 pst title=[[Who, me? (context)]]
4921 [[Me, Myself, and I (1937 song)|]]
4923 [[Yes, you. (context)|Yes, you.]]
4924 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4928 pre-save transform: context links ("pipe trick") with namespace
4930 pst title=[[Ns:Somearticle]]
4934 [[Ns:Article|Article]]
4938 pre-save transform: context links ("pipe trick") with namespace and parens
4940 pst title=[[Ns:Somearticle (context)]]
4944 [[Ns:Article (context)|Article]]
4948 pre-save transform: context links ("pipe trick") with namespace and comma
4950 pst title=[[Ns:Somearticle, Context, Whatever]]
4954 [[Ns:Article, Context, Whatever|Article]]
4958 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4960 pst title=[[Ns:Somearticle, Context (context)]]
4964 [[Ns:Article (context)|Article]]
4968 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4970 pst title=[[Ns:Somearticle (IGNORED), Context]]
4974 [[Ns:Article, Context|Article]]
4978 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4982 [[Article(context)|]]
4983 [[Bar:Article(context)|]]
4984 [[:Bar:Article(context)|]]
4985 [[|Article(context)]]
4989 [[Article(context)|Article]]
4990 [[Bar:Article(context)|Article]]
4991 [[:Bar:Article(context)|Article]]
4992 [[Article(context)]]
4994 [[:Bar:X(Y)Z|X(Y)Z]]
4998 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5002 [[Article (context)|]]
5003 [[Bar:Article (context)|]]
5004 [[:Bar:Article (context)|]]
5005 [[|Article (context)]]
5009 [[Article (context)|Article]]
5010 [[Bar:Article (context)|Article]]
5011 [[:Bar:Article (context)|Article]]
5012 [[Article (context)]]
5013 [[Bar:X (Y) Z|X (Y) Z]]
5014 [[:Bar:X (Y) Z|X (Y) Z]]
5018 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5022 [[Article(context)|]]
5023 [[Bar:Article(context)|]]
5024 [[:Bar:Article(context)|]]
5025 [[|Article(context)]]
5029 [[Article(context)|Article]]
5030 [[Bar:Article(context)|Article]]
5031 [[:Bar:Article(context)|Article]]
5032 [[Article(context)]]
5034 [[:Bar:X(Y)Z|X(Y)Z]]
5038 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5042 [[Article (context), context|]]
5043 [[Article (context),context|]]
5044 [[Bar:Article (context), context|]]
5045 [[Bar:Article (context),context|]]
5046 [[:Bar:Article (context), context|]]
5047 [[:Bar:Article (context),context|]]
5049 [[Article (context), context|Article]]
5050 [[Article (context),context|Article]]
5051 [[Bar:Article (context), context|Article]]
5052 [[Bar:Article (context),context|Article]]
5053 [[:Bar:Article (context), context|Article]]
5054 [[:Bar:Article (context),context|Article]]
5058 pre-save transform: trim trailing empty lines
5062 Empty lines are trimmed
5068 Empty lines are trimmed
5072 pre-save transform: Signature expansion
5077 * <noinclude>~~~</noinclude>
5078 * <includeonly>~~~</includeonly>
5079 * <onlyinclude>~~~</onlyinclude>
5081 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5082 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5083 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5084 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5089 pre-save transform: Signature expansion in nowiki tags (bug 93)
5095 <nowiki>~~~~</nowiki>
5097 <includeonly><nowiki>~~~~</nowiki></includeonly>
5099 <noinclude><nowiki>~~~~</nowiki></noinclude>
5101 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5103 {{subst:Foo}} shall be converted to FOO
5105 As well as inside noinclude/onlyinclude
5106 <noinclude>{{subst:Foo}}</noinclude>
5107 <onlyinclude>{{subst:Foo}}</onlyinclude>
5109 But not inside includeonly
5110 <includeonly>{{subst:Foo}}</includeonly>
5114 <nowiki>~~~~</nowiki>
5116 <includeonly><nowiki>~~~~</nowiki></includeonly>
5118 <noinclude><nowiki>~~~~</nowiki></noinclude>
5120 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5122 FOO shall be converted to FOO
5124 As well as inside noinclude/onlyinclude
5125 <noinclude>FOO</noinclude>
5126 <onlyinclude>FOO</onlyinclude>
5128 But not inside includeonly
5129 <includeonly>{{subst:Foo}}</includeonly>
5133 ### Message transform tests
5136 message transform: magic variables
5146 message transform: should not transform wiki markup
5156 message transform: <noinclude> in transcluded template (bug 4926)
5166 message transform: <onlyinclude> in transcluded template (bug 4926)
5176 {{#special:}} page name, known
5180 {{#special:Recentchanges}}
5182 Special:RecentChanges
5186 {{#special:}} page name with subpage, known
5190 {{#special:Recentchanges/param}}
5192 Special:RecentChanges/param
5196 {{#special:}} page name, unknown
5200 {{#special:foobarnonexistent}}
5202 No such special page
5206 {{#speciale:}} page name, known
5210 {{#speciale:Recentchanges}}
5212 Special:RecentChanges
5216 {{#speciale:}} page name with subpage, known
5220 {{#speciale:Recentchanges/param}}
5222 Special:RecentChanges/param
5226 {{#speciale:}} page name, unknown
5230 {{#speciale:foobarnonexistent}}
5232 No_such_special_page
5241 [[Image:foobar.jpg]]
5243 <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>
5250 [[Image:foobar.jpg|right]]
5252 <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>
5257 Simple image (using File: namespace, now canonical)
5261 <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>
5268 [[Image:foobar.jpg|right|Caption text]]
5270 <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>
5275 Image with link parameter, wiki target
5277 [[Image:foobar.jpg|link=Target page]]
5279 <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>
5284 Image with link parameter, URL target
5286 [[Image:foobar.jpg|link=http://example.com/]]
5288 <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>
5293 Image with link parameter, wgExternalLinkTarget
5295 [[Image:foobar.jpg|link=http://example.com/]]
5297 wgExternalLinkTarget='foobar'
5299 <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>
5304 Image with link parameter, wgNoFollowLinks set to false
5306 [[Image:foobar.jpg|link=http://example.com/]]
5308 wgNoFollowLinks=false
5310 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5315 Image with link parameter, wgNoFollowDomainExceptions
5317 [[Image:foobar.jpg|link=http://example.com/]]
5319 wgNoFollowDomainExceptions='example.com'
5321 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5326 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5328 [[Image:foobar.jpg|link=http://example.com/|Title]]
5330 wgExternalLinkTarget='foobar'
5332 <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>
5337 Image with empty link parameter
5339 [[Image:foobar.jpg|link=]]
5341 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5346 Image with link parameter (wiki target) and unnamed parameter
5348 [[Image:foobar.jpg|link=Target page|Title]]
5350 <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>
5355 Image with link parameter (URL target) and unnamed parameter
5357 [[Image:foobar.jpg|link=http://example.com/|Title]]
5359 <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>
5364 Thumbnail image with link parameter
5366 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5368 <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>
5373 Image with frame and link
5375 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5377 <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>
5382 Image with frame and link and explicit alt
5384 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5386 <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>
5391 Image with wiki markup in implicit alt
5393 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5395 <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>
5400 Image with wiki markup in explicit alt
5402 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5404 <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>
5409 Link to image page- image page normally doesn't exists, hence edit link
5410 Add test with existing image page
5411 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5415 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5420 bug 18784 Link to non-existent image page with caption should use caption as link text
5422 [[:Image:test|caption]]
5424 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5429 Frameless image caption with a free URL
5431 [[Image:foobar.jpg|http://example.com]]
5433 <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>
5438 Thumbnail image caption with a free URL
5440 [[Image:foobar.jpg|thumb|http://example.com]]
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><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
5447 Thumbnail image caption with a free URL and explicit alt
5449 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5451 <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>
5456 BUG 1887: A ISBN with a thumbnail
5458 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5460 <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>
5465 BUG 1887: A RFC with a thumbnail
5467 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5469 <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>
5474 BUG 1887: A mailto link with a thumbnail
5476 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5478 <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>
5482 # Pending resolution to bug 368
5484 BUG 648: Frameless image caption with a link
5486 [[Image:foobar.jpg|text with a [[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 BUG 648: Frameless image caption with a link (suffix)
5495 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5497 <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>
5502 BUG 648: Frameless image caption with an interwiki link
5504 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5506 <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>
5511 BUG 648: Frameless image caption with a piped interwiki link
5513 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5515 <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>
5520 Escape HTML special chars in image alt text
5522 [[Image:foobar.jpg|& < > "]]
5524 <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>
5529 BUG 499: Alt text should have Ӓ, not &1234;
5531 [[Image:foobar.jpg|♀]]
5533 <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>
5538 Broken image caption with link
5540 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5542 <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.
5547 Image caption containing another image
5549 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5551 <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>
5556 Image caption containing a newline
5558 [[Image:Foobar.jpg|This
5561 <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>
5567 Bug 3090: External links other than http: in image captions
5569 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5571 <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>
5578 [[Image:foobar.jpg|a|class=b]]
5580 <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>
5587 #REDIRECT [[File:Barfoo.jpg]]
5593 [[Image:Barfoo.jpg]]
5595 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5600 Missing image with uploads disabled
5604 [[Image:Foobaz.jpg]]
5606 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5615 Subpage test/subpage
5623 subpage title=[[Subpage test]]
5627 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5632 Subpage noslash link
5634 subpage title=[[Subpage test]]
5638 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5647 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5652 BUG 561: {{/Subpage}}
5654 subpage title=[[Page]]
5658 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5666 Category:MediaWiki User's Guide
5674 [[:Category:MediaWiki User's Guide]]
5676 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5685 [[Category:MediaWiki User's Guide]]
5687 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5691 PAGESINCATEGORY invalid title fatal (r33546 fix)
5693 {{PAGESINCATEGORY:<bogus>}}
5700 Category with different sort key
5704 [[Category:MediaWiki User's Guide|Foo]]
5706 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5710 Category with identical sort key
5714 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5716 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5720 Category with empty sort key
5725 [[Category:MediaWiki User's Guide|]]
5727 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5731 Category with empty sort key and parentheses
5736 [[Category:Foo (bar)|]]
5738 [[Category:Foo (bar)|Foo]]
5742 ### Inter-language links
5745 Inter-language links
5751 [[zh:食品]]
5753 es:Alimento fr:Nourriture zh:食品
5760 Basic section headings
5767 ===Smaller headline===
5770 <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>
5773 <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>
5776 <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>
5782 Section headings with TOC
5785 === Subheadline 1 ===
5786 ===== Skipping a level =====
5787 ====== Skipping a level ======
5791 ===Another headline===
5793 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5795 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5797 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5799 <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>
5801 <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>
5808 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5810 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5815 <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>
5816 <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>
5817 <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>
5818 <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>
5819 <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>
5822 <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>
5826 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5828 Handling of sections up to level 6 and beyond
5831 == Level 2 Heading==
5832 === Level 3 Heading===
5833 ==== Level 4 Heading====
5834 ===== Level 5 Heading=====
5835 ====== Level 6 Heading======
5836 ======= Level 7 Heading=======
5837 ======== Level 8 Heading========
5838 ========= Level 9 Heading=========
5839 ========== Level 10 Heading==========
5841 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5843 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5845 <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>
5847 <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>
5849 <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>
5851 <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>
5853 <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>
5854 <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>
5855 <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>
5856 <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>
5857 <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>
5870 <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>
5871 <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>
5872 <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>
5873 <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>
5874 <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>
5875 <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>
5876 <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>
5877 <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>
5878 <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>
5879 <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>
5884 TOC regression (bug 9764)
5888 ==== title 1.1.1 ====
5893 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5895 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5897 <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>
5899 <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>
5902 <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>
5905 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5907 <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>
5912 <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>
5913 <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>
5914 <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>
5915 <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>
5916 <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>
5917 <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>
5922 TOC with wgMaxTocLevel=3 (bug 6204)
5928 ==== title 1.1.1 ====
5933 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5935 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5937 <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>
5938 <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>
5941 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5943 <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>
5948 <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>
5949 <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>
5950 <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>
5951 <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>
5952 <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>
5953 <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>
5958 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5964 ====Section 1.1.1====
5965 ====Section 1.1.1.1====
5968 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5970 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5972 <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>
5975 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5978 <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>
5979 <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>
5980 <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>
5981 <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>
5982 <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>
5988 Resolving duplicate section names
5993 <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>
5994 <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>
5999 Resolving duplicate section names with differing case (bug 10721)
6004 <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>
6005 <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>
6017 Template with sections, __NOTOC__
6024 <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>
6025 <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>
6026 <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>
6027 <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>
6032 __NOEDITSECTION__ keyword
6038 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6039 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6044 Link inside a section heading
6046 ==Section with a [[Main Page|link]] in it==
6048 <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>
6053 TOC regression (bug 12077)
6060 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6062 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6064 <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>
6067 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6070 <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>
6071 <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>
6072 <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>
6077 BUG 1219 URL next to image (good)
6079 http://example.com [[Image:foobar.jpg]]
6081 <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>
6086 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6089 The line above must have a trailing space!
6092 But just in case it doesn't...
6094 <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>
6095 <p>The line above must have a trailing space!
6097 <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>
6098 <p>But just in case it doesn't...
6103 Header with special characters (bug 25462)
6105 The tooltips shall not show entities to the user (ie. be double escaped)
6122 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6124 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6126 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6127 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6128 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6129 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6130 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6133 <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>
6136 <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>
6139 <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>
6142 <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>
6145 <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>
6151 Headers with excess '=' characters
6152 (Are similar tests necessary beyond the 1st level?)
6156 =''italic'' heading==
6157 ==''italic'' heading=
6159 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6161 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6162 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6163 <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>
6164 <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>
6167 <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>
6168 <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>
6169 <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>
6170 <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>
6175 BUG 1219 URL next to image (broken)
6177 http://example.com[[Image:foobar.jpg]]
6179 <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>
6184 Bug 1186 news: in the middle of text
6186 http://en.wikinews.org/wiki/Wikinews:Workplace
6188 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6194 Namespaced link must have a title
6203 Namespaced link must have a title (bad fragment version)
6205 [[Project:#fragment]]
6207 <p>[[Project:#fragment]]
6213 div with no attributes
6215 <div>HTML rocks</div>
6217 <div>HTML rocks</div>
6222 div with double-quoted attribute
6224 <div id="rock">HTML rocks</div>
6226 <div id="rock">HTML rocks</div>
6231 div with single-quoted attribute
6233 <div id='rock'>HTML rocks</div>
6235 <div id="rock">HTML rocks</div>
6240 div with unquoted attribute
6242 <div id=rock>HTML rocks</div>
6244 <div id="rock">HTML rocks</div>
6249 div with illegal double attributes
6251 <div id="a" id="b">HTML rocks</div>
6253 <div id="b">HTML rocks</div>
6258 HTML multiple attributes correction
6260 <p class="error" class="awesome">Awesome!</p>
6262 <p class="awesome">Awesome!</p>
6267 Table multiple attributes correction
6270 !+ class="error" class="awesome"| status
6275 <th class="awesome"> status
6283 <DIV ID="x">HTML ROCKS</DIV>
6285 <div id="x">HTML ROCKS</div>
6291 text with amp in the middle of nowhere
6295 <p>Remember AT&T?
6300 text with character entity: eacute
6302 I always thought é was a cute letter.
6304 <p>I always thought é was a cute letter.
6309 text with undefined character entity: xacute
6311 I always thought &xacute; was a cute letter.
6313 <p>I always thought &xacute; was a cute letter.
6325 [[Media:Foobar.jpg]]
6327 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6332 Media link with text
6334 [[Media:Foobar.jpg|A neat file to look at]]
6336 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6340 # FIXME: this is still bad HTML tag nesting
6342 Media link with nasty text
6343 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6345 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6347 <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>
6352 Media link to nonexistent file (bug 1702)
6354 [[Media:No such.jpg]]
6356 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6361 Image link to nonexistent file (bug 1850 - good)
6363 [[Image:No such.jpg]]
6365 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6370 :Image link to nonexistent file (bug 1850 - bad)
6372 [[:Image:No such.jpg]]
6374 <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>
6381 Character reference normalization in link text (bug 1938)
6383 [[Main Page|this&that]]
6385 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6392 Test for unicode normalization
6394 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6398 (bug 19451) Links should refer to the normalized form.
6406 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6407 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6408 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6409 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6410 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6415 Empty attribute crash test (bug 2067)
6417 <font color="">foo</font>
6419 <p><font color="">foo</font>
6424 Empty attribute crash test single-quotes (bug 2067)
6426 <font color=''>foo</font>
6428 <p><font color="">foo</font>
6433 Attribute test: equals, then nothing
6435 <font color=>foo</font>
6442 Attribute test: unquoted value
6444 <font color=x>foo</font>
6446 <p><font color="x">foo</font>
6451 Attribute test: unquoted but illegal value (hash)
6453 <font color=#x>foo</font>
6455 <p><font color="#x">foo</font>
6460 Attribute test: no value
6462 <font color>foo</font>
6464 <p><font color="color">foo</font>
6469 Bug 2095: link with three closing brackets
6473 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6478 Bug 2095: link with pipe and three closing brackets
6482 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6487 Bug 2095: link with pipe and three closing brackets, version 2
6489 [[Main Page|[http://example.com/]]]
6491 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6501 Template:Dangerous attribute
6503 " onmouseover="alert(document.cookie)
6507 Template:Dangerous style attribute
6509 border-size: expression(alert(document.cookie))
6515 <div style="float: right; {{{1}}}">Magic div</div>
6519 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6521 <div title="{{test}}"></div>
6523 <div title="This is a test template"></div>
6528 Bug 2304: HTML attribute safety (dangerous template; 2309)
6530 <div title="{{dangerous attribute}}"></div>
6532 <div title=""></div>
6537 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6539 <div style="{{dangerous style attribute}}"></div>
6541 <div style="/* insecure input */"></div>
6546 Bug 2304: HTML attribute safety (safe parameter; 2309)
6548 {{div style|width: 200px}}
6550 <div style="float: right; width: 200px">Magic div</div>
6555 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6557 {{div style|width: expression(alert(document.cookie))}}
6559 <div style="/* insecure input */">Magic div</div>
6564 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6566 {{div style|"><script>alert(document.cookie)</script>}}
6568 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6573 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6575 {{div style|" ><script>alert(document.cookie)</script>}}
6577 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6582 Bug 2304: HTML attribute safety (link)
6584 <div title="[[Main Page]]"></div>
6586 <div title="[[Main Page]]"></div>
6591 Bug 2304: HTML attribute safety (italics)
6593 <div title="''foobar''"></div>
6595 <div title="''foobar''"></div>
6600 Bug 2304: HTML attribute safety (bold)
6602 <div title="'''foobar'''"></div>
6604 <div title="'''foobar'''"></div>
6610 Bug 2304: HTML attribute safety (ISBN)
6612 <div title="ISBN 1234567890"></div>
6614 <div title="ISBN 1234567890"></div>
6619 Bug 2304: HTML attribute safety (RFC)
6621 <div title="RFC 1234"></div>
6623 <div title="RFC 1234"></div>
6628 Bug 2304: HTML attribute safety (PMID)
6630 <div title="PMID 1234567890"></div>
6632 <div title="PMID 1234567890"></div>
6637 Bug 2304: HTML attribute safety (web link)
6639 <div title="http://example.com/"></div>
6641 <div title="http://example.com/"></div>
6646 Bug 2304: HTML attribute safety (named web link)
6648 <div title="[http://example.com/ link]"></div>
6650 <div title="[http://example.com/ link]"></div>
6655 Bug 3244: HTML attribute safety (extension; safe)
6657 <div style="<nowiki>background:blue</nowiki>"></div>
6659 <div style="background:blue"></div>
6664 Bug 3244: HTML attribute safety (extension; unsafe)
6666 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6668 <div style="/* insecure input */"></div>
6672 # More MSIE fun discovered by Tom Gilder
6675 MSIE CSS safety test: spurious slash
6677 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6679 <div style="/* insecure input */">evil</div>
6684 MSIE CSS safety test: hex code
6686 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6688 <div style="/* insecure input */">evil</div>
6693 MSIE CSS safety test: comment in url
6695 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6697 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6702 MSIE CSS safety test: comment in expression
6704 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6706 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6712 Table attribute legitimate extension
6715 !+ style="<nowiki>color:blue</nowiki>"| status
6720 <th style="color:blue"> status
6726 Table attribute safety
6729 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6734 <th style="/* insecure input */"> status
6740 CSS line continuation 1
6742 <div style="background-image: u\ rl(test.jpg);"></div>
6744 <div style="/* insecure input */"></div>
6749 CSS line continuation 2
6751 <div style="background-image: u\ rl(test.jpg); "></div>
6753 <div style="/* insecure input */"></div>
6764 Expansion of multi-line templates in attribute values (bug 6255)
6766 <div style="background: {{identity|#00FF00}}">-</div>
6768 <div style="background: #00FF00">-</div>
6774 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6776 <div style="background:
6779 <div style="background: #00FF00">-</div>
6784 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6786 <div style="background: #00FF00">-</div>
6788 <div style="background: #00FF00">-</div>
6793 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6796 Parser hook: empty input
6809 Parser hook: empty input using terminated empty elements
6822 Parser hook: empty input using terminated empty elements (space before)
6835 Parser hook: basic input
6849 Parser hook: case insensitive
6863 Parser hook: case insensitive, redux
6876 Parser hook: nested tags
6880 <tag><tag></tag></tag>
6891 Parser hook: basic arguments
6893 <tag width=200 height = "100" depth = '50' square></tag>
6912 Parser hook: argument containing a forward slash (bug 5344)
6914 <tag filename='/tmp/bla'></tag>
6920 string(8) "/tmp/bla"
6927 Parser hook: empty input using terminated empty elements (bug 2374)
6941 # </tag> should be output literally since there is no matching tag that begins it
6943 Parser hook: basic arguments using terminated empty elements (bug 2374)
6945 <tag width=200 height = "100" depth = '50' square/>
6968 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6972 Parser hook: static parser hook not inside a comment
6974 <statictag>hello, world</statictag>
6975 <statictag action=flush/>
6983 Parser hook: static parser hook inside a comment
6985 <!-- <statictag>hello, world</statictag> -->
6986 <statictag action=flush/>
6992 # Nested template calls; this case was broken by Parser.php rev 1.506,
6996 Template:One-parameter
6998 (My parameter is: {{{1}}})
7002 Template:Map-one-parameter
7008 Nested template calls
7010 {{Map-one-parameter|One-parameter|param}}
7012 <p>(My parameter is: param)
7021 Sanitizer: Closing of open tags
7023 <s></s><table></table>
7025 <s></s><table></table>
7030 Sanitizer: Closing of open but not closed tags
7039 Sanitizer: Closing of closed but not open tags
7048 Sanitizer: Closing of closed but not open table tags
7050 Table not started</td></tr></table>
7052 <p>Table not started</td></tr></table>
7057 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7059 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7061 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7066 Sanitizer: Validating the contents of the id attribute (bug 4515)
7072 Something, but definitely not <br id="9" />...
7076 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7080 <br id="foo" /><br id="foo" />
7082 Something need to be done. foo-2 ?
7086 Language converter: output gets cut off unexpectedly (bug 5757)
7090 this bit is safe: }-
7092 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7094 then we get cut off here: }-
7096 all additional text is vanished
7098 <p>this bit is safe: }-
7099 </p><p>but if we add a conversion instance: xxx
7100 </p><p>then we get cut off here: }-
7101 </p><p>all additional text is vanished
7106 Self closed html pairs (bug 5487)
7109 <center><font id="bug" />Centered text</center>
7110 <div><font id="bug2" />In div text</div>
7112 <center><font id="bug" />Centered text</center>
7113 <div><font id="bug2" />In div text</div>
7122 Punctuation: nbsp before exclamation
7126 <p>C'est grave !
7131 Punctuation: CSS !important (bug 11874)
7133 <div style="width:50% !important">important</div>
7135 <div style="width:50% !important">important</div>
7140 Punctuation: CSS ! important (bug 11874; with space after)
7142 <div style="width:50% ! important">important</div>
7144 <div style="width:50% ! important">important</div>
7150 HTML bullet list, closed tags (bug 5497)
7165 HTML bullet list, unclosed tags (bug 5497)
7182 HTML ordered list, closed tags (bug 5497)
7197 HTML ordered list, unclosed tags (bug 5497)
7214 HTML nested bullet list, closed tags (bug 5497)
7239 HTML nested bullet list, open tags (bug 5497)
7264 HTML nested ordered list, closed tags (bug 5497)
7289 HTML nested ordered list, open tags (bug 5497)
7314 HTML ordered list item with parameters oddity
7316 <ol><li id="fragment">One</li></ol>
7318 <ol><li id="fragment">One</li></ol>
7323 bug 5918: autonumbering
7325 [http://first/] [http://second] [ftp://ftp]
7329 [mailto:enclosed@mail.tld With target]
7331 [mailto:enclosed@mail.tld]
7333 mailto:inline@mail.tld
7335 <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>
7336 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7337 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7338 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7339 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7345 # Security and HTML correctness
7346 # From Nick Jenkins' fuzz testing
7350 Fuzz testing: Parser13
7365 Fuzz testing: Parser14
7370 <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>
7371 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7373 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7380 Fuzz testing: Parser14-table
7385 <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>
7386 <table style="__TOC__">
7392 # Known to produce bogus xml (extra </td>)
7394 Fuzz testing: Parser16
7414 Fuzz testing: Parser21
7417 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7422 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7432 Fuzz testing: Parser22
7434 http://===r:::https://b
7438 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7446 # Known to produce bad XML for now
7448 Fuzz testing: Parser24
7455 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7456 <br style="onmouseover='alert(document.cookie);' " />
7458 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7463 <u class="|">}}}} >
7464 <br style="onmouseover='alert(document.cookie);'" />
7466 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7475 # Note: the current result listed for this is not what the original one was,
7476 # but the original bug was JavaScript injection, which is fixed in any case.
7477 # It's not clear that the original result listed was any more correct than the
7478 # current one. Original result:
7481 # <li class="||">
7482 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7484 Fuzz testing: Parser25 (bug 6055)
7490 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7492 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7497 Fuzz testing: URL adjacent extension (with space, clean)
7500 http://example.com <nowiki>junk</nowiki>
7502 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7507 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7510 http://example.com<nowiki>junk</nowiki>
7512 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7517 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7520 http://example.com<pre>junk</pre>
7522 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7527 Fuzz testing: image with bogus manual thumbnail
7529 [[Image:foobar.jpg|thumbnail= ]]
7531 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7536 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7538 <pre dir=" "></pre>
7540 <pre dir=" "></pre>
7545 Parsing optional HTML elements (Bug 6171)
7550 <td> Some tabular data</td>
7551 <td> More tabular data ...
7552 <td> And yet som tabular data</td>
7558 <td> Some tabular data</td>
7559 <td> More tabular data ...
7560 </td><td> And yet som tabular data</td>
7567 Correct handling of <td>, <tr> (Bug 6171)
7572 <td> Some tabular data</td>
7573 <td> More tabular data ...</td>
7574 <td> And yet som tabular data</td>
7580 <td> Some tabular data</td>
7581 <td> More tabular data ...</td>
7582 <td> And yet som tabular data</td>
7590 Parsing crashing regression (fr:JavaScript)
7594 <p></body></x>
7599 Inline wiki vs wiki block nesting
7605 <p><b>Bold paragraph</b>
7606 </p><p>New wiki paragraph
7611 Inline HTML vs wiki block nesting
7619 <p><b>Bold paragraph</b>
7620 </p><p>New wiki paragraph
7624 # Original result was this:
7625 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7627 # While that might be marginally more intuitive, maybe, the six-apostrophe
7628 # construct is clearly pathological and the result stated here (which is what
7629 # the parser actually does) is about as reasonable as anything.
7631 Mixing markup for italics and bold
7634 '''bold''''''bold''bolditalics'''''
7636 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7644 Article for special page transclusion test
7648 Special page transclusion
7651 {{Special:Prefixindex/Xyzzyx}}
7653 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7658 Special page transclusion twice (bug 5021)
7661 {{Special:Prefixindex/Xyzzyx}}
7662 {{Special:Prefixindex/Xyzzyx}}
7664 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7665 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7670 Transclusion of default MediaWiki message
7672 {{MediaWiki:Mainpage}}
7679 Transclusion of nonexistent MediaWiki message
7681 {{MediaWiki:Mainpagexxx}}
7683 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7688 Transclusion of MediaWiki message with underscore
7690 {{MediaWiki:history_short}}
7697 Transclusion of MediaWiki message with space
7699 {{MediaWiki:history short}}
7706 Invalid header with following text
7716 Section extraction test (section 0)
7736 Section extraction test (section 1)
7758 Section extraction test (section 2)
7779 Section extraction test (section 3)
7799 Section extraction test (section 4)
7823 Section extraction test (section 5)
7843 Section extraction test (section 6)
7864 Section extraction test (section 7)
7884 Section extraction test (section 8)
7904 Section extraction test (section 9)
7925 Section extraction test (section 10)
7945 Section extraction test (nonexistent section 11)
7964 Section extraction test with bogus heading (section 1)
7969 ==bogus== not a legal section
7973 ==bogus== not a legal section
7977 Section extraction test with bogus heading (section 2)
7982 ==bogus== not a legal section
7989 Section extraction test with comment after heading (section 1)
8001 Section extraction test with comment after heading (section 2)
8013 Section extraction test with bogus <nowiki> heading (section 1)
8018 ==bogus== <nowiki>not a legal section</nowiki>
8022 ==bogus== <nowiki>not a legal section</nowiki>
8026 Section extraction test with bogus <nowiki> heading (section 2)
8031 ==bogus== <nowiki>not a legal section</nowiki>
8038 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8039 # instead of respecting commented sections
8041 Section extraction prefixed by comment (section 1)
8052 Section extraction prefixed by comment (section 2)
8063 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8064 # instead of respecting HTML-style headings
8066 Section extraction, mixed wiki and html (section 1)
8082 Section extraction, mixed wiki and html (section 2)
8098 # Formerly testing for bug 3342
8100 Section extraction, heading surrounded by <noinclude>
8104 <noinclude>==unmarked==</noinclude>
8110 # Test behaviour of bug 19910
8112 Sectiion with all-equals
8117 The line above must have a trailing space
8120 But just in case it doesn't...
8124 But just in case it doesn't...
8128 Section replacement test (section 0)
8159 Section replacement test (section 1)
8188 Section replacement test (section 2)
8218 Section replacement test (section 3)
8249 Section replacement test (section 4)
8276 Section replacement test (section 5)
8307 Section replacement test (section 6)
8337 Section replacement test (section 7)
8368 Section replacement test (section 8)
8399 Section replacement test (section 9)
8428 Section replacement test (section 10)
8458 Section replacement test with initial whitespace (bug 13728)
8462 Preformatted initial line
8466 Preformatted initial line
8473 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8485 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8498 Section extraction, <pre> around bogus header (bug 10309)
8515 Section replacement, <pre> around bogus header (bug 10309)
8517 noxml replace=2,"xxx"
8538 Handling of 
 in URLs
8542 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8549 5 quotes, code coverage +1 line
8556 Special:Search page linking.
8560 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8575 * {{SUBJECTPAGENAME}}
8576 * {{SUBJECTPAGENAMEE}}
8583 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8585 <ul><li> Parser test
8586 </li><li> Parser test
8587 </li><li> Parser test
8588 </li><li> Parser_test
8589 </li><li> Parser test
8590 </li><li> Parser_test
8591 </li><li> Talk:Parser test
8592 </li><li> Talk:Parser_test
8593 </li><li> Parser test
8594 </li><li> Parser_test
8601 </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>
8605 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8615 image4 |300px| centre
8616 image5.svg| http://///////
8621 <ul class="gallery">
8622 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8623 <div style="height: 150px;">Image1.png</div>
8624 <div class="gallerytext">
8627 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8628 <div style="height: 150px;">Image2.gif</div>
8629 <div class="gallerytext">
8634 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8635 <div style="height: 150px;">Image3</div>
8636 <div class="gallerytext">
8639 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8640 <div style="height: 150px;">Image4</div>
8641 <div class="gallerytext">
8646 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8647 <div style="height: 150px;">Image5.svg</div>
8648 <div class="gallerytext">
8649 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8653 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8654 <div style="height: 150px;">* image6</div>
8655 <div class="gallerytext">
8663 Gallery (with options)
8665 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8666 File:Nonexistant.jpg|caption
8667 File:Nonexistant.jpg
8668 image:foobar.jpg|some '''caption''' [[Main Page]]
8670 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8673 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8674 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8675 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8676 <div style="height: 70px;">Nonexistant.jpg</div>
8677 <div class="gallerytext">
8682 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8683 <div style="height: 70px;">Nonexistant.jpg</div>
8684 <div class="gallerytext">
8687 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8688 <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>
8689 <div class="gallerytext">
8690 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8694 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8695 <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>
8696 <div class="gallerytext">
8699 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8700 <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>
8701 <div class="gallerytext">
8711 Gallery with wikitext inside caption
8714 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8715 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8718 <ul class="gallery">
8719 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8720 <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>
8721 <div class="gallerytext">
8722 <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>
8726 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8727 <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>
8728 <div class="gallerytext">
8729 <p>This is a test template
8738 gallery (with showfilename option)
8740 <gallery showfilename>
8741 File:Nonexistant.jpg|caption
8742 File:Nonexistant.jpg
8743 image:foobar.jpg|some '''caption''' [[Main Page]]
8747 <ul class="gallery">
8748 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8749 <div style="height: 150px;">Nonexistant.jpg</div>
8750 <div class="gallerytext">
8751 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8756 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8757 <div style="height: 150px;">Nonexistant.jpg</div>
8758 <div class="gallerytext">
8759 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8763 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8764 <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>
8765 <div class="gallerytext">
8766 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8767 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8771 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8772 <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>
8773 <div class="gallerytext">
8774 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8783 Gallery (with namespace-less filenames)
8786 File:Nonexistant.jpg
8792 <ul class="gallery">
8793 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8794 <div style="height: 150px;">Nonexistant.jpg</div>
8795 <div class="gallerytext">
8798 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8799 <div style="height: 150px;">Nonexistant.jpg</div>
8800 <div class="gallerytext">
8803 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8804 <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>
8805 <div class="gallerytext">
8808 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8809 <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>
8810 <div class="gallerytext">
8818 HTML Hex character encoding (spells the word "JavaScript")
8820 JavaScript
8822 <p>JavaScript
8827 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8831 <p>&#xsee;&#XSEE;
8836 HTML Hex character encoding mixed case
8845 __FORCETOC__ override
8857 ISBN 978-0-1234-56 789
8859 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8864 ISBN followed by 5 spaces
8875 ISBN ISBN 1234567890
8877 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8882 Bug 22905: <abbr> followed by ISBN followed by </a>
8884 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8886 <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>
8895 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8900 Double RFC with a wiki link
8904 <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>
8913 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8918 Centre-aligned image
8920 [[Image:foobar.jpg|centre]]
8922 <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>
8929 [[Image:foobar.jpg|none]]
8931 <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>
8936 Width + Height sized image (using px) (height is ignored)
8938 [[Image:foobar.jpg|640x480px]]
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 Width-sized image (using px, no following whitespace)
8947 [[Image:foobar.jpg|640px]]
8949 <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>
8954 Width-sized image (using px, with following whitespace - test regression from r39467)
8956 [[Image:foobar.jpg|640px ]]
8958 <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>
8963 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8965 [[Image:foobar.jpg| 640px]]
8967 <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>
8972 Another italics / bold test
8980 # Note the results may be incorrect, as parserTest output included this:
8981 # XML error: Mismatched tag at byte 6120:
8982 # ...<dd> </dt></dl> </dd...
8990 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9001 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9003 Images with the "|" character in the comment
9005 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9007 <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>
9012 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9014 <html><script>alert(1);</script></html>
9016 <p><html><script>alert(1);</script></html>
9021 HTML with raw HTML ($wgRawHtml==true)
9025 <html><script>alert(1);</script></html>
9027 <p><script>alert(1);</script>
9032 Parents of subpages, one level up
9034 subpage title=[[Subpage test/L1/L2/L3]]
9038 <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>
9044 Parents of subpages, one level up, not named
9046 subpage title=[[Subpage test/L1/L2/L3]]
9050 <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>
9057 Parents of subpages, two levels up
9059 subpage title=[[Subpage test/L1/L2/L3]]
9065 <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
9066 </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>
9071 Parents of subpages, two levels up, without trailing slash or name.
9073 subpage title=[[Subpage test/L1/L2/L3]]
9082 Parents of subpages, two levels up, with lots of extra trailing slashes.
9084 subpage title=[[Subpage test/L1/L2/L3]]
9088 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9093 Definition list code coverage
9099 <dl><dt> title  </dt><dd> def
9100 </dd><dt> title </dt><dd> def
9101 </dd><dt>title</dt><dd> def
9107 Don't fall for the self-closing div
9109 <div>hello world</div/>
9111 <div>hello world</div>
9120 <p>[[:Template:Msg]]
9129 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9133 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9135 Always escape literal '>' in output, not just after '<'
9149 <p>This is a test template
9150 This is a test template
9162 Inclusion of !userCanEdit() content
9166 <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>
9172 Out-of-order TOC heading levels
9181 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9183 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9185 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9186 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9189 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9191 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9192 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9197 <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>
9198 <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>
9199 <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>
9200 <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>
9201 <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>
9202 <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>
9208 ISBN with a dummy number
9218 ISBN with space-delimited number
9222 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9228 ISBN with multiple spaces, no number
9247 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9248 </p><p>ISBN 12345678901
9254 ISBN with trailing year (bug 8110)
9256 ISBN 1-234-56789-0 - 2006
9258 ISBN 1 234 56789 0 - 2006
9260 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9261 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9269 {{anchorencode:foo bar©#%n}}
9271 <p>foo_bar.C2.A9.23.25n
9276 anchorencode trims spaces
9278 {{anchorencode: __pretty__please__}}
9285 anchorencode deals with links
9287 {{anchorencode: [[hello|world]] [[hi]]}}
9294 anchorencode deals with templates
9296 {{anchorencode: {{Foo}} }}
9303 anchorencode encodes like the TOC generator: (bug 18431)
9305 === _ +:.3A%3A&&]] ===
9306 {{anchorencode: _ +:.3A%3A&&]] }}
9309 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9310 <p>.2B:.3A.253A.26.26.5D.5D
9314 # Expected output in the following test is not necessarily expected (there
9315 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9316 # only testing for well-formedness.
9318 Bug 6200: blockquotes and paragraph formatting
9338 Bug 8293: Use of center tag ruins paragraph formatting
9360 ### Language variants related tests
9363 Self-link in language variants
9365 title=[[Dunav]] language=sr
9367 Both [[Dunav]] and [[Дунав]] are names for this river.
9369 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9375 Link to pages in language variants
9379 Main Page can be written as [[Маин Паге]]
9381 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9387 Multiple links to pages in language variants
9391 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9393 <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>.
9399 Simple template in language variants
9405 <p>This is a test template
9411 Template with explicit namespace in language variants
9417 <p>This is a test template
9423 Basic test for template parameter in language variants
9427 {{парамтест|param=foo}}
9429 <p>This is a test template with parameter foo
9435 Simple category in language variants
9439 [[Category:МедиаWики Усер'с Гуиде]]
9441 <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>
9446 Stripping -{}- tags (language variants)
9450 Latin proverb: -{Ne nuntium necare}-
9452 <p>Latin proverb: Ne nuntium necare
9458 Prevent conversion with -{}- tags (language variants)
9460 language=sr variant=sr-ec
9462 Latinski: -{Ne nuntium necare}-
9464 <p>Латински: Ne nuntium necare
9470 Prevent conversion of text with -{}- tags (language variants)
9472 language=sr variant=sr-ec
9474 Latinski: -{Ne nuntium necare}-
9476 <p>Латински: Ne nuntium necare
9482 Prevent conversion of links with -{}- tags (language variants)
9484 language=sr variant=sr-ec
9488 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9494 -{}- tags within headlines (within html for parserConvert())
9496 language=sr variant=sr-ec
9500 <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>
9506 Explicit definition of language variant alternatives
9508 language=zh variant=zh-tw
9510 -{zh:China;zh-tw:Taiwan}-, not China
9512 <p>Taiwan, not China
9518 Explicit session-wise language variant mapping (A flag and - flag)
9520 language=zh variant=zh-tw
9522 Taiwan is not China.
9523 But -{A|zh:China;zh-tw:Taiwan}- is China,
9524 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9525 and -{China}- is China.
9527 <p>Taiwan is not China.
9528 But Taiwan is Taiwan,
9529 (This should be stripped!)
9535 Explicit session-wise language variant mapping (H flag for hide)
9537 language=zh variant=zh-tw
9539 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9542 <p>(This should be stripped!)
9548 Adding explicit conversion rule for title (T flag)
9550 language=zh variant=zh-tw showtitle
9552 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9555 <p>Should be stripped!
9560 Testing that changing the language variant here in the tests actually works
9562 language=zh variant=zh showtitle
9564 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9567 <p>Should be stripped!
9572 Bug 24072: more test on conversion rule for title
9574 language=zh variant=zh-tw showtitle
9576 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9577 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9580 <p>This should be stripped!
9581 This won't take interferes with the title rule.
9586 Raw output of variant escape tags (R flag)
9588 language=zh variant=zh-tw
9590 Raw: -{R|zh:China;zh-tw:Taiwan}-
9592 <p>Raw: zh:China;zh-tw:Taiwan
9597 Nested using of manual convert syntax
9599 language=zh variant=zh-hk
9601 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9603 <p>Nested: Hello Hong Kong!
9608 Do not convert roman numbers to language variants
9610 language=sr variant=sr-ec
9614 <p>Фридрих IV је цар.
9619 Unclosed language converter markup "-{"
9630 Don't convert raw rule "-{R|=>}-" to "=>"
9647 Bug 529: Uncovered bullet
9658 Bug 529: Uncovered table already at line-start
9681 Bug 529: Uncovered bullet in parser function result
9683 * Foo {{lc:{{bullet}} }}
9692 Bug 5678: Double-parsed template argument
9694 {{lc:{{{1}}}|hello}}
9701 Bug 5678: Double-parsed template invocation
9703 {{lc:{{paramtest {{!}} param = hello }} }}
9705 <p>{{paramtest | param = hello }}
9710 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9736 Morwen/13: Unclosed link followed by heading
9743 <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>
9748 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9755 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9760 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9767 <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>
9782 Paragraphs inside divs (no extra line breaks)
9794 Paragraphs inside divs (extra line break on open)
9809 Paragraphs inside divs (extra line break on close)
9824 Paragraphs inside divs (extra line break on open and close)
9841 Nesting tags, paragraphs on lines which begin with <div>
9845 <div></div><strong>A
9854 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9856 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9860 <blockquote>Line one
9862 Line two</blockquote>
9864 <blockquote>Line one
9865 Line two</blockquote>
9870 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9877 Line two</blockquote>
9882 Line two</blockquote>
9887 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9891 <blockquote>Line one
9896 <blockquote>Line one
9904 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9923 Paragraphs inside blockquotes/divs (no extra line breaks)
9925 <blockquote><div>Line one
9927 Line two</div></blockquote>
9929 <blockquote><div>Line one
9930 Line two</div></blockquote>
9935 Paragraphs inside blockquotes/divs (extra line break on open)
9940 Line two</div></blockquote>
9945 Line two</div></blockquote>
9950 Paragraphs inside blockquotes/divs (extra line break on close)
9952 <blockquote><div>Line one
9957 <blockquote><div>Line one
9965 Paragraphs inside blockquotes/divs (extra line break on open and close)
9982 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9984 wgLinkHolderBatchSize=0
9990 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9991 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9992 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9997 Free external link invading image caption
9999 [[Image:Foobar.jpg|thumb|http://x|hello]]
10001 <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>
10006 Bug 15196: localised external link numbers
10010 [http://en.wikipedia.org/]
10012 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10017 Multibyte character in padleft
10019 {{padleft:-Hello|7|Æ}}
10026 Multibyte character in padright
10028 {{padright:Hello-|7|Æ}}
10037 wgUseDynamicDates=1
10041 <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>
10046 formatdate parser function
10048 {{#formatdate:2009-03-24}}
10050 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10055 formatdate parser function, with default format
10057 {{#formatdate:2009-03-24|mdy}}
10059 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10064 Linked date with autoformatting disabled
10066 wgUseDynamicDates=false
10070 <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>
10075 Spacing of numbers in formatted dates
10077 {{#formatdate:January 15}}
10079 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10084 Spacing of numbers in formatted dates (linked)
10086 wgUseDynamicDates=true
10090 <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>
10095 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
10097 language=nl title=[[MediaWiki:Common.css]]
10099 {{#formatdate:2009-03-24|dmy}}
10101 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10114 Edit comment with link
10118 I like the [[Main Page]] a lot
10120 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10124 Edit comment with link and link text
10128 I like the [[Main Page|best pages]] a lot
10130 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10134 Edit comment with link and link text with suffix
10138 I like the [[Main Page|best page]]s a lot
10140 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10144 Edit comment with section link (non-local, eg in history list)
10146 comment title=[[Main Page]]
10148 /* External links */ removed bogus entries
10150 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10154 Edit comment with section link and text before it (non-local, eg in history list)
10156 comment title=[[Main Page]]
10158 pre-comment text /* External links */ removed bogus entries
10160 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>
10164 Edit comment with section link (local, eg in diff view)
10166 comment local title=[[Main Page]]
10168 /* External links */ removed bogus entries
10170 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10174 Edit comment with subpage link (bug 14080)
10178 title=[[Subpage test]]
10180 Poked at a [[/subpage]] here...
10182 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10186 Edit comment with subpage link and link text (bug 14080)
10190 title=[[Subpage test]]
10192 Poked at a [[/subpage|neat little page]] here...
10194 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10198 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10201 title=[[Subpage test]]
10203 Poked at a [[/subpage]] here...
10205 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10209 Edit comment with bare anchor link (local, as on diff)
10213 title=[[Main Page]]
10217 <a href="#section">#section</a>
10221 Edit comment with bare anchor link (non-local, as on history)
10224 title=[[Main Page]]
10228 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10232 Anchor starting with underscore
10236 <p><a href="#_ref">One</a>
10241 Id starting with underscore
10243 <div id="_ref"></div>
10245 <div id="_ref"></div>
10250 Space normalisation on autocomment (bug 22784)
10253 title=[[Main Page]]
10255 /* __hello__world__ */
10257 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10261 percent-encoding and + signs in comments (Bug 26410)
10265 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10267 <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>
10271 Bad images - basic functionality
10280 Bad images - bug 16039: text after bad image disappears
10294 Verify that displaytitle works (bug #22501) no displaytitle
10298 wgAllowDisplayTitle=true
10299 wgRestrictDisplayTitle=false
10301 this is not the the title
10304 <p>this is not the the title
10309 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10314 wgAllowDisplayTitle=true
10315 wgRestrictDisplayTitle=false
10317 this is not the the title
10318 {{DISPLAYTITLE:whatever}}
10321 <p>this is not the the title
10326 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10331 wgAllowDisplayTitle=true
10332 wgRestrictDisplayTitle=true
10334 this is not the the title
10335 {{DISPLAYTITLE:whatever}}
10338 <p>this is not the the title
10343 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10348 wgAllowDisplayTitle=true
10349 wgRestrictDisplayTitle=true
10351 this is not the the title
10352 {{DISPLAYTITLE:screen}}
10355 <p>this is not the the title
10360 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10365 wgAllowDisplayTitle=false
10367 this is not the the title
10368 {{DISPLAYTITLE:screen}}
10371 <p>this is not the the title
10372 <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>
10377 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10382 wgAllowDisplayTitle=false
10384 this is not the the title
10387 <p>this is not the the title
10392 preload: check <noinclude> and <includeonly>
10396 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10402 preload: check <onlyinclude>
10406 Goodbye <onlyinclude>Hello world</onlyinclude>
10412 preload: can pass tags through if we want to
10416 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10418 <includeonly>Hello world</includeonly>
10422 preload: check that it doesn't try to do tricks
10426 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10428 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10432 Play a bit with r67090 and bug 3158
10436 <div style="width:50% !important"> </div>
10437 <div style="width:50% !important"> </div>
10438 <div style="width:50% !important"> </div>
10439 <div style="border : solid;"> </div>
10441 <div style="width:50% !important"> </div>
10442 <div style="width:50% !important"> </div>
10443 <div style="width:50% !important"> </div>
10444 <div style="border : solid;"> </div>
10449 HTML5 data attributes
10451 <span data-foo="bar">Baz</span>
10452 <p data-abc-def_hij="">Quuz</p>
10454 <p><span data-foo="bar">Baz</span>
10456 <p data-abc-def_hij="">Quuz</p>
10461 percent-encoding and + signs in internal links (Bug 26410)
10463 [[User:+%]] [[Page+title%]]
10464 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10465 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10466 [[%33%45]] [[%33%45+]]
10468 <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>
10469 <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>
10470 <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>
10471 <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>
10476 Special characters in embedded file links (bug 27679)
10478 [[File:Contains & ampersand.jpg]]
10479 [[File:Does not exist.jpg|Title with & ampersand]]
10481 <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>
10482 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10488 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10490 Text's been normalized?
10492 <p>Text's been normalized?
10497 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10499 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10501 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10506 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10508 [http://www.example.org/ ideograms]
10510 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10515 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10517 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10519 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10543 Bug 31098 Template which includes system messages which includes the template
10547 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10548 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10553 Deprecated presentational attributes are converted to css
10556 | valign=top align=left width=100 height=25% | Asdf
10558 <ul type="disc"></ul>
10562 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10564 <ul style="list-style-type: disc;"></ul>
10569 Bug31490 Turkish: ucfirst 'blah'
10580 Bug31490 Turkish: ucfirst 'ix'
10591 Bug31490 Turkish: lcfirst 'BLAH'
10602 Bug31490 Turkish: ucfırst (with a dotless i)
10608 <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>
10613 Bug31490 ucfırst (with a dotless i) with English language
10619 <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>
10624 Bug 26375: TOC with italics
10626 title=[[Main Page]]
10629 == ''Lost'' episodes ==
10631 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10633 <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>
10636 <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>
10641 Bug 26375: TOC with bold
10643 title=[[Main Page]]
10646 == '''should be bold''' then normal text ==
10648 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10650 <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>
10653 <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>
10658 Bug 33845: Headings become cursive in TOC when they contain an image
10660 title=[[Main Page]]
10663 == Image [[Image:foobar.jpg]] ==
10665 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10667 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10670 <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>
10675 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10677 title=[[Main Page]]
10680 == <blockquote>Quote</blockquote> ==
10682 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10684 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10687 <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>
10692 Unclosed tags in TOC
10694 title=[[Main Page]]
10698 <small>Hanc marginis exiguitas non caperet.</small>
10701 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10703 <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>
10706 <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>
10707 <p><small>Hanc marginis exiguitas non caperet.</small>
10713 Multiple tags in TOC
10716 == <i>Foo</i> <b>Bar</b> ==
10718 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10720 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10722 <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>
10723 <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>
10726 <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>
10727 <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>
10732 Tags with parameters in TOC
10735 == <sup class="in-h2">Hello</sup> ==
10737 == <sup class="a > b">Evilbye</sup> ==
10739 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10741 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10742 <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>
10745 <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>
10746 <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>
10751 span tags with directionality in TOC
10754 == <span dir="ltr">C++</span> ==
10756 == <span dir="rtl">זבנג!</span> ==
10758 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10760 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10762 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10764 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10766 <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>
10767 <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>
10768 <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>
10769 <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>
10770 <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>
10773 <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>
10774 <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>
10775 <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>
10776 <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>
10777 <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>
10784 == {{int:headline_sample}} ==
10788 Bug 32057: Title needed when expanding <h> nodes.
10790 title=[[Main Page]]
10794 <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>
10799 Strip marker in urlencode
10801 {{urlencode:x<nowiki/>y}}
10802 {{urlencode:x<nowiki/>y|wiki}}
10803 {{urlencode:x<nowiki/>y|path}}
10830 Strip marker in formatNum
10832 {{formatnum:1<nowiki/>2}}
10833 {{formatnum:1<nowiki/>2|R}}
10841 Strip marker in grammar
10845 {{grammar:elative|foo<nowiki/>bar}}
10852 Strip marker in padleft
10854 {{padleft:|2|x<nowiki/>y}}
10861 Strip marker in padright
10863 {{padright:|2|x<nowiki/>y}}
10870 Strip marker in anchorencode
10872 {{anchorencode:x<nowiki/>y}}
10879 nowiki inside link inside heading (bug 18295)
10881 ==[[foo|x<nowiki>y</nowiki>z]]==
10883 <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>
10888 new support for bdi element (bug 31817)
10890 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10892 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10897 Ignore pipe between table row attributes
10901 |- id=foo | style='color: red'
10909 <tr id="foo" style="color: red">
10916 Gallery override link with WikiLink (bug 34852)
10919 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10922 <ul class="gallery">
10923 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10924 <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>
10925 <div class="gallerytext">
10935 Gallery override link with absolute external link (bug 34852)
10938 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10941 <ul class="gallery">
10942 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10943 <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>
10944 <div class="gallerytext">
10954 Gallery override link with malicious javascript (bug 34852)
10957 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10960 <ul class="gallery">
10961 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10962 <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>
10963 <div class="gallerytext">
10973 Language parser function
10982 Padleft and padright as substr
10984 {{padleft:|3|abcde}}
10985 {{padright:|3|abcde}}
10993 Bug 34939 - Case insensitive link parsing ([HttP://])
10995 [HttP://MediaWiki.Org/]
10997 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11002 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11004 [HttP://MediaWiki.Org/ MediaWiki]
11006 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11011 Bug 34939 - Case insensitive link parsing (HttP://)
11013 HttP://MediaWiki.Org/
11015 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11025 Try for 100% code coverage