1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 This is a simple paragraph.
83 <p>This is a simple paragraph.
88 Paragraphs with extra newline spacing
126 * plain''italic''plain
127 * plain''italic''plain''italic''plain
128 * plain'''bold'''plain
129 * plain'''bold'''plain'''bold'''plain
130 * plain''italic''plain'''bold'''plain
131 * plain'''bold'''plain''italic''plain
132 * plain''italic'''bold-italic'''italic''plain
133 * plain'''bold''bold-italic''bold'''plain
134 * plain'''''bold-italic'''italic''plain
135 * plain'''''bold-italic''bold'''plain
136 * plain''italic'''bold-italic'''''plain
137 * plain'''bold''bold-italic'''''plain
138 * plain l'''italic''plain
139 * plain l''''bold''' plain
142 </li><li> plain<i>italic</i>plain
143 </li><li> plain<i>italic</i>plain<i>italic</i>plain
144 </li><li> plain<b>bold</b>plain
145 </li><li> plain<b>bold</b>plain<b>bold</b>plain
146 </li><li> plain<i>italic</i>plain<b>bold</b>plain
147 </li><li> plain<b>bold</b>plain<i>italic</i>plain
148 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
149 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
150 </li><li> plain<i><b>bold-italic</b>italic</i>plain
151 </li><li> plain<b><i>bold-italic</i>bold</b>plain
152 </li><li> plain<i>italic<b>bold-italic</b></i>plain
153 </li><li> plain<b>bold<i>bold-italic</i></b>plain
154 </li><li> plain l'<i>italic</i>plain
155 </li><li> plain l'<b>bold</b> plain
161 ### 2-quote opening sequence tests
164 Italics and bold: 2-quote opening sequence: (2,2)
174 Italics and bold: 2-quote opening sequence: (2,3)
184 Italics and bold: 2-quote opening sequence: (2,4)
194 Italics and bold: 2-quote opening sequence: (2,5)
204 ### 3-quote opening sequence tests
208 Italics and bold: 3-quote opening sequence: (3,2)
218 Italics and bold: 3-quote opening sequence: (3,3)
228 Italics and bold: 3-quote opening sequence: (3,4)
238 Italics and bold: 3-quote opening sequence: (3,5)
248 ### 4-quote opening sequence tests
252 Italics and bold: 4-quote opening sequence: (4,2)
262 Italics and bold: 4-quote opening sequence: (4,3)
272 Italics and bold: 4-quote opening sequence: (4,4)
282 Italics and bold: 4-quote opening sequence: (4,5)
292 ### 5-quote opening sequence tests
296 Italics and bold: 5-quote opening sequence: (5,2)
306 Italics and bold: 5-quote opening sequence: (5,3)
316 Italics and bold: 5-quote opening sequence: (5,4)
320 <p><i><b>foo'</b></i>
326 Italics and bold: 5-quote opening sequence: (5,5)
335 ### multiple quote sequences in a line
338 Italics and bold: multiple quote sequences: (2,4,2)
342 <p><i>foo'<b>bar</b></i>
348 Italics and bold: multiple quote sequences: (2,4,3)
352 <p><i>foo'<b>bar</b></i>
358 Italics and bold: multiple quote sequences: (2,4,4)
362 <p><i>foo'<b>bar'</b></i>
368 Italics and bold: multiple quote sequences: (3,4,2)
378 Italics and bold: multiple quote sequences: (3,4,3)
387 ### other quote tests
390 Italics and bold: other quote tests: (2,3,5)
392 ''this is about '''foo's family'''''
394 <p><i>this is about <b>foo's family</b></i>
400 Italics and bold: other quote tests: (2,(3,3),2)
402 ''this is about '''foo's''' family''
404 <p><i>this is about <b>foo's</b> family</i>
410 Italics and bold: other quote tests: (3,2,3,2)
412 '''this is about ''foo'''s family''
414 <p><b>this is about <i>foo</i></b><i>s family</i>
420 Italics and bold: other quote tests: (3,2,3,3)
422 '''this is about ''foo'''s family'''
424 <p>'<i>this is about </i>foo<b>s family</b>
431 Italics and bold: other quote tests: (3,(2,2),3)
433 '''this is about ''foo's'' family'''
435 <p><b>this is about <i>foo's</i> family</b>
440 ### <nowiki> test cases
444 <nowiki> unordered list
446 <nowiki>* This is not an unordered list item.</nowiki>
448 <p>* This is not an unordered list item.
455 <nowiki>Lorem ipsum dolor
476 :There is not nowiki.
477 :There is <nowiki>nowiki</nowiki>.
479 #There is not nowiki.
480 #There is <nowiki>nowiki</nowiki>.
482 *There is not nowiki.
483 *There is <nowiki>nowiki</nowiki>.
485 <dl><dd>There is not nowiki.
486 </dd><dd>There is nowiki.
488 <ol><li>There is not nowiki.
489 </li><li>There is nowiki.
491 <ul><li>There is not nowiki.
492 </li><li>There is nowiki.
504 <!-- comment 1 --> asdf
540 asdf<!-- comment 1 -->jkl
550 <!-- foo --> b <!-- bar -->
564 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
570 Comment semantics and delimiters
572 <!-- --><!----><!-----><!------>
578 Comment semantics and delimiters, redux
580 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
581 -- foo -- funky huh? ... -->
587 Comment semantics and delimiters: directors cut
589 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
590 everything starting with < followed by !-- until the first -- and > we see,
591 that wouldn't be valid XML however, since in XML -- has to terminate a comment
599 Comment semantics: nesting
601 <!--<!-- no, we're not going to do anything fancy here -->-->
608 Comment semantics: unclosed comment at end
610 <!--This comment will run out to the end of the document
616 Comment in template title
625 Comment on its own line post-expand
637 ### Preformatted text
646 And a [[Main Page|link]]
652 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
657 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
674 Regression with preformatted in <center>
687 # Expected output in the following test is not really expected (there should be
688 # <pre> in the output) -- it's only testing for well-formedness.
690 Bug 6200: Preformatted in <blockquote>
703 <pre> with attributes (bug 3202)
705 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
707 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
712 <pre> with width attribute (bug 3202)
714 <pre width="8">Narrow screen goodies</pre>
716 <pre width="8">Narrow screen goodies</pre>
721 <pre> with forbidden attribute (bug 3202)
723 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
725 <pre width="8">Narrow screen goodies</pre>
730 <pre> with forbidden attribute values (bug 3202)
732 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
734 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
739 <nowiki> inside <pre> (bug 13238)
747 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
755 <pre><nowiki>Foo</nowiki></pre>
760 <nowiki> and <pre> preference (first one wins)
799 <dl><dt> name </dt><dd> Definition
805 Definition list for indentation only
809 <dl><dd> Indented text
815 Definition list with no space
819 <dl><dt>name</dt><dd>Definition
825 Definition list with URL link
827 ; http://example.com/ : definition
829 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
835 Definition list with bracketed URL link
837 ;[http://www.example.com/ Example]:Something about it
839 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
845 Definition list with wikilink containing colon
847 ; [[Help:FAQ]]: The least-read page on Wikipedia
849 <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
854 # At Brion's and JeLuF's insistence... :)
856 Definition list with news link containing colon
858 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
860 <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!
866 Malformed definition list with colon
868 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
870 <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
876 Definition lists: colon in external link text
878 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
880 <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
886 Definition lists: colon in HTML attribute
888 ;<b style="display: inline">bold</b>
890 <dl><dt><b style="display: inline">bold</b>
897 Definition lists: self-closed tag
899 ;one<br/>two : two-line fun
901 <dl><dt>one<br />two </dt><dd> two-line fun
907 Bug 11748: Literal closing tags
913 <dd>test test test test test</dd>
915 <dd>test test test test test</dd>
920 <dd>test test test test test</dd>
922 <dd>test test test test test</dd>
927 Definition and unordered list using wiki syntax nested in unordered list using html tags.
936 <dl><dt> term </dt><dd> description
946 Definition list with empty definition and following paragraph
951 <dl><dt> term</dt><dd>
958 Definition Lists: No nesting: Multiple dd's
972 Definition Lists: Indentation: Regular
988 Definition Lists: Indentation: Missing 1st level
1002 Definition Lists: Indentation: Multi-level indent
1006 <dl><dd><dl><dd><dl><dd>i3
1013 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1014 ## as an empty dt item. It also ignores all but the last ";" when followed
1015 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1016 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1019 ## Ex: ";;t2 ::d2" is transformed into:
1031 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1032 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1043 ## All Parsoid only definition list tests have this difference.
1045 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1046 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1049 Definition Lists: Nesting: Multi-level (Parsoid only)
1079 Definition Lists: Nesting: Test 2 (Parsoid only)
1099 Definition Lists: Nesting: Test 3 (Parsoid only)
1127 Definition Lists: Nesting: Test 4
1132 <dl><dd><dl><dd><dl><dt>t3
1142 Definition Lists: Mixed Lists: Test 1
1148 <dl><dd><dl><dt><ul><li> foo
1160 Definition Lists: Mixed Lists: Test 2
1174 Definition Lists: Mixed Lists: Test 3
1179 <ul><li><dl><dd><dl><dd><dl><dd> d1
1190 Definition Lists: Mixed Lists: Test 4
1195 <ul><li><dl><dt>d1 </dt><dd>d2
1196 </dd><dt>d3 </dt><dd>d4
1204 Definition Lists: Mixed Lists: Test 5
1219 Definition Lists: Mixed Lists: Test 6
1224 <ol><li><ul><li><dl><dd>d1
1236 Definition Lists: Mixed Lists: Test 7
1250 Definition Lists: Mixed Lists: Test 8
1266 Definition Lists: Mixed Lists: Test 9
1270 <ul><li><dl><dt>foo </dt><dd>bar
1278 Definition Lists: Mixed Lists: Test 10
1282 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1291 Definition Lists: Mixed Lists: Test 11
1296 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1301 <dl><dt>boo </dt><dd>baz
1312 Definition Lists: Weird Ones: Test 1
1314 *#;*::;; foo : bar (who uses this?)
1316 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1332 External links: non-bracketed
1334 Non-bracketed: http://example.com
1336 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1341 External links: numbered
1343 Numbered: [http://example.com]
1344 Numbered: [http://example.net]
1345 Numbered: [http://example.com]
1347 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1348 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1349 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1354 External links: specified text
1356 Specified text: [http://example.com link]
1358 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1363 External links: trail
1365 Linktrails should not work for external links: [http://example.com link]s
1367 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1372 External links: dollar sign in URL
1374 http://example.com/1$2345
1376 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1381 External links: dollar sign in URL (named)
1383 [http://example.com/1$2345]
1385 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1390 External links: open square bracket forbidden in URL (bug 4377)
1392 http://example.com/1[2345
1394 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1399 External links: open square bracket forbidden in URL (named) (bug 4377)
1401 [http://example.com/1[2345]
1403 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1408 External links: nowiki in URL link text (bug 6230)
1410 [http://example.com/ <nowiki>''example site''</nowiki>]
1412 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1417 External links: newline forbidden in text (bug 6230 regression check)
1419 [http://example.com/ first
1422 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1428 External links: protocol-relative URL in brackets
1430 [//example.com/ Test]
1432 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1437 External links: protocol-relative URL in brackets without text
1441 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1446 External links: protocol-relative URL in free text is left alone
1450 <p>//example.com/Foo
1455 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1457 foo//example.com/Foo
1459 <p>foo//example.com/Foo
1466 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1468 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1473 External image from https
1475 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1477 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1482 Link to non-http image, no img tag
1484 Link to non-http image, no img tag: ftp://example.com/test.jpg
1486 <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>
1491 External links: terminating separator
1493 Terminating separator: http://example.com/thing,
1495 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1500 External links: intervening separator
1502 Intervening separator: http://example.com/1,2,3
1504 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1509 External links: old bug with URL in query
1511 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1513 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1518 External links: old URL-in-URL bug, mixed protocols
1520 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1522 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1527 External links: URL in text
1529 URL in text: [http://example.com http://example.com]
1531 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1536 External links: Clickable images
1538 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1540 <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>
1545 External links: raw ampersand
1547 Old & use: http://x&y
1549 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1554 External links: encoded ampersand
1556 Old & use: http://x&y
1558 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1563 External links: encoded equals (bug 6102)
1565 http://example.com/?foo=bar
1567 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1572 External links: [raw ampersand]
1574 Old & use: [http://x&y]
1576 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1581 External links: [encoded ampersand]
1583 Old & use: [http://x&y]
1585 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1590 External links: [encoded equals] (bug 6102)
1592 [http://example.com/?foo=bar]
1594 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1599 External links: [IDN ignored character reference in hostname; strip it right off]
1601 [http://e‌xample.com/]
1603 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1608 External links: IDN ignored character reference in hostname; strip it right off
1610 http://e‌xample.com/
1612 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1617 External links: www.jpeg.org (bug 554)
1621 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1626 External links: URL within URL (original bug 2)
1628 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1630 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1635 BUG 361: URL inside bracketed URL
1637 [http://www.example.com/foo http://www.example.com/bar]
1639 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1644 BUG 361: URL within URL, not bracketed
1646 http://www.example.com/foo?=http://www.example.com/bar
1648 <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>
1653 BUG 289: ">"-token in URL-tail
1655 http://www.example.com/<hello>
1657 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1662 BUG 289: literal ">"-token in URL-tail
1664 http://www.example.com/<b>html</b>
1666 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1671 BUG 289: ">"-token in bracketed URL
1673 [http://www.example.com/<hello> stuff]
1675 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1680 BUG 289: literal ">"-token in bracketed URL
1682 [http://www.example.com/<b>html</b> stuff]
1684 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1689 BUG 289: literal double quote at end of URL
1691 http://www.example.com/"hello"
1693 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1698 BUG 289: literal double quote in bracketed URL
1700 [http://www.example.com/"hello" stuff]
1702 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1707 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1709 [http://www.example.com test]
1711 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1716 External links: wiki links within external link (Bug 3695)
1718 [http://example.com [[wikilink]] embedded in ext link]
1720 <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>
1725 BUG 787: Links with one slash after the url protocol are invalid
1729 [http:/example.com title]
1731 <p>http:/example.com
1732 </p><p>[http:/example.com title]
1737 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1739 ''[http://example.com text'']
1740 [http://example.com '''text]'''
1741 ''Something [http://example.com in italic'']
1742 ''Something [http://example.com mixed''''', even bold]'''
1743 '''''Now [http://example.com both''''']
1745 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1746 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1747 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1748 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1749 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1755 Bug 4781: %26 in URL
1757 http://www.example.com/?title=AT%26T
1759 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1763 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1764 # % is actually legal in HTML5. Any change in output would need testing though.
1766 Bug 4781, 5267: %25 in URL
1768 http://www.example.com/?title=100%25_Bran
1770 <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>
1775 Bug 4781, 5267: %28, %29 in URL
1777 http://www.example.com/?title=Ben-Hur_%281959_film%29
1779 <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>
1785 Bug 4781: %26 in autonumber URL
1787 [http://www.example.com/?title=AT%26T]
1789 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1794 Bug 4781, 5267: %26 in autonumber URL
1796 [http://www.example.com/?title=100%25_Bran]
1798 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1803 Bug 4781, 5267: %28, %29 in autonumber URL
1805 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1807 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1813 Bug 4781: %26 in bracketed URL
1815 [http://www.example.com/?title=AT%26T link]
1817 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1822 Bug 4781, 5267: %26 in bracketed URL
1824 [http://www.example.com/?title=100%25_Bran link]
1826 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1831 Bug 4781, 5267: %28, %29 in bracketed URL
1833 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1835 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1840 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1842 Some [http://example.com/ pretty ''italics'' and stuff]!
1844 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1849 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1851 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1853 <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>
1858 External link containing double-single-quotes with no space separating the url from text in italics
1860 [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]].]
1862 <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>
1867 URL-encoding in URL functions (single parameter)
1869 {{localurl:Some page|amp=&}}
1871 <p>/index.php?title=Some_page&amp=&
1876 URL-encoding in URL functions (multiple parameters)
1878 {{localurl:Some page|q=?&=&}}
1880 <p>/index.php?title=Some_page&q=?&amp=&
1887 http://example.com/index.php?foozoid%5B%5D=bar
1889 http://example.com/index.php?foozoid[]=bar
1891 <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>
1892 </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>
1897 IPv6 urls (bug 21261)
1901 http://[2404:130:0:1000::187:2]/index.php
1903 <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>
1914 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1916 Normal text. '''''Bold italic text.''''' Normal text.
1918 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1919 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1925 Unclosed and unmatched quotes
1927 '''''Bold italic text '''with bold deactivated''' in between.'''''
1929 '''''Bold italic text ''with italic deactivated'' in between.'''''
1933 ..spanning two paragraphs (should not work).'''
1935 '''Bold tag left open
1937 ''Italic tag left open
1941 <!-- Unmatching number of opening, closing tags: -->
1942 '''This year''''s election ''should'' beat '''last year''''s.
1944 ''Tom'''s car is bigger than ''Susan'''s.
1946 Plain ''italic'''s plain
1948 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1949 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1950 </p><p><b>Bold text..</b>
1951 </p><p>..spanning two paragraphs (should not work).
1952 </p><p><b>Bold tag left open</b>
1953 </p><p><i>Italic tag left open</i>
1955 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1956 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1957 </p><p>Plain <i>italic'</i>s plain
1964 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1967 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1968 # is the bare minimun required by the spec, see:
1969 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1971 A table with no data.
1977 # A table with nothing but a caption is invalid XHTML, we might want to render
1978 # this as <p>caption</p>
1980 A table with nothing but a caption
1988 </caption><tr><td></td></tr></table>
2014 Multiplication table
2016 {| border="1" cellpadding="2"
2017 |+Multiplication table
2019 ! × !! 1 !! 2 !! 3
2037 <table border="1" cellpadding="2">
2038 <caption>Multiplication table
2089 |rowspan=2| Cell 2, row 1 (and 2)
2100 <td rowspan="2"> Cell 2, row 1 (and 2)
2118 {| bgcolor=#ABCDEF border=2
2123 |the original table again
2131 <table bgcolor="#ABCDEF" border="2">
2139 <td>the original table again
2145 Invalid attributes in table cell (bug 1830)
2160 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2163 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2167 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2168 <td>]" onmouseover="alert(document.cookie)">test
2177 Indented table markup mixed with indented pre content (proposed in bug 6200)
2182 Text that should be rendered preformatted
2190 <pre>Text that should be rendered preformatted
2203 Plain link, capitalized
2207 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2212 Plain link, uncapitalized
2216 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2223 [[Main Page|The Main Page]]
2225 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2234 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2239 Broken link with fragment
2241 [[Zigzagzogzagzig#zug]]
2243 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2248 Special page link with fragment
2250 [[Special:Version#anchor]]
2252 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2257 Nonexistent special page link with fragment
2259 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2261 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2268 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2270 <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>
2277 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2279 <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>!!!
2284 Link with 3 brackets
2293 Piped link with 3 brackets
2295 [[[main page|the main page]]]
2297 <p>[[[main page|the main page]]]
2302 Link with multiple pipes
2304 [[Main Page|The|Main|Page]]
2306 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2313 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2315 <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>
2320 Piped link to namespace
2322 [[Meta:Disclaimers|The disclaimers]]
2324 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2331 [[Usually caused by a typo (oops}]]
2333 <p>[[Usually caused by a typo (oops}]]
2338 Link containing % (not as a hex sequence)
2342 <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>
2347 Link containing % as a single hex sequence interpreted to char
2351 <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>
2356 Link containing % as a double hex sequence interpreted to hex sequence
2360 <p>[[7%2525 Solution]]
2365 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2366 Example for such a section: == < ==
2368 [[%23%3c]][[%23%3e]]
2370 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2375 Link containing "<#" and ">#" as a hex sequences
2377 [[%3c%23]][[%3e%23]]
2379 <p>[[%3c%23]][[%3e%23]]
2384 Link containing double-single-quotes '' (bug 4598)
2386 [[Lista d''e paise d''o munno]]
2388 <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>
2393 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2395 Some [[Link|pretty ''italics'' and stuff]]!
2397 <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>!
2402 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2404 ''Some [[Link|pretty ''italics'' and stuff]]!
2406 <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>
2411 Link with double quotes in title part (literal) and alternate part (interpreted)
2413 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2417 [[''Pentecoste''|Pentecoste]]
2419 [[''Pentecoste''|''Pentecoste'']]
2421 <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>
2422 </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>
2423 </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>
2424 </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>
2431 [[http://www.example.com]]
2433 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2438 Plain link to URL with link text
2440 [[http://www.example.com Link text]]
2442 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2447 Plain link to protocol-relative URL
2449 [[//www.example.com]]
2451 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2456 Plain link to protocol-relative URL with link text
2458 [[//www.example.com Link text]]
2460 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2465 # I'm fairly sure the expected result here is wrong.
2466 # We want these to be URL links, not pseudo-pages with URLs for titles....
2467 # However the current output is also pretty screwy.
2470 # I'm changing it to match the current output--it arguably makes more
2471 # sense in the light of the test above. Old expected result was:
2472 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2474 # But I think this test is bordering on "garbage in, garbage out" anyway.
2479 Piped link to URL: [[http://www.example.com|an example URL]]
2481 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2486 BUG 2: [[page|http://url/]] should link to page, not http://url/
2488 [[Main Page|http://url/]]
2490 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2495 BUG 337: Escaped self-links should be bold
2499 [[Bug462]] [[Bug462]]
2501 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2506 Self-link to section should not be bold
2510 [[Main Page#section]]
2512 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2523 Self-link to numeric title
2529 <p><strong class="selflink">0</strong>
2534 Link to numeric-equivalent title
2540 <p><a href="/wiki/00" title="00">00</a>
2545 <nowiki> inside a link
2547 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2549 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2554 Non-breaking spaces in title
2556 [[ Main Page ]]
2558 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2563 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2569 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2574 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2580 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2585 Internal link with en linktrail: no apostrophes (bug 27473)
2591 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2596 Internal link with ca linktrail with apostrophes (bug 27473)
2602 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2607 Internal link with kaa linktrail with apostrophes (bug 27473)
2613 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2618 ### Interwiki links (see maintenance/interwiki.sql)
2622 Inline interwiki link
2624 [[MeatBall:SoftSecurity]]
2626 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2631 Inline interwiki link with empty title (bug 2372)
2635 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2640 Interwiki link encoding conversion (bug 1636)
2642 *[[Wikipedia:ro:Olteniţa]]
2643 *[[Wikipedia:ro:Olteniţa]]
2645 <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>
2646 </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>
2652 Interwiki link with fragment (bug 2130)
2654 [[MeatBall:SoftSecurity#foo]]
2656 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2671 Double interlanguage link
2682 Interlanguage link, with prefix links
2694 Double interlanguage link, with prefix links (bug 8897)
2721 Incorrecly removing closing slashes from correctly formed XHTML
2723 <br style="clear:both;" />
2725 <p><br style="clear:both;" />
2730 Failing to transform badly formed HTML into correct XHTML
2732 <br style="clear: left;">
2733 <br style="clear: right;">
2734 <br style="clear: both;">
2736 <p><br style="clear: left;" />
2737 <br style="clear: right;" />
2738 <br style="clear: both;" />
2743 Horizontal ruler (should it add that extra space?)
2757 Horizontal ruler -- 4+ dashes render hr
2766 Horizontal ruler -- eats additional dashes on the same line
2775 Horizontal ruler -- does not collaps dashes on consecutive lines
2786 Horizontal ruler -- <4 dashes render as plain text
2795 ### Block-level elements
2818 <ol><li>Numbered list
2835 ***#Number on level 4
2837 **#Number on level 3
2838 **#Number on level 3
2842 #** Level 3, but ordered
2845 <ol><li> with numbers
2847 <ul><li> and bullets
2849 <ol><li> and numbers
2851 </li><li>bullets again
2852 <ul><li>bullet level 2
2853 <ul><li>bullet level 3
2854 <ol><li>Number on level 4
2857 </li><li>bullet level 2
2858 <ol><li>Number on level 3
2859 </li><li>Number on level 3
2862 <ol><li>number level 2
2865 <ul><li><ul><li> Level 3
2869 <ol><li><ul><li><ul><li> Level 3, but ordered
2903 Nested lists 3 (first element empty)
2916 Nested lists 4 (first element empty)
2929 Nested lists 5 (both elements empty)
2942 Nested lists 6 (both elements empty)
2955 Nested lists 7 (skip initial nesting levels)
2959 <ul><li><ul><li><ul><li> foo
2967 Nested lists 8 (multiple nesting transitions)
2975 <ul><li><ul><li> bar
2986 List items are not parsed correctly following a <pre> block (bug 785)
2992 <ul><li> <pre>foo</pre>
2993 </li><li> <pre>bar</pre>
3000 List items from template
3011 * notSOL{{inner list}}
3030 List interrupted by empty line or heading
3040 <ul><li><ul><li> bar
3043 <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>
3044 <ul><li> Another list item
3055 Magic Word: {{CURRENTDAY}}
3064 Magic Word: {{CURRENTDAY2}}
3073 Magic Word: {{CURRENTDAYNAME}}
3082 Magic Word: {{CURRENTDOW}}
3091 Magic Word: {{CURRENTMONTH}}
3100 Magic Word: {{CURRENTMONTHABBREV}}
3102 {{CURRENTMONTHABBREV}}
3109 Magic Word: {{CURRENTMONTHNAME}}
3111 {{CURRENTMONTHNAME}}
3118 Magic Word: {{CURRENTMONTHNAMEGEN}}
3120 {{CURRENTMONTHNAMEGEN}}
3127 Magic Word: {{CURRENTTIME}}
3136 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3145 Magic Word: {{CURRENTYEAR}}
3154 Magic Word: {{FULLPAGENAME}}
3156 title=[[User:Ævar Arnfjörð Bjarmason]]
3160 <p>User:Ævar Arnfjörð Bjarmason
3165 Magic Word: {{FULLPAGENAMEE}}
3167 title=[[User:Ævar Arnfjörð Bjarmason]]
3171 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3176 Magic Word: {{NAMESPACE}}
3178 title=[[User:Ævar Arnfjörð Bjarmason]]
3187 Magic Word: {{NAMESPACEE}}
3189 title=[[User:Ævar Arnfjörð Bjarmason]]
3198 Magic Word: {{NAMESPACENUMBER}}
3200 title=[[User:Ævar Arnfjörð Bjarmason]]
3209 Magic Word: {{NUMBEROFFILES}}
3218 Magic Word: {{PAGENAME}}
3220 title=[[User:Ævar Arnfjörð Bjarmason]]
3224 <p>Ævar Arnfjörð Bjarmason
3229 Magic Word: {{PAGENAME}} with metacharacters
3231 title=[['foo & bar = baz']]
3235 <p><i>'foo & bar = baz'</i>
3240 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3242 title=[[*RFC 1234 http://example.com/]]
3246 <p>*RFC 1234 http://example.com/
3251 Magic Word: {{PAGENAMEE}}
3253 title=[[User:Ævar Arnfjörð Bjarmason]]
3257 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3262 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3264 title=[[*RFC 1234 http://example.com/]]
3268 <p>*RFC_1234_http://example.com/
3273 Magic Word: {{REVISIONID}}
3282 Magic Word: {{SCRIPTPATH}}
3291 Magic Word: {{SERVER}}
3295 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3300 Magic Word: {{SERVERNAME}}
3309 Magic Word: {{SITENAME}}
3318 Namespace 1 {{ns:1}}
3327 Namespace 1 {{ns:01}}
3336 Namespace 0 {{ns:0}} (bug 4783)
3344 Namespace 0 {{ns:00}} (bug 4783)
3352 Namespace -1 {{ns:-1}}
3361 Namespace User {{ns:User}}
3370 Namespace User talk {{ns:User_talk}}
3379 Namespace User talk {{ns:uSeR tAlK}}
3388 Namespace File {{ns:File}}
3397 Namespace File {{ns:Image}}
3406 Namespace (lang=de) Benutzer {{ns:User}}
3417 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3423 <p>Benutzer Diskussion
3431 {{urlencode:hi world?!}}
3432 {{urlencode:hi world?!|WIKI}}
3433 {{urlencode:hi world?!|PATH}}
3434 {{urlencode:hi world?!|QUERY}}
3447 Magic links: internal link to RFC (bug 479)
3451 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3456 Magic links: RFC (bug 479)
3460 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3465 Magic links: ISBN (bug 1937)
3469 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3474 Magic links: PMID incorrectly converts space to underscore
3478 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3487 Nonexistent template
3489 {{thistemplatedoesnotexist}}
3491 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3498 This is a test template
3506 <p>This is a test template
3511 Template with explicit namespace
3515 <p>This is a test template
3523 This is a test template with parameter {{{param}}}
3529 {{paramtest|param=foo}}
3531 <p>This is a test template with parameter foo
3536 Template:paramtestnum
3542 Template unnamed parameter
3544 {{paramtestnum|Main Page|the main page}}
3546 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3551 Template:templatesimple
3557 Template:templateredirect
3559 #redirect [[Template:templatesimple]]
3563 Template:templateasargtestnum
3569 Template:templateasargtest
3571 {{template{{{templ}}}}}
3575 Template:templateasargtest2
3581 Template with template name as unnamed argument
3583 {{templateasargtestnum|templatesimple}}
3590 Template with template name as argument
3592 {{templateasargtest|templ=simple}}
3599 Template with template name as argument (2)
3601 {{templateasargtest2|templ=templatesimple}}
3608 Template:templateasargtestdefault
3610 {{{{{templ|templatesimple}}}}}
3620 Template with default value
3622 {{templateasargtestdefault}}
3629 Template with default value (value set)
3631 {{templateasargtestdefault|templ=templa}}
3640 {{templateredirect}}
3647 Template with argument in separate line
3649 {{ templateasargtest |
3657 Template with complex template as argument
3660 param ={{ templateasargtest |
3663 <p>This is a test template with parameter (test)
3668 Template with thumb image (with link in description)
3671 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3673 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>
3678 Template:complextemplate
3680 {{{1}}} {{paramtest|
3681 param ={{{param}}}}}
3685 Template with complex arguments
3688 param ={{ templateasargtest |
3689 templ = simple }}|[[Template:complextemplate|link]]}}
3691 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3696 BUG 553: link with two variables in a piped link
3699 |[[{{{1}}}|{{{2}}}]]
3704 <td>[[{{{1}}}|{{{2}}}]]
3710 Magic variable as template parameter
3712 {{paramtest|param={{SITENAME}}}}
3714 <p>This is a test template with parameter MediaWiki
3721 [[{{{param}}}|link]]
3725 Template parameter as link source
3727 {{linktest|param=Main Page}}
3729 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3737 including another template, {{paramtest|param={{{arg}}}}}
3741 Template passing argument to another template
3743 {{paramtest2|arg='hmm'}}
3745 <p>including another template, This is a test template with parameter 'hmm'
3756 Template as link source
3760 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3778 Template infinite loop
3782 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3787 Template from main namespace
3806 BUG 529: Template with table, not included at beginning of line
3825 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3845 BUG 41: Template parameters shown as broken links
3857 ''None'' of '''this''' should be
3859 but rather passed unmodified
3863 # hmm, fix this or just deprecate msgnw and document its behavior?
3869 {{msgnw:MSGNW test}}
3871 <p>''None'' of '''this''' should be
3873 but rather passed unmodified
3881 {{int:youhavenewmessages|lots of money|not!}}
3883 <p>You have lots of money (not!).
3890 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3894 <includeonly> and <noinclude> being included
3905 <onlyinclude>Foo</onlyinclude>bar
3909 <onlyinclude> being included
3921 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3925 <onlyinclude> and <includeonly> being included
3934 <includeonly> and <noinclude> on a page
3936 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3943 <onlyinclude> on a page
3945 <onlyinclude>Foo</onlyinclude>bar
3952 Template:Includeonly section
3955 ==Includeonly section==
3961 Bug 6563: Edit link generation for section shown by <includeonly>
3963 {{includeonly section}}
3965 <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>
3966 <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>
3970 # Uses same input as the contents of [[Template:Includeonly section]]
3972 Bug 6563: Section extraction for section shown by <includeonly>
3977 ==Includeonly section==
3985 Bug 6563: Edit link generation for section suppressed by <includeonly>
3988 ==Includeonly section==
3992 <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>
3997 Bug 6563: Section extraction for section suppressed by <includeonly>
4002 ==Includeonly section==
4010 ### Pre-save transform tests
4013 pre-save transform: subst:
4019 This is a test template
4023 pre-save transform: normal template
4033 pre-save transform: nonexistent template
4037 {{thistemplatedoesnotexist}}
4039 {{thistemplatedoesnotexist}}
4044 pre-save transform: subst magic variables
4053 # This is bug 89, which I fixed. -- wtm
4055 pre-save transform: subst: templates with parameters
4059 {{subst:paramtest|param="something else"}}
4061 This is a test template with parameter "something else"
4067 <nowiki>'''not wiki'''</nowiki>
4071 pre-save transform: nowiki in subst (bug 1188)
4075 {{subst:nowikitest}}
4077 <nowiki>'''not wiki'''</nowiki>
4082 Template:commenttest
4084 This template has <!-- a comment --> in it.
4088 pre-save transform: comment in subst (bug 1936)
4092 {{subst:commenttest}}
4094 This template has <!-- a comment --> in it.
4098 pre-save transform: unclosed tag
4102 <nowiki>'''not wiki'''
4104 <nowiki>'''not wiki'''
4108 pre-save transform: mixed tag case
4112 <NOwiki>'''not wiki'''</noWIKI>
4114 <NOwiki>'''not wiki'''</noWIKI>
4118 pre-save transform: unclosed comment in <nowiki>
4122 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4124 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4130 <span onmouseover="alert('crap')">Oh no</span>
4134 (confirming safety of fix for subst bug 1936)
4136 {{Template:dangerous}}
4138 <p><span>Oh no</span>
4143 pre-save transform: comment containing gallery (bug 5024)
4147 <!-- <gallery>data</gallery> -->
4149 <!-- <gallery>data</gallery> -->
4153 pre-save transform: comment containing extension
4157 <!-- <tag>data</tag> -->
4159 <!-- <tag>data</tag> -->
4163 pre-save transform: comment containing nowiki
4167 <!-- <nowiki>data</nowiki> -->
4169 <!-- <nowiki>data</nowiki> -->
4173 pre-save transform: <noinclude> in subst (bug 3298)
4183 pre-save transform: <onlyinclude> in subst (bug 3298)
4195 {{<includeonly>subst:</includeonly>Includes}}
4199 Template:SafeSubstTest
4201 {{<includeonly>safesubst:</includeonly>Includes}}
4205 bug 22297: safesubst: works during PST
4209 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4215 bug 22297: safesubst: works during normal parse
4224 subst: does not work during normal parse
4228 <p>{{subst:Includes}}
4233 pre-save transform: context links ("pipe trick")
4237 [[Article (context)|]]
4240 [[Bar:Article (context)|]]
4241 [[:Bar:Article (context)|]]
4243 [[|Article (context)]]
4247 [[Article (context)|Article]]
4248 [[Bar:Article|Article]]
4249 [[:Bar:Article|Article]]
4250 [[Bar:Article (context)|Article]]
4251 [[:Bar:Article (context)|Article]]
4253 [[Article (context)]]
4254 [[Bar:X (Y) Z|X (Y) Z]]
4255 [[:Bar:X (Y) Z|X (Y) Z]]
4259 pre-save transform: context links ("pipe trick") with interwiki prefix
4263 [[interwiki:Article|]]
4264 [[:interwiki:Article|]]
4265 [[interwiki:Bar:Article|]]
4266 [[:interwiki:Bar:Article|]]
4268 [[interwiki:Article|Article]]
4269 [[:interwiki:Article|Article]]
4270 [[interwiki:Bar:Article|Bar:Article]]
4271 [[:interwiki:Bar:Article|Bar:Article]]
4275 pre-save transform: context links ("pipe trick") with parens in title
4277 pst title=[[Somearticle (context)]]
4281 [[Article (context)|Article]]
4285 pre-save transform: context links ("pipe trick") with comma in title
4287 pst title=[[Someplace, Somewhere]]
4290 [[Otherplace, Elsewhere|]]
4291 [[Otherplace, Elsewhere, Anywhere|]]
4293 [[Otherplace, Somewhere|Otherplace]]
4294 [[Otherplace, Elsewhere|Otherplace]]
4295 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4299 pre-save transform: context links ("pipe trick") with parens and comma
4301 pst title=[[Someplace (IGNORED), Somewhere]]
4304 [[Otherplace (place), Elsewhere|]]
4306 [[Otherplace, Somewhere|Otherplace]]
4307 [[Otherplace (place), Elsewhere|Otherplace]]
4311 pre-save transform: context links ("pipe trick") with comma and parens
4313 pst title=[[Who, me? (context)]]
4316 [[Me, Myself, and I (1937 song)|]]
4318 [[Yes, you. (context)|Yes, you.]]
4319 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4323 pre-save transform: context links ("pipe trick") with namespace
4325 pst title=[[Ns:Somearticle]]
4329 [[Ns:Article|Article]]
4333 pre-save transform: context links ("pipe trick") with namespace and parens
4335 pst title=[[Ns:Somearticle (context)]]
4339 [[Ns:Article (context)|Article]]
4343 pre-save transform: context links ("pipe trick") with namespace and comma
4345 pst title=[[Ns:Somearticle, Context, Whatever]]
4349 [[Ns:Article, Context, Whatever|Article]]
4353 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4355 pst title=[[Ns:Somearticle, Context (context)]]
4359 [[Ns:Article (context)|Article]]
4363 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4365 pst title=[[Ns:Somearticle (IGNORED), Context]]
4369 [[Ns:Article, Context|Article]]
4373 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4377 [[Article(context)|]]
4378 [[Bar:Article(context)|]]
4379 [[:Bar:Article(context)|]]
4380 [[|Article(context)]]
4384 [[Article(context)|Article]]
4385 [[Bar:Article(context)|Article]]
4386 [[:Bar:Article(context)|Article]]
4387 [[Article(context)]]
4389 [[:Bar:X(Y)Z|X(Y)Z]]
4393 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4397 [[Article (context)|]]
4398 [[Bar:Article (context)|]]
4399 [[:Bar:Article (context)|]]
4400 [[|Article (context)]]
4404 [[Article (context)|Article]]
4405 [[Bar:Article (context)|Article]]
4406 [[:Bar:Article (context)|Article]]
4407 [[Article (context)]]
4408 [[Bar:X (Y) Z|X (Y) Z]]
4409 [[:Bar:X (Y) Z|X (Y) Z]]
4413 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4417 [[Article(context)|]]
4418 [[Bar:Article(context)|]]
4419 [[:Bar:Article(context)|]]
4420 [[|Article(context)]]
4424 [[Article(context)|Article]]
4425 [[Bar:Article(context)|Article]]
4426 [[:Bar:Article(context)|Article]]
4427 [[Article(context)]]
4429 [[:Bar:X(Y)Z|X(Y)Z]]
4433 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4437 [[Article (context), context|]]
4438 [[Article (context),context|]]
4439 [[Bar:Article (context), context|]]
4440 [[Bar:Article (context),context|]]
4441 [[:Bar:Article (context), context|]]
4442 [[:Bar:Article (context),context|]]
4444 [[Article (context), context|Article]]
4445 [[Article (context),context|Article]]
4446 [[Bar:Article (context), context|Article]]
4447 [[Bar:Article (context),context|Article]]
4448 [[:Bar:Article (context), context|Article]]
4449 [[:Bar:Article (context),context|Article]]
4453 pre-save transform: trim trailing empty lines
4457 Empty lines are trimmed
4463 Empty lines are trimmed
4467 pre-save transform: Signature expansion
4472 * <noinclude>~~~</noinclude>
4473 * <includeonly>~~~</includeonly>
4474 * <onlyinclude>~~~</onlyinclude>
4476 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4477 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4478 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4479 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4484 pre-save transform: Signature expansion in nowiki tags (bug 93)
4490 <nowiki>~~~~</nowiki>
4492 <includeonly><nowiki>~~~~</nowiki></includeonly>
4494 <noinclude><nowiki>~~~~</nowiki></noinclude>
4496 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4498 {{subst:Foo}} shall be converted to FOO
4500 As well as inside noinclude/onlyinclude
4501 <noinclude>{{subst:Foo}}</noinclude>
4502 <onlyinclude>{{subst:Foo}}</onlyinclude>
4504 But not inside includeonly
4505 <includeonly>{{subst:Foo}}</includeonly>
4509 <nowiki>~~~~</nowiki>
4511 <includeonly><nowiki>~~~~</nowiki></includeonly>
4513 <noinclude><nowiki>~~~~</nowiki></noinclude>
4515 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4517 FOO shall be converted to FOO
4519 As well as inside noinclude/onlyinclude
4520 <noinclude>FOO</noinclude>
4521 <onlyinclude>FOO</onlyinclude>
4523 But not inside includeonly
4524 <includeonly>{{subst:Foo}}</includeonly>
4528 ### Message transform tests
4531 message transform: magic variables
4541 message transform: should not transform wiki markup
4551 message transform: <noinclude> in transcluded template (bug 4926)
4561 message transform: <onlyinclude> in transcluded template (bug 4926)
4571 {{#special:}} page name, known
4575 {{#special:Recentchanges}}
4577 Special:RecentChanges
4581 {{#special:}} page name with subpage, known
4585 {{#special:Recentchanges/param}}
4587 Special:RecentChanges/param
4591 {{#special:}} page name, unknown
4595 {{#special:foobarnonexistent}}
4597 No such special page
4601 {{#speciale:}} page name, known
4605 {{#speciale:Recentchanges}}
4607 Special:RecentChanges
4611 {{#speciale:}} page name with subpage, known
4615 {{#speciale:Recentchanges/param}}
4617 Special:RecentChanges/param
4621 {{#speciale:}} page name, unknown
4625 {{#speciale:foobarnonexistent}}
4627 No_such_special_page
4636 [[Image:foobar.jpg]]
4638 <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>
4645 [[Image:foobar.jpg|right]]
4647 <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>
4652 Simple image (using File: namespace, now canonical)
4656 <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>
4663 [[Image:foobar.jpg|right|Caption text]]
4665 <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>
4670 Image with link parameter, wiki target
4672 [[Image:foobar.jpg|link=Target page]]
4674 <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>
4679 Image with link parameter, URL target
4681 [[Image:foobar.jpg|link=http://example.com/]]
4683 <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>
4688 Image with link parameter, wgExternalLinkTarget
4690 [[Image:foobar.jpg|link=http://example.com/]]
4692 wgExternalLinkTarget='foobar'
4694 <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>
4699 Image with link parameter, wgNoFollowLinks set to false
4701 [[Image:foobar.jpg|link=http://example.com/]]
4703 wgNoFollowLinks=false
4705 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4710 Image with link parameter, wgNoFollowDomainExceptions
4712 [[Image:foobar.jpg|link=http://example.com/]]
4714 wgNoFollowDomainExceptions='example.com'
4716 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4721 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4723 [[Image:foobar.jpg|link=http://example.com/|Title]]
4725 wgExternalLinkTarget='foobar'
4727 <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>
4732 Image with empty link parameter
4734 [[Image:foobar.jpg|link=]]
4736 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4741 Image with link parameter (wiki target) and unnamed parameter
4743 [[Image:foobar.jpg|link=Target page|Title]]
4745 <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>
4750 Image with link parameter (URL target) and unnamed parameter
4752 [[Image:foobar.jpg|link=http://example.com/|Title]]
4754 <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>
4759 Thumbnail image with link parameter
4761 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4763 <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>
4768 Image with frame and link
4770 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4772 <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>
4777 Image with frame and link and explicit alt
4779 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4781 <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>
4786 Image with wiki markup in implicit alt
4788 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4790 <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>
4795 Image with wiki markup in explicit alt
4797 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4799 <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>
4804 Link to image page- image page normally doesn't exists, hence edit link
4805 Add test with existing image page
4806 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4810 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4815 bug 18784 Link to non-existent image page with caption should use caption as link text
4817 [[:Image:test|caption]]
4819 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4824 Frameless image caption with a free URL
4826 [[Image:foobar.jpg|http://example.com]]
4828 <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>
4833 Thumbnail image caption with a free URL
4835 [[Image:foobar.jpg|thumb|http://example.com]]
4837 <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>
4842 Thumbnail image caption with a free URL and explicit alt
4844 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4846 <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>
4851 BUG 1887: A ISBN with a thumbnail
4853 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4855 <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>
4860 BUG 1887: A RFC with a thumbnail
4862 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4864 <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>
4869 BUG 1887: A mailto link with a thumbnail
4871 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4873 <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>
4877 # Pending resolution to bug 368
4879 BUG 648: Frameless image caption with a link
4881 [[Image:foobar.jpg|text with a [[link]] in it]]
4883 <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>
4888 BUG 648: Frameless image caption with a link (suffix)
4890 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4892 <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>
4897 BUG 648: Frameless image caption with an interwiki link
4899 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4901 <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>
4906 BUG 648: Frameless image caption with a piped interwiki link
4908 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4910 <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>
4915 Escape HTML special chars in image alt text
4917 [[Image:foobar.jpg|& < > "]]
4919 <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>
4924 BUG 499: Alt text should have Ӓ, not &1234;
4926 [[Image:foobar.jpg|♀]]
4928 <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>
4933 Broken image caption with link
4935 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4937 <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.
4942 Image caption containing another image
4944 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4946 <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>
4951 Image caption containing a newline
4953 [[Image:Foobar.jpg|This
4956 <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>
4962 Bug 3090: External links other than http: in image captions
4964 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4966 <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>
4973 #REDIRECT [[File:Barfoo.jpg]]
4979 [[Image:Barfoo.jpg]]
4981 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4986 Missing image with uploads disabled
4990 [[Image:Foobaz.jpg]]
4992 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5001 Subpage test/subpage
5009 subpage title=[[Subpage test]]
5013 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5018 Subpage noslash link
5020 subpage title=[[Subpage test]]
5024 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5033 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5038 BUG 561: {{/Subpage}}
5040 subpage title=[[Page]]
5044 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5052 Category:MediaWiki User's Guide
5060 [[:Category:MediaWiki User's Guide]]
5062 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5071 [[Category:MediaWiki User's Guide]]
5073 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5077 PAGESINCATEGORY invalid title fatal (r33546 fix)
5079 {{PAGESINCATEGORY:<bogus>}}
5086 ### Inter-language links
5089 Inter-language links
5095 [[zh:食品]]
5097 es:Alimento fr:Nourriture zh:食品
5104 Basic section headings
5111 ===Smaller headline===
5114 <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>
5117 <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>
5120 <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>
5126 Section headings with TOC
5129 === Subheadline 1 ===
5130 ===== Skipping a level =====
5131 ====== Skipping a level ======
5135 ===Another headline===
5137 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5139 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5141 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5143 <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>
5145 <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>
5152 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5154 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5159 <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>
5160 <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>
5161 <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>
5162 <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>
5163 <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>
5166 <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>
5170 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5172 Handling of sections up to level 6 and beyond
5175 == Level 2 Heading==
5176 === Level 3 Heading===
5177 ==== Level 4 Heading====
5178 ===== Level 5 Heading=====
5179 ====== Level 6 Heading======
5180 ======= Level 7 Heading=======
5181 ======== Level 8 Heading========
5182 ========= Level 9 Heading=========
5183 ========== Level 10 Heading==========
5185 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5187 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5189 <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>
5191 <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>
5193 <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>
5195 <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>
5197 <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>
5198 <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>
5199 <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>
5200 <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>
5201 <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>
5214 <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>
5215 <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>
5216 <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>
5217 <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>
5218 <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>
5219 <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>
5220 <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>
5221 <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>
5222 <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>
5223 <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>
5228 TOC regression (bug 9764)
5232 ==== title 1.1.1 ====
5237 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5239 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5241 <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>
5243 <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>
5246 <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>
5249 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5251 <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>
5256 <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>
5257 <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>
5258 <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>
5259 <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>
5260 <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>
5261 <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>
5266 TOC with wgMaxTocLevel=3 (bug 6204)
5272 ==== title 1.1.1 ====
5277 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5279 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5281 <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>
5282 <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>
5285 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5287 <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>
5292 <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>
5293 <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>
5294 <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>
5295 <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>
5296 <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>
5297 <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>
5302 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5308 ====Section 1.1.1====
5309 ====Section 1.1.1.1====
5312 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5314 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5316 <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>
5319 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5322 <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>
5323 <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>
5324 <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>
5325 <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>
5326 <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>
5332 Resolving duplicate section names
5337 <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>
5338 <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>
5343 Resolving duplicate section names with differing case (bug 10721)
5348 <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>
5349 <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>
5361 Template with sections, __NOTOC__
5368 <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>
5369 <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>
5370 <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>
5371 <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>
5376 __NOEDITSECTION__ keyword
5382 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5383 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5388 Link inside a section heading
5390 ==Section with a [[Main Page|link]] in it==
5392 <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>
5397 TOC regression (bug 12077)
5404 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5406 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5408 <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>
5411 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
5414 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
5415 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
5416 <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>
5421 BUG 1219 URL next to image (good)
5423 http://example.com [[Image:foobar.jpg]]
5425 <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>
5430 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5433 The line above must have a trailing space!
5436 But just in case it doesn't...
5438 <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>
5439 <p>The line above must have a trailing space!
5441 <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>
5442 <p>But just in case it doesn't...
5447 Header with special characters (bug 25462)
5449 The tooltips shall not show entities to the user (ie. be double escaped)
5466 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5468 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5470 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5471 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5472 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5473 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5474 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5477 <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>
5480 <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>
5483 <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>
5486 <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>
5489 <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>
5495 Headers with excess '=' characters
5496 (Are similar tests necessary beyond the 1st level?)
5500 =''italic'' heading==
5501 ==''italic'' heading=
5503 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5505 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
5506 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
5507 <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>
5508 <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>
5511 <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>
5512 <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>
5513 <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>
5514 <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>
5519 BUG 1219 URL next to image (broken)
5521 http://example.com[[Image:foobar.jpg]]
5523 <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>
5528 Bug 1186 news: in the middle of text
5530 http://en.wikinews.org/wiki/Wikinews:Workplace
5532 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5538 Namespaced link must have a title
5547 Namespaced link must have a title (bad fragment version)
5549 [[Project:#fragment]]
5551 <p>[[Project:#fragment]]
5557 div with no attributes
5559 <div>HTML rocks</div>
5561 <div>HTML rocks</div>
5566 div with double-quoted attribute
5568 <div id="rock">HTML rocks</div>
5570 <div id="rock">HTML rocks</div>
5575 div with single-quoted attribute
5577 <div id='rock'>HTML rocks</div>
5579 <div id="rock">HTML rocks</div>
5584 div with unquoted attribute
5586 <div id=rock>HTML rocks</div>
5588 <div id="rock">HTML rocks</div>
5593 div with illegal double attributes
5595 <div id="a" id="b">HTML rocks</div>
5597 <div id="b">HTML rocks</div>
5602 HTML multiple attributes correction
5604 <p class="error" class="awesome">Awesome!</p>
5606 <p class="awesome">Awesome!</p>
5611 Table multiple attributes correction
5614 !+ class="error" class="awesome"| status
5619 <th class="awesome"> status
5627 <DIV ID="x">HTML ROCKS</DIV>
5629 <div id="x">HTML ROCKS</div>
5635 text with amp in the middle of nowhere
5639 <p>Remember AT&T?
5644 text with character entity: eacute
5646 I always thought é was a cute letter.
5648 <p>I always thought é was a cute letter.
5653 text with undefined character entity: xacute
5655 I always thought &xacute; was a cute letter.
5657 <p>I always thought &xacute; was a cute letter.
5669 [[Media:Foobar.jpg]]
5671 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5676 Media link with text
5678 [[Media:Foobar.jpg|A neat file to look at]]
5680 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5684 # FIXME: this is still bad HTML tag nesting
5686 Media link with nasty text
5687 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5689 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5691 <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>
5696 Media link to nonexistent file (bug 1702)
5698 [[Media:No such.jpg]]
5700 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5705 Image link to nonexistent file (bug 1850 - good)
5707 [[Image:No such.jpg]]
5709 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5714 :Image link to nonexistent file (bug 1850 - bad)
5716 [[:Image:No such.jpg]]
5718 <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>
5725 Character reference normalization in link text (bug 1938)
5727 [[Main Page|this&that]]
5729 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5736 Test for unicode normalization
5738 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5742 (bug 19451) Links should refer to the normalized form.
5750 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5751 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5752 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5753 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5754 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5759 Empty attribute crash test (bug 2067)
5761 <font color="">foo</font>
5763 <p><font color="">foo</font>
5768 Empty attribute crash test single-quotes (bug 2067)
5770 <font color=''>foo</font>
5772 <p><font color="">foo</font>
5777 Attribute test: equals, then nothing
5779 <font color=>foo</font>
5786 Attribute test: unquoted value
5788 <font color=x>foo</font>
5790 <p><font color="x">foo</font>
5795 Attribute test: unquoted but illegal value (hash)
5797 <font color=#x>foo</font>
5799 <p><font color="#x">foo</font>
5804 Attribute test: no value
5806 <font color>foo</font>
5808 <p><font color="color">foo</font>
5813 Bug 2095: link with three closing brackets
5817 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5822 Bug 2095: link with pipe and three closing brackets
5826 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5831 Bug 2095: link with pipe and three closing brackets, version 2
5833 [[Main Page|[http://example.com/]]]
5835 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5845 Template:Dangerous attribute
5847 " onmouseover="alert(document.cookie)
5851 Template:Dangerous style attribute
5853 border-size: expression(alert(document.cookie))
5859 <div style="float: right; {{{1}}}">Magic div</div>
5863 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5865 <div title="{{test}}"></div>
5867 <div title="This is a test template"></div>
5872 Bug 2304: HTML attribute safety (dangerous template; 2309)
5874 <div title="{{dangerous attribute}}"></div>
5876 <div title=""></div>
5881 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5883 <div style="{{dangerous style attribute}}"></div>
5885 <div style="/* insecure input */"></div>
5890 Bug 2304: HTML attribute safety (safe parameter; 2309)
5892 {{div style|width: 200px}}
5894 <div style="float: right; width: 200px">Magic div</div>
5899 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5901 {{div style|width: expression(alert(document.cookie))}}
5903 <div style="/* insecure input */">Magic div</div>
5908 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5910 {{div style|"><script>alert(document.cookie)</script>}}
5912 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5917 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5919 {{div style|" ><script>alert(document.cookie)</script>}}
5921 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5926 Bug 2304: HTML attribute safety (link)
5928 <div title="[[Main Page]]"></div>
5930 <div title="[[Main Page]]"></div>
5935 Bug 2304: HTML attribute safety (italics)
5937 <div title="''foobar''"></div>
5939 <div title="''foobar''"></div>
5944 Bug 2304: HTML attribute safety (bold)
5946 <div title="'''foobar'''"></div>
5948 <div title="'''foobar'''"></div>
5954 Bug 2304: HTML attribute safety (ISBN)
5956 <div title="ISBN 1234567890"></div>
5958 <div title="ISBN 1234567890"></div>
5963 Bug 2304: HTML attribute safety (RFC)
5965 <div title="RFC 1234"></div>
5967 <div title="RFC 1234"></div>
5972 Bug 2304: HTML attribute safety (PMID)
5974 <div title="PMID 1234567890"></div>
5976 <div title="PMID 1234567890"></div>
5981 Bug 2304: HTML attribute safety (web link)
5983 <div title="http://example.com/"></div>
5985 <div title="http://example.com/"></div>
5990 Bug 2304: HTML attribute safety (named web link)
5992 <div title="[http://example.com/ link]"></div>
5994 <div title="[http://example.com/ link]"></div>
5999 Bug 3244: HTML attribute safety (extension; safe)
6001 <div style="<nowiki>background:blue</nowiki>"></div>
6003 <div style="background:blue"></div>
6008 Bug 3244: HTML attribute safety (extension; unsafe)
6010 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6012 <div style="/* insecure input */"></div>
6016 # More MSIE fun discovered by Tom Gilder
6019 MSIE CSS safety test: spurious slash
6021 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6023 <div style="/* insecure input */">evil</div>
6028 MSIE CSS safety test: hex code
6030 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6032 <div style="/* insecure input */">evil</div>
6037 MSIE CSS safety test: comment in url
6039 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6041 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6046 MSIE CSS safety test: comment in expression
6048 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6050 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6056 Table attribute legitimate extension
6059 !+ style="<nowiki>color:blue</nowiki>"| status
6064 <th style="color:blue"> status
6070 Table attribute safety
6073 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6078 <th style="/* insecure input */"> status
6084 CSS line continuation 1
6086 <div style="background-image: u\ rl(test.jpg);"></div>
6088 <div style="/* insecure input */"></div>
6093 CSS line continuation 2
6095 <div style="background-image: u\ rl(test.jpg); "></div>
6097 <div style="/* insecure input */"></div>
6108 Expansion of multi-line templates in attribute values (bug 6255)
6110 <div style="background: {{identity|#00FF00}}">-</div>
6112 <div style="background: #00FF00">-</div>
6118 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6120 <div style="background:
6123 <div style="background: #00FF00">-</div>
6128 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6130 <div style="background: #00FF00">-</div>
6132 <div style="background: #00FF00">-</div>
6137 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6140 Parser hook: empty input
6153 Parser hook: empty input using terminated empty elements
6166 Parser hook: empty input using terminated empty elements (space before)
6179 Parser hook: basic input
6193 Parser hook: case insensitive
6207 Parser hook: case insensitive, redux
6220 Parser hook: nested tags
6224 <tag><tag></tag></tag>
6235 Parser hook: basic arguments
6237 <tag width=200 height = "100" depth = '50' square></tag>
6256 Parser hook: argument containing a forward slash (bug 5344)
6258 <tag filename='/tmp/bla'></tag>
6264 string(8) "/tmp/bla"
6271 Parser hook: empty input using terminated empty elements (bug 2374)
6285 # </tag> should be output literally since there is no matching tag that begins it
6287 Parser hook: basic arguments using terminated empty elements (bug 2374)
6289 <tag width=200 height = "100" depth = '50' square/>
6312 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6316 Parser hook: static parser hook not inside a comment
6318 <statictag>hello, world</statictag>
6319 <statictag action=flush/>
6327 Parser hook: static parser hook inside a comment
6329 <!-- <statictag>hello, world</statictag> -->
6330 <statictag action=flush/>
6336 # Nested template calls; this case was broken by Parser.php rev 1.506,
6340 Template:One-parameter
6342 (My parameter is: {{{1}}})
6346 Template:Map-one-parameter
6352 Nested template calls
6354 {{Map-one-parameter|One-parameter|param}}
6356 <p>(My parameter is: param)
6365 Sanitizer: Closing of open tags
6367 <s></s><table></table>
6369 <s></s><table></table>
6374 Sanitizer: Closing of open but not closed tags
6383 Sanitizer: Closing of closed but not open tags
6392 Sanitizer: Closing of closed but not open table tags
6394 Table not started</td></tr></table>
6396 <p>Table not started</td></tr></table>
6401 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6403 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6405 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6410 Sanitizer: Validating the contents of the id attribute (bug 4515)
6416 Something, but definitely not <br id="9" />...
6420 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
6424 <br id="foo" /><br id="foo" />
6426 Something need to be done. foo-2 ?
6430 Language converter: output gets cut off unexpectedly (bug 5757)
6434 this bit is safe: }-
6436 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6438 then we get cut off here: }-
6440 all additional text is vanished
6442 <p>this bit is safe: }-
6443 </p><p>but if we add a conversion instance: xxx
6444 </p><p>then we get cut off here: }-
6445 </p><p>all additional text is vanished
6450 Self closed html pairs (bug 5487)
6453 <center><font id="bug" />Centered text</center>
6454 <div><font id="bug2" />In div text</div>
6456 <center><font id="bug" />Centered text</center>
6457 <div><font id="bug2" />In div text</div>
6466 Punctuation: nbsp before exclamation
6470 <p>C'est grave !
6475 Punctuation: CSS !important (bug 11874)
6477 <div style="width:50% !important">important</div>
6479 <div style="width:50% !important">important</div>
6484 Punctuation: CSS ! important (bug 11874; with space after)
6486 <div style="width:50% ! important">important</div>
6488 <div style="width:50% ! important">important</div>
6494 HTML bullet list, closed tags (bug 5497)
6509 HTML bullet list, unclosed tags (bug 5497)
6526 HTML ordered list, closed tags (bug 5497)
6541 HTML ordered list, unclosed tags (bug 5497)
6558 HTML nested bullet list, closed tags (bug 5497)
6583 HTML nested bullet list, open tags (bug 5497)
6608 HTML nested ordered list, closed tags (bug 5497)
6633 HTML nested ordered list, open tags (bug 5497)
6658 HTML ordered list item with parameters oddity
6660 <ol><li id="fragment">One</li></ol>
6662 <ol><li id="fragment">One</li></ol>
6667 bug 5918: autonumbering
6669 [http://first/] [http://second] [ftp://ftp]
6673 [mailto:enclosed@mail.tld With target]
6675 [mailto:enclosed@mail.tld]
6677 mailto:inline@mail.tld
6679 <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>
6680 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6681 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6682 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6683 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6689 # Security and HTML correctness
6690 # From Nick Jenkins' fuzz testing
6694 Fuzz testing: Parser13
6709 Fuzz testing: Parser14
6714 <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>
6715 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6717 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6724 Fuzz testing: Parser14-table
6729 <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>
6730 <table style="__TOC__">
6736 # Known to produce bogus xml (extra </td>)
6738 Fuzz testing: Parser16
6758 Fuzz testing: Parser21
6761 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6766 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6776 Fuzz testing: Parser22
6778 http://===r:::https://b
6782 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6790 # Known to produce bad XML for now
6792 Fuzz testing: Parser24
6799 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6800 <br style="onmouseover='alert(document.cookie);' " />
6802 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6807 <u class="|">}}}} >
6808 <br style="onmouseover='alert(document.cookie);'" />
6810 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6819 # Note: the current result listed for this is not what the original one was,
6820 # but the original bug was JavaScript injection, which is fixed in any case.
6821 # It's not clear that the original result listed was any more correct than the
6822 # current one. Original result:
6825 # <li class="||">
6826 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6828 Fuzz testing: Parser25 (bug 6055)
6834 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6836 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6841 Fuzz testing: URL adjacent extension (with space, clean)
6844 http://example.com <nowiki>junk</nowiki>
6846 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6851 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6854 http://example.com<nowiki>junk</nowiki>
6856 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6861 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6864 http://example.com<pre>junk</pre>
6866 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6871 Fuzz testing: image with bogus manual thumbnail
6873 [[Image:foobar.jpg|thumbnail= ]]
6875 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6880 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6882 <pre dir=" "></pre>
6884 <pre dir=" "></pre>
6889 Parsing optional HTML elements (Bug 6171)
6894 <td> Some tabular data</td>
6895 <td> More tabular data ...
6896 <td> And yet som tabular data</td>
6902 <td> Some tabular data</td>
6903 <td> More tabular data ...
6904 </td><td> And yet som tabular data</td>
6911 Correct handling of <td>, <tr> (Bug 6171)
6916 <td> Some tabular data</td>
6917 <td> More tabular data ...</td>
6918 <td> And yet som tabular data</td>
6924 <td> Some tabular data</td>
6925 <td> More tabular data ...</td>
6926 <td> And yet som tabular data</td>
6934 Parsing crashing regression (fr:JavaScript)
6938 <p></body></x>
6943 Inline wiki vs wiki block nesting
6949 <p><b>Bold paragraph</b>
6950 </p><p>New wiki paragraph
6955 Inline HTML vs wiki block nesting
6963 <p><b>Bold paragraph</b>
6964 </p><p>New wiki paragraph
6968 # Original result was this:
6969 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6971 # While that might be marginally more intuitive, maybe, the six-apostrophe
6972 # construct is clearly pathological and the result stated here (which is what
6973 # the parser actually does) is about as reasonable as anything.
6975 Mixing markup for italics and bold
6978 '''bold''''''bold''bolditalics'''''
6980 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6988 Article for special page transclusion test
6992 Special page transclusion
6995 {{Special:Prefixindex/Xyzzyx}}
6997 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7002 Special page transclusion twice (bug 5021)
7005 {{Special:Prefixindex/Xyzzyx}}
7006 {{Special:Prefixindex/Xyzzyx}}
7008 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7009 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7014 Transclusion of default MediaWiki message
7016 {{MediaWiki:Mainpage}}
7023 Transclusion of nonexistent MediaWiki message
7025 {{MediaWiki:Mainpagexxx}}
7027 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7032 Transclusion of MediaWiki message with underscore
7034 {{MediaWiki:history_short}}
7041 Transclusion of MediaWiki message with space
7043 {{MediaWiki:history short}}
7050 Invalid header with following text
7060 Section extraction test (section 0)
7080 Section extraction test (section 1)
7102 Section extraction test (section 2)
7123 Section extraction test (section 3)
7143 Section extraction test (section 4)
7167 Section extraction test (section 5)
7187 Section extraction test (section 6)
7208 Section extraction test (section 7)
7228 Section extraction test (section 8)
7248 Section extraction test (section 9)
7269 Section extraction test (section 10)
7289 Section extraction test (nonexistent section 11)
7308 Section extraction test with bogus heading (section 1)
7313 ==bogus== not a legal section
7317 ==bogus== not a legal section
7321 Section extraction test with bogus heading (section 2)
7326 ==bogus== not a legal section
7333 Section extraction test with comment after heading (section 1)
7345 Section extraction test with comment after heading (section 2)
7357 Section extraction test with bogus <nowiki> heading (section 1)
7362 ==bogus== <nowiki>not a legal section</nowiki>
7366 ==bogus== <nowiki>not a legal section</nowiki>
7370 Section extraction test with bogus <nowiki> heading (section 2)
7375 ==bogus== <nowiki>not a legal section</nowiki>
7382 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7383 # instead of respecting commented sections
7385 Section extraction prefixed by comment (section 1)
7396 Section extraction prefixed by comment (section 2)
7407 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7408 # instead of respecting HTML-style headings
7410 Section extraction, mixed wiki and html (section 1)
7426 Section extraction, mixed wiki and html (section 2)
7442 # Formerly testing for bug 3342
7444 Section extraction, heading surrounded by <noinclude>
7448 <noinclude>==unmarked==</noinclude>
7454 # Test behaviour of bug 19910
7456 Sectiion with all-equals
7461 The line above must have a trailing space
7464 But just in case it doesn't...
7468 But just in case it doesn't...
7472 Section replacement test (section 0)
7503 Section replacement test (section 1)
7532 Section replacement test (section 2)
7562 Section replacement test (section 3)
7593 Section replacement test (section 4)
7620 Section replacement test (section 5)
7651 Section replacement test (section 6)
7681 Section replacement test (section 7)
7712 Section replacement test (section 8)
7743 Section replacement test (section 9)
7772 Section replacement test (section 10)
7802 Section replacement test with initial whitespace (bug 13728)
7806 Preformatted initial line
7810 Preformatted initial line
7817 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7829 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7842 Section extraction, <pre> around bogus header (bug 10309)
7859 Section replacement, <pre> around bogus header (bug 10309)
7861 noxml replace=2,"xxx"
7882 Handling of 
 in URLs
7886 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7893 5 quotes, code coverage +1 line
7900 Special:Search page linking.
7904 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7919 * {{SUBJECTPAGENAME}}
7920 * {{SUBJECTPAGENAMEE}}
7927 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7929 <ul><li> Parser test
7930 </li><li> Parser test
7931 </li><li> Parser test
7932 </li><li> Parser_test
7933 </li><li> Parser test
7934 </li><li> Parser_test
7935 </li><li> Talk:Parser test
7936 </li><li> Talk:Parser_test
7937 </li><li> Parser test
7938 </li><li> Parser_test
7945 </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>
7949 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7959 image4 |300px| centre
7960 image5.svg| http://///////
7965 <ul class="gallery">
7966 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7967 <div style="height: 150px;">Image1.png</div>
7968 <div class="gallerytext">
7971 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7972 <div style="height: 150px;">Image2.gif</div>
7973 <div class="gallerytext">
7978 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7979 <div style="height: 150px;">Image3</div>
7980 <div class="gallerytext">
7983 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7984 <div style="height: 150px;">Image4</div>
7985 <div class="gallerytext">
7990 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7991 <div style="height: 150px;">Image5.svg</div>
7992 <div class="gallerytext">
7993 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7997 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7998 <div style="height: 150px;">* image6</div>
7999 <div class="gallerytext">
8007 Gallery (with options)
8009 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8010 File:Nonexistant.jpg|caption
8011 File:Nonexistant.jpg
8012 image:foobar.jpg|some '''caption''' [[Main Page]]
8014 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8017 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8018 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8019 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8020 <div style="height: 70px;">Nonexistant.jpg</div>
8021 <div class="gallerytext">
8026 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8027 <div style="height: 70px;">Nonexistant.jpg</div>
8028 <div class="gallerytext">
8031 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8032 <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>
8033 <div class="gallerytext">
8034 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8038 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8039 <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>
8040 <div class="gallerytext">
8043 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8044 <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>
8045 <div class="gallerytext">
8055 Gallery with wikitext inside caption
8058 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8059 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8062 <ul class="gallery">
8063 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8064 <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>
8065 <div class="gallerytext">
8066 <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>
8070 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8071 <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>
8072 <div class="gallerytext">
8073 <p>This is a test template
8082 gallery (with showfilename option)
8084 <gallery showfilename>
8085 File:Nonexistant.jpg|caption
8086 File:Nonexistant.jpg
8087 image:foobar.jpg|some '''caption''' [[Main Page]]
8091 <ul class="gallery">
8092 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8093 <div style="height: 150px;">Nonexistant.jpg</div>
8094 <div class="gallerytext">
8095 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8100 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8101 <div style="height: 150px;">Nonexistant.jpg</div>
8102 <div class="gallerytext">
8103 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8107 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8108 <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>
8109 <div class="gallerytext">
8110 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8111 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8115 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8116 <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>
8117 <div class="gallerytext">
8118 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8127 Gallery (with namespace-less filenames)
8130 File:Nonexistant.jpg
8136 <ul class="gallery">
8137 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8138 <div style="height: 150px;">Nonexistant.jpg</div>
8139 <div class="gallerytext">
8142 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8143 <div style="height: 150px;">Nonexistant.jpg</div>
8144 <div class="gallerytext">
8147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8148 <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>
8149 <div class="gallerytext">
8152 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8153 <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>
8154 <div class="gallerytext">
8162 HTML Hex character encoding (spells the word "JavaScript")
8164 JavaScript
8166 <p>JavaScript
8171 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8175 <p>&#xsee;&#XSEE;
8180 HTML Hex character encoding mixed case
8189 __FORCETOC__ override
8201 ISBN 978-0-1234-56 789
8203 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8208 ISBN followed by 5 spaces
8219 ISBN ISBN 1234567890
8221 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8226 Bug 22905: <abbr> followed by ISBN followed by </a>
8228 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8230 <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>
8239 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8244 Double RFC with a wiki link
8248 <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>
8257 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8262 Centre-aligned image
8264 [[Image:foobar.jpg|centre]]
8266 <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>
8273 [[Image:foobar.jpg|none]]
8275 <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>
8280 Width + Height sized image (using px) (height is ignored)
8282 [[Image:foobar.jpg|640x480px]]
8284 <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>
8289 Width-sized image (using px, no following whitespace)
8291 [[Image:foobar.jpg|640px]]
8293 <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>
8298 Width-sized image (using px, with following whitespace - test regression from r39467)
8300 [[Image:foobar.jpg|640px ]]
8302 <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>
8307 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8309 [[Image:foobar.jpg| 640px]]
8311 <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>
8316 Another italics / bold test
8324 # Note the results may be incorrect, as parserTest output included this:
8325 # XML error: Mismatched tag at byte 6120:
8326 # ...<dd> </dt></dl> </dd...
8334 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8345 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8347 Images with the "|" character in the comment
8349 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8351 <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>
8356 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8358 <html><script>alert(1);</script></html>
8360 <p><html><script>alert(1);</script></html>
8365 HTML with raw HTML ($wgRawHtml==true)
8369 <html><script>alert(1);</script></html>
8371 <p><script>alert(1);</script>
8376 Parents of subpages, one level up
8378 subpage title=[[Subpage test/L1/L2/L3]]
8382 <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>
8388 Parents of subpages, one level up, not named
8390 subpage title=[[Subpage test/L1/L2/L3]]
8394 <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>
8401 Parents of subpages, two levels up
8403 subpage title=[[Subpage test/L1/L2/L3]]
8409 <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
8410 </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>
8415 Parents of subpages, two levels up, without trailing slash or name.
8417 subpage title=[[Subpage test/L1/L2/L3]]
8426 Parents of subpages, two levels up, with lots of extra trailing slashes.
8428 subpage title=[[Subpage test/L1/L2/L3]]
8432 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8437 Definition list code coverage
8443 <dl><dt> title  </dt><dd> def
8444 </dd><dt> title </dt><dd> def
8445 </dd><dt>title</dt><dd> def
8451 Don't fall for the self-closing div
8453 <div>hello world</div/>
8455 <div>hello world</div>
8464 <p>[[:Template:Msg]]
8473 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8477 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8479 Always escape literal '>' in output, not just after '<'
8493 <p>This is a test template
8494 This is a test template
8506 Inclusion of !userCanEdit() content
8510 <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>
8516 Out-of-order TOC heading levels
8525 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8527 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8529 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8530 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8533 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8535 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8536 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8541 <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>
8542 <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>
8543 <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>
8544 <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>
8545 <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>
8546 <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>
8552 ISBN with a dummy number
8562 ISBN with space-delimited number
8566 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8572 ISBN with multiple spaces, no number
8591 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8592 </p><p>ISBN 12345678901
8598 ISBN with trailing year (bug 8110)
8600 ISBN 1-234-56789-0 - 2006
8602 ISBN 1 234 56789 0 - 2006
8604 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8605 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8613 {{anchorencode:foo bar©#%n}}
8615 <p>foo_bar.C2.A9.23.25n
8620 anchorencode trims spaces
8622 {{anchorencode: __pretty__please__}}
8629 anchorencode deals with links
8631 {{anchorencode: [[hello|world]] [[hi]]}}
8638 anchorencode deals with templates
8640 {{anchorencode: {{Foo}} }}
8647 anchorencode encodes like the TOC generator: (bug 18431)
8649 === _ +:.3A%3A&&]] ===
8650 {{anchorencode: _ +:.3A%3A&&]] }}
8653 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8654 <p>.2B:.3A.253A.26.26.5D.5D
8658 # Expected output in the following test is not necessarily expected (there
8659 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8660 # only testing for well-formedness.
8662 Bug 6200: blockquotes and paragraph formatting
8682 Bug 8293: Use of center tag ruins paragraph formatting
8704 ### Language variants related tests
8707 Self-link in language variants
8709 title=[[Dunav]] language=sr
8711 Both [[Dunav]] and [[Дунав]] are names for this river.
8713 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8719 Link to pages in language variants
8723 Main Page can be written as [[Маин Паге]]
8725 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8731 Multiple links to pages in language variants
8735 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8737 <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>.
8743 Simple template in language variants
8749 <p>This is a test template
8755 Template with explicit namespace in language variants
8761 <p>This is a test template
8767 Basic test for template parameter in language variants
8771 {{парамтест|param=foo}}
8773 <p>This is a test template with parameter foo
8779 Simple category in language variants
8783 [[Category:МедиаWики Усер'с Гуиде]]
8785 <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>
8790 Stripping -{}- tags (language variants)
8794 Latin proverb: -{Ne nuntium necare}-
8796 <p>Latin proverb: Ne nuntium necare
8802 Prevent conversion with -{}- tags (language variants)
8804 language=sr variant=sr-ec
8806 Latinski: -{Ne nuntium necare}-
8808 <p>Латински: Ne nuntium necare
8814 Prevent conversion of text with -{}- tags (language variants)
8816 language=sr variant=sr-ec
8818 Latinski: -{Ne nuntium necare}-
8820 <p>Латински: Ne nuntium necare
8826 Prevent conversion of links with -{}- tags (language variants)
8828 language=sr variant=sr-ec
8832 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8838 -{}- tags within headlines (within html for parserConvert())
8840 language=sr variant=sr-ec
8844 <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>
8850 Explicit definition of language variant alternatives
8852 language=zh variant=zh-tw
8854 -{zh:China;zh-tw:Taiwan}-, not China
8856 <p>Taiwan, not China
8862 Explicit session-wise language variant mapping (A flag and - flag)
8864 language=zh variant=zh-tw
8866 Taiwan is not China.
8867 But -{A|zh:China;zh-tw:Taiwan}- is China,
8868 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8869 and -{China}- is China.
8871 <p>Taiwan is not China.
8872 But Taiwan is Taiwan,
8873 (This should be stripped!)
8879 Explicit session-wise language variant mapping (H flag for hide)
8881 language=zh variant=zh-tw
8883 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8886 <p>(This should be stripped!)
8892 Adding explicit conversion rule for title (T flag)
8894 language=zh variant=zh-tw showtitle
8896 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8899 <p>Should be stripped!
8904 Testing that changing the language variant here in the tests actually works
8906 language=zh variant=zh showtitle
8908 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8911 <p>Should be stripped!
8916 Bug 24072: more test on conversion rule for title
8918 language=zh variant=zh-tw showtitle
8920 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8921 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8924 <p>This should be stripped!
8925 This won't take interferes with the title rule.
8930 Raw output of variant escape tags (R flag)
8932 language=zh variant=zh-tw
8934 Raw: -{R|zh:China;zh-tw:Taiwan}-
8936 <p>Raw: zh:China;zh-tw:Taiwan
8941 Nested using of manual convert syntax
8943 language=zh variant=zh-hk
8945 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8947 <p>Nested: Hello Hong Kong!
8952 Do not convert roman numbers to language variants
8954 language=sr variant=sr-ec
8958 <p>Фридрих IV је цар.
8963 Unclosed language converter markup "-{"
8974 Don't convert raw rule "-{R|=>}-" to "=>"
8991 Bug 529: Uncovered bullet
9002 Bug 529: Uncovered table already at line-start
9025 Bug 529: Uncovered bullet in parser function result
9027 * Foo {{lc:{{bullet}} }}
9036 Bug 5678: Double-parsed template argument
9038 {{lc:{{{1}}}|hello}}
9045 Bug 5678: Double-parsed template invocation
9047 {{lc:{{paramtest {{!}} param = hello }} }}
9049 <p>{{paramtest | param = hello }}
9054 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9080 Morwen/13: Unclosed link followed by heading
9087 <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>
9092 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9099 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9104 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9111 <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>
9126 Paragraphs inside divs (no extra line breaks)
9138 Paragraphs inside divs (extra line break on open)
9153 Paragraphs inside divs (extra line break on close)
9168 Paragraphs inside divs (extra line break on open and close)
9185 Nesting tags, paragraphs on lines which begin with <div>
9189 <div></div><strong>A
9198 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9200 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9204 <blockquote>Line one
9206 Line two</blockquote>
9208 <blockquote>Line one
9209 Line two</blockquote>
9214 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9221 Line two</blockquote>
9226 Line two</blockquote>
9231 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9235 <blockquote>Line one
9240 <blockquote>Line one
9248 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9267 Paragraphs inside blockquotes/divs (no extra line breaks)
9269 <blockquote><div>Line one
9271 Line two</div></blockquote>
9273 <blockquote><div>Line one
9274 Line two</div></blockquote>
9279 Paragraphs inside blockquotes/divs (extra line break on open)
9284 Line two</div></blockquote>
9289 Line two</div></blockquote>
9294 Paragraphs inside blockquotes/divs (extra line break on close)
9296 <blockquote><div>Line one
9301 <blockquote><div>Line one
9309 Paragraphs inside blockquotes/divs (extra line break on open and close)
9326 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9328 wgLinkHolderBatchSize=0
9334 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9335 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9336 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9341 Free external link invading image caption
9343 [[Image:Foobar.jpg|thumb|http://x|hello]]
9345 <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>
9350 Bug 15196: localised external link numbers
9354 [http://en.wikipedia.org/]
9356 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9361 Multibyte character in padleft
9363 {{padleft:-Hello|7|Æ}}
9370 Multibyte character in padright
9372 {{padright:Hello-|7|Æ}}
9385 <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>
9390 formatdate parser function
9392 {{#formatdate:2009-03-24}}
9394 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9399 formatdate parser function, with default format
9401 {{#formatdate:2009-03-24|mdy}}
9403 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9408 Linked date with autoformatting disabled
9410 wgUseDynamicDates=false
9414 <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>
9419 Spacing of numbers in formatted dates
9421 {{#formatdate:January 15}}
9423 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9428 Spacing of numbers in formatted dates (linked)
9430 wgUseDynamicDates=true
9434 <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>
9439 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
9441 language=nl title=[[MediaWiki:Common.css]]
9443 {{#formatdate:2009-03-24|dmy}}
9445 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
9458 Edit comment with link
9462 I like the [[Main Page]] a lot
9464 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9468 Edit comment with link and link text
9472 I like the [[Main Page|best pages]] a lot
9474 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9478 Edit comment with link and link text with suffix
9482 I like the [[Main Page|best page]]s a lot
9484 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9488 Edit comment with section link (non-local, eg in history list)
9490 comment title=[[Main Page]]
9492 /* External links */ removed bogus entries
9494 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9498 Edit comment with section link and text before it (non-local, eg in history list)
9500 comment title=[[Main Page]]
9502 pre-comment text /* External links */ removed bogus entries
9504 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>
9508 Edit comment with section link (local, eg in diff view)
9510 comment local title=[[Main Page]]
9512 /* External links */ removed bogus entries
9514 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9518 Edit comment with subpage link (bug 14080)
9522 title=[[Subpage test]]
9524 Poked at a [[/subpage]] here...
9526 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9530 Edit comment with subpage link and link text (bug 14080)
9534 title=[[Subpage test]]
9536 Poked at a [[/subpage|neat little page]] here...
9538 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9542 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9545 title=[[Subpage test]]
9547 Poked at a [[/subpage]] here...
9549 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9553 Edit comment with bare anchor link (local, as on diff)
9561 <a href="#section">#section</a>
9565 Edit comment with bare anchor link (non-local, as on history)
9572 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9576 Anchor starting with underscore
9580 <p><a href="#_ref">One</a>
9585 Id starting with underscore
9587 <div id="_ref"></div>
9589 <div id="_ref"></div>
9594 Space normalisation on autocomment (bug 22784)
9599 /* __hello__world__ */
9601 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9605 percent-encoding and + signs in comments (Bug 26410)
9609 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9611 <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>
9615 Bad images - basic functionality
9624 Bad images - bug 16039: text after bad image disappears
9638 Verify that displaytitle works (bug #22501) no displaytitle
9642 wgAllowDisplayTitle=true
9643 wgRestrictDisplayTitle=false
9645 this is not the the title
9648 <p>this is not the the title
9653 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9658 wgAllowDisplayTitle=true
9659 wgRestrictDisplayTitle=false
9661 this is not the the title
9662 {{DISPLAYTITLE:whatever}}
9665 <p>this is not the the title
9670 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9675 wgAllowDisplayTitle=true
9676 wgRestrictDisplayTitle=true
9678 this is not the the title
9679 {{DISPLAYTITLE:whatever}}
9682 <p>this is not the the title
9687 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9692 wgAllowDisplayTitle=true
9693 wgRestrictDisplayTitle=true
9695 this is not the the title
9696 {{DISPLAYTITLE:screen}}
9699 <p>this is not the the title
9704 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9709 wgAllowDisplayTitle=false
9711 this is not the the title
9712 {{DISPLAYTITLE:screen}}
9715 <p>this is not the the title
9716 <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>
9721 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9726 wgAllowDisplayTitle=false
9728 this is not the the title
9731 <p>this is not the the title
9736 preload: check <noinclude> and <includeonly>
9740 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9746 preload: check <onlyinclude>
9750 Goodbye <onlyinclude>Hello world</onlyinclude>
9756 preload: can pass tags through if we want to
9760 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9762 <includeonly>Hello world</includeonly>
9766 preload: check that it doesn't try to do tricks
9770 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9772 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9776 Play a bit with r67090 and bug 3158
9780 <div style="width:50% !important"> </div>
9781 <div style="width:50% !important"> </div>
9782 <div style="width:50% !important"> </div>
9783 <div style="border : solid;"> </div>
9785 <div style="width:50% !important"> </div>
9786 <div style="width:50% !important"> </div>
9787 <div style="width:50% !important"> </div>
9788 <div style="border : solid;"> </div>
9793 HTML5 data attributes
9795 <span data-foo="bar">Baz</span>
9796 <p data-abc-def_hij="">Quuz</p>
9798 <p><span data-foo="bar">Baz</span>
9800 <p data-abc-def_hij="">Quuz</p>
9805 percent-encoding and + signs in internal links (Bug 26410)
9807 [[User:+%]] [[Page+title%]]
9808 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9809 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9810 [[%33%45]] [[%33%45+]]
9812 <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>
9813 <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>
9814 <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>
9815 <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>
9820 Special characters in embedded file links (bug 27679)
9822 [[File:Contains & ampersand.jpg]]
9823 [[File:Does not exist.jpg|Title with & ampersand]]
9825 <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>
9826 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9832 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9834 Text's been normalized?
9836 <p>Text's been normalized?
9841 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9843 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9845 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9850 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9852 [http://www.example.org/ ideograms]
9854 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9859 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9861 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9863 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9887 Bug 31098 Template which includes system messages which includes the template
9891 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9892 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9897 Deprecated presentational attributes are converted to css
9900 | valign=top align=left width=100 height=25% | Asdf
9902 <ul type="disc"></ul>
9906 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9908 <ul style="list-style-type: disc;"></ul>
9913 Bug31490 Turkish: ucfirst 'blah'
9924 Bug31490 Turkish: ucfirst 'ix'
9935 Bug31490 Turkish: lcfirst 'BLAH'
9946 Bug31490 Turkish: ucfırst (with a dotless i)
9952 <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>
9957 Bug31490 ucfırst (with a dotless i) with English language
9963 <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>
9968 Bug 26375: TOC with italics
9973 == ''Lost'' episodes ==
9975 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9977 <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>
9980 <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>
9985 Bug 26375: TOC with bold
9990 == '''should be bold''' then normal text ==
9992 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9994 <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>
9997 <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>
10002 Bug 33845: Headings become cursive in TOC when they contain an image
10004 title=[[Main Page]]
10007 == Image [[Image:foobar.jpg]] ==
10009 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10011 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10014 <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>
10019 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10021 title=[[Main Page]]
10024 == <blockquote>Quote</blockquote> ==
10026 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10028 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10031 <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>
10036 Unclosed tags in TOC
10038 title=[[Main Page]]
10042 <small>Hanc marginis exiguitas non caperet.</small>
10045 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10047 <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>
10050 <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>
10051 <p><small>Hanc marginis exiguitas non caperet.</small>
10057 Multiple tags in TOC
10060 == <i>Foo</i> <b>Bar</b> ==
10062 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10064 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10066 <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>
10067 <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>
10070 <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>
10071 <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>
10076 Tags with parameters in TOC
10079 == <sup class="in-h2">Hello</sup> ==
10081 == <sup class="a > b">Evilbye</sup> ==
10083 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10085 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10086 <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>
10089 <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>
10090 <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>
10097 == {{int:headline_sample}} ==
10101 Bug 32057: Title needed when expanding <h> nodes.
10103 title=[[Main Page]]
10107 <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>
10112 Strip marker in urlencode
10114 {{urlencode:x<nowiki/>y}}
10115 {{urlencode:x<nowiki/>y|wiki}}
10116 {{urlencode:x<nowiki/>y|path}}
10143 Strip marker in formatNum
10145 {{formatnum:1<nowiki/>2}}
10146 {{formatnum:1<nowiki/>2|R}}
10154 Strip marker in grammar
10158 {{grammar:elative|foo<nowiki/>bar}}
10165 Strip marker in padleft
10167 {{padleft:|2|x<nowiki/>y}}
10174 Strip marker in padright
10176 {{padright:|2|x<nowiki/>y}}
10183 Strip marker in anchorencode
10185 {{anchorencode:x<nowiki/>y}}
10192 nowiki inside link inside heading (bug 18295)
10194 ==[[foo|x<nowiki>y</nowiki>z]]==
10196 <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>
10201 new support for bdi element (bug 31817)
10203 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10205 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10210 Ignore pipe between table row attributes
10214 |- id=foo | style='color: red'
10222 <tr id="foo" style="color: red">
10229 Gallery override link with WikiLink (bug 34852)
10232 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10235 <ul class="gallery">
10236 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10237 <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>
10238 <div class="gallerytext">
10248 Gallery override link with absolute external link (bug 34852)
10251 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10254 <ul class="gallery">
10255 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10256 <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>
10257 <div class="gallerytext">
10267 Gallery override link with malicious javascript (bug 34852)
10270 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10273 <ul class="gallery">
10274 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10275 <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>
10276 <div class="gallerytext">
10286 Language parser function
10295 Padleft and padright as substr
10297 {{padleft:|3|abcde}}
10298 {{padright:|3|abcde}}
10311 Try for 100% code coverage