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 ### Block-level elements
2757 <ol><li>Numbered list
2774 ***#Number on level 4
2776 **#Number on level 3
2777 **#Number on level 3
2781 #** Level 3, but ordered
2784 <ol><li> with numbers
2786 <ul><li> and bullets
2788 <ol><li> and numbers
2790 </li><li>bullets again
2791 <ul><li>bullet level 2
2792 <ul><li>bullet level 3
2793 <ol><li>Number on level 4
2796 </li><li>bullet level 2
2797 <ol><li>Number on level 3
2798 </li><li>Number on level 3
2801 <ol><li>number level 2
2804 <ul><li><ul><li> Level 3
2808 <ol><li><ul><li><ul><li> Level 3, but ordered
2842 Nested lists 3 (first element empty)
2855 Nested lists 4 (first element empty)
2868 Nested lists 5 (both elements empty)
2881 Nested lists 6 (both elements empty)
2894 Nested lists 7 (skip initial nesting levels)
2898 <ul><li><ul><li><ul><li> foo
2906 Nested lists 8 (multiple nesting transitions)
2914 <ul><li><ul><li> bar
2925 List items are not parsed correctly following a <pre> block (bug 785)
2931 <ul><li> <pre>foo</pre>
2932 </li><li> <pre>bar</pre>
2939 List items from template
2950 * notSOL{{inner list}}
2969 List interrupted by empty line or heading
2979 <ul><li><ul><li> bar
2982 <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>
2983 <ul><li> Another list item
2994 Magic Word: {{CURRENTDAY}}
3003 Magic Word: {{CURRENTDAY2}}
3012 Magic Word: {{CURRENTDAYNAME}}
3021 Magic Word: {{CURRENTDOW}}
3030 Magic Word: {{CURRENTMONTH}}
3039 Magic Word: {{CURRENTMONTHABBREV}}
3041 {{CURRENTMONTHABBREV}}
3048 Magic Word: {{CURRENTMONTHNAME}}
3050 {{CURRENTMONTHNAME}}
3057 Magic Word: {{CURRENTMONTHNAMEGEN}}
3059 {{CURRENTMONTHNAMEGEN}}
3066 Magic Word: {{CURRENTTIME}}
3075 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3084 Magic Word: {{CURRENTYEAR}}
3093 Magic Word: {{FULLPAGENAME}}
3095 title=[[User:Ævar Arnfjörð Bjarmason]]
3099 <p>User:Ævar Arnfjörð Bjarmason
3104 Magic Word: {{FULLPAGENAMEE}}
3106 title=[[User:Ævar Arnfjörð Bjarmason]]
3110 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3115 Magic Word: {{NAMESPACE}}
3117 title=[[User:Ævar Arnfjörð Bjarmason]]
3126 Magic Word: {{NAMESPACEE}}
3128 title=[[User:Ævar Arnfjörð Bjarmason]]
3137 Magic Word: {{NAMESPACENUMBER}}
3139 title=[[User:Ævar Arnfjörð Bjarmason]]
3148 Magic Word: {{NUMBEROFFILES}}
3157 Magic Word: {{PAGENAME}}
3159 title=[[User:Ævar Arnfjörð Bjarmason]]
3163 <p>Ævar Arnfjörð Bjarmason
3168 Magic Word: {{PAGENAME}} with metacharacters
3170 title=[['foo & bar = baz']]
3174 <p><i>'foo & bar = baz'</i>
3179 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3181 title=[[*RFC 1234 http://example.com/]]
3185 <p>*RFC 1234 http://example.com/
3190 Magic Word: {{PAGENAMEE}}
3192 title=[[User:Ævar Arnfjörð Bjarmason]]
3196 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3201 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3203 title=[[*RFC 1234 http://example.com/]]
3207 <p>*RFC_1234_http://example.com/
3212 Magic Word: {{REVISIONID}}
3221 Magic Word: {{SCRIPTPATH}}
3230 Magic Word: {{SERVER}}
3234 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3239 Magic Word: {{SERVERNAME}}
3248 Magic Word: {{SITENAME}}
3257 Namespace 1 {{ns:1}}
3266 Namespace 1 {{ns:01}}
3275 Namespace 0 {{ns:0}} (bug 4783)
3283 Namespace 0 {{ns:00}} (bug 4783)
3291 Namespace -1 {{ns:-1}}
3300 Namespace User {{ns:User}}
3309 Namespace User talk {{ns:User_talk}}
3318 Namespace User talk {{ns:uSeR tAlK}}
3327 Namespace File {{ns:File}}
3336 Namespace File {{ns:Image}}
3345 Namespace (lang=de) Benutzer {{ns:User}}
3356 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3362 <p>Benutzer Diskussion
3370 {{urlencode:hi world?!}}
3371 {{urlencode:hi world?!|WIKI}}
3372 {{urlencode:hi world?!|PATH}}
3373 {{urlencode:hi world?!|QUERY}}
3386 Magic links: internal link to RFC (bug 479)
3390 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3395 Magic links: RFC (bug 479)
3399 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3404 Magic links: ISBN (bug 1937)
3408 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3413 Magic links: PMID incorrectly converts space to underscore
3417 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3426 Nonexistent template
3428 {{thistemplatedoesnotexist}}
3430 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3437 This is a test template
3445 <p>This is a test template
3450 Template with explicit namespace
3454 <p>This is a test template
3462 This is a test template with parameter {{{param}}}
3468 {{paramtest|param=foo}}
3470 <p>This is a test template with parameter foo
3475 Template:paramtestnum
3481 Template unnamed parameter
3483 {{paramtestnum|Main Page|the main page}}
3485 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3490 Template:templatesimple
3496 Template:templateredirect
3498 #redirect [[Template:templatesimple]]
3502 Template:templateasargtestnum
3508 Template:templateasargtest
3510 {{template{{{templ}}}}}
3514 Template:templateasargtest2
3520 Template with template name as unnamed argument
3522 {{templateasargtestnum|templatesimple}}
3529 Template with template name as argument
3531 {{templateasargtest|templ=simple}}
3538 Template with template name as argument (2)
3540 {{templateasargtest2|templ=templatesimple}}
3547 Template:templateasargtestdefault
3549 {{{{{templ|templatesimple}}}}}
3559 Template with default value
3561 {{templateasargtestdefault}}
3568 Template with default value (value set)
3570 {{templateasargtestdefault|templ=templa}}
3579 {{templateredirect}}
3586 Template with argument in separate line
3588 {{ templateasargtest |
3596 Template with complex template as argument
3599 param ={{ templateasargtest |
3602 <p>This is a test template with parameter (test)
3607 Template with thumb image (with link in description)
3610 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3612 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>
3617 Template:complextemplate
3619 {{{1}}} {{paramtest|
3620 param ={{{param}}}}}
3624 Template with complex arguments
3627 param ={{ templateasargtest |
3628 templ = simple }}|[[Template:complextemplate|link]]}}
3630 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3635 BUG 553: link with two variables in a piped link
3638 |[[{{{1}}}|{{{2}}}]]
3643 <td>[[{{{1}}}|{{{2}}}]]
3649 Magic variable as template parameter
3651 {{paramtest|param={{SITENAME}}}}
3653 <p>This is a test template with parameter MediaWiki
3660 [[{{{param}}}|link]]
3664 Template parameter as link source
3666 {{linktest|param=Main Page}}
3668 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3676 including another template, {{paramtest|param={{{arg}}}}}
3680 Template passing argument to another template
3682 {{paramtest2|arg='hmm'}}
3684 <p>including another template, This is a test template with parameter 'hmm'
3695 Template as link source
3699 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3717 Template infinite loop
3721 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3726 Template from main namespace
3745 BUG 529: Template with table, not included at beginning of line
3764 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3784 BUG 41: Template parameters shown as broken links
3796 ''None'' of '''this''' should be
3798 but rather passed unmodified
3802 # hmm, fix this or just deprecate msgnw and document its behavior?
3808 {{msgnw:MSGNW test}}
3810 <p>''None'' of '''this''' should be
3812 but rather passed unmodified
3820 {{int:youhavenewmessages|lots of money|not!}}
3822 <p>You have lots of money (not!).
3829 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3833 <includeonly> and <noinclude> being included
3844 <onlyinclude>Foo</onlyinclude>bar
3848 <onlyinclude> being included
3860 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3864 <onlyinclude> and <includeonly> being included
3873 <includeonly> and <noinclude> on a page
3875 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3882 <onlyinclude> on a page
3884 <onlyinclude>Foo</onlyinclude>bar
3891 Template:Includeonly section
3894 ==Includeonly section==
3900 Bug 6563: Edit link generation for section shown by <includeonly>
3902 {{includeonly section}}
3904 <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>
3905 <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>
3909 # Uses same input as the contents of [[Template:Includeonly section]]
3911 Bug 6563: Section extraction for section shown by <includeonly>
3916 ==Includeonly section==
3924 Bug 6563: Edit link generation for section suppressed by <includeonly>
3927 ==Includeonly section==
3931 <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>
3936 Bug 6563: Section extraction for section suppressed by <includeonly>
3941 ==Includeonly section==
3949 ### Pre-save transform tests
3952 pre-save transform: subst:
3958 This is a test template
3962 pre-save transform: normal template
3972 pre-save transform: nonexistent template
3976 {{thistemplatedoesnotexist}}
3978 {{thistemplatedoesnotexist}}
3983 pre-save transform: subst magic variables
3992 # This is bug 89, which I fixed. -- wtm
3994 pre-save transform: subst: templates with parameters
3998 {{subst:paramtest|param="something else"}}
4000 This is a test template with parameter "something else"
4006 <nowiki>'''not wiki'''</nowiki>
4010 pre-save transform: nowiki in subst (bug 1188)
4014 {{subst:nowikitest}}
4016 <nowiki>'''not wiki'''</nowiki>
4021 Template:commenttest
4023 This template has <!-- a comment --> in it.
4027 pre-save transform: comment in subst (bug 1936)
4031 {{subst:commenttest}}
4033 This template has <!-- a comment --> in it.
4037 pre-save transform: unclosed tag
4041 <nowiki>'''not wiki'''
4043 <nowiki>'''not wiki'''
4047 pre-save transform: mixed tag case
4051 <NOwiki>'''not wiki'''</noWIKI>
4053 <NOwiki>'''not wiki'''</noWIKI>
4057 pre-save transform: unclosed comment in <nowiki>
4061 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4063 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4069 <span onmouseover="alert('crap')">Oh no</span>
4073 (confirming safety of fix for subst bug 1936)
4075 {{Template:dangerous}}
4077 <p><span>Oh no</span>
4082 pre-save transform: comment containing gallery (bug 5024)
4086 <!-- <gallery>data</gallery> -->
4088 <!-- <gallery>data</gallery> -->
4092 pre-save transform: comment containing extension
4096 <!-- <tag>data</tag> -->
4098 <!-- <tag>data</tag> -->
4102 pre-save transform: comment containing nowiki
4106 <!-- <nowiki>data</nowiki> -->
4108 <!-- <nowiki>data</nowiki> -->
4112 pre-save transform: <noinclude> in subst (bug 3298)
4122 pre-save transform: <onlyinclude> in subst (bug 3298)
4134 {{<includeonly>subst:</includeonly>Includes}}
4138 Template:SafeSubstTest
4140 {{<includeonly>safesubst:</includeonly>Includes}}
4144 bug 22297: safesubst: works during PST
4148 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4154 bug 22297: safesubst: works during normal parse
4163 subst: does not work during normal parse
4167 <p>{{subst:Includes}}
4172 pre-save transform: context links ("pipe trick")
4176 [[Article (context)|]]
4179 [[Bar:Article (context)|]]
4180 [[:Bar:Article (context)|]]
4182 [[|Article (context)]]
4186 [[Article (context)|Article]]
4187 [[Bar:Article|Article]]
4188 [[:Bar:Article|Article]]
4189 [[Bar:Article (context)|Article]]
4190 [[:Bar:Article (context)|Article]]
4192 [[Article (context)]]
4193 [[Bar:X (Y) Z|X (Y) Z]]
4194 [[:Bar:X (Y) Z|X (Y) Z]]
4198 pre-save transform: context links ("pipe trick") with interwiki prefix
4202 [[interwiki:Article|]]
4203 [[:interwiki:Article|]]
4204 [[interwiki:Bar:Article|]]
4205 [[:interwiki:Bar:Article|]]
4207 [[interwiki:Article|Article]]
4208 [[:interwiki:Article|Article]]
4209 [[interwiki:Bar:Article|Bar:Article]]
4210 [[:interwiki:Bar:Article|Bar:Article]]
4214 pre-save transform: context links ("pipe trick") with parens in title
4216 pst title=[[Somearticle (context)]]
4220 [[Article (context)|Article]]
4224 pre-save transform: context links ("pipe trick") with comma in title
4226 pst title=[[Someplace, Somewhere]]
4229 [[Otherplace, Elsewhere|]]
4230 [[Otherplace, Elsewhere, Anywhere|]]
4232 [[Otherplace, Somewhere|Otherplace]]
4233 [[Otherplace, Elsewhere|Otherplace]]
4234 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4238 pre-save transform: context links ("pipe trick") with parens and comma
4240 pst title=[[Someplace (IGNORED), Somewhere]]
4243 [[Otherplace (place), Elsewhere|]]
4245 [[Otherplace, Somewhere|Otherplace]]
4246 [[Otherplace (place), Elsewhere|Otherplace]]
4250 pre-save transform: context links ("pipe trick") with comma and parens
4252 pst title=[[Who, me? (context)]]
4255 [[Me, Myself, and I (1937 song)|]]
4257 [[Yes, you. (context)|Yes, you.]]
4258 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4262 pre-save transform: context links ("pipe trick") with namespace
4264 pst title=[[Ns:Somearticle]]
4268 [[Ns:Article|Article]]
4272 pre-save transform: context links ("pipe trick") with namespace and parens
4274 pst title=[[Ns:Somearticle (context)]]
4278 [[Ns:Article (context)|Article]]
4282 pre-save transform: context links ("pipe trick") with namespace and comma
4284 pst title=[[Ns:Somearticle, Context, Whatever]]
4288 [[Ns:Article, Context, Whatever|Article]]
4292 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4294 pst title=[[Ns:Somearticle, Context (context)]]
4298 [[Ns:Article (context)|Article]]
4302 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4304 pst title=[[Ns:Somearticle (IGNORED), Context]]
4308 [[Ns:Article, Context|Article]]
4312 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4316 [[Article(context)|]]
4317 [[Bar:Article(context)|]]
4318 [[:Bar:Article(context)|]]
4319 [[|Article(context)]]
4323 [[Article(context)|Article]]
4324 [[Bar:Article(context)|Article]]
4325 [[:Bar:Article(context)|Article]]
4326 [[Article(context)]]
4328 [[:Bar:X(Y)Z|X(Y)Z]]
4332 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4336 [[Article (context)|]]
4337 [[Bar:Article (context)|]]
4338 [[:Bar:Article (context)|]]
4339 [[|Article (context)]]
4343 [[Article (context)|Article]]
4344 [[Bar:Article (context)|Article]]
4345 [[:Bar:Article (context)|Article]]
4346 [[Article (context)]]
4347 [[Bar:X (Y) Z|X (Y) Z]]
4348 [[:Bar:X (Y) Z|X (Y) Z]]
4352 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4356 [[Article(context)|]]
4357 [[Bar:Article(context)|]]
4358 [[:Bar:Article(context)|]]
4359 [[|Article(context)]]
4363 [[Article(context)|Article]]
4364 [[Bar:Article(context)|Article]]
4365 [[:Bar:Article(context)|Article]]
4366 [[Article(context)]]
4368 [[:Bar:X(Y)Z|X(Y)Z]]
4372 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4376 [[Article (context), context|]]
4377 [[Article (context),context|]]
4378 [[Bar:Article (context), context|]]
4379 [[Bar:Article (context),context|]]
4380 [[:Bar:Article (context), context|]]
4381 [[:Bar:Article (context),context|]]
4383 [[Article (context), context|Article]]
4384 [[Article (context),context|Article]]
4385 [[Bar:Article (context), context|Article]]
4386 [[Bar:Article (context),context|Article]]
4387 [[:Bar:Article (context), context|Article]]
4388 [[:Bar:Article (context),context|Article]]
4392 pre-save transform: trim trailing empty lines
4396 Empty lines are trimmed
4402 Empty lines are trimmed
4406 pre-save transform: Signature expansion
4411 * <noinclude>~~~</noinclude>
4412 * <includeonly>~~~</includeonly>
4413 * <onlyinclude>~~~</onlyinclude>
4415 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4416 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4417 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4418 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4423 pre-save transform: Signature expansion in nowiki tags (bug 93)
4429 <nowiki>~~~~</nowiki>
4431 <includeonly><nowiki>~~~~</nowiki></includeonly>
4433 <noinclude><nowiki>~~~~</nowiki></noinclude>
4435 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4437 {{subst:Foo}} shall be converted to FOO
4439 As well as inside noinclude/onlyinclude
4440 <noinclude>{{subst:Foo}}</noinclude>
4441 <onlyinclude>{{subst:Foo}}</onlyinclude>
4443 But not inside includeonly
4444 <includeonly>{{subst:Foo}}</includeonly>
4448 <nowiki>~~~~</nowiki>
4450 <includeonly><nowiki>~~~~</nowiki></includeonly>
4452 <noinclude><nowiki>~~~~</nowiki></noinclude>
4454 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4456 FOO shall be converted to FOO
4458 As well as inside noinclude/onlyinclude
4459 <noinclude>FOO</noinclude>
4460 <onlyinclude>FOO</onlyinclude>
4462 But not inside includeonly
4463 <includeonly>{{subst:Foo}}</includeonly>
4467 ### Message transform tests
4470 message transform: magic variables
4480 message transform: should not transform wiki markup
4490 message transform: <noinclude> in transcluded template (bug 4926)
4500 message transform: <onlyinclude> in transcluded template (bug 4926)
4510 {{#special:}} page name, known
4514 {{#special:Recentchanges}}
4516 Special:RecentChanges
4520 {{#special:}} page name with subpage, known
4524 {{#special:Recentchanges/param}}
4526 Special:RecentChanges/param
4530 {{#special:}} page name, unknown
4534 {{#special:foobarnonexistent}}
4536 No such special page
4540 {{#speciale:}} page name, known
4544 {{#speciale:Recentchanges}}
4546 Special:RecentChanges
4550 {{#speciale:}} page name with subpage, known
4554 {{#speciale:Recentchanges/param}}
4556 Special:RecentChanges/param
4560 {{#speciale:}} page name, unknown
4564 {{#speciale:foobarnonexistent}}
4566 No_such_special_page
4575 [[Image:foobar.jpg]]
4577 <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>
4584 [[Image:foobar.jpg|right]]
4586 <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>
4591 Simple image (using File: namespace, now canonical)
4595 <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>
4602 [[Image:foobar.jpg|right|Caption text]]
4604 <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>
4609 Image with link parameter, wiki target
4611 [[Image:foobar.jpg|link=Target page]]
4613 <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>
4618 Image with link parameter, URL target
4620 [[Image:foobar.jpg|link=http://example.com/]]
4622 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4627 Image with link parameter, wgExternalLinkTarget
4629 [[Image:foobar.jpg|link=http://example.com/]]
4631 wgExternalLinkTarget='foobar'
4633 <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>
4638 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4640 [[Image:foobar.jpg|link=http://example.com/|Title]]
4642 wgExternalLinkTarget='foobar'
4644 <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>
4649 Image with empty link parameter
4651 [[Image:foobar.jpg|link=]]
4653 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4658 Image with link parameter (wiki target) and unnamed parameter
4660 [[Image:foobar.jpg|link=Target page|Title]]
4662 <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>
4667 Image with link parameter (URL target) and unnamed parameter
4669 [[Image:foobar.jpg|link=http://example.com/|Title]]
4671 <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>
4676 Thumbnail image with link parameter
4678 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4680 <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>
4685 Image with frame and link
4687 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4689 <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>
4694 Image with frame and link and explicit alt
4696 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4698 <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>
4703 Image with wiki markup in implicit alt
4705 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4707 <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>
4712 Image with wiki markup in explicit alt
4714 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4716 <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>
4721 Link to image page- image page normally doesn't exists, hence edit link
4722 Add test with existing image page
4723 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4727 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4732 bug 18784 Link to non-existent image page with caption should use caption as link text
4734 [[:Image:test|caption]]
4736 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4741 Frameless image caption with a free URL
4743 [[Image:foobar.jpg|http://example.com]]
4745 <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>
4750 Thumbnail image caption with a free URL
4752 [[Image:foobar.jpg|thumb|http://example.com]]
4754 <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>
4759 Thumbnail image caption with a free URL and explicit alt
4761 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4763 <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>
4768 BUG 1887: A ISBN with a thumbnail
4770 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4772 <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>
4777 BUG 1887: A RFC with a thumbnail
4779 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4781 <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>
4786 BUG 1887: A mailto link with a thumbnail
4788 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4790 <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>
4794 # Pending resolution to bug 368
4796 BUG 648: Frameless image caption with a link
4798 [[Image:foobar.jpg|text with a [[link]] in it]]
4800 <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>
4805 BUG 648: Frameless image caption with a link (suffix)
4807 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4809 <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>
4814 BUG 648: Frameless image caption with an interwiki link
4816 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4818 <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>
4823 BUG 648: Frameless image caption with a piped interwiki link
4825 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4827 <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>
4832 Escape HTML special chars in image alt text
4834 [[Image:foobar.jpg|& < > "]]
4836 <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>
4841 BUG 499: Alt text should have Ӓ, not &1234;
4843 [[Image:foobar.jpg|♀]]
4845 <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>
4850 Broken image caption with link
4852 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4854 <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.
4859 Image caption containing another image
4861 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4863 <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>
4868 Image caption containing a newline
4870 [[Image:Foobar.jpg|This
4873 <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>
4879 Bug 3090: External links other than http: in image captions
4881 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4883 <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>
4890 #REDIRECT [[File:Barfoo.jpg]]
4896 [[Image:Barfoo.jpg]]
4898 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4903 Missing image with uploads disabled
4907 [[Image:Foobaz.jpg]]
4909 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4918 Subpage test/subpage
4926 subpage title=[[Subpage test]]
4930 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4935 Subpage noslash link
4937 subpage title=[[Subpage test]]
4941 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4950 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4955 BUG 561: {{/Subpage}}
4957 subpage title=[[Page]]
4961 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4969 Category:MediaWiki User's Guide
4977 [[:Category:MediaWiki User's Guide]]
4979 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4988 [[Category:MediaWiki User's Guide]]
4990 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4994 PAGESINCATEGORY invalid title fatal (r33546 fix)
4996 {{PAGESINCATEGORY:<bogus>}}
5003 ### Inter-language links
5006 Inter-language links
5012 [[zh:食品]]
5014 es:Alimento fr:Nourriture zh:食品
5021 Basic section headings
5028 ===Smaller headline===
5031 <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>
5034 <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>
5037 <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>
5043 Section headings with TOC
5046 === Subheadline 1 ===
5047 ===== Skipping a level =====
5048 ====== Skipping a level ======
5052 ===Another headline===
5054 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5056 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5058 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5060 <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>
5062 <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>
5069 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5071 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5076 <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>
5077 <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>
5078 <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>
5079 <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>
5080 <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>
5083 <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>
5087 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5089 Handling of sections up to level 6 and beyond
5092 == Level 2 Heading==
5093 === Level 3 Heading===
5094 ==== Level 4 Heading====
5095 ===== Level 5 Heading=====
5096 ====== Level 6 Heading======
5097 ======= Level 7 Heading=======
5098 ======== Level 8 Heading========
5099 ========= Level 9 Heading=========
5100 ========== Level 10 Heading==========
5102 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5104 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5106 <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>
5108 <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>
5110 <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>
5112 <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>
5114 <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>
5115 <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>
5116 <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>
5117 <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>
5118 <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>
5131 <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>
5132 <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>
5133 <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>
5134 <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>
5135 <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>
5136 <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>
5137 <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>
5138 <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>
5139 <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>
5140 <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>
5145 TOC regression (bug 9764)
5149 ==== title 1.1.1 ====
5154 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5156 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5158 <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>
5160 <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>
5163 <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>
5166 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5168 <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>
5173 <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>
5174 <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>
5175 <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>
5176 <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>
5177 <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>
5178 <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>
5183 TOC with wgMaxTocLevel=3 (bug 6204)
5189 ==== title 1.1.1 ====
5194 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5196 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5198 <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>
5199 <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>
5202 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5204 <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>
5209 <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>
5210 <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>
5211 <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>
5212 <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>
5213 <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>
5214 <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>
5219 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5225 ====Section 1.1.1====
5226 ====Section 1.1.1.1====
5229 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5231 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5233 <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>
5236 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5239 <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>
5240 <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>
5241 <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>
5242 <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>
5243 <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>
5249 Resolving duplicate section names
5254 <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>
5255 <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>
5260 Resolving duplicate section names with differing case (bug 10721)
5265 <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>
5266 <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>
5278 Template with sections, __NOTOC__
5285 <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>
5286 <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>
5287 <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>
5288 <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>
5293 __NOEDITSECTION__ keyword
5299 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5300 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5305 Link inside a section heading
5307 ==Section with a [[Main Page|link]] in it==
5309 <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>
5314 TOC regression (bug 12077)
5321 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5323 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5325 <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>
5328 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
5331 <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>
5332 <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>
5333 <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>
5338 BUG 1219 URL next to image (good)
5340 http://example.com [[Image:foobar.jpg]]
5342 <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>
5347 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5350 The line above must have a trailing space!
5353 But just in case it doesn't...
5355 <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>
5356 <p>The line above must have a trailing space!
5358 <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>
5359 <p>But just in case it doesn't...
5364 Header with special characters (bug 25462)
5366 The tooltips shall not show entities to the user (ie. be double escaped)
5383 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5385 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5387 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5388 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5389 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5390 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5391 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5394 <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>
5397 <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>
5400 <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>
5403 <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>
5406 <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>
5412 BUG 1219 URL next to image (broken)
5414 http://example.com[[Image:foobar.jpg]]
5416 <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>
5421 Bug 1186 news: in the middle of text
5423 http://en.wikinews.org/wiki/Wikinews:Workplace
5425 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5431 Namespaced link must have a title
5440 Namespaced link must have a title (bad fragment version)
5442 [[Project:#fragment]]
5444 <p>[[Project:#fragment]]
5450 div with no attributes
5452 <div>HTML rocks</div>
5454 <div>HTML rocks</div>
5459 div with double-quoted attribute
5461 <div id="rock">HTML rocks</div>
5463 <div id="rock">HTML rocks</div>
5468 div with single-quoted attribute
5470 <div id='rock'>HTML rocks</div>
5472 <div id="rock">HTML rocks</div>
5477 div with unquoted attribute
5479 <div id=rock>HTML rocks</div>
5481 <div id="rock">HTML rocks</div>
5486 div with illegal double attributes
5488 <div id="a" id="b">HTML rocks</div>
5490 <div id="b">HTML rocks</div>
5495 HTML multiple attributes correction
5497 <p class="error" class="awesome">Awesome!</p>
5499 <p class="awesome">Awesome!</p>
5504 Table multiple attributes correction
5507 !+ class="error" class="awesome"| status
5512 <th class="awesome"> status
5520 <DIV ID="x">HTML ROCKS</DIV>
5522 <div id="x">HTML ROCKS</div>
5528 text with amp in the middle of nowhere
5532 <p>Remember AT&T?
5537 text with character entity: eacute
5539 I always thought é was a cute letter.
5541 <p>I always thought é was a cute letter.
5546 text with undefined character entity: xacute
5548 I always thought &xacute; was a cute letter.
5550 <p>I always thought &xacute; was a cute letter.
5562 [[Media:Foobar.jpg]]
5564 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5569 Media link with text
5571 [[Media:Foobar.jpg|A neat file to look at]]
5573 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5577 # FIXME: this is still bad HTML tag nesting
5579 Media link with nasty text
5580 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5582 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5584 <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>
5589 Media link to nonexistent file (bug 1702)
5591 [[Media:No such.jpg]]
5593 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5598 Image link to nonexistent file (bug 1850 - good)
5600 [[Image:No such.jpg]]
5602 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5607 :Image link to nonexistent file (bug 1850 - bad)
5609 [[:Image:No such.jpg]]
5611 <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>
5618 Character reference normalization in link text (bug 1938)
5620 [[Main Page|this&that]]
5622 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5629 Test for unicode normalization
5631 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5635 (bug 19451) Links should refer to the normalized form.
5643 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5644 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5645 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5646 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5647 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5652 Empty attribute crash test (bug 2067)
5654 <font color="">foo</font>
5656 <p><font color="">foo</font>
5661 Empty attribute crash test single-quotes (bug 2067)
5663 <font color=''>foo</font>
5665 <p><font color="">foo</font>
5670 Attribute test: equals, then nothing
5672 <font color=>foo</font>
5679 Attribute test: unquoted value
5681 <font color=x>foo</font>
5683 <p><font color="x">foo</font>
5688 Attribute test: unquoted but illegal value (hash)
5690 <font color=#x>foo</font>
5692 <p><font color="#x">foo</font>
5697 Attribute test: no value
5699 <font color>foo</font>
5701 <p><font color="color">foo</font>
5706 Bug 2095: link with three closing brackets
5710 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5715 Bug 2095: link with pipe and three closing brackets
5719 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5724 Bug 2095: link with pipe and three closing brackets, version 2
5726 [[Main Page|[http://example.com/]]]
5728 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5738 Template:Dangerous attribute
5740 " onmouseover="alert(document.cookie)
5744 Template:Dangerous style attribute
5746 border-size: expression(alert(document.cookie))
5752 <div style="float: right; {{{1}}}">Magic div</div>
5756 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5758 <div title="{{test}}"></div>
5760 <div title="This is a test template"></div>
5765 Bug 2304: HTML attribute safety (dangerous template; 2309)
5767 <div title="{{dangerous attribute}}"></div>
5769 <div title=""></div>
5774 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5776 <div style="{{dangerous style attribute}}"></div>
5778 <div style="/* insecure input */"></div>
5783 Bug 2304: HTML attribute safety (safe parameter; 2309)
5785 {{div style|width: 200px}}
5787 <div style="float: right; width: 200px">Magic div</div>
5792 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5794 {{div style|width: expression(alert(document.cookie))}}
5796 <div style="/* insecure input */">Magic div</div>
5801 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5803 {{div style|"><script>alert(document.cookie)</script>}}
5805 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5810 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5812 {{div style|" ><script>alert(document.cookie)</script>}}
5814 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5819 Bug 2304: HTML attribute safety (link)
5821 <div title="[[Main Page]]"></div>
5823 <div title="[[Main Page]]"></div>
5828 Bug 2304: HTML attribute safety (italics)
5830 <div title="''foobar''"></div>
5832 <div title="''foobar''"></div>
5837 Bug 2304: HTML attribute safety (bold)
5839 <div title="'''foobar'''"></div>
5841 <div title="'''foobar'''"></div>
5847 Bug 2304: HTML attribute safety (ISBN)
5849 <div title="ISBN 1234567890"></div>
5851 <div title="ISBN 1234567890"></div>
5856 Bug 2304: HTML attribute safety (RFC)
5858 <div title="RFC 1234"></div>
5860 <div title="RFC 1234"></div>
5865 Bug 2304: HTML attribute safety (PMID)
5867 <div title="PMID 1234567890"></div>
5869 <div title="PMID 1234567890"></div>
5874 Bug 2304: HTML attribute safety (web link)
5876 <div title="http://example.com/"></div>
5878 <div title="http://example.com/"></div>
5883 Bug 2304: HTML attribute safety (named web link)
5885 <div title="[http://example.com/ link]"></div>
5887 <div title="[http://example.com/ link]"></div>
5892 Bug 3244: HTML attribute safety (extension; safe)
5894 <div style="<nowiki>background:blue</nowiki>"></div>
5896 <div style="background:blue"></div>
5901 Bug 3244: HTML attribute safety (extension; unsafe)
5903 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5905 <div style="/* insecure input */"></div>
5909 # More MSIE fun discovered by Tom Gilder
5912 MSIE CSS safety test: spurious slash
5914 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5916 <div style="/* insecure input */">evil</div>
5921 MSIE CSS safety test: hex code
5923 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5925 <div style="/* insecure input */">evil</div>
5930 MSIE CSS safety test: comment in url
5932 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5934 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5939 MSIE CSS safety test: comment in expression
5941 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5943 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5949 Table attribute legitimate extension
5952 !+ style="<nowiki>color:blue</nowiki>"| status
5957 <th style="color:blue"> status
5963 Table attribute safety
5966 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5971 <th style="/* insecure input */"> status
5977 CSS line continuation 1
5979 <div style="background-image: u\ rl(test.jpg);"></div>
5981 <div style="/* insecure input */"></div>
5986 CSS line continuation 2
5988 <div style="background-image: u\ rl(test.jpg); "></div>
5990 <div style="/* insecure input */"></div>
6001 Expansion of multi-line templates in attribute values (bug 6255)
6003 <div style="background: {{identity|#00FF00}}">-</div>
6005 <div style="background: #00FF00">-</div>
6011 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6013 <div style="background:
6016 <div style="background: #00FF00">-</div>
6021 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6023 <div style="background: #00FF00">-</div>
6025 <div style="background: #00FF00">-</div>
6030 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6033 Parser hook: empty input
6046 Parser hook: empty input using terminated empty elements
6059 Parser hook: empty input using terminated empty elements (space before)
6072 Parser hook: basic input
6086 Parser hook: case insensitive
6100 Parser hook: case insensitive, redux
6113 Parser hook: nested tags
6117 <tag><tag></tag></tag>
6128 Parser hook: basic arguments
6130 <tag width=200 height = "100" depth = '50' square></tag>
6149 Parser hook: argument containing a forward slash (bug 5344)
6151 <tag filename='/tmp/bla'></tag>
6157 string(8) "/tmp/bla"
6164 Parser hook: empty input using terminated empty elements (bug 2374)
6178 # </tag> should be output literally since there is no matching tag that begins it
6180 Parser hook: basic arguments using terminated empty elements (bug 2374)
6182 <tag width=200 height = "100" depth = '50' square/>
6205 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6209 Parser hook: static parser hook not inside a comment
6211 <statictag>hello, world</statictag>
6212 <statictag action=flush/>
6220 Parser hook: static parser hook inside a comment
6222 <!-- <statictag>hello, world</statictag> -->
6223 <statictag action=flush/>
6229 # Nested template calls; this case was broken by Parser.php rev 1.506,
6233 Template:One-parameter
6235 (My parameter is: {{{1}}})
6239 Template:Map-one-parameter
6245 Nested template calls
6247 {{Map-one-parameter|One-parameter|param}}
6249 <p>(My parameter is: param)
6258 Sanitizer: Closing of open tags
6260 <s></s><table></table>
6262 <s></s><table></table>
6267 Sanitizer: Closing of open but not closed tags
6276 Sanitizer: Closing of closed but not open tags
6285 Sanitizer: Closing of closed but not open table tags
6287 Table not started</td></tr></table>
6289 <p>Table not started</td></tr></table>
6294 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6296 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6298 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6303 Sanitizer: Validating the contents of the id attribute (bug 4515)
6309 Something, but definitely not <br id="9" />...
6313 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
6317 <br id="foo" /><br id="foo" />
6319 Something need to be done. foo-2 ?
6323 Language converter: output gets cut off unexpectedly (bug 5757)
6327 this bit is safe: }-
6329 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6331 then we get cut off here: }-
6333 all additional text is vanished
6335 <p>this bit is safe: }-
6336 </p><p>but if we add a conversion instance: xxx
6337 </p><p>then we get cut off here: }-
6338 </p><p>all additional text is vanished
6343 Self closed html pairs (bug 5487)
6346 <center><font id="bug" />Centered text</center>
6347 <div><font id="bug2" />In div text</div>
6349 <center><font id="bug" />Centered text</center>
6350 <div><font id="bug2" />In div text</div>
6359 Punctuation: nbsp before exclamation
6363 <p>C'est grave !
6368 Punctuation: CSS !important (bug 11874)
6370 <div style="width:50% !important">important</div>
6372 <div style="width:50% !important">important</div>
6377 Punctuation: CSS ! important (bug 11874; with space after)
6379 <div style="width:50% ! important">important</div>
6381 <div style="width:50% ! important">important</div>
6387 HTML bullet list, closed tags (bug 5497)
6402 HTML bullet list, unclosed tags (bug 5497)
6419 HTML ordered list, closed tags (bug 5497)
6434 HTML ordered list, unclosed tags (bug 5497)
6451 HTML nested bullet list, closed tags (bug 5497)
6476 HTML nested bullet list, open tags (bug 5497)
6501 HTML nested ordered list, closed tags (bug 5497)
6526 HTML nested ordered list, open tags (bug 5497)
6551 HTML ordered list item with parameters oddity
6553 <ol><li id="fragment">One</li></ol>
6555 <ol><li id="fragment">One</li></ol>
6560 bug 5918: autonumbering
6562 [http://first/] [http://second] [ftp://ftp]
6566 [mailto:enclosed@mail.tld With target]
6568 [mailto:enclosed@mail.tld]
6570 mailto:inline@mail.tld
6572 <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>
6573 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6574 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6575 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6576 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6582 # Security and HTML correctness
6583 # From Nick Jenkins' fuzz testing
6587 Fuzz testing: Parser13
6602 Fuzz testing: Parser14
6607 <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>
6608 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6610 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6617 Fuzz testing: Parser14-table
6622 <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>
6623 <table style="__TOC__">
6629 # Known to produce bogus xml (extra </td>)
6631 Fuzz testing: Parser16
6651 Fuzz testing: Parser21
6654 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6659 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6669 Fuzz testing: Parser22
6671 http://===r:::https://b
6675 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6683 # Known to produce bad XML for now
6685 Fuzz testing: Parser24
6692 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6693 <br style="onmouseover='alert(document.cookie);' " />
6695 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6700 <u class="|">}}}} >
6701 <br style="onmouseover='alert(document.cookie);'" />
6703 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6712 # Note: the current result listed for this is not what the original one was,
6713 # but the original bug was JavaScript injection, which is fixed in any case.
6714 # It's not clear that the original result listed was any more correct than the
6715 # current one. Original result:
6718 # <li class="||">
6719 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6721 Fuzz testing: Parser25 (bug 6055)
6727 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6729 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6734 Fuzz testing: URL adjacent extension (with space, clean)
6737 http://example.com <nowiki>junk</nowiki>
6739 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6744 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6747 http://example.com<nowiki>junk</nowiki>
6749 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6754 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6757 http://example.com<pre>junk</pre>
6759 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6764 Fuzz testing: image with bogus manual thumbnail
6766 [[Image:foobar.jpg|thumbnail= ]]
6768 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6773 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6775 <pre dir=" "></pre>
6777 <pre dir=" "></pre>
6782 Parsing optional HTML elements (Bug 6171)
6787 <td> Some tabular data</td>
6788 <td> More tabular data ...
6789 <td> And yet som tabular data</td>
6795 <td> Some tabular data</td>
6796 <td> More tabular data ...
6797 </td><td> And yet som tabular data</td>
6804 Correct handling of <td>, <tr> (Bug 6171)
6809 <td> Some tabular data</td>
6810 <td> More tabular data ...</td>
6811 <td> And yet som tabular data</td>
6817 <td> Some tabular data</td>
6818 <td> More tabular data ...</td>
6819 <td> And yet som tabular data</td>
6827 Parsing crashing regression (fr:JavaScript)
6831 <p></body></x>
6836 Inline wiki vs wiki block nesting
6842 <p><b>Bold paragraph</b>
6843 </p><p>New wiki paragraph
6848 Inline HTML vs wiki block nesting
6856 <p><b>Bold paragraph</b>
6857 </p><p>New wiki paragraph
6861 # Original result was this:
6862 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6864 # While that might be marginally more intuitive, maybe, the six-apostrophe
6865 # construct is clearly pathological and the result stated here (which is what
6866 # the parser actually does) is about as reasonable as anything.
6868 Mixing markup for italics and bold
6871 '''bold''''''bold''bolditalics'''''
6873 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6881 Article for special page transclusion test
6885 Special page transclusion
6888 {{Special:Prefixindex/Xyzzyx}}
6890 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6895 Special page transclusion twice (bug 5021)
6898 {{Special:Prefixindex/Xyzzyx}}
6899 {{Special:Prefixindex/Xyzzyx}}
6901 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6902 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6907 Transclusion of default MediaWiki message
6909 {{MediaWiki:Mainpage}}
6916 Transclusion of nonexistent MediaWiki message
6918 {{MediaWiki:Mainpagexxx}}
6920 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6925 Transclusion of MediaWiki message with underscore
6927 {{MediaWiki:history_short}}
6934 Transclusion of MediaWiki message with space
6936 {{MediaWiki:history short}}
6943 Invalid header with following text
6953 Section extraction test (section 0)
6973 Section extraction test (section 1)
6995 Section extraction test (section 2)
7016 Section extraction test (section 3)
7036 Section extraction test (section 4)
7060 Section extraction test (section 5)
7080 Section extraction test (section 6)
7101 Section extraction test (section 7)
7121 Section extraction test (section 8)
7141 Section extraction test (section 9)
7162 Section extraction test (section 10)
7182 Section extraction test (nonexistent section 11)
7201 Section extraction test with bogus heading (section 1)
7206 ==bogus== not a legal section
7210 ==bogus== not a legal section
7214 Section extraction test with bogus heading (section 2)
7219 ==bogus== not a legal section
7226 Section extraction test with comment after heading (section 1)
7238 Section extraction test with comment after heading (section 2)
7250 Section extraction test with bogus <nowiki> heading (section 1)
7255 ==bogus== <nowiki>not a legal section</nowiki>
7259 ==bogus== <nowiki>not a legal section</nowiki>
7263 Section extraction test with bogus <nowiki> heading (section 2)
7268 ==bogus== <nowiki>not a legal section</nowiki>
7275 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7276 # instead of respecting commented sections
7278 Section extraction prefixed by comment (section 1)
7289 Section extraction prefixed by comment (section 2)
7300 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7301 # instead of respecting HTML-style headings
7303 Section extraction, mixed wiki and html (section 1)
7319 Section extraction, mixed wiki and html (section 2)
7335 # Formerly testing for bug 3342
7337 Section extraction, heading surrounded by <noinclude>
7341 <noinclude>==unmarked==</noinclude>
7347 # Test behaviour of bug 19910
7349 Sectiion with all-equals
7354 The line above must have a trailing space
7357 But just in case it doesn't...
7361 But just in case it doesn't...
7365 Section replacement test (section 0)
7396 Section replacement test (section 1)
7425 Section replacement test (section 2)
7455 Section replacement test (section 3)
7486 Section replacement test (section 4)
7513 Section replacement test (section 5)
7544 Section replacement test (section 6)
7574 Section replacement test (section 7)
7605 Section replacement test (section 8)
7636 Section replacement test (section 9)
7665 Section replacement test (section 10)
7695 Section replacement test with initial whitespace (bug 13728)
7699 Preformatted initial line
7703 Preformatted initial line
7710 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7722 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7735 Section extraction, <pre> around bogus header (bug 10309)
7752 Section replacement, <pre> around bogus header (bug 10309)
7754 noxml replace=2,"xxx"
7775 Handling of 
 in URLs
7779 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7786 5 quotes, code coverage +1 line
7793 Special:Search page linking.
7797 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7812 * {{SUBJECTPAGENAME}}
7813 * {{SUBJECTPAGENAMEE}}
7820 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7822 <ul><li> Parser test
7823 </li><li> Parser test
7824 </li><li> Parser test
7825 </li><li> Parser_test
7826 </li><li> Parser test
7827 </li><li> Parser_test
7828 </li><li> Talk:Parser test
7829 </li><li> Talk:Parser_test
7830 </li><li> Parser test
7831 </li><li> Parser_test
7838 </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>
7842 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7852 image4 |300px| centre
7853 image5.svg| http://///////
7858 <ul class="gallery">
7859 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7860 <div style="height: 150px;">Image1.png</div>
7861 <div class="gallerytext">
7864 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7865 <div style="height: 150px;">Image2.gif</div>
7866 <div class="gallerytext">
7871 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7872 <div style="height: 150px;">Image3</div>
7873 <div class="gallerytext">
7876 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7877 <div style="height: 150px;">Image4</div>
7878 <div class="gallerytext">
7883 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7884 <div style="height: 150px;">Image5.svg</div>
7885 <div class="gallerytext">
7886 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7890 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7891 <div style="height: 150px;">* image6</div>
7892 <div class="gallerytext">
7900 Gallery (with options)
7902 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7903 File:Nonexistant.jpg|caption
7904 File:Nonexistant.jpg
7905 image:foobar.jpg|some '''caption''' [[Main Page]]
7907 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7910 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7911 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7912 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7913 <div style="height: 70px;">Nonexistant.jpg</div>
7914 <div class="gallerytext">
7919 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7920 <div style="height: 70px;">Nonexistant.jpg</div>
7921 <div class="gallerytext">
7924 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7925 <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>
7926 <div class="gallerytext">
7927 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7931 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7932 <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>
7933 <div class="gallerytext">
7936 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7937 <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>
7938 <div class="gallerytext">
7948 Gallery with wikitext inside caption
7951 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7952 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7955 <ul class="gallery">
7956 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7957 <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>
7958 <div class="gallerytext">
7959 <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>
7963 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7964 <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>
7965 <div class="gallerytext">
7966 <p>This is a test template
7975 gallery (with showfilename option)
7977 <gallery showfilename>
7978 File:Nonexistant.jpg|caption
7979 File:Nonexistant.jpg
7980 image:foobar.jpg|some '''caption''' [[Main Page]]
7984 <ul class="gallery">
7985 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7986 <div style="height: 150px;">Nonexistant.jpg</div>
7987 <div class="gallerytext">
7988 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7993 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7994 <div style="height: 150px;">Nonexistant.jpg</div>
7995 <div class="gallerytext">
7996 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8000 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8001 <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>
8002 <div class="gallerytext">
8003 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8004 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8008 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8009 <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>
8010 <div class="gallerytext">
8011 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8020 Gallery (with namespace-less filenames)
8023 File:Nonexistant.jpg
8029 <ul class="gallery">
8030 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8031 <div style="height: 150px;">Nonexistant.jpg</div>
8032 <div class="gallerytext">
8035 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8036 <div style="height: 150px;">Nonexistant.jpg</div>
8037 <div class="gallerytext">
8040 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8041 <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>
8042 <div class="gallerytext">
8045 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8046 <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>
8047 <div class="gallerytext">
8055 HTML Hex character encoding (spells the word "JavaScript")
8057 JavaScript
8059 <p>JavaScript
8064 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8068 <p>&#xsee;&#XSEE;
8073 HTML Hex character encoding mixed case
8082 __FORCETOC__ override
8094 ISBN 978-0-1234-56 789
8096 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8101 ISBN followed by 5 spaces
8112 ISBN ISBN 1234567890
8114 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8119 Bug 22905: <abbr> followed by ISBN followed by </a>
8121 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8123 <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>
8132 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8137 Double RFC with a wiki link
8141 <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>
8150 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8155 Centre-aligned image
8157 [[Image:foobar.jpg|centre]]
8159 <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>
8166 [[Image:foobar.jpg|none]]
8168 <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>
8173 Width + Height sized image (using px) (height is ignored)
8175 [[Image:foobar.jpg|640x480px]]
8177 <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>
8182 Width-sized image (using px, no following whitespace)
8184 [[Image:foobar.jpg|640px]]
8186 <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>
8191 Width-sized image (using px, with following whitespace - test regression from r39467)
8193 [[Image:foobar.jpg|640px ]]
8195 <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>
8200 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8202 [[Image:foobar.jpg| 640px]]
8204 <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>
8209 Another italics / bold test
8217 # Note the results may be incorrect, as parserTest output included this:
8218 # XML error: Mismatched tag at byte 6120:
8219 # ...<dd> </dt></dl> </dd...
8227 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8238 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8240 Images with the "|" character in the comment
8242 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8244 <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>
8249 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8251 <html><script>alert(1);</script></html>
8253 <p><html><script>alert(1);</script></html>
8258 HTML with raw HTML ($wgRawHtml==true)
8262 <html><script>alert(1);</script></html>
8264 <p><script>alert(1);</script>
8269 Parents of subpages, one level up
8271 subpage title=[[Subpage test/L1/L2/L3]]
8275 <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>
8281 Parents of subpages, one level up, not named
8283 subpage title=[[Subpage test/L1/L2/L3]]
8287 <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>
8294 Parents of subpages, two levels up
8296 subpage title=[[Subpage test/L1/L2/L3]]
8302 <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
8303 </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>
8308 Parents of subpages, two levels up, without trailing slash or name.
8310 subpage title=[[Subpage test/L1/L2/L3]]
8319 Parents of subpages, two levels up, with lots of extra trailing slashes.
8321 subpage title=[[Subpage test/L1/L2/L3]]
8325 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8330 Definition list code coverage
8336 <dl><dt> title  </dt><dd> def
8337 </dd><dt> title </dt><dd> def
8338 </dd><dt>title</dt><dd> def
8344 Don't fall for the self-closing div
8346 <div>hello world</div/>
8348 <div>hello world</div>
8357 <p>[[:Template:Msg]]
8366 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8370 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8372 Always escape literal '>' in output, not just after '<'
8386 <p>This is a test template
8387 This is a test template
8399 Inclusion of !userCanEdit() content
8403 <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>
8409 Out-of-order TOC heading levels
8418 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8420 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8422 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8423 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8426 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8428 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8429 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8434 <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>
8435 <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>
8436 <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>
8437 <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>
8438 <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>
8439 <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>
8445 ISBN with a dummy number
8455 ISBN with space-delimited number
8459 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8465 ISBN with multiple spaces, no number
8484 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8485 </p><p>ISBN 12345678901
8491 ISBN with trailing year (bug 8110)
8493 ISBN 1-234-56789-0 - 2006
8495 ISBN 1 234 56789 0 - 2006
8497 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8498 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8506 {{anchorencode:foo bar©#%n}}
8508 <p>foo_bar.C2.A9.23.25n
8513 anchorencode trims spaces
8515 {{anchorencode: __pretty__please__}}
8522 anchorencode deals with links
8524 {{anchorencode: [[hello|world]] [[hi]]}}
8531 anchorencode deals with templates
8533 {{anchorencode: {{Foo}} }}
8540 anchorencode encodes like the TOC generator: (bug 18431)
8542 === _ +:.3A%3A&&]] ===
8543 {{anchorencode: _ +:.3A%3A&&]] }}
8546 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8547 <p>.2B:.3A.253A.26.26.5D.5D
8551 # Expected output in the following test is not necessarily expected (there
8552 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8553 # only testing for well-formedness.
8555 Bug 6200: blockquotes and paragraph formatting
8575 Bug 8293: Use of center tag ruins paragraph formatting
8597 ### Language variants related tests
8600 Self-link in language variants
8602 title=[[Dunav]] language=sr
8604 Both [[Dunav]] and [[Дунав]] are names for this river.
8606 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8612 Link to pages in language variants
8616 Main Page can be written as [[Маин Паге]]
8618 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8624 Multiple links to pages in language variants
8628 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8630 <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>.
8636 Simple template in language variants
8642 <p>This is a test template
8648 Template with explicit namespace in language variants
8654 <p>This is a test template
8660 Basic test for template parameter in language variants
8664 {{парамтест|param=foo}}
8666 <p>This is a test template with parameter foo
8672 Simple category in language variants
8676 [[Category:МедиаWики Усер'с Гуиде]]
8678 <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>
8683 Stripping -{}- tags (language variants)
8687 Latin proverb: -{Ne nuntium necare}-
8689 <p>Latin proverb: Ne nuntium necare
8695 Prevent conversion with -{}- tags (language variants)
8697 language=sr variant=sr-ec
8699 Latinski: -{Ne nuntium necare}-
8701 <p>Латински: Ne nuntium necare
8707 Prevent conversion of text with -{}- tags (language variants)
8709 language=sr variant=sr-ec
8711 Latinski: -{Ne nuntium necare}-
8713 <p>Латински: Ne nuntium necare
8719 Prevent conversion of links with -{}- tags (language variants)
8721 language=sr variant=sr-ec
8725 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8731 -{}- tags within headlines (within html for parserConvert())
8733 language=sr variant=sr-ec
8737 <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>
8743 Explicit definition of language variant alternatives
8745 language=zh variant=zh-tw
8747 -{zh:China;zh-tw:Taiwan}-, not China
8749 <p>Taiwan, not China
8755 Explicit session-wise language variant mapping (A flag and - flag)
8757 language=zh variant=zh-tw
8759 Taiwan is not China.
8760 But -{A|zh:China;zh-tw:Taiwan}- is China,
8761 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8762 and -{China}- is China.
8764 <p>Taiwan is not China.
8765 But Taiwan is Taiwan,
8766 (This should be stripped!)
8772 Explicit session-wise language variant mapping (H flag for hide)
8774 language=zh variant=zh-tw
8776 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8779 <p>(This should be stripped!)
8785 Adding explicit conversion rule for title (T flag)
8787 language=zh variant=zh-tw showtitle
8789 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8792 <p>Should be stripped!
8797 Testing that changing the language variant here in the tests actually works
8799 language=zh variant=zh showtitle
8801 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8804 <p>Should be stripped!
8809 Bug 24072: more test on conversion rule for title
8811 language=zh variant=zh-tw showtitle
8813 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8814 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8817 <p>This should be stripped!
8818 This won't take interferes with the title rule.
8823 Raw output of variant escape tags (R flag)
8825 language=zh variant=zh-tw
8827 Raw: -{R|zh:China;zh-tw:Taiwan}-
8829 <p>Raw: zh:China;zh-tw:Taiwan
8834 Nested using of manual convert syntax
8836 language=zh variant=zh-hk
8838 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8840 <p>Nested: Hello Hong Kong!
8845 Do not convert roman numbers to language variants
8847 language=sr variant=sr-ec
8851 <p>Фридрих IV је цар.
8856 Unclosed language converter markup "-{"
8867 Don't convert raw rule "-{R|=>}-" to "=>"
8884 Bug 529: Uncovered bullet
8895 Bug 529: Uncovered table already at line-start
8918 Bug 529: Uncovered bullet in parser function result
8920 * Foo {{lc:{{bullet}} }}
8929 Bug 5678: Double-parsed template argument
8931 {{lc:{{{1}}}|hello}}
8938 Bug 5678: Double-parsed template invocation
8940 {{lc:{{paramtest {{!}} param = hello }} }}
8942 <p>{{paramtest | param = hello }}
8947 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8973 Morwen/13: Unclosed link followed by heading
8980 <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>
8985 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8992 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8997 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9004 <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>
9019 Paragraphs inside divs (no extra line breaks)
9031 Paragraphs inside divs (extra line break on open)
9046 Paragraphs inside divs (extra line break on close)
9061 Paragraphs inside divs (extra line break on open and close)
9078 Nesting tags, paragraphs on lines which begin with <div>
9082 <div></div><strong>A
9091 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9093 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9097 <blockquote>Line one
9099 Line two</blockquote>
9101 <blockquote>Line one
9102 Line two</blockquote>
9107 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9114 Line two</blockquote>
9119 Line two</blockquote>
9124 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9128 <blockquote>Line one
9133 <blockquote>Line one
9141 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9160 Paragraphs inside blockquotes/divs (no extra line breaks)
9162 <blockquote><div>Line one
9164 Line two</div></blockquote>
9166 <blockquote><div>Line one
9167 Line two</div></blockquote>
9172 Paragraphs inside blockquotes/divs (extra line break on open)
9177 Line two</div></blockquote>
9182 Line two</div></blockquote>
9187 Paragraphs inside blockquotes/divs (extra line break on close)
9189 <blockquote><div>Line one
9194 <blockquote><div>Line one
9202 Paragraphs inside blockquotes/divs (extra line break on open and close)
9219 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9221 wgLinkHolderBatchSize=0
9227 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9228 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9229 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9234 Free external link invading image caption
9236 [[Image:Foobar.jpg|thumb|http://x|hello]]
9238 <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>
9243 Bug 15196: localised external link numbers
9247 [http://en.wikipedia.org/]
9249 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9254 Multibyte character in padleft
9256 {{padleft:-Hello|7|Æ}}
9263 Multibyte character in padright
9265 {{padright:Hello-|7|Æ}}
9278 <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>
9283 formatdate parser function
9285 {{#formatdate:2009-03-24}}
9287 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9292 formatdate parser function, with default format
9294 {{#formatdate:2009-03-24|mdy}}
9296 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9301 Linked date with autoformatting disabled
9303 wgUseDynamicDates=false
9307 <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>
9312 Spacing of numbers in formatted dates
9314 {{#formatdate:January 15}}
9316 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9321 Spacing of numbers in formatted dates (linked)
9323 wgUseDynamicDates=true
9327 <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>
9340 Edit comment with link
9344 I like the [[Main Page]] a lot
9346 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9350 Edit comment with link and link text
9354 I like the [[Main Page|best pages]] a lot
9356 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9360 Edit comment with link and link text with suffix
9364 I like the [[Main Page|best page]]s a lot
9366 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9370 Edit comment with section link (non-local, eg in history list)
9372 comment title=[[Main Page]]
9374 /* External links */ removed bogus entries
9376 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9380 Edit comment with section link and text before it (non-local, eg in history list)
9382 comment title=[[Main Page]]
9384 pre-comment text /* External links */ removed bogus entries
9386 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>
9390 Edit comment with section link (local, eg in diff view)
9392 comment local title=[[Main Page]]
9394 /* External links */ removed bogus entries
9396 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9400 Edit comment with subpage link (bug 14080)
9404 title=[[Subpage test]]
9406 Poked at a [[/subpage]] here...
9408 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9412 Edit comment with subpage link and link text (bug 14080)
9416 title=[[Subpage test]]
9418 Poked at a [[/subpage|neat little page]] here...
9420 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9424 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9427 title=[[Subpage test]]
9429 Poked at a [[/subpage]] here...
9431 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9435 Edit comment with bare anchor link (local, as on diff)
9443 <a href="#section">#section</a>
9447 Edit comment with bare anchor link (non-local, as on history)
9454 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9458 Anchor starting with underscore
9462 <p><a href="#_ref">One</a>
9467 Id starting with underscore
9469 <div id="_ref"></div>
9471 <div id="_ref"></div>
9476 Space normalisation on autocomment (bug 22784)
9481 /* __hello__world__ */
9483 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9487 percent-encoding and + signs in comments (Bug 26410)
9491 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9493 <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>
9497 Bad images - basic functionality
9506 Bad images - bug 16039: text after bad image disappears
9520 Verify that displaytitle works (bug #22501) no displaytitle
9524 wgAllowDisplayTitle=true
9525 wgRestrictDisplayTitle=false
9527 this is not the the title
9530 <p>this is not the the title
9535 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9540 wgAllowDisplayTitle=true
9541 wgRestrictDisplayTitle=false
9543 this is not the the title
9544 {{DISPLAYTITLE:whatever}}
9547 <p>this is not the the title
9552 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9557 wgAllowDisplayTitle=true
9558 wgRestrictDisplayTitle=true
9560 this is not the the title
9561 {{DISPLAYTITLE:whatever}}
9564 <p>this is not the the title
9569 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9574 wgAllowDisplayTitle=true
9575 wgRestrictDisplayTitle=true
9577 this is not the the title
9578 {{DISPLAYTITLE:screen}}
9581 <p>this is not the the title
9586 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9591 wgAllowDisplayTitle=false
9593 this is not the the title
9594 {{DISPLAYTITLE:screen}}
9597 <p>this is not the the title
9598 <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>
9603 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9608 wgAllowDisplayTitle=false
9610 this is not the the title
9613 <p>this is not the the title
9618 preload: check <noinclude> and <includeonly>
9622 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9628 preload: check <onlyinclude>
9632 Goodbye <onlyinclude>Hello world</onlyinclude>
9638 preload: can pass tags through if we want to
9642 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9644 <includeonly>Hello world</includeonly>
9648 preload: check that it doesn't try to do tricks
9652 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9654 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9658 Play a bit with r67090 and bug 3158
9662 <div style="width:50% !important"> </div>
9663 <div style="width:50% !important"> </div>
9664 <div style="width:50% !important"> </div>
9665 <div style="border : solid;"> </div>
9667 <div style="width:50% !important"> </div>
9668 <div style="width:50% !important"> </div>
9669 <div style="width:50% !important"> </div>
9670 <div style="border : solid;"> </div>
9675 HTML5 data attributes
9677 <span data-foo="bar">Baz</span>
9678 <p data-abc-def_hij="">Quuz</p>
9680 <p><span data-foo="bar">Baz</span>
9682 <p data-abc-def_hij="">Quuz</p>
9687 percent-encoding and + signs in internal links (Bug 26410)
9689 [[User:+%]] [[Page+title%]]
9690 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9691 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9692 [[%33%45]] [[%33%45+]]
9694 <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>
9695 <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>
9696 <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>
9697 <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>
9702 Special characters in embedded file links (bug 27679)
9704 [[File:Contains & ampersand.jpg]]
9705 [[File:Does not exist.jpg|Title with & ampersand]]
9707 <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>
9708 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9714 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9716 Text's been normalized?
9718 <p>Text's been normalized?
9723 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9725 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9727 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9732 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9734 [http://www.example.org/ ideograms]
9736 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9741 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9743 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9745 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9769 Bug 31098 Template which includes system messages which includes the template
9773 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9774 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9779 Deprecated presentational attributes are converted to css
9782 | valign=top align=left width=100 height=25% | Asdf
9784 <ul type="disc"></ul>
9788 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9790 <ul style="list-style-type: disc;"></ul>
9795 Bug31490 Turkish: ucfirst 'blah'
9806 Bug31490 Turkish: ucfirst 'ix'
9817 Bug31490 Turkish: lcfirst 'BLAH'
9828 Bug31490 Turkish: ucfırst (with a dotless i)
9834 <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>
9839 Bug31490 ucfırst (with a dotless i) with English language
9845 <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>
9850 Bug 26375: TOC with italics
9855 == ''Lost'' episodes ==
9857 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9859 <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>
9862 <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>
9867 Bug 26375: TOC with bold
9872 == '''should be bold''' then normal text ==
9874 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9876 <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>
9879 <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>
9884 Bug 33845: Headings become cursive in TOC when they contain an image
9889 == Image [[Image:foobar.jpg]] ==
9891 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9893 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9896 <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>
9901 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9906 == <blockquote>Quote</blockquote> ==
9908 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9910 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9913 <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>
9918 Unclosed tags in TOC
9924 <small>Hanc marginis exiguitas non caperet.</small>
9927 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9929 <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>
9932 <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>
9933 <p><small>Hanc marginis exiguitas non caperet.</small>
9939 Multiple tags in TOC
9942 == <i>Foo</i> <b>Bar</b> ==
9944 == <i>Foo</i> <blockquote>Bar</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="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
9949 <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>
9952 <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>
9953 <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>
9958 Tags with parameters in TOC
9961 == <sup class="in-h2">Hello</sup> ==
9963 == <sup class="a > b">Evilbye</sup> ==
9965 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9967 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9968 <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>
9971 <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>
9972 <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>
9979 == {{int:headline_sample}} ==
9983 Bug 32057: Title needed when expanding <h> nodes.
9989 <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>
9994 Strip marker in urlencode
9996 {{urlencode:x<nowiki/>y}}
9997 {{urlencode:x<nowiki/>y|wiki}}
9998 {{urlencode:x<nowiki/>y|path}}
10025 Strip marker in formatNum
10027 {{formatnum:1<nowiki/>2}}
10028 {{formatnum:1<nowiki/>2|R}}
10036 Strip marker in grammar
10040 {{grammar:elative|foo<nowiki/>bar}}
10047 Strip marker in padleft
10049 {{padleft:|2|x<nowiki/>y}}
10056 Strip marker in padright
10058 {{padright:|2|x<nowiki/>y}}
10065 Strip marker in anchorencode
10067 {{anchorencode:x<nowiki/>y}}
10074 nowiki inside link inside heading (bug 18295)
10076 ==[[foo|x<nowiki>y</nowiki>z]]==
10078 <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>
10083 new support for bdi element (bug 31817)
10085 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10087 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10092 Ignore pipe between table row attributes
10096 |- id=foo | style='color: red'
10104 <tr id="foo" style="color: red">
10111 Gallery override link with WikiLink (bug 34852)
10114 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10117 <ul class="gallery">
10118 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10119 <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>
10120 <div class="gallerytext">
10130 Gallery override link with absolute external link (bug 34852)
10133 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10136 <ul class="gallery">
10137 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10138 <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>
10139 <div class="gallerytext">
10149 Gallery override link with malicious javascript (bug 34852)
10152 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
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/%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>
10158 <div class="gallerytext">
10168 Language parser function
10177 Padleft and padright as substr
10179 {{padleft:|3|abcde}}
10180 {{padright:|3|abcde}}
10193 Try for 100% code coverage