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.
103 * plain''italic''plain
104 * plain''italic''plain''italic''plain
105 * plain'''bold'''plain
106 * plain'''bold'''plain'''bold'''plain
107 * plain''italic''plain'''bold'''plain
108 * plain'''bold'''plain''italic''plain
109 * plain''italic'''bold-italic'''italic''plain
110 * plain'''bold''bold-italic''bold'''plain
111 * plain'''''bold-italic'''italic''plain
112 * plain'''''bold-italic''bold'''plain
113 * plain''italic'''bold-italic'''''plain
114 * plain'''bold''bold-italic'''''plain
115 * plain l'''italic''plain
116 * plain l''''bold''' plain
119 </li><li> plain<i>italic</i>plain
120 </li><li> plain<i>italic</i>plain<i>italic</i>plain
121 </li><li> plain<b>bold</b>plain
122 </li><li> plain<b>bold</b>plain<b>bold</b>plain
123 </li><li> plain<i>italic</i>plain<b>bold</b>plain
124 </li><li> plain<b>bold</b>plain<i>italic</i>plain
125 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
126 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
127 </li><li> plain<i><b>bold-italic</b>italic</i>plain
128 </li><li> plain<b><i>bold-italic</i>bold</b>plain
129 </li><li> plain<i>italic<b>bold-italic</b></i>plain
130 </li><li> plain<b>bold<i>bold-italic</i></b>plain
131 </li><li> plain l'<i>italic</i>plain
132 </li><li> plain l'<b>bold</b> plain
138 ### 2-quote opening sequence tests
141 Italics and bold: 2-quote opening sequence: (2,2)
151 Italics and bold: 2-quote opening sequence: (2,3)
161 Italics and bold: 2-quote opening sequence: (2,4)
171 Italics and bold: 2-quote opening sequence: (2,5)
181 ### 3-quote opening sequence tests
185 Italics and bold: 3-quote opening sequence: (3,2)
195 Italics and bold: 3-quote opening sequence: (3,3)
205 Italics and bold: 3-quote opening sequence: (3,4)
215 Italics and bold: 3-quote opening sequence: (3,5)
225 ### 4-quote opening sequence tests
229 Italics and bold: 4-quote opening sequence: (4,2)
239 Italics and bold: 4-quote opening sequence: (4,3)
249 Italics and bold: 4-quote opening sequence: (4,4)
259 Italics and bold: 4-quote opening sequence: (4,5)
269 ### 5-quote opening sequence tests
273 Italics and bold: 5-quote opening sequence: (5,2)
283 Italics and bold: 5-quote opening sequence: (5,3)
293 Italics and bold: 5-quote opening sequence: (5,4)
297 <p><i><b>foo'</b></i>
303 Italics and bold: 5-quote opening sequence: (5,5)
312 ### multiple quote sequences in a line
315 Italics and bold: multiple quote sequences: (2,4,2)
319 <p><i>foo'<b>bar</b></i>
325 Italics and bold: multiple quote sequences: (2,4,3)
329 <p><i>foo'<b>bar</b></i>
335 Italics and bold: multiple quote sequences: (2,4,4)
339 <p><i>foo'<b>bar'</b></i>
345 Italics and bold: multiple quote sequences: (3,4,2)
355 Italics and bold: multiple quote sequences: (3,4,3)
364 ### other quote tests
367 Italics and bold: other quote tests: (2,3,5)
369 ''this is about '''foo's family'''''
371 <p><i>this is about <b>foo's family</b></i>
377 Italics and bold: other quote tests: (2,(3,3),2)
379 ''this is about '''foo's''' family''
381 <p><i>this is about <b>foo's</b> family</i>
387 Italics and bold: other quote tests: (3,2,3,2)
389 '''this is about ''foo'''s family''
391 <p><b>this is about <i>foo</i></b><i>s family</i>
397 Italics and bold: other quote tests: (3,2,3,3)
399 '''this is about ''foo'''s family'''
401 <p>'<i>this is about </i>foo<b>s family</b>
408 Italics and bold: other quote tests: (3,(2,2),3)
410 '''this is about ''foo's'' family'''
412 <p><b>this is about <i>foo's</i> family</b>
417 ### <nowiki> test cases
421 <nowiki> unordered list
423 <nowiki>* This is not an unordered list item.</nowiki>
425 <p>* This is not an unordered list item.
432 <nowiki>Lorem ipsum dolor
453 :There is not nowiki.
454 :There is <nowiki>nowiki</nowiki>.
456 #There is not nowiki.
457 #There is <nowiki>nowiki</nowiki>.
459 *There is not nowiki.
460 *There is <nowiki>nowiki</nowiki>.
462 <dl><dd>There is not nowiki.
463 </dd><dd>There is nowiki.
465 <ol><li>There is not nowiki.
466 </li><li>There is nowiki.
468 <ul><li>There is not nowiki.
469 </li><li>There is nowiki.
481 <!-- comment 1 --> asdf
517 asdf<!-- comment 1 -->jkl
527 <!-- foo --> b <!-- bar -->
541 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
547 Comment semantics and delimiters
549 <!-- --><!----><!-----><!------>
555 Comment semantics and delimiters, redux
557 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
558 -- foo -- funky huh? ... -->
564 Comment semantics and delimiters: directors cut
566 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
567 everything starting with < followed by !-- until the first -- and > we see,
568 that wouldn't be valid XML however, since in XML -- has to terminate a comment
576 Comment semantics: nesting
578 <!--<!-- no, we're not going to do anything fancy here -->-->
585 Comment semantics: unclosed comment at end
587 <!--This comment will run out to the end of the document
593 Comment in template title
602 Comment on its own line post-expand
614 ### Preformatted text
623 And a [[Main Page|link]]
629 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
634 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
651 Regression with preformatted in <center>
664 # Expected output in the following test is not really expected (there should be
665 # <pre> in the output) -- it's only testing for well-formedness.
667 Bug 6200: Preformatted in <blockquote>
680 <pre> with attributes (bug 3202)
682 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
684 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
689 <pre> with width attribute (bug 3202)
691 <pre width="8">Narrow screen goodies</pre>
693 <pre width="8">Narrow screen goodies</pre>
698 <pre> with forbidden attribute (bug 3202)
700 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
702 <pre width="8">Narrow screen goodies</pre>
707 <pre> with forbidden attribute values (bug 3202)
709 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
711 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
716 <nowiki> inside <pre> (bug 13238)
724 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
732 <pre><nowiki>Foo</nowiki></pre>
737 <nowiki> and <pre> preference (first one wins)
776 <dl><dt> name </dt><dd> Definition
782 Definition list for indentation only
786 <dl><dd> Indented text
792 Definition list with no space
796 <dl><dt>name</dt><dd>Definition
802 Definition list with URL link
804 ; http://example.com/ : definition
806 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
812 Definition list with bracketed URL link
814 ;[http://www.example.com/ Example]:Something about it
816 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
822 Definition list with wikilink containing colon
824 ; [[Help:FAQ]]: The least-read page on Wikipedia
826 <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
831 # At Brion's and JeLuF's insistence... :)
833 Definition list with news link containing colon
835 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
837 <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!
843 Malformed definition list with colon
845 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
847 <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
853 Definition lists: colon in external link text
855 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
857 <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
863 Definition lists: colon in HTML attribute
865 ;<b style="display: inline">bold</b>
867 <dl><dt><b style="display: inline">bold</b>
874 Definition lists: self-closed tag
876 ;one<br/>two : two-line fun
878 <dl><dt>one<br />two </dt><dd> two-line fun
884 Bug 11748: Literal closing tags
890 <dd>test test test test test</dd>
892 <dd>test test test test test</dd>
897 <dd>test test test test test</dd>
899 <dd>test test test test test</dd>
904 Definition and unordered list using wiki syntax nested in unordered list using html tags.
913 <dl><dt> term </dt><dd> description
923 Definition list with empty definition and following paragraph
928 <dl><dt> term</dt><dd>
935 Definition Lists: No nesting: Multiple dd's
949 Definition Lists: Indentation: Regular
965 Definition Lists: Indentation: Missing 1st level
979 Definition Lists: Indentation: Multi-level indent
983 <dl><dd><dl><dd><dl><dd>i3
990 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
991 ## as an empty dt item. It also ignores all but the last ";" when followed
992 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
993 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
996 ## Ex: ";;t2 ::d2" is transformed into:
1008 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1009 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1020 ## All Parsoid only definition list tests have this difference.
1022 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1023 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1026 Definition Lists: Nesting: Multi-level (Parsoid only)
1056 Definition Lists: Nesting: Test 2 (Parsoid only)
1076 Definition Lists: Nesting: Test 3 (Parsoid only)
1104 Definition Lists: Nesting: Test 4
1109 <dl><dd><dl><dd><dl><dt>t3
1119 Definition Lists: Mixed Lists: Test 1
1125 <dl><dd><dl><dt><ul><li> foo
1137 Definition Lists: Mixed Lists: Test 2
1151 Definition Lists: Mixed Lists: Test 3
1156 <ul><li><dl><dd><dl><dd><dl><dd> d1
1167 Definition Lists: Mixed Lists: Test 4
1172 <ul><li><dl><dt>d1 </dt><dd>d2
1173 </dd><dt>d3 </dt><dd>d4
1181 Definition Lists: Mixed Lists: Test 5
1196 Definition Lists: Mixed Lists: Test 6
1201 <ol><li><ul><li><dl><dd>d1
1213 Definition Lists: Mixed Lists: Test 7
1227 Definition Lists: Mixed Lists: Test 8
1243 Definition Lists: Mixed Lists: Test 9
1247 <ul><li><dl><dt>foo </dt><dd>bar
1255 Definition Lists: Mixed Lists: Test 10
1259 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1268 Definition Lists: Mixed Lists: Test 11
1273 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1278 <dl><dt>boo </dt><dd>baz
1289 Definition Lists: Weird Ones: Test 1
1291 *#;*::;; foo : bar (who uses this?)
1293 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1309 External links: non-bracketed
1311 Non-bracketed: http://example.com
1313 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1318 External links: numbered
1320 Numbered: [http://example.com]
1321 Numbered: [http://example.net]
1322 Numbered: [http://example.com]
1324 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1325 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1326 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1331 External links: specified text
1333 Specified text: [http://example.com link]
1335 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1340 External links: trail
1342 Linktrails should not work for external links: [http://example.com link]s
1344 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1349 External links: dollar sign in URL
1351 http://example.com/1$2345
1353 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1358 External links: dollar sign in URL (named)
1360 [http://example.com/1$2345]
1362 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1367 External links: open square bracket forbidden in URL (bug 4377)
1369 http://example.com/1[2345
1371 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1376 External links: open square bracket forbidden in URL (named) (bug 4377)
1378 [http://example.com/1[2345]
1380 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1385 External links: nowiki in URL link text (bug 6230)
1387 [http://example.com/ <nowiki>''example site''</nowiki>]
1389 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1394 External links: newline forbidden in text (bug 6230 regression check)
1396 [http://example.com/ first
1399 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1405 External links: protocol-relative URL in brackets
1407 [//example.com/ Test]
1409 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1414 External links: protocol-relative URL in brackets without text
1418 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1423 External links: protocol-relative URL in free text is left alone
1427 <p>//example.com/Foo
1432 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1434 foo//example.com/Foo
1436 <p>foo//example.com/Foo
1443 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1445 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1450 External image from https
1452 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1454 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1459 Link to non-http image, no img tag
1461 Link to non-http image, no img tag: ftp://example.com/test.jpg
1463 <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>
1468 External links: terminating separator
1470 Terminating separator: http://example.com/thing,
1472 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1477 External links: intervening separator
1479 Intervening separator: http://example.com/1,2,3
1481 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1486 External links: old bug with URL in query
1488 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1490 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1495 External links: old URL-in-URL bug, mixed protocols
1497 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1499 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1504 External links: URL in text
1506 URL in text: [http://example.com http://example.com]
1508 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1513 External links: Clickable images
1515 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1517 <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>
1522 External links: raw ampersand
1524 Old & use: http://x&y
1526 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1531 External links: encoded ampersand
1533 Old & use: http://x&y
1535 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1540 External links: encoded equals (bug 6102)
1542 http://example.com/?foo=bar
1544 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1549 External links: [raw ampersand]
1551 Old & use: [http://x&y]
1553 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1558 External links: [encoded ampersand]
1560 Old & use: [http://x&y]
1562 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1567 External links: [encoded equals] (bug 6102)
1569 [http://example.com/?foo=bar]
1571 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1576 External links: [IDN ignored character reference in hostname; strip it right off]
1578 [http://e‌xample.com/]
1580 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1585 External links: IDN ignored character reference in hostname; strip it right off
1587 http://e‌xample.com/
1589 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1594 External links: www.jpeg.org (bug 554)
1598 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1603 External links: URL within URL (original bug 2)
1605 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1607 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1612 BUG 361: URL inside bracketed URL
1614 [http://www.example.com/foo http://www.example.com/bar]
1616 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1621 BUG 361: URL within URL, not bracketed
1623 http://www.example.com/foo?=http://www.example.com/bar
1625 <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>
1630 BUG 289: ">"-token in URL-tail
1632 http://www.example.com/<hello>
1634 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1639 BUG 289: literal ">"-token in URL-tail
1641 http://www.example.com/<b>html</b>
1643 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1648 BUG 289: ">"-token in bracketed URL
1650 [http://www.example.com/<hello> stuff]
1652 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1657 BUG 289: literal ">"-token in bracketed URL
1659 [http://www.example.com/<b>html</b> stuff]
1661 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1666 BUG 289: literal double quote at end of URL
1668 http://www.example.com/"hello"
1670 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1675 BUG 289: literal double quote in bracketed URL
1677 [http://www.example.com/"hello" stuff]
1679 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1684 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1686 [http://www.example.com test]
1688 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1693 External links: wiki links within external link (Bug 3695)
1695 [http://example.com [[wikilink]] embedded in ext link]
1697 <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>
1702 BUG 787: Links with one slash after the url protocol are invalid
1706 [http:/example.com title]
1708 <p>http:/example.com
1709 </p><p>[http:/example.com title]
1714 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1716 ''[http://example.com text'']
1717 [http://example.com '''text]'''
1718 ''Something [http://example.com in italic'']
1719 ''Something [http://example.com mixed''''', even bold]'''
1720 '''''Now [http://example.com both''''']
1722 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1723 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1724 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1725 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1726 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1732 Bug 4781: %26 in URL
1734 http://www.example.com/?title=AT%26T
1736 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1740 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1741 # % is actually legal in HTML5. Any change in output would need testing though.
1743 Bug 4781, 5267: %25 in URL
1745 http://www.example.com/?title=100%25_Bran
1747 <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>
1752 Bug 4781, 5267: %28, %29 in URL
1754 http://www.example.com/?title=Ben-Hur_%281959_film%29
1756 <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>
1762 Bug 4781: %26 in autonumber URL
1764 [http://www.example.com/?title=AT%26T]
1766 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1771 Bug 4781, 5267: %26 in autonumber URL
1773 [http://www.example.com/?title=100%25_Bran]
1775 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1780 Bug 4781, 5267: %28, %29 in autonumber URL
1782 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1784 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1790 Bug 4781: %26 in bracketed URL
1792 [http://www.example.com/?title=AT%26T link]
1794 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1799 Bug 4781, 5267: %26 in bracketed URL
1801 [http://www.example.com/?title=100%25_Bran link]
1803 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1808 Bug 4781, 5267: %28, %29 in bracketed URL
1810 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1812 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1817 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1819 Some [http://example.com/ pretty ''italics'' and stuff]!
1821 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1826 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1828 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1830 <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>
1835 External link containing double-single-quotes with no space separating the url from text in italics
1837 [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]].]
1839 <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>
1844 URL-encoding in URL functions (single parameter)
1846 {{localurl:Some page|amp=&}}
1848 <p>/index.php?title=Some_page&amp=&
1853 URL-encoding in URL functions (multiple parameters)
1855 {{localurl:Some page|q=?&=&}}
1857 <p>/index.php?title=Some_page&q=?&amp=&
1864 http://example.com/index.php?foozoid%5B%5D=bar
1866 http://example.com/index.php?foozoid[]=bar
1868 <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>
1869 </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>
1874 IPv6 urls (bug 21261)
1878 http://[2404:130:0:1000::187:2]/index.php
1880 <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>
1891 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1893 Normal text. '''''Bold italic text.''''' Normal text.
1895 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1896 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1902 Unclosed and unmatched quotes
1904 '''''Bold italic text '''with bold deactivated''' in between.'''''
1906 '''''Bold italic text ''with italic deactivated'' in between.'''''
1910 ..spanning two paragraphs (should not work).'''
1912 '''Bold tag left open
1914 ''Italic tag left open
1918 <!-- Unmatching number of opening, closing tags: -->
1919 '''This year''''s election ''should'' beat '''last year''''s.
1921 ''Tom'''s car is bigger than ''Susan'''s.
1923 Plain ''italic'''s plain
1925 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1926 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1927 </p><p><b>Bold text..</b>
1928 </p><p>..spanning two paragraphs (should not work).
1929 </p><p><b>Bold tag left open</b>
1930 </p><p><i>Italic tag left open</i>
1932 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1933 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1934 </p><p>Plain <i>italic'</i>s plain
1941 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1944 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1945 # is the bare minimun required by the spec, see:
1946 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1948 A table with no data.
1954 # A table with nothing but a caption is invalid XHTML, we might want to render
1955 # this as <p>caption</p>
1957 A table with nothing but a caption
1965 </caption><tr><td></td></tr></table>
1991 Multiplication table
1993 {| border="1" cellpadding="2"
1994 |+Multiplication table
1996 ! × !! 1 !! 2 !! 3
2014 <table border="1" cellpadding="2">
2015 <caption>Multiplication table
2066 |rowspan=2| Cell 2, row 1 (and 2)
2077 <td rowspan="2"> Cell 2, row 1 (and 2)
2095 {| bgcolor=#ABCDEF border=2
2100 |the original table again
2108 <table bgcolor="#ABCDEF" border="2">
2116 <td>the original table again
2122 Invalid attributes in table cell (bug 1830)
2137 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2140 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2144 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2145 <td>]" onmouseover="alert(document.cookie)">test
2154 Indented table markup mixed with indented pre content (proposed in bug 6200)
2159 Text that should be rendered preformatted
2167 <pre>Text that should be rendered preformatted
2180 Plain link, capitalized
2184 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2189 Plain link, uncapitalized
2193 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2200 [[Main Page|The Main Page]]
2202 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2211 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2216 Broken link with fragment
2218 [[Zigzagzogzagzig#zug]]
2220 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2225 Special page link with fragment
2227 [[Special:Version#anchor]]
2229 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2234 Nonexistent special page link with fragment
2236 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2238 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2245 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2247 <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>
2254 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2256 <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>!!!
2261 Link with 3 brackets
2270 Piped link with 3 brackets
2272 [[[main page|the main page]]]
2274 <p>[[[main page|the main page]]]
2279 Link with multiple pipes
2281 [[Main Page|The|Main|Page]]
2283 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2290 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2292 <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>
2297 Piped link to namespace
2299 [[Meta:Disclaimers|The disclaimers]]
2301 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2308 [[Usually caused by a typo (oops}]]
2310 <p>[[Usually caused by a typo (oops}]]
2315 Link containing % (not as a hex sequence)
2319 <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>
2324 Link containing % as a single hex sequence interpreted to char
2328 <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>
2333 Link containing % as a double hex sequence interpreted to hex sequence
2337 <p>[[7%2525 Solution]]
2342 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2343 Example for such a section: == < ==
2345 [[%23%3c]][[%23%3e]]
2347 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2352 Link containing "<#" and ">#" as a hex sequences
2354 [[%3c%23]][[%3e%23]]
2356 <p>[[%3c%23]][[%3e%23]]
2361 Link containing double-single-quotes '' (bug 4598)
2363 [[Lista d''e paise d''o munno]]
2365 <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>
2370 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2372 Some [[Link|pretty ''italics'' and stuff]]!
2374 <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>!
2379 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2381 ''Some [[Link|pretty ''italics'' and stuff]]!
2383 <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>
2388 Link with double quotes in title part (literal) and alternate part (interpreted)
2390 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2394 [[''Pentecoste''|Pentecoste]]
2396 [[''Pentecoste''|''Pentecoste'']]
2398 <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>
2399 </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>
2400 </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>
2401 </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>
2408 [[http://www.example.com]]
2410 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2415 Plain link to URL with link text
2417 [[http://www.example.com Link text]]
2419 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2424 Plain link to protocol-relative URL
2426 [[//www.example.com]]
2428 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2433 Plain link to protocol-relative URL with link text
2435 [[//www.example.com Link text]]
2437 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2442 # I'm fairly sure the expected result here is wrong.
2443 # We want these to be URL links, not pseudo-pages with URLs for titles....
2444 # However the current output is also pretty screwy.
2447 # I'm changing it to match the current output--it arguably makes more
2448 # sense in the light of the test above. Old expected result was:
2449 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2451 # But I think this test is bordering on "garbage in, garbage out" anyway.
2456 Piped link to URL: [[http://www.example.com|an example URL]]
2458 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2463 BUG 2: [[page|http://url/]] should link to page, not http://url/
2465 [[Main Page|http://url/]]
2467 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2472 BUG 337: Escaped self-links should be bold
2476 [[Bug462]] [[Bug462]]
2478 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2483 Self-link to section should not be bold
2487 [[Main Page#section]]
2489 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2500 Self-link to numeric title
2506 <p><strong class="selflink">0</strong>
2511 Link to numeric-equivalent title
2517 <p><a href="/wiki/00" title="00">00</a>
2522 <nowiki> inside a link
2524 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2526 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2531 Non-breaking spaces in title
2533 [[ Main Page ]]
2535 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2540 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2546 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2551 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2557 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2562 Internal link with en linktrail: no apostrophes (bug 27473)
2568 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2573 Internal link with ca linktrail with apostrophes (bug 27473)
2579 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2584 Internal link with kaa linktrail with apostrophes (bug 27473)
2590 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2595 ### Interwiki links (see maintenance/interwiki.sql)
2599 Inline interwiki link
2601 [[MeatBall:SoftSecurity]]
2603 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2608 Inline interwiki link with empty title (bug 2372)
2612 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2617 Interwiki link encoding conversion (bug 1636)
2619 *[[Wikipedia:ro:Olteniţa]]
2620 *[[Wikipedia:ro:Olteniţa]]
2622 <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>
2623 </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>
2629 Interwiki link with fragment (bug 2130)
2631 [[MeatBall:SoftSecurity#foo]]
2633 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2648 Double interlanguage link
2659 Interlanguage link, with prefix links
2671 Double interlanguage link, with prefix links (bug 8897)
2698 Incorrecly removing closing slashes from correctly formed XHTML
2700 <br style="clear:both;" />
2702 <p><br style="clear:both;" />
2707 Failing to transform badly formed HTML into correct XHTML
2709 <br style="clear: left;">
2710 <br style="clear: right;">
2711 <br style="clear: both;">
2713 <p><br style="clear: left;" />
2714 <br style="clear: right;" />
2715 <br style="clear: both;" />
2720 Horizontal ruler (should it add that extra space?)
2734 Horizontal ruler -- 4+ dashes render hr
2743 Horizontal ruler -- eats additional dashes on the same line
2752 Horizontal ruler -- does not collaps dashes on consecutive lines
2763 Horizontal ruler -- <4 dashes render as plain text
2772 ### Block-level elements
2795 <ol><li>Numbered list
2812 ***#Number on level 4
2814 **#Number on level 3
2815 **#Number on level 3
2819 #** Level 3, but ordered
2822 <ol><li> with numbers
2824 <ul><li> and bullets
2826 <ol><li> and numbers
2828 </li><li>bullets again
2829 <ul><li>bullet level 2
2830 <ul><li>bullet level 3
2831 <ol><li>Number on level 4
2834 </li><li>bullet level 2
2835 <ol><li>Number on level 3
2836 </li><li>Number on level 3
2839 <ol><li>number level 2
2842 <ul><li><ul><li> Level 3
2846 <ol><li><ul><li><ul><li> Level 3, but ordered
2880 Nested lists 3 (first element empty)
2893 Nested lists 4 (first element empty)
2906 Nested lists 5 (both elements empty)
2919 Nested lists 6 (both elements empty)
2932 Nested lists 7 (skip initial nesting levels)
2936 <ul><li><ul><li><ul><li> foo
2944 Nested lists 8 (multiple nesting transitions)
2952 <ul><li><ul><li> bar
2963 List items are not parsed correctly following a <pre> block (bug 785)
2969 <ul><li> <pre>foo</pre>
2970 </li><li> <pre>bar</pre>
2977 List items from template
2988 * notSOL{{inner list}}
3007 List interrupted by empty line or heading
3017 <ul><li><ul><li> bar
3020 <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>
3021 <ul><li> Another list item
3032 Magic Word: {{CURRENTDAY}}
3041 Magic Word: {{CURRENTDAY2}}
3050 Magic Word: {{CURRENTDAYNAME}}
3059 Magic Word: {{CURRENTDOW}}
3068 Magic Word: {{CURRENTMONTH}}
3077 Magic Word: {{CURRENTMONTHABBREV}}
3079 {{CURRENTMONTHABBREV}}
3086 Magic Word: {{CURRENTMONTHNAME}}
3088 {{CURRENTMONTHNAME}}
3095 Magic Word: {{CURRENTMONTHNAMEGEN}}
3097 {{CURRENTMONTHNAMEGEN}}
3104 Magic Word: {{CURRENTTIME}}
3113 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3122 Magic Word: {{CURRENTYEAR}}
3131 Magic Word: {{FULLPAGENAME}}
3133 title=[[User:Ævar Arnfjörð Bjarmason]]
3137 <p>User:Ævar Arnfjörð Bjarmason
3142 Magic Word: {{FULLPAGENAMEE}}
3144 title=[[User:Ævar Arnfjörð Bjarmason]]
3148 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3153 Magic Word: {{NAMESPACE}}
3155 title=[[User:Ævar Arnfjörð Bjarmason]]
3164 Magic Word: {{NAMESPACEE}}
3166 title=[[User:Ævar Arnfjörð Bjarmason]]
3175 Magic Word: {{NAMESPACENUMBER}}
3177 title=[[User:Ævar Arnfjörð Bjarmason]]
3186 Magic Word: {{NUMBEROFFILES}}
3195 Magic Word: {{PAGENAME}}
3197 title=[[User:Ævar Arnfjörð Bjarmason]]
3201 <p>Ævar Arnfjörð Bjarmason
3206 Magic Word: {{PAGENAME}} with metacharacters
3208 title=[['foo & bar = baz']]
3212 <p><i>'foo & bar = baz'</i>
3217 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3219 title=[[*RFC 1234 http://example.com/]]
3223 <p>*RFC 1234 http://example.com/
3228 Magic Word: {{PAGENAMEE}}
3230 title=[[User:Ævar Arnfjörð Bjarmason]]
3234 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3239 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3241 title=[[*RFC 1234 http://example.com/]]
3245 <p>*RFC_1234_http://example.com/
3250 Magic Word: {{REVISIONID}}
3259 Magic Word: {{SCRIPTPATH}}
3268 Magic Word: {{SERVER}}
3272 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3277 Magic Word: {{SERVERNAME}}
3286 Magic Word: {{SITENAME}}
3295 Namespace 1 {{ns:1}}
3304 Namespace 1 {{ns:01}}
3313 Namespace 0 {{ns:0}} (bug 4783)
3321 Namespace 0 {{ns:00}} (bug 4783)
3329 Namespace -1 {{ns:-1}}
3338 Namespace User {{ns:User}}
3347 Namespace User talk {{ns:User_talk}}
3356 Namespace User talk {{ns:uSeR tAlK}}
3365 Namespace File {{ns:File}}
3374 Namespace File {{ns:Image}}
3383 Namespace (lang=de) Benutzer {{ns:User}}
3394 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3400 <p>Benutzer Diskussion
3408 {{urlencode:hi world?!}}
3409 {{urlencode:hi world?!|WIKI}}
3410 {{urlencode:hi world?!|PATH}}
3411 {{urlencode:hi world?!|QUERY}}
3424 Magic links: internal link to RFC (bug 479)
3428 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3433 Magic links: RFC (bug 479)
3437 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3442 Magic links: ISBN (bug 1937)
3446 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3451 Magic links: PMID incorrectly converts space to underscore
3455 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3464 Nonexistent template
3466 {{thistemplatedoesnotexist}}
3468 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3475 This is a test template
3483 <p>This is a test template
3488 Template with explicit namespace
3492 <p>This is a test template
3500 This is a test template with parameter {{{param}}}
3506 {{paramtest|param=foo}}
3508 <p>This is a test template with parameter foo
3513 Template:paramtestnum
3519 Template unnamed parameter
3521 {{paramtestnum|Main Page|the main page}}
3523 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3528 Template:templatesimple
3534 Template:templateredirect
3536 #redirect [[Template:templatesimple]]
3540 Template:templateasargtestnum
3546 Template:templateasargtest
3548 {{template{{{templ}}}}}
3552 Template:templateasargtest2
3558 Template with template name as unnamed argument
3560 {{templateasargtestnum|templatesimple}}
3567 Template with template name as argument
3569 {{templateasargtest|templ=simple}}
3576 Template with template name as argument (2)
3578 {{templateasargtest2|templ=templatesimple}}
3585 Template:templateasargtestdefault
3587 {{{{{templ|templatesimple}}}}}
3597 Template with default value
3599 {{templateasargtestdefault}}
3606 Template with default value (value set)
3608 {{templateasargtestdefault|templ=templa}}
3617 {{templateredirect}}
3624 Template with argument in separate line
3626 {{ templateasargtest |
3634 Template with complex template as argument
3637 param ={{ templateasargtest |
3640 <p>This is a test template with parameter (test)
3645 Template with thumb image (with link in description)
3648 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3650 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>
3655 Template:complextemplate
3657 {{{1}}} {{paramtest|
3658 param ={{{param}}}}}
3662 Template with complex arguments
3665 param ={{ templateasargtest |
3666 templ = simple }}|[[Template:complextemplate|link]]}}
3668 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3673 BUG 553: link with two variables in a piped link
3676 |[[{{{1}}}|{{{2}}}]]
3681 <td>[[{{{1}}}|{{{2}}}]]
3687 Magic variable as template parameter
3689 {{paramtest|param={{SITENAME}}}}
3691 <p>This is a test template with parameter MediaWiki
3698 [[{{{param}}}|link]]
3702 Template parameter as link source
3704 {{linktest|param=Main Page}}
3706 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3714 including another template, {{paramtest|param={{{arg}}}}}
3718 Template passing argument to another template
3720 {{paramtest2|arg='hmm'}}
3722 <p>including another template, This is a test template with parameter 'hmm'
3733 Template as link source
3737 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3755 Template infinite loop
3759 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3764 Template from main namespace
3783 BUG 529: Template with table, not included at beginning of line
3802 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3822 BUG 41: Template parameters shown as broken links
3834 ''None'' of '''this''' should be
3836 but rather passed unmodified
3840 # hmm, fix this or just deprecate msgnw and document its behavior?
3846 {{msgnw:MSGNW test}}
3848 <p>''None'' of '''this''' should be
3850 but rather passed unmodified
3858 {{int:youhavenewmessages|lots of money|not!}}
3860 <p>You have lots of money (not!).
3867 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3871 <includeonly> and <noinclude> being included
3882 <onlyinclude>Foo</onlyinclude>bar
3886 <onlyinclude> being included
3898 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3902 <onlyinclude> and <includeonly> being included
3911 <includeonly> and <noinclude> on a page
3913 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3920 <onlyinclude> on a page
3922 <onlyinclude>Foo</onlyinclude>bar
3929 Template:Includeonly section
3932 ==Includeonly section==
3938 Bug 6563: Edit link generation for section shown by <includeonly>
3940 {{includeonly section}}
3942 <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>
3943 <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>
3947 # Uses same input as the contents of [[Template:Includeonly section]]
3949 Bug 6563: Section extraction for section shown by <includeonly>
3954 ==Includeonly section==
3962 Bug 6563: Edit link generation for section suppressed by <includeonly>
3965 ==Includeonly section==
3969 <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>
3974 Bug 6563: Section extraction for section suppressed by <includeonly>
3979 ==Includeonly section==
3987 ### Pre-save transform tests
3990 pre-save transform: subst:
3996 This is a test template
4000 pre-save transform: normal template
4010 pre-save transform: nonexistent template
4014 {{thistemplatedoesnotexist}}
4016 {{thistemplatedoesnotexist}}
4021 pre-save transform: subst magic variables
4030 # This is bug 89, which I fixed. -- wtm
4032 pre-save transform: subst: templates with parameters
4036 {{subst:paramtest|param="something else"}}
4038 This is a test template with parameter "something else"
4044 <nowiki>'''not wiki'''</nowiki>
4048 pre-save transform: nowiki in subst (bug 1188)
4052 {{subst:nowikitest}}
4054 <nowiki>'''not wiki'''</nowiki>
4059 Template:commenttest
4061 This template has <!-- a comment --> in it.
4065 pre-save transform: comment in subst (bug 1936)
4069 {{subst:commenttest}}
4071 This template has <!-- a comment --> in it.
4075 pre-save transform: unclosed tag
4079 <nowiki>'''not wiki'''
4081 <nowiki>'''not wiki'''
4085 pre-save transform: mixed tag case
4089 <NOwiki>'''not wiki'''</noWIKI>
4091 <NOwiki>'''not wiki'''</noWIKI>
4095 pre-save transform: unclosed comment in <nowiki>
4099 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4101 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4107 <span onmouseover="alert('crap')">Oh no</span>
4111 (confirming safety of fix for subst bug 1936)
4113 {{Template:dangerous}}
4115 <p><span>Oh no</span>
4120 pre-save transform: comment containing gallery (bug 5024)
4124 <!-- <gallery>data</gallery> -->
4126 <!-- <gallery>data</gallery> -->
4130 pre-save transform: comment containing extension
4134 <!-- <tag>data</tag> -->
4136 <!-- <tag>data</tag> -->
4140 pre-save transform: comment containing nowiki
4144 <!-- <nowiki>data</nowiki> -->
4146 <!-- <nowiki>data</nowiki> -->
4150 pre-save transform: <noinclude> in subst (bug 3298)
4160 pre-save transform: <onlyinclude> in subst (bug 3298)
4172 {{<includeonly>subst:</includeonly>Includes}}
4176 Template:SafeSubstTest
4178 {{<includeonly>safesubst:</includeonly>Includes}}
4182 bug 22297: safesubst: works during PST
4186 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4192 bug 22297: safesubst: works during normal parse
4201 subst: does not work during normal parse
4205 <p>{{subst:Includes}}
4210 pre-save transform: context links ("pipe trick")
4214 [[Article (context)|]]
4217 [[Bar:Article (context)|]]
4218 [[:Bar:Article (context)|]]
4220 [[|Article (context)]]
4224 [[Article (context)|Article]]
4225 [[Bar:Article|Article]]
4226 [[:Bar:Article|Article]]
4227 [[Bar:Article (context)|Article]]
4228 [[:Bar:Article (context)|Article]]
4230 [[Article (context)]]
4231 [[Bar:X (Y) Z|X (Y) Z]]
4232 [[:Bar:X (Y) Z|X (Y) Z]]
4236 pre-save transform: context links ("pipe trick") with interwiki prefix
4240 [[interwiki:Article|]]
4241 [[:interwiki:Article|]]
4242 [[interwiki:Bar:Article|]]
4243 [[:interwiki:Bar:Article|]]
4245 [[interwiki:Article|Article]]
4246 [[:interwiki:Article|Article]]
4247 [[interwiki:Bar:Article|Bar:Article]]
4248 [[:interwiki:Bar:Article|Bar:Article]]
4252 pre-save transform: context links ("pipe trick") with parens in title
4254 pst title=[[Somearticle (context)]]
4258 [[Article (context)|Article]]
4262 pre-save transform: context links ("pipe trick") with comma in title
4264 pst title=[[Someplace, Somewhere]]
4267 [[Otherplace, Elsewhere|]]
4268 [[Otherplace, Elsewhere, Anywhere|]]
4270 [[Otherplace, Somewhere|Otherplace]]
4271 [[Otherplace, Elsewhere|Otherplace]]
4272 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4276 pre-save transform: context links ("pipe trick") with parens and comma
4278 pst title=[[Someplace (IGNORED), Somewhere]]
4281 [[Otherplace (place), Elsewhere|]]
4283 [[Otherplace, Somewhere|Otherplace]]
4284 [[Otherplace (place), Elsewhere|Otherplace]]
4288 pre-save transform: context links ("pipe trick") with comma and parens
4290 pst title=[[Who, me? (context)]]
4293 [[Me, Myself, and I (1937 song)|]]
4295 [[Yes, you. (context)|Yes, you.]]
4296 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4300 pre-save transform: context links ("pipe trick") with namespace
4302 pst title=[[Ns:Somearticle]]
4306 [[Ns:Article|Article]]
4310 pre-save transform: context links ("pipe trick") with namespace and parens
4312 pst title=[[Ns:Somearticle (context)]]
4316 [[Ns:Article (context)|Article]]
4320 pre-save transform: context links ("pipe trick") with namespace and comma
4322 pst title=[[Ns:Somearticle, Context, Whatever]]
4326 [[Ns:Article, Context, Whatever|Article]]
4330 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4332 pst title=[[Ns:Somearticle, Context (context)]]
4336 [[Ns:Article (context)|Article]]
4340 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4342 pst title=[[Ns:Somearticle (IGNORED), Context]]
4346 [[Ns:Article, Context|Article]]
4350 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4354 [[Article(context)|]]
4355 [[Bar:Article(context)|]]
4356 [[:Bar:Article(context)|]]
4357 [[|Article(context)]]
4361 [[Article(context)|Article]]
4362 [[Bar:Article(context)|Article]]
4363 [[:Bar:Article(context)|Article]]
4364 [[Article(context)]]
4366 [[:Bar:X(Y)Z|X(Y)Z]]
4370 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4374 [[Article (context)|]]
4375 [[Bar:Article (context)|]]
4376 [[:Bar:Article (context)|]]
4377 [[|Article (context)]]
4381 [[Article (context)|Article]]
4382 [[Bar:Article (context)|Article]]
4383 [[:Bar:Article (context)|Article]]
4384 [[Article (context)]]
4385 [[Bar:X (Y) Z|X (Y) Z]]
4386 [[:Bar:X (Y) Z|X (Y) Z]]
4390 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4394 [[Article(context)|]]
4395 [[Bar:Article(context)|]]
4396 [[:Bar:Article(context)|]]
4397 [[|Article(context)]]
4401 [[Article(context)|Article]]
4402 [[Bar:Article(context)|Article]]
4403 [[:Bar:Article(context)|Article]]
4404 [[Article(context)]]
4406 [[:Bar:X(Y)Z|X(Y)Z]]
4410 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4414 [[Article (context), context|]]
4415 [[Article (context),context|]]
4416 [[Bar:Article (context), context|]]
4417 [[Bar:Article (context),context|]]
4418 [[:Bar:Article (context), context|]]
4419 [[:Bar:Article (context),context|]]
4421 [[Article (context), context|Article]]
4422 [[Article (context),context|Article]]
4423 [[Bar:Article (context), context|Article]]
4424 [[Bar:Article (context),context|Article]]
4425 [[:Bar:Article (context), context|Article]]
4426 [[:Bar:Article (context),context|Article]]
4430 pre-save transform: trim trailing empty lines
4434 Empty lines are trimmed
4440 Empty lines are trimmed
4444 pre-save transform: Signature expansion
4449 * <noinclude>~~~</noinclude>
4450 * <includeonly>~~~</includeonly>
4451 * <onlyinclude>~~~</onlyinclude>
4453 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4454 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4455 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4456 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4461 pre-save transform: Signature expansion in nowiki tags (bug 93)
4467 <nowiki>~~~~</nowiki>
4469 <includeonly><nowiki>~~~~</nowiki></includeonly>
4471 <noinclude><nowiki>~~~~</nowiki></noinclude>
4473 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4475 {{subst:Foo}} shall be converted to FOO
4477 As well as inside noinclude/onlyinclude
4478 <noinclude>{{subst:Foo}}</noinclude>
4479 <onlyinclude>{{subst:Foo}}</onlyinclude>
4481 But not inside includeonly
4482 <includeonly>{{subst:Foo}}</includeonly>
4486 <nowiki>~~~~</nowiki>
4488 <includeonly><nowiki>~~~~</nowiki></includeonly>
4490 <noinclude><nowiki>~~~~</nowiki></noinclude>
4492 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4494 FOO shall be converted to FOO
4496 As well as inside noinclude/onlyinclude
4497 <noinclude>FOO</noinclude>
4498 <onlyinclude>FOO</onlyinclude>
4500 But not inside includeonly
4501 <includeonly>{{subst:Foo}}</includeonly>
4505 ### Message transform tests
4508 message transform: magic variables
4518 message transform: should not transform wiki markup
4528 message transform: <noinclude> in transcluded template (bug 4926)
4538 message transform: <onlyinclude> in transcluded template (bug 4926)
4548 {{#special:}} page name, known
4552 {{#special:Recentchanges}}
4554 Special:RecentChanges
4558 {{#special:}} page name with subpage, known
4562 {{#special:Recentchanges/param}}
4564 Special:RecentChanges/param
4568 {{#special:}} page name, unknown
4572 {{#special:foobarnonexistent}}
4574 No such special page
4578 {{#speciale:}} page name, known
4582 {{#speciale:Recentchanges}}
4584 Special:RecentChanges
4588 {{#speciale:}} page name with subpage, known
4592 {{#speciale:Recentchanges/param}}
4594 Special:RecentChanges/param
4598 {{#speciale:}} page name, unknown
4602 {{#speciale:foobarnonexistent}}
4604 No_such_special_page
4613 [[Image:foobar.jpg]]
4615 <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>
4622 [[Image:foobar.jpg|right]]
4624 <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>
4629 Simple image (using File: namespace, now canonical)
4633 <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>
4640 [[Image:foobar.jpg|right|Caption text]]
4642 <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>
4647 Image with link parameter, wiki target
4649 [[Image:foobar.jpg|link=Target page]]
4651 <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>
4656 Image with link parameter, URL target
4658 [[Image:foobar.jpg|link=http://example.com/]]
4660 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4665 Image with link parameter, wgExternalLinkTarget
4667 [[Image:foobar.jpg|link=http://example.com/]]
4669 wgExternalLinkTarget='foobar'
4671 <p><a href="http://example.com/" target="foobar"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4676 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4678 [[Image:foobar.jpg|link=http://example.com/|Title]]
4680 wgExternalLinkTarget='foobar'
4682 <p><a href="http://example.com/" title="Title" target="foobar"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4687 Image with empty link parameter
4689 [[Image:foobar.jpg|link=]]
4691 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4696 Image with link parameter (wiki target) and unnamed parameter
4698 [[Image:foobar.jpg|link=Target page|Title]]
4700 <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>
4705 Image with link parameter (URL target) and unnamed parameter
4707 [[Image:foobar.jpg|link=http://example.com/|Title]]
4709 <p><a href="http://example.com/" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4714 Thumbnail image with link parameter
4716 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4718 <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>
4723 Image with frame and link
4725 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4727 <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>
4732 Image with frame and link and explicit alt
4734 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4736 <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>
4741 Image with wiki markup in implicit alt
4743 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4745 <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>
4750 Image with wiki markup in explicit alt
4752 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4754 <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>
4759 Link to image page- image page normally doesn't exists, hence edit link
4760 Add test with existing image page
4761 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4765 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4770 bug 18784 Link to non-existent image page with caption should use caption as link text
4772 [[:Image:test|caption]]
4774 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4779 Frameless image caption with a free URL
4781 [[Image:foobar.jpg|http://example.com]]
4783 <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>
4788 Thumbnail image caption with a free URL
4790 [[Image:foobar.jpg|thumb|http://example.com]]
4792 <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>
4797 Thumbnail image caption with a free URL and explicit alt
4799 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4801 <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>
4806 BUG 1887: A ISBN with a thumbnail
4808 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4810 <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>
4815 BUG 1887: A RFC with a thumbnail
4817 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4819 <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>
4824 BUG 1887: A mailto link with a thumbnail
4826 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4828 <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>
4832 # Pending resolution to bug 368
4834 BUG 648: Frameless image caption with a link
4836 [[Image:foobar.jpg|text with a [[link]] in it]]
4838 <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>
4843 BUG 648: Frameless image caption with a link (suffix)
4845 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4847 <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>
4852 BUG 648: Frameless image caption with an interwiki link
4854 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4856 <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>
4861 BUG 648: Frameless image caption with a piped interwiki link
4863 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4865 <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>
4870 Escape HTML special chars in image alt text
4872 [[Image:foobar.jpg|& < > "]]
4874 <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>
4879 BUG 499: Alt text should have Ӓ, not &1234;
4881 [[Image:foobar.jpg|♀]]
4883 <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>
4888 Broken image caption with link
4890 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4892 <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.
4897 Image caption containing another image
4899 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4901 <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>
4906 Image caption containing a newline
4908 [[Image:Foobar.jpg|This
4911 <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>
4917 Bug 3090: External links other than http: in image captions
4919 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4921 <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>
4928 #REDIRECT [[File:Barfoo.jpg]]
4934 [[Image:Barfoo.jpg]]
4936 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4941 Missing image with uploads disabled
4945 [[Image:Foobaz.jpg]]
4947 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4956 Subpage test/subpage
4964 subpage title=[[Subpage test]]
4968 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4973 Subpage noslash link
4975 subpage title=[[Subpage test]]
4979 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4988 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4993 BUG 561: {{/Subpage}}
4995 subpage title=[[Page]]
4999 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5007 Category:MediaWiki User's Guide
5015 [[:Category:MediaWiki User's Guide]]
5017 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5026 [[Category:MediaWiki User's Guide]]
5028 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5032 PAGESINCATEGORY invalid title fatal (r33546 fix)
5034 {{PAGESINCATEGORY:<bogus>}}
5041 ### Inter-language links
5044 Inter-language links
5050 [[zh:食品]]
5052 es:Alimento fr:Nourriture zh:食品
5059 Basic section headings
5066 ===Smaller headline===
5069 <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>
5072 <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>
5075 <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>
5081 Section headings with TOC
5084 === Subheadline 1 ===
5085 ===== Skipping a level =====
5086 ====== Skipping a level ======
5090 ===Another headline===
5092 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5094 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5096 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5098 <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>
5100 <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>
5107 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5109 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
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>
5115 <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>
5116 <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>
5117 <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>
5118 <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>
5121 <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>
5125 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5127 Handling of sections up to level 6 and beyond
5130 == Level 2 Heading==
5131 === Level 3 Heading===
5132 ==== Level 4 Heading====
5133 ===== Level 5 Heading=====
5134 ====== Level 6 Heading======
5135 ======= Level 7 Heading=======
5136 ======== Level 8 Heading========
5137 ========= Level 9 Heading=========
5138 ========== Level 10 Heading==========
5140 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5142 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5144 <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>
5146 <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>
5148 <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>
5150 <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>
5152 <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>
5153 <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>
5154 <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>
5155 <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>
5156 <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>
5169 <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>
5170 <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>
5171 <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>
5172 <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>
5173 <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>
5174 <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>
5175 <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>
5176 <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>
5177 <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>
5178 <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>
5183 TOC regression (bug 9764)
5187 ==== title 1.1.1 ====
5192 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5194 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5196 <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>
5198 <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>
5201 <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>
5204 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5206 <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>
5211 <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>
5212 <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>
5213 <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>
5214 <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>
5215 <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>
5216 <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>
5221 TOC with wgMaxTocLevel=3 (bug 6204)
5227 ==== title 1.1.1 ====
5232 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5234 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5236 <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>
5237 <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>
5240 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5242 <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>
5247 <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>
5248 <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>
5249 <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>
5250 <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>
5251 <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>
5252 <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>
5257 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5263 ====Section 1.1.1====
5264 ====Section 1.1.1.1====
5267 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5269 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5271 <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>
5274 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5277 <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>
5278 <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>
5279 <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>
5280 <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>
5281 <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>
5287 Resolving duplicate section names
5292 <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>
5293 <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>
5298 Resolving duplicate section names with differing case (bug 10721)
5303 <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>
5304 <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>
5316 Template with sections, __NOTOC__
5323 <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>
5324 <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>
5325 <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>
5326 <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>
5331 __NOEDITSECTION__ keyword
5337 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5338 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5343 Link inside a section heading
5345 ==Section with a [[Main Page|link]] in it==
5347 <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>
5352 TOC regression (bug 12077)
5359 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5361 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5363 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
5366 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
5369 <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>
5370 <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>
5371 <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>
5376 BUG 1219 URL next to image (good)
5378 http://example.com [[Image:foobar.jpg]]
5380 <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>
5385 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5388 The line above must have a trailing space!
5391 But just in case it doesn't...
5393 <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>
5394 <p>The line above must have a trailing space!
5396 <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>
5397 <p>But just in case it doesn't...
5402 Header with special characters (bug 25462)
5404 The tooltips shall not show entities to the user (ie. be double escaped)
5421 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5423 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5425 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5426 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5427 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5428 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5429 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5432 <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>
5435 <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>
5438 <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>
5441 <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>
5444 <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>
5450 BUG 1219 URL next to image (broken)
5452 http://example.com[[Image:foobar.jpg]]
5454 <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>
5459 Bug 1186 news: in the middle of text
5461 http://en.wikinews.org/wiki/Wikinews:Workplace
5463 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5469 Namespaced link must have a title
5478 Namespaced link must have a title (bad fragment version)
5480 [[Project:#fragment]]
5482 <p>[[Project:#fragment]]
5488 div with no attributes
5490 <div>HTML rocks</div>
5492 <div>HTML rocks</div>
5497 div with double-quoted attribute
5499 <div id="rock">HTML rocks</div>
5501 <div id="rock">HTML rocks</div>
5506 div with single-quoted attribute
5508 <div id='rock'>HTML rocks</div>
5510 <div id="rock">HTML rocks</div>
5515 div with unquoted attribute
5517 <div id=rock>HTML rocks</div>
5519 <div id="rock">HTML rocks</div>
5524 div with illegal double attributes
5526 <div id="a" id="b">HTML rocks</div>
5528 <div id="b">HTML rocks</div>
5533 HTML multiple attributes correction
5535 <p class="error" class="awesome">Awesome!</p>
5537 <p class="awesome">Awesome!</p>
5542 Table multiple attributes correction
5545 !+ class="error" class="awesome"| status
5550 <th class="awesome"> status
5558 <DIV ID="x">HTML ROCKS</DIV>
5560 <div id="x">HTML ROCKS</div>
5566 text with amp in the middle of nowhere
5570 <p>Remember AT&T?
5575 text with character entity: eacute
5577 I always thought é was a cute letter.
5579 <p>I always thought é was a cute letter.
5584 text with undefined character entity: xacute
5586 I always thought &xacute; was a cute letter.
5588 <p>I always thought &xacute; was a cute letter.
5600 [[Media:Foobar.jpg]]
5602 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5607 Media link with text
5609 [[Media:Foobar.jpg|A neat file to look at]]
5611 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5615 # FIXME: this is still bad HTML tag nesting
5617 Media link with nasty text
5618 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5620 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5622 <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>
5627 Media link to nonexistent file (bug 1702)
5629 [[Media:No such.jpg]]
5631 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5636 Image link to nonexistent file (bug 1850 - good)
5638 [[Image:No such.jpg]]
5640 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5645 :Image link to nonexistent file (bug 1850 - bad)
5647 [[:Image:No such.jpg]]
5649 <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>
5656 Character reference normalization in link text (bug 1938)
5658 [[Main Page|this&that]]
5660 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5667 Test for unicode normalization
5669 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5673 (bug 19451) Links should refer to the normalized form.
5681 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5682 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5683 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5684 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5685 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5690 Empty attribute crash test (bug 2067)
5692 <font color="">foo</font>
5694 <p><font color="">foo</font>
5699 Empty attribute crash test single-quotes (bug 2067)
5701 <font color=''>foo</font>
5703 <p><font color="">foo</font>
5708 Attribute test: equals, then nothing
5710 <font color=>foo</font>
5717 Attribute test: unquoted value
5719 <font color=x>foo</font>
5721 <p><font color="x">foo</font>
5726 Attribute test: unquoted but illegal value (hash)
5728 <font color=#x>foo</font>
5730 <p><font color="#x">foo</font>
5735 Attribute test: no value
5737 <font color>foo</font>
5739 <p><font color="color">foo</font>
5744 Bug 2095: link with three closing brackets
5748 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5753 Bug 2095: link with pipe and three closing brackets
5757 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5762 Bug 2095: link with pipe and three closing brackets, version 2
5764 [[Main Page|[http://example.com/]]]
5766 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5776 Template:Dangerous attribute
5778 " onmouseover="alert(document.cookie)
5782 Template:Dangerous style attribute
5784 border-size: expression(alert(document.cookie))
5790 <div style="float: right; {{{1}}}">Magic div</div>
5794 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5796 <div title="{{test}}"></div>
5798 <div title="This is a test template"></div>
5803 Bug 2304: HTML attribute safety (dangerous template; 2309)
5805 <div title="{{dangerous attribute}}"></div>
5807 <div title=""></div>
5812 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5814 <div style="{{dangerous style attribute}}"></div>
5816 <div style="/* insecure input */"></div>
5821 Bug 2304: HTML attribute safety (safe parameter; 2309)
5823 {{div style|width: 200px}}
5825 <div style="float: right; width: 200px">Magic div</div>
5830 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5832 {{div style|width: expression(alert(document.cookie))}}
5834 <div style="/* insecure input */">Magic div</div>
5839 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5841 {{div style|"><script>alert(document.cookie)</script>}}
5843 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5848 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5850 {{div style|" ><script>alert(document.cookie)</script>}}
5852 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5857 Bug 2304: HTML attribute safety (link)
5859 <div title="[[Main Page]]"></div>
5861 <div title="[[Main Page]]"></div>
5866 Bug 2304: HTML attribute safety (italics)
5868 <div title="''foobar''"></div>
5870 <div title="''foobar''"></div>
5875 Bug 2304: HTML attribute safety (bold)
5877 <div title="'''foobar'''"></div>
5879 <div title="'''foobar'''"></div>
5885 Bug 2304: HTML attribute safety (ISBN)
5887 <div title="ISBN 1234567890"></div>
5889 <div title="ISBN 1234567890"></div>
5894 Bug 2304: HTML attribute safety (RFC)
5896 <div title="RFC 1234"></div>
5898 <div title="RFC 1234"></div>
5903 Bug 2304: HTML attribute safety (PMID)
5905 <div title="PMID 1234567890"></div>
5907 <div title="PMID 1234567890"></div>
5912 Bug 2304: HTML attribute safety (web link)
5914 <div title="http://example.com/"></div>
5916 <div title="http://example.com/"></div>
5921 Bug 2304: HTML attribute safety (named web link)
5923 <div title="[http://example.com/ link]"></div>
5925 <div title="[http://example.com/ link]"></div>
5930 Bug 3244: HTML attribute safety (extension; safe)
5932 <div style="<nowiki>background:blue</nowiki>"></div>
5934 <div style="background:blue"></div>
5939 Bug 3244: HTML attribute safety (extension; unsafe)
5941 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5943 <div style="/* insecure input */"></div>
5947 # More MSIE fun discovered by Tom Gilder
5950 MSIE CSS safety test: spurious slash
5952 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5954 <div style="/* insecure input */">evil</div>
5959 MSIE CSS safety test: hex code
5961 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5963 <div style="/* insecure input */">evil</div>
5968 MSIE CSS safety test: comment in url
5970 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5972 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5977 MSIE CSS safety test: comment in expression
5979 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5981 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5987 Table attribute legitimate extension
5990 !+ style="<nowiki>color:blue</nowiki>"| status
5995 <th style="color:blue"> status
6001 Table attribute safety
6004 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6009 <th style="/* insecure input */"> status
6015 CSS line continuation 1
6017 <div style="background-image: u\ rl(test.jpg);"></div>
6019 <div style="/* insecure input */"></div>
6024 CSS line continuation 2
6026 <div style="background-image: u\ rl(test.jpg); "></div>
6028 <div style="/* insecure input */"></div>
6039 Expansion of multi-line templates in attribute values (bug 6255)
6041 <div style="background: {{identity|#00FF00}}">-</div>
6043 <div style="background: #00FF00">-</div>
6049 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6051 <div style="background:
6054 <div style="background: #00FF00">-</div>
6059 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6061 <div style="background: #00FF00">-</div>
6063 <div style="background: #00FF00">-</div>
6068 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6071 Parser hook: empty input
6084 Parser hook: empty input using terminated empty elements
6097 Parser hook: empty input using terminated empty elements (space before)
6110 Parser hook: basic input
6124 Parser hook: case insensitive
6138 Parser hook: case insensitive, redux
6151 Parser hook: nested tags
6155 <tag><tag></tag></tag>
6166 Parser hook: basic arguments
6168 <tag width=200 height = "100" depth = '50' square></tag>
6187 Parser hook: argument containing a forward slash (bug 5344)
6189 <tag filename='/tmp/bla'></tag>
6195 string(8) "/tmp/bla"
6202 Parser hook: empty input using terminated empty elements (bug 2374)
6216 # </tag> should be output literally since there is no matching tag that begins it
6218 Parser hook: basic arguments using terminated empty elements (bug 2374)
6220 <tag width=200 height = "100" depth = '50' square/>
6243 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6247 Parser hook: static parser hook not inside a comment
6249 <statictag>hello, world</statictag>
6250 <statictag action=flush/>
6258 Parser hook: static parser hook inside a comment
6260 <!-- <statictag>hello, world</statictag> -->
6261 <statictag action=flush/>
6267 # Nested template calls; this case was broken by Parser.php rev 1.506,
6271 Template:One-parameter
6273 (My parameter is: {{{1}}})
6277 Template:Map-one-parameter
6283 Nested template calls
6285 {{Map-one-parameter|One-parameter|param}}
6287 <p>(My parameter is: param)
6296 Sanitizer: Closing of open tags
6298 <s></s><table></table>
6300 <s></s><table></table>
6305 Sanitizer: Closing of open but not closed tags
6314 Sanitizer: Closing of closed but not open tags
6323 Sanitizer: Closing of closed but not open table tags
6325 Table not started</td></tr></table>
6327 <p>Table not started</td></tr></table>
6332 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6334 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6336 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6341 Sanitizer: Validating the contents of the id attribute (bug 4515)
6347 Something, but definitely not <br id="9" />...
6351 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
6355 <br id="foo" /><br id="foo" />
6357 Something need to be done. foo-2 ?
6361 Language converter: output gets cut off unexpectedly (bug 5757)
6365 this bit is safe: }-
6367 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6369 then we get cut off here: }-
6371 all additional text is vanished
6373 <p>this bit is safe: }-
6374 </p><p>but if we add a conversion instance: xxx
6375 </p><p>then we get cut off here: }-
6376 </p><p>all additional text is vanished
6381 Self closed html pairs (bug 5487)
6384 <center><font id="bug" />Centered text</center>
6385 <div><font id="bug2" />In div text</div>
6387 <center><font id="bug" />Centered text</center>
6388 <div><font id="bug2" />In div text</div>
6397 Punctuation: nbsp before exclamation
6401 <p>C'est grave !
6406 Punctuation: CSS !important (bug 11874)
6408 <div style="width:50% !important">important</div>
6410 <div style="width:50% !important">important</div>
6415 Punctuation: CSS ! important (bug 11874; with space after)
6417 <div style="width:50% ! important">important</div>
6419 <div style="width:50% ! important">important</div>
6425 HTML bullet list, closed tags (bug 5497)
6440 HTML bullet list, unclosed tags (bug 5497)
6457 HTML ordered list, closed tags (bug 5497)
6472 HTML ordered list, unclosed tags (bug 5497)
6489 HTML nested bullet list, closed tags (bug 5497)
6514 HTML nested bullet list, open tags (bug 5497)
6539 HTML nested ordered list, closed tags (bug 5497)
6564 HTML nested ordered list, open tags (bug 5497)
6589 HTML ordered list item with parameters oddity
6591 <ol><li id="fragment">One</li></ol>
6593 <ol><li id="fragment">One</li></ol>
6598 bug 5918: autonumbering
6600 [http://first/] [http://second] [ftp://ftp]
6604 [mailto:enclosed@mail.tld With target]
6606 [mailto:enclosed@mail.tld]
6608 mailto:inline@mail.tld
6610 <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>
6611 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6612 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6613 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6614 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6620 # Security and HTML correctness
6621 # From Nick Jenkins' fuzz testing
6625 Fuzz testing: Parser13
6640 Fuzz testing: Parser14
6645 <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>
6646 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6648 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6655 Fuzz testing: Parser14-table
6660 <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>
6661 <table style="__TOC__">
6667 # Known to produce bogus xml (extra </td>)
6669 Fuzz testing: Parser16
6689 Fuzz testing: Parser21
6692 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6697 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6707 Fuzz testing: Parser22
6709 http://===r:::https://b
6713 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6721 # Known to produce bad XML for now
6723 Fuzz testing: Parser24
6730 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6731 <br style="onmouseover='alert(document.cookie);' " />
6733 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6738 <u class="|">}}}} >
6739 <br style="onmouseover='alert(document.cookie);'" />
6741 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6750 # Note: the current result listed for this is not what the original one was,
6751 # but the original bug was JavaScript injection, which is fixed in any case.
6752 # It's not clear that the original result listed was any more correct than the
6753 # current one. Original result:
6756 # <li class="||">
6757 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6759 Fuzz testing: Parser25 (bug 6055)
6765 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6767 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6772 Fuzz testing: URL adjacent extension (with space, clean)
6775 http://example.com <nowiki>junk</nowiki>
6777 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6782 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6785 http://example.com<nowiki>junk</nowiki>
6787 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6792 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6795 http://example.com<pre>junk</pre>
6797 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6802 Fuzz testing: image with bogus manual thumbnail
6804 [[Image:foobar.jpg|thumbnail= ]]
6806 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6811 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6813 <pre dir=" "></pre>
6815 <pre dir=" "></pre>
6820 Parsing optional HTML elements (Bug 6171)
6825 <td> Some tabular data</td>
6826 <td> More tabular data ...
6827 <td> And yet som tabular data</td>
6833 <td> Some tabular data</td>
6834 <td> More tabular data ...
6835 </td><td> And yet som tabular data</td>
6842 Correct handling of <td>, <tr> (Bug 6171)
6847 <td> Some tabular data</td>
6848 <td> More tabular data ...</td>
6849 <td> And yet som tabular data</td>
6855 <td> Some tabular data</td>
6856 <td> More tabular data ...</td>
6857 <td> And yet som tabular data</td>
6865 Parsing crashing regression (fr:JavaScript)
6869 <p></body></x>
6874 Inline wiki vs wiki block nesting
6880 <p><b>Bold paragraph</b>
6881 </p><p>New wiki paragraph
6886 Inline HTML vs wiki block nesting
6894 <p><b>Bold paragraph</b>
6895 </p><p>New wiki paragraph
6899 # Original result was this:
6900 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6902 # While that might be marginally more intuitive, maybe, the six-apostrophe
6903 # construct is clearly pathological and the result stated here (which is what
6904 # the parser actually does) is about as reasonable as anything.
6906 Mixing markup for italics and bold
6909 '''bold''''''bold''bolditalics'''''
6911 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6919 Article for special page transclusion test
6923 Special page transclusion
6926 {{Special:Prefixindex/Xyzzyx}}
6928 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6933 Special page transclusion twice (bug 5021)
6936 {{Special:Prefixindex/Xyzzyx}}
6937 {{Special:Prefixindex/Xyzzyx}}
6939 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6940 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6945 Transclusion of default MediaWiki message
6947 {{MediaWiki:Mainpage}}
6954 Transclusion of nonexistent MediaWiki message
6956 {{MediaWiki:Mainpagexxx}}
6958 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6963 Transclusion of MediaWiki message with underscore
6965 {{MediaWiki:history_short}}
6972 Transclusion of MediaWiki message with space
6974 {{MediaWiki:history short}}
6981 Invalid header with following text
6991 Section extraction test (section 0)
7011 Section extraction test (section 1)
7033 Section extraction test (section 2)
7054 Section extraction test (section 3)
7074 Section extraction test (section 4)
7098 Section extraction test (section 5)
7118 Section extraction test (section 6)
7139 Section extraction test (section 7)
7159 Section extraction test (section 8)
7179 Section extraction test (section 9)
7200 Section extraction test (section 10)
7220 Section extraction test (nonexistent section 11)
7239 Section extraction test with bogus heading (section 1)
7244 ==bogus== not a legal section
7248 ==bogus== not a legal section
7252 Section extraction test with bogus heading (section 2)
7257 ==bogus== not a legal section
7264 Section extraction test with comment after heading (section 1)
7276 Section extraction test with comment after heading (section 2)
7288 Section extraction test with bogus <nowiki> heading (section 1)
7293 ==bogus== <nowiki>not a legal section</nowiki>
7297 ==bogus== <nowiki>not a legal section</nowiki>
7301 Section extraction test with bogus <nowiki> heading (section 2)
7306 ==bogus== <nowiki>not a legal section</nowiki>
7313 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7314 # instead of respecting commented sections
7316 Section extraction prefixed by comment (section 1)
7327 Section extraction prefixed by comment (section 2)
7338 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7339 # instead of respecting HTML-style headings
7341 Section extraction, mixed wiki and html (section 1)
7357 Section extraction, mixed wiki and html (section 2)
7373 # Formerly testing for bug 3342
7375 Section extraction, heading surrounded by <noinclude>
7379 <noinclude>==unmarked==</noinclude>
7385 # Test behaviour of bug 19910
7387 Sectiion with all-equals
7392 The line above must have a trailing space
7395 But just in case it doesn't...
7399 But just in case it doesn't...
7403 Section replacement test (section 0)
7434 Section replacement test (section 1)
7463 Section replacement test (section 2)
7493 Section replacement test (section 3)
7524 Section replacement test (section 4)
7551 Section replacement test (section 5)
7582 Section replacement test (section 6)
7612 Section replacement test (section 7)
7643 Section replacement test (section 8)
7674 Section replacement test (section 9)
7703 Section replacement test (section 10)
7733 Section replacement test with initial whitespace (bug 13728)
7737 Preformatted initial line
7741 Preformatted initial line
7748 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7760 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7773 Section extraction, <pre> around bogus header (bug 10309)
7790 Section replacement, <pre> around bogus header (bug 10309)
7792 noxml replace=2,"xxx"
7813 Handling of 
 in URLs
7817 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7824 5 quotes, code coverage +1 line
7831 Special:Search page linking.
7835 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7850 * {{SUBJECTPAGENAME}}
7851 * {{SUBJECTPAGENAMEE}}
7858 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7860 <ul><li> Parser test
7861 </li><li> Parser test
7862 </li><li> Parser test
7863 </li><li> Parser_test
7864 </li><li> Parser test
7865 </li><li> Parser_test
7866 </li><li> Talk:Parser test
7867 </li><li> Talk:Parser_test
7868 </li><li> Parser test
7869 </li><li> Parser_test
7876 </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>
7880 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7890 image4 |300px| centre
7891 image5.svg| http://///////
7896 <ul class="gallery">
7897 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7898 <div style="height: 150px;">Image1.png</div>
7899 <div class="gallerytext">
7902 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7903 <div style="height: 150px;">Image2.gif</div>
7904 <div class="gallerytext">
7909 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7910 <div style="height: 150px;">Image3</div>
7911 <div class="gallerytext">
7914 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7915 <div style="height: 150px;">Image4</div>
7916 <div class="gallerytext">
7921 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7922 <div style="height: 150px;">Image5.svg</div>
7923 <div class="gallerytext">
7924 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7928 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7929 <div style="height: 150px;">* image6</div>
7930 <div class="gallerytext">
7938 Gallery (with options)
7940 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7941 File:Nonexistant.jpg|caption
7942 File:Nonexistant.jpg
7943 image:foobar.jpg|some '''caption''' [[Main Page]]
7945 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7948 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7949 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7950 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7951 <div style="height: 70px;">Nonexistant.jpg</div>
7952 <div class="gallerytext">
7957 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7958 <div style="height: 70px;">Nonexistant.jpg</div>
7959 <div class="gallerytext">
7962 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7963 <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>
7964 <div class="gallerytext">
7965 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7969 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7970 <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>
7971 <div class="gallerytext">
7974 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7975 <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>
7976 <div class="gallerytext">
7986 Gallery with wikitext inside caption
7989 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7990 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7993 <ul class="gallery">
7994 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7995 <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>
7996 <div class="gallerytext">
7997 <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>
8001 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8002 <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>
8003 <div class="gallerytext">
8004 <p>This is a test template
8013 gallery (with showfilename option)
8015 <gallery showfilename>
8016 File:Nonexistant.jpg|caption
8017 File:Nonexistant.jpg
8018 image:foobar.jpg|some '''caption''' [[Main Page]]
8022 <ul class="gallery">
8023 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8024 <div style="height: 150px;">Nonexistant.jpg</div>
8025 <div class="gallerytext">
8026 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8031 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8032 <div style="height: 150px;">Nonexistant.jpg</div>
8033 <div class="gallerytext">
8034 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8038 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8039 <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>
8040 <div class="gallerytext">
8041 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8042 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8046 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8047 <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>
8048 <div class="gallerytext">
8049 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8058 Gallery (with namespace-less filenames)
8061 File:Nonexistant.jpg
8067 <ul class="gallery">
8068 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8069 <div style="height: 150px;">Nonexistant.jpg</div>
8070 <div class="gallerytext">
8073 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8074 <div style="height: 150px;">Nonexistant.jpg</div>
8075 <div class="gallerytext">
8078 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8079 <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>
8080 <div class="gallerytext">
8083 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8084 <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>
8085 <div class="gallerytext">
8093 HTML Hex character encoding (spells the word "JavaScript")
8095 JavaScript
8097 <p>JavaScript
8102 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8106 <p>&#xsee;&#XSEE;
8111 HTML Hex character encoding mixed case
8120 __FORCETOC__ override
8132 ISBN 978-0-1234-56 789
8134 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8139 ISBN followed by 5 spaces
8150 ISBN ISBN 1234567890
8152 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8157 Bug 22905: <abbr> followed by ISBN followed by </a>
8159 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8161 <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>
8170 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8175 Double RFC with a wiki link
8179 <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>
8188 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8193 Centre-aligned image
8195 [[Image:foobar.jpg|centre]]
8197 <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>
8204 [[Image:foobar.jpg|none]]
8206 <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>
8211 Width + Height sized image (using px) (height is ignored)
8213 [[Image:foobar.jpg|640x480px]]
8215 <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>
8220 Width-sized image (using px, no following whitespace)
8222 [[Image:foobar.jpg|640px]]
8224 <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>
8229 Width-sized image (using px, with following whitespace - test regression from r39467)
8231 [[Image:foobar.jpg|640px ]]
8233 <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>
8238 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8240 [[Image:foobar.jpg| 640px]]
8242 <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>
8247 Another italics / bold test
8255 # Note the results may be incorrect, as parserTest output included this:
8256 # XML error: Mismatched tag at byte 6120:
8257 # ...<dd> </dt></dl> </dd...
8265 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8276 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8278 Images with the "|" character in the comment
8280 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8282 <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>
8287 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8289 <html><script>alert(1);</script></html>
8291 <p><html><script>alert(1);</script></html>
8296 HTML with raw HTML ($wgRawHtml==true)
8300 <html><script>alert(1);</script></html>
8302 <p><script>alert(1);</script>
8307 Parents of subpages, one level up
8309 subpage title=[[Subpage test/L1/L2/L3]]
8313 <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>
8319 Parents of subpages, one level up, not named
8321 subpage title=[[Subpage test/L1/L2/L3]]
8325 <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>
8332 Parents of subpages, two levels up
8334 subpage title=[[Subpage test/L1/L2/L3]]
8340 <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
8341 </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>
8346 Parents of subpages, two levels up, without trailing slash or name.
8348 subpage title=[[Subpage test/L1/L2/L3]]
8357 Parents of subpages, two levels up, with lots of extra trailing slashes.
8359 subpage title=[[Subpage test/L1/L2/L3]]
8363 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8368 Definition list code coverage
8374 <dl><dt> title  </dt><dd> def
8375 </dd><dt> title </dt><dd> def
8376 </dd><dt>title</dt><dd> def
8382 Don't fall for the self-closing div
8384 <div>hello world</div/>
8386 <div>hello world</div>
8395 <p>[[:Template:Msg]]
8404 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8408 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8410 Always escape literal '>' in output, not just after '<'
8424 <p>This is a test template
8425 This is a test template
8437 Inclusion of !userCanEdit() content
8441 <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>
8447 Out-of-order TOC heading levels
8456 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8458 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8460 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8461 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8464 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8466 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8467 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8472 <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>
8473 <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>
8474 <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>
8475 <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>
8476 <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>
8477 <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>
8483 ISBN with a dummy number
8493 ISBN with space-delimited number
8497 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8503 ISBN with multiple spaces, no number
8522 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8523 </p><p>ISBN 12345678901
8529 ISBN with trailing year (bug 8110)
8531 ISBN 1-234-56789-0 - 2006
8533 ISBN 1 234 56789 0 - 2006
8535 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8536 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8544 {{anchorencode:foo bar©#%n}}
8546 <p>foo_bar.C2.A9.23.25n
8551 anchorencode trims spaces
8553 {{anchorencode: __pretty__please__}}
8560 anchorencode deals with links
8562 {{anchorencode: [[hello|world]] [[hi]]}}
8569 anchorencode deals with templates
8571 {{anchorencode: {{Foo}} }}
8578 anchorencode encodes like the TOC generator: (bug 18431)
8580 === _ +:.3A%3A&&]] ===
8581 {{anchorencode: _ +:.3A%3A&&]] }}
8584 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8585 <p>.2B:.3A.253A.26.26.5D.5D
8589 # Expected output in the following test is not necessarily expected (there
8590 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8591 # only testing for well-formedness.
8593 Bug 6200: blockquotes and paragraph formatting
8613 Bug 8293: Use of center tag ruins paragraph formatting
8635 ### Language variants related tests
8638 Self-link in language variants
8640 title=[[Dunav]] language=sr
8642 Both [[Dunav]] and [[Дунав]] are names for this river.
8644 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8650 Link to pages in language variants
8654 Main Page can be written as [[Маин Паге]]
8656 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8662 Multiple links to pages in language variants
8666 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8668 <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>.
8674 Simple template in language variants
8680 <p>This is a test template
8686 Template with explicit namespace in language variants
8692 <p>This is a test template
8698 Basic test for template parameter in language variants
8702 {{парамтест|param=foo}}
8704 <p>This is a test template with parameter foo
8710 Simple category in language variants
8714 [[Category:МедиаWики Усер'с Гуиде]]
8716 <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>
8721 Stripping -{}- tags (language variants)
8725 Latin proverb: -{Ne nuntium necare}-
8727 <p>Latin proverb: Ne nuntium necare
8733 Prevent conversion with -{}- tags (language variants)
8735 language=sr variant=sr-ec
8737 Latinski: -{Ne nuntium necare}-
8739 <p>Латински: Ne nuntium necare
8745 Prevent conversion of text with -{}- tags (language variants)
8747 language=sr variant=sr-ec
8749 Latinski: -{Ne nuntium necare}-
8751 <p>Латински: Ne nuntium necare
8757 Prevent conversion of links with -{}- tags (language variants)
8759 language=sr variant=sr-ec
8763 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8769 -{}- tags within headlines (within html for parserConvert())
8771 language=sr variant=sr-ec
8775 <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>
8781 Explicit definition of language variant alternatives
8783 language=zh variant=zh-tw
8785 -{zh:China;zh-tw:Taiwan}-, not China
8787 <p>Taiwan, not China
8793 Explicit session-wise language variant mapping (A flag and - flag)
8795 language=zh variant=zh-tw
8797 Taiwan is not China.
8798 But -{A|zh:China;zh-tw:Taiwan}- is China,
8799 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8800 and -{China}- is China.
8802 <p>Taiwan is not China.
8803 But Taiwan is Taiwan,
8804 (This should be stripped!)
8810 Explicit session-wise language variant mapping (H flag for hide)
8812 language=zh variant=zh-tw
8814 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8817 <p>(This should be stripped!)
8823 Adding explicit conversion rule for title (T flag)
8825 language=zh variant=zh-tw showtitle
8827 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8830 <p>Should be stripped!
8835 Testing that changing the language variant here in the tests actually works
8837 language=zh variant=zh showtitle
8839 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8842 <p>Should be stripped!
8847 Bug 24072: more test on conversion rule for title
8849 language=zh variant=zh-tw showtitle
8851 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8852 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8855 <p>This should be stripped!
8856 This won't take interferes with the title rule.
8861 Raw output of variant escape tags (R flag)
8863 language=zh variant=zh-tw
8865 Raw: -{R|zh:China;zh-tw:Taiwan}-
8867 <p>Raw: zh:China;zh-tw:Taiwan
8872 Nested using of manual convert syntax
8874 language=zh variant=zh-hk
8876 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8878 <p>Nested: Hello Hong Kong!
8883 Do not convert roman numbers to language variants
8885 language=sr variant=sr-ec
8889 <p>Фридрих IV је цар.
8894 Unclosed language converter markup "-{"
8905 Don't convert raw rule "-{R|=>}-" to "=>"
8922 Bug 529: Uncovered bullet
8933 Bug 529: Uncovered table already at line-start
8956 Bug 529: Uncovered bullet in parser function result
8958 * Foo {{lc:{{bullet}} }}
8967 Bug 5678: Double-parsed template argument
8969 {{lc:{{{1}}}|hello}}
8976 Bug 5678: Double-parsed template invocation
8978 {{lc:{{paramtest {{!}} param = hello }} }}
8980 <p>{{paramtest | param = hello }}
8985 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9011 Morwen/13: Unclosed link followed by heading
9018 <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>
9023 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9030 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9035 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9042 <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>
9057 Paragraphs inside divs (no extra line breaks)
9069 Paragraphs inside divs (extra line break on open)
9084 Paragraphs inside divs (extra line break on close)
9099 Paragraphs inside divs (extra line break on open and close)
9116 Nesting tags, paragraphs on lines which begin with <div>
9120 <div></div><strong>A
9129 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9131 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9135 <blockquote>Line one
9137 Line two</blockquote>
9139 <blockquote>Line one
9140 Line two</blockquote>
9145 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9152 Line two</blockquote>
9157 Line two</blockquote>
9162 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9166 <blockquote>Line one
9171 <blockquote>Line one
9179 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9198 Paragraphs inside blockquotes/divs (no extra line breaks)
9200 <blockquote><div>Line one
9202 Line two</div></blockquote>
9204 <blockquote><div>Line one
9205 Line two</div></blockquote>
9210 Paragraphs inside blockquotes/divs (extra line break on open)
9215 Line two</div></blockquote>
9220 Line two</div></blockquote>
9225 Paragraphs inside blockquotes/divs (extra line break on close)
9227 <blockquote><div>Line one
9232 <blockquote><div>Line one
9240 Paragraphs inside blockquotes/divs (extra line break on open and close)
9257 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9259 wgLinkHolderBatchSize=0
9265 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9266 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9267 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9272 Free external link invading image caption
9274 [[Image:Foobar.jpg|thumb|http://x|hello]]
9276 <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>
9281 Bug 15196: localised external link numbers
9285 [http://en.wikipedia.org/]
9287 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9292 Multibyte character in padleft
9294 {{padleft:-Hello|7|Æ}}
9301 Multibyte character in padright
9303 {{padright:Hello-|7|Æ}}
9316 <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>
9321 formatdate parser function
9323 {{#formatdate:2009-03-24}}
9325 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9330 formatdate parser function, with default format
9332 {{#formatdate:2009-03-24|mdy}}
9334 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9339 Linked date with autoformatting disabled
9341 wgUseDynamicDates=false
9345 <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>
9350 Spacing of numbers in formatted dates
9352 {{#formatdate:January 15}}
9354 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9359 Spacing of numbers in formatted dates (linked)
9361 wgUseDynamicDates=true
9365 <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>
9378 Edit comment with link
9382 I like the [[Main Page]] a lot
9384 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9388 Edit comment with link and link text
9392 I like the [[Main Page|best pages]] a lot
9394 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9398 Edit comment with link and link text with suffix
9402 I like the [[Main Page|best page]]s a lot
9404 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9408 Edit comment with section link (non-local, eg in history list)
9410 comment title=[[Main Page]]
9412 /* External links */ removed bogus entries
9414 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9418 Edit comment with section link and text before it (non-local, eg in history list)
9420 comment title=[[Main Page]]
9422 pre-comment text /* External links */ removed bogus entries
9424 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>
9428 Edit comment with section link (local, eg in diff view)
9430 comment local title=[[Main Page]]
9432 /* External links */ removed bogus entries
9434 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9438 Edit comment with subpage link (bug 14080)
9442 title=[[Subpage test]]
9444 Poked at a [[/subpage]] here...
9446 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9450 Edit comment with subpage link and link text (bug 14080)
9454 title=[[Subpage test]]
9456 Poked at a [[/subpage|neat little page]] here...
9458 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9462 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9465 title=[[Subpage test]]
9467 Poked at a [[/subpage]] here...
9469 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9473 Edit comment with bare anchor link (local, as on diff)
9481 <a href="#section">#section</a>
9485 Edit comment with bare anchor link (non-local, as on history)
9492 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9496 Anchor starting with underscore
9500 <p><a href="#_ref">One</a>
9505 Id starting with underscore
9507 <div id="_ref"></div>
9509 <div id="_ref"></div>
9514 Space normalisation on autocomment (bug 22784)
9519 /* __hello__world__ */
9521 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9525 percent-encoding and + signs in comments (Bug 26410)
9529 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9531 <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>
9535 Bad images - basic functionality
9544 Bad images - bug 16039: text after bad image disappears
9558 Verify that displaytitle works (bug #22501) no displaytitle
9562 wgAllowDisplayTitle=true
9563 wgRestrictDisplayTitle=false
9565 this is not the the title
9568 <p>this is not the the title
9573 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9578 wgAllowDisplayTitle=true
9579 wgRestrictDisplayTitle=false
9581 this is not the the title
9582 {{DISPLAYTITLE:whatever}}
9585 <p>this is not the the title
9590 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9595 wgAllowDisplayTitle=true
9596 wgRestrictDisplayTitle=true
9598 this is not the the title
9599 {{DISPLAYTITLE:whatever}}
9602 <p>this is not the the title
9607 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9612 wgAllowDisplayTitle=true
9613 wgRestrictDisplayTitle=true
9615 this is not the the title
9616 {{DISPLAYTITLE:screen}}
9619 <p>this is not the the title
9624 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9629 wgAllowDisplayTitle=false
9631 this is not the the title
9632 {{DISPLAYTITLE:screen}}
9635 <p>this is not the the title
9636 <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>
9641 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9646 wgAllowDisplayTitle=false
9648 this is not the the title
9651 <p>this is not the the title
9656 preload: check <noinclude> and <includeonly>
9660 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9666 preload: check <onlyinclude>
9670 Goodbye <onlyinclude>Hello world</onlyinclude>
9676 preload: can pass tags through if we want to
9680 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9682 <includeonly>Hello world</includeonly>
9686 preload: check that it doesn't try to do tricks
9690 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9692 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9696 Play a bit with r67090 and bug 3158
9700 <div style="width:50% !important"> </div>
9701 <div style="width:50% !important"> </div>
9702 <div style="width:50% !important"> </div>
9703 <div style="border : solid;"> </div>
9705 <div style="width:50% !important"> </div>
9706 <div style="width:50% !important"> </div>
9707 <div style="width:50% !important"> </div>
9708 <div style="border : solid;"> </div>
9713 HTML5 data attributes
9715 <span data-foo="bar">Baz</span>
9716 <p data-abc-def_hij="">Quuz</p>
9718 <p><span data-foo="bar">Baz</span>
9720 <p data-abc-def_hij="">Quuz</p>
9725 percent-encoding and + signs in internal links (Bug 26410)
9727 [[User:+%]] [[Page+title%]]
9728 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9729 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9730 [[%33%45]] [[%33%45+]]
9732 <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>
9733 <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>
9734 <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>
9735 <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>
9740 Special characters in embedded file links (bug 27679)
9742 [[File:Contains & ampersand.jpg]]
9743 [[File:Does not exist.jpg|Title with & ampersand]]
9745 <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>
9746 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9752 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9754 Text's been normalized?
9756 <p>Text's been normalized?
9761 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9763 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9765 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9770 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9772 [http://www.example.org/ ideograms]
9774 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9779 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9781 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9783 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9807 Bug 31098 Template which includes system messages which includes the template
9811 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9812 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9817 Deprecated presentational attributes are converted to css
9820 | valign=top align=left width=100 height=25% | Asdf
9822 <ul type="disc"></ul>
9826 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9828 <ul style="list-style-type: disc;"></ul>
9833 Bug31490 Turkish: ucfirst 'blah'
9844 Bug31490 Turkish: ucfirst 'ix'
9855 Bug31490 Turkish: lcfirst 'BLAH'
9866 Bug31490 Turkish: ucfırst (with a dotless i)
9872 <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>
9877 Bug31490 ucfırst (with a dotless i) with English language
9883 <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>
9888 Bug 26375: TOC with italics
9893 == ''Lost'' episodes ==
9895 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9897 <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>
9900 <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>
9905 Bug 26375: TOC with bold
9910 == '''should be bold''' then normal text ==
9912 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9914 <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>
9917 <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>
9922 Bug 33845: Headings become cursive in TOC when they contain an image
9927 == Image [[Image:foobar.jpg]] ==
9929 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9931 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9934 <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>
9939 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9944 == <blockquote>Quote</blockquote> ==
9946 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9948 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9951 <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>
9956 Unclosed tags in TOC
9962 <small>Hanc marginis exiguitas non caperet.</small>
9965 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9967 <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>
9970 <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>
9971 <p><small>Hanc marginis exiguitas non caperet.</small>
9977 Multiple tags in TOC
9980 == <i>Foo</i> <b>Bar</b> ==
9982 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9984 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9986 <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>
9987 <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>
9990 <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>
9991 <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>
9996 Tags with parameters in TOC
9999 == <sup class="in-h2">Hello</sup> ==
10001 == <sup class="a > b">Evilbye</sup> ==
10003 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10005 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10006 <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>
10009 <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>
10010 <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>
10017 == {{int:headline_sample}} ==
10021 Bug 32057: Title needed when expanding <h> nodes.
10023 title=[[Main Page]]
10027 <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>
10032 Strip marker in urlencode
10034 {{urlencode:x<nowiki/>y}}
10035 {{urlencode:x<nowiki/>y|wiki}}
10036 {{urlencode:x<nowiki/>y|path}}
10063 Strip marker in formatNum
10065 {{formatnum:1<nowiki/>2}}
10066 {{formatnum:1<nowiki/>2|R}}
10074 Strip marker in grammar
10078 {{grammar:elative|foo<nowiki/>bar}}
10085 Strip marker in padleft
10087 {{padleft:|2|x<nowiki/>y}}
10094 Strip marker in padright
10096 {{padright:|2|x<nowiki/>y}}
10103 Strip marker in anchorencode
10105 {{anchorencode:x<nowiki/>y}}
10112 nowiki inside link inside heading (bug 18295)
10114 ==[[foo|x<nowiki>y</nowiki>z]]==
10116 <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>
10121 new support for bdi element (bug 31817)
10123 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10125 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10130 Ignore pipe between table row attributes
10134 |- id=foo | style='color: red'
10142 <tr id="foo" style="color: red">
10149 Gallery override link with WikiLink (bug 34852)
10152 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10155 <ul class="gallery">
10156 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10157 <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>
10158 <div class="gallerytext">
10168 Gallery override link with absolute external link (bug 34852)
10171 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10174 <ul class="gallery">
10175 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10176 <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>
10177 <div class="gallerytext">
10187 Gallery override link with malicious javascript (bug 34852)
10190 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10193 <ul class="gallery">
10194 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10195 <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>
10196 <div class="gallerytext">
10206 Language parser function
10215 Padleft and padright as substr
10217 {{padleft:|3|abcde}}
10218 {{padright:|3|abcde}}
10231 Try for 100% code coverage