1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 This is a simple paragraph.
83 <p>This is a simple paragraph.
88 Paragraphs with extra newline spacing
126 * plain''italic''plain
127 * plain''italic''plain''italic''plain
128 * plain'''bold'''plain
129 * plain'''bold'''plain'''bold'''plain
130 * plain''italic''plain'''bold'''plain
131 * plain'''bold'''plain''italic''plain
132 * plain''italic'''bold-italic'''italic''plain
133 * plain'''bold''bold-italic''bold'''plain
134 * plain'''''bold-italic'''italic''plain
135 * plain'''''bold-italic''bold'''plain
136 * plain''italic'''bold-italic'''''plain
137 * plain'''bold''bold-italic'''''plain
138 * plain l'''italic''plain
139 * plain l''''bold''' plain
142 </li><li> plain<i>italic</i>plain
143 </li><li> plain<i>italic</i>plain<i>italic</i>plain
144 </li><li> plain<b>bold</b>plain
145 </li><li> plain<b>bold</b>plain<b>bold</b>plain
146 </li><li> plain<i>italic</i>plain<b>bold</b>plain
147 </li><li> plain<b>bold</b>plain<i>italic</i>plain
148 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
149 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
150 </li><li> plain<i><b>bold-italic</b>italic</i>plain
151 </li><li> plain<b><i>bold-italic</i>bold</b>plain
152 </li><li> plain<i>italic<b>bold-italic</b></i>plain
153 </li><li> plain<b>bold<i>bold-italic</i></b>plain
154 </li><li> plain l'<i>italic</i>plain
155 </li><li> plain l'<b>bold</b> plain
161 ### 2-quote opening sequence tests
164 Italics and bold: 2-quote opening sequence: (2,2)
174 Italics and bold: 2-quote opening sequence: (2,3)
184 Italics and bold: 2-quote opening sequence: (2,4)
194 Italics and bold: 2-quote opening sequence: (2,5)
204 ### 3-quote opening sequence tests
208 Italics and bold: 3-quote opening sequence: (3,2)
218 Italics and bold: 3-quote opening sequence: (3,3)
228 Italics and bold: 3-quote opening sequence: (3,4)
238 Italics and bold: 3-quote opening sequence: (3,5)
248 ### 4-quote opening sequence tests
252 Italics and bold: 4-quote opening sequence: (4,2)
262 Italics and bold: 4-quote opening sequence: (4,3)
272 Italics and bold: 4-quote opening sequence: (4,4)
282 Italics and bold: 4-quote opening sequence: (4,5)
292 ### 5-quote opening sequence tests
296 Italics and bold: 5-quote opening sequence: (5,2)
306 Italics and bold: 5-quote opening sequence: (5,3)
316 Italics and bold: 5-quote opening sequence: (5,4)
320 <p><i><b>foo'</b></i>
326 Italics and bold: 5-quote opening sequence: (5,5)
335 ### multiple quote sequences in a line
338 Italics and bold: multiple quote sequences: (2,4,2)
342 <p><i>foo'<b>bar</b></i>
348 Italics and bold: multiple quote sequences: (2,4,3)
352 <p><i>foo'<b>bar</b></i>
358 Italics and bold: multiple quote sequences: (2,4,4)
362 <p><i>foo'<b>bar'</b></i>
368 Italics and bold: multiple quote sequences: (3,4,2)
378 Italics and bold: multiple quote sequences: (3,4,3)
387 ### other quote tests
390 Italics and bold: other quote tests: (2,3,5)
392 ''this is about '''foo's family'''''
394 <p><i>this is about <b>foo's family</b></i>
400 Italics and bold: other quote tests: (2,(3,3),2)
402 ''this is about '''foo's''' family''
404 <p><i>this is about <b>foo's</b> family</i>
410 Italics and bold: other quote tests: (3,2,3,2)
412 '''this is about ''foo'''s family''
414 <p><b>this is about <i>foo</i></b><i>s family</i>
420 Italics and bold: other quote tests: (3,2,3,3)
422 '''this is about ''foo'''s family'''
424 <p>'<i>this is about </i>foo<b>s family</b>
431 Italics and bold: other quote tests: (3,(2,2),3)
433 '''this is about ''foo's'' family'''
435 <p><b>this is about <i>foo's</i> family</b>
440 ### <nowiki> test cases
444 <nowiki> unordered list
446 <nowiki>* This is not an unordered list item.</nowiki>
448 <p>* This is not an unordered list item.
455 <nowiki>Lorem ipsum dolor
476 :There is not nowiki.
477 :There is <nowiki>nowiki</nowiki>.
479 #There is not nowiki.
480 #There is <nowiki>nowiki</nowiki>.
482 *There is not nowiki.
483 *There is <nowiki>nowiki</nowiki>.
485 <dl><dd>There is not nowiki.
486 </dd><dd>There is nowiki.
488 <ol><li>There is not nowiki.
489 </li><li>There is nowiki.
491 <ul><li>There is not nowiki.
492 </li><li>There is nowiki.
504 <!-- comment 1 --> asdf
540 asdf<!-- comment 1 -->jkl
550 <!-- foo --> b <!-- bar -->
564 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
570 Comment semantics and delimiters
572 <!-- --><!----><!-----><!------>
578 Comment semantics and delimiters, redux
580 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
581 -- foo -- funky huh? ... -->
587 Comment semantics and delimiters: directors cut
589 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
590 everything starting with < followed by !-- until the first -- and > we see,
591 that wouldn't be valid XML however, since in XML -- has to terminate a comment
599 Comment semantics: nesting
601 <!--<!-- no, we're not going to do anything fancy here -->-->
608 Comment semantics: unclosed comment at end
610 <!--This comment will run out to the end of the document
616 Comment in template title
625 Comment on its own line post-expand
637 ### Preformatted text
646 And a [[Main Page|link]]
652 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
657 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
674 Regression with preformatted in <center>
687 # Expected output in the following test is not really expected (there should be
688 # <pre> in the output) -- it's only testing for well-formedness.
690 Bug 6200: Preformatted in <blockquote>
703 <pre> with attributes (bug 3202)
705 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
707 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
712 <pre> with width attribute (bug 3202)
714 <pre width="8">Narrow screen goodies</pre>
716 <pre width="8">Narrow screen goodies</pre>
721 <pre> with forbidden attribute (bug 3202)
723 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
725 <pre width="8">Narrow screen goodies</pre>
730 <pre> with forbidden attribute values (bug 3202)
732 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
734 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
739 <nowiki> inside <pre> (bug 13238)
747 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
755 <pre><nowiki>Foo</nowiki></pre>
760 <nowiki> and <pre> preference (first one wins)
799 <dl><dt> name </dt><dd> Definition
805 Definition list for indentation only
809 <dl><dd> Indented text
815 Definition list with no space
819 <dl><dt>name</dt><dd>Definition
825 Definition list with URL link
827 ; http://example.com/ : definition
829 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
835 Definition list with bracketed URL link
837 ;[http://www.example.com/ Example]:Something about it
839 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
845 Definition list with wikilink containing colon
847 ; [[Help:FAQ]]: The least-read page on Wikipedia
849 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
854 # At Brion's and JeLuF's insistence... :)
856 Definition list with news link containing colon
858 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
860 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
866 Malformed definition list with colon
868 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
870 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
876 Definition lists: colon in external link text
878 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
880 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
886 Definition lists: colon in HTML attribute
888 ;<b style="display: inline">bold</b>
890 <dl><dt><b style="display: inline">bold</b>
897 Definition lists: self-closed tag
899 ;one<br/>two : two-line fun
901 <dl><dt>one<br />two </dt><dd> two-line fun
907 Bug 11748: Literal closing tags
913 <dd>test test test test test</dd>
915 <dd>test test test test test</dd>
920 <dd>test test test test test</dd>
922 <dd>test test test test test</dd>
927 Definition and unordered list using wiki syntax nested in unordered list using html tags.
936 <dl><dt> term </dt><dd> description
946 Definition list with empty definition and following paragraph
951 <dl><dt> term</dt><dd>
958 Definition Lists: No nesting: Multiple dd's
972 Definition Lists: Indentation: Regular
988 Definition Lists: Indentation: Missing 1st level
1002 Definition Lists: Indentation: Multi-level indent
1006 <dl><dd><dl><dd><dl><dd>i3
1013 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1014 ## as an empty dt item. It also ignores all but the last ";" when followed
1015 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1016 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1019 ## Ex: ";;t2 ::d2" is transformed into:
1031 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1032 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1043 ## All Parsoid only definition list tests have this difference.
1045 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1046 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1049 Definition Lists: Nesting: Multi-level (Parsoid only)
1079 Definition Lists: Nesting: Test 2 (Parsoid only)
1099 Definition Lists: Nesting: Test 3 (Parsoid only)
1127 Definition Lists: Nesting: Test 4
1132 <dl><dd><dl><dd><dl><dt>t3
1142 Definition Lists: Mixed Lists: Test 1
1148 <dl><dd><dl><dt><ul><li> foo
1160 Definition Lists: Mixed Lists: Test 2
1174 Definition Lists: Mixed Lists: Test 3
1179 <ul><li><dl><dd><dl><dd><dl><dd> d1
1190 Definition Lists: Mixed Lists: Test 4
1195 <ul><li><dl><dt>d1 </dt><dd>d2
1196 </dd><dt>d3 </dt><dd>d4
1204 Definition Lists: Mixed Lists: Test 5
1219 Definition Lists: Mixed Lists: Test 6
1224 <ol><li><ul><li><dl><dd>d1
1236 Definition Lists: Mixed Lists: Test 7
1250 Definition Lists: Mixed Lists: Test 8
1266 Definition Lists: Mixed Lists: Test 9
1270 <ul><li><dl><dt>foo </dt><dd>bar
1278 Definition Lists: Mixed Lists: Test 10
1282 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1291 Definition Lists: Mixed Lists: Test 11
1296 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1301 <dl><dt>boo </dt><dd>baz
1312 Definition Lists: Weird Ones: Test 1
1314 *#;*::;; foo : bar (who uses this?)
1316 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1332 External links: non-bracketed
1334 Non-bracketed: http://example.com
1336 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1341 External links: numbered
1343 Numbered: [http://example.com]
1344 Numbered: [http://example.net]
1345 Numbered: [http://example.com]
1347 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1348 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1349 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1354 External links: specified text
1356 Specified text: [http://example.com link]
1358 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1363 External links: trail
1365 Linktrails should not work for external links: [http://example.com link]s
1367 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1372 External links: dollar sign in URL
1374 http://example.com/1$2345
1376 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1381 External links: dollar sign in URL (named)
1383 [http://example.com/1$2345]
1385 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1390 External links: open square bracket forbidden in URL (bug 4377)
1392 http://example.com/1[2345
1394 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1399 External links: open square bracket forbidden in URL (named) (bug 4377)
1401 [http://example.com/1[2345]
1403 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1408 External links: nowiki in URL link text (bug 6230)
1410 [http://example.com/ <nowiki>''example site''</nowiki>]
1412 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1417 External links: newline forbidden in text (bug 6230 regression check)
1419 [http://example.com/ first
1422 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1428 External links: protocol-relative URL in brackets
1430 [//example.com/ Test]
1432 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1437 External links: protocol-relative URL in brackets without text
1441 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1446 External links: protocol-relative URL in free text is left alone
1450 <p>//example.com/Foo
1455 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1457 foo//example.com/Foo
1459 <p>foo//example.com/Foo
1466 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1468 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1473 External image from https
1475 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1477 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1482 Link to non-http image, no img tag
1484 Link to non-http image, no img tag: ftp://example.com/test.jpg
1486 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
1491 External links: terminating separator
1493 Terminating separator: http://example.com/thing,
1495 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1500 External links: intervening separator
1502 Intervening separator: http://example.com/1,2,3
1504 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1509 External links: old bug with URL in query
1511 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1513 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1518 External links: old URL-in-URL bug, mixed protocols
1520 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1522 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1527 External links: URL in text
1529 URL in text: [http://example.com http://example.com]
1531 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1536 External links: Clickable images
1538 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1540 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
1545 External links: raw ampersand
1547 Old & use: http://x&y
1549 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1554 External links: encoded ampersand
1556 Old & use: http://x&y
1558 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1563 External links: encoded equals (bug 6102)
1565 http://example.com/?foo=bar
1567 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1572 External links: [raw ampersand]
1574 Old & use: [http://x&y]
1576 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1581 External links: [encoded ampersand]
1583 Old & use: [http://x&y]
1585 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1590 External links: [encoded equals] (bug 6102)
1592 [http://example.com/?foo=bar]
1594 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1599 External links: [IDN ignored character reference in hostname; strip it right off]
1601 [http://e‌xample.com/]
1603 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1607 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1608 # Where an external link could easily circumvent the sanitization of the text of
1609 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1610 # test demands a higher standard. That's a bit strange.
1614 # http://example.com -> [http://example.com|http://example.com]
1615 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1617 # The first example is sanitized, but the second is not. Any security benefits
1618 # from this production are trivial to circumvent. Either remove this test and
1619 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1620 # the test accordingly.
1625 External links: IDN ignored character reference in hostname; strip it right off
1627 http://e‌xample.com/
1629 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1634 External links: www.jpeg.org (bug 554)
1638 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1643 External links: URL within URL (original bug 2)
1645 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1647 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1652 BUG 361: URL inside bracketed URL
1654 [http://www.example.com/foo http://www.example.com/bar]
1656 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1661 BUG 361: URL within URL, not bracketed
1663 http://www.example.com/foo?=http://www.example.com/bar
1665 <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>
1670 BUG 289: ">"-token in URL-tail
1672 http://www.example.com/<hello>
1674 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1679 BUG 289: literal ">"-token in URL-tail
1681 http://www.example.com/<b>html</b>
1683 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1688 BUG 289: ">"-token in bracketed URL
1690 [http://www.example.com/<hello> stuff]
1692 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1697 BUG 289: literal ">"-token in bracketed URL
1699 [http://www.example.com/<b>html</b> stuff]
1701 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1706 BUG 289: literal double quote at end of URL
1708 http://www.example.com/"hello"
1710 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1715 BUG 289: literal double quote in bracketed URL
1717 [http://www.example.com/"hello" stuff]
1719 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1724 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1726 [http://www.example.com test]
1728 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1733 External links: wiki links within external link (Bug 3695)
1735 [http://example.com [[wikilink]] embedded in ext link]
1737 <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>
1742 BUG 787: Links with one slash after the url protocol are invalid
1746 [http:/example.com title]
1748 <p>http:/example.com
1749 </p><p>[http:/example.com title]
1754 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1756 ''[http://example.com text'']
1757 [http://example.com '''text]'''
1758 ''Something [http://example.com in italic'']
1759 ''Something [http://example.com mixed''''', even bold]'''
1760 '''''Now [http://example.com both''''']
1762 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1763 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1764 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1765 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1766 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1772 Bug 4781: %26 in URL
1774 http://www.example.com/?title=AT%26T
1776 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1780 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1781 # % is actually legal in HTML5. Any change in output would need testing though.
1783 Bug 4781, 5267: %25 in URL
1785 http://www.example.com/?title=100%25_Bran
1787 <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>
1792 Bug 4781, 5267: %28, %29 in URL
1794 http://www.example.com/?title=Ben-Hur_%281959_film%29
1796 <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>
1802 Bug 4781: %26 in autonumber URL
1804 [http://www.example.com/?title=AT%26T]
1806 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1811 Bug 4781, 5267: %26 in autonumber URL
1813 [http://www.example.com/?title=100%25_Bran]
1815 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1820 Bug 4781, 5267: %28, %29 in autonumber URL
1822 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1824 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1830 Bug 4781: %26 in bracketed URL
1832 [http://www.example.com/?title=AT%26T link]
1834 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1839 Bug 4781, 5267: %26 in bracketed URL
1841 [http://www.example.com/?title=100%25_Bran link]
1843 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1848 Bug 4781, 5267: %28, %29 in bracketed URL
1850 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1852 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1857 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1859 Some [http://example.com/ pretty ''italics'' and stuff]!
1861 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1866 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1868 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1870 <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>
1875 External link containing double-single-quotes with no space separating the url from text in italics
1877 [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]].]
1879 <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>
1884 URL-encoding in URL functions (single parameter)
1886 {{localurl:Some page|amp=&}}
1888 <p>/index.php?title=Some_page&amp=&
1893 URL-encoding in URL functions (multiple parameters)
1895 {{localurl:Some page|q=?&=&}}
1897 <p>/index.php?title=Some_page&q=?&amp=&
1904 http://example.com/index.php?foozoid%5B%5D=bar
1906 http://example.com/index.php?foozoid[]=bar
1908 <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>
1909 </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>
1914 IPv6 urls (bug 21261)
1918 http://[2404:130:0:1000::187:2]/index.php
1920 <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>
1931 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1933 Normal text. '''''Bold italic text.''''' Normal text.
1935 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1936 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1942 Unclosed and unmatched quotes
1944 '''''Bold italic text '''with bold deactivated''' in between.'''''
1946 '''''Bold italic text ''with italic deactivated'' in between.'''''
1950 ..spanning two paragraphs (should not work).'''
1952 '''Bold tag left open
1954 ''Italic tag left open
1958 <!-- Unmatching number of opening, closing tags: -->
1959 '''This year''''s election ''should'' beat '''last year''''s.
1961 ''Tom'''s car is bigger than ''Susan'''s.
1963 Plain ''italic'''s plain
1965 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1966 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1967 </p><p><b>Bold text..</b>
1968 </p><p>..spanning two paragraphs (should not work).
1969 </p><p><b>Bold tag left open</b>
1970 </p><p><i>Italic tag left open</i>
1972 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1973 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1974 </p><p>Plain <i>italic'</i>s plain
1981 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1984 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1985 # is the bare minimun required by the spec, see:
1986 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1988 A table with no data.
1994 # A table with nothing but a caption is invalid XHTML, we might want to render
1995 # this as <p>caption</p>
1997 A table with nothing but a caption
2005 </caption><tr><td></td></tr></table>
2031 Multiplication table
2033 {| border="1" cellpadding="2"
2034 |+Multiplication table
2036 ! × !! 1 !! 2 !! 3
2054 <table border="1" cellpadding="2">
2055 <caption>Multiplication table
2106 |rowspan=2| Cell 2, row 1 (and 2)
2117 <td rowspan="2"> Cell 2, row 1 (and 2)
2135 {| bgcolor=#ABCDEF border=2
2140 |the original table again
2148 <table bgcolor="#ABCDEF" border="2">
2156 <td>the original table again
2162 Invalid attributes in table cell (bug 1830)
2177 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2180 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2184 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2185 <td>]" onmouseover="alert(document.cookie)">test
2194 Indented table markup mixed with indented pre content (proposed in bug 6200)
2199 Text that should be rendered preformatted
2207 <pre>Text that should be rendered preformatted
2220 Plain link, capitalized
2224 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2229 Plain link, uncapitalized
2233 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2240 [[Main Page|The Main Page]]
2242 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2251 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2256 Broken link with fragment
2258 [[Zigzagzogzagzig#zug]]
2260 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2265 Special page link with fragment
2267 [[Special:Version#anchor]]
2269 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2274 Nonexistent special page link with fragment
2276 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2278 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2285 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2287 <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>
2294 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2296 <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>!!!
2301 Link with 3 brackets
2310 Piped link with 3 brackets
2312 [[[main page|the main page]]]
2314 <p>[[[main page|the main page]]]
2319 Link with multiple pipes
2321 [[Main Page|The|Main|Page]]
2323 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2330 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2332 <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>
2337 Piped link to namespace
2339 [[Meta:Disclaimers|The disclaimers]]
2341 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2348 [[Usually caused by a typo (oops}]]
2350 <p>[[Usually caused by a typo (oops}]]
2355 Link containing % (not as a hex sequence)
2359 <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>
2364 Link containing % as a single hex sequence interpreted to char
2368 <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>
2373 Link containing % as a double hex sequence interpreted to hex sequence
2377 <p>[[7%2525 Solution]]
2382 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2383 Example for such a section: == < ==
2385 [[%23%3c]][[%23%3e]]
2387 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2392 Link containing "<#" and ">#" as a hex sequences
2394 [[%3c%23]][[%3e%23]]
2396 <p>[[%3c%23]][[%3e%23]]
2401 Link containing double-single-quotes '' (bug 4598)
2403 [[Lista d''e paise d''o munno]]
2405 <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>
2410 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2412 Some [[Link|pretty ''italics'' and stuff]]!
2414 <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>!
2419 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2421 ''Some [[Link|pretty ''italics'' and stuff]]!
2423 <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>
2428 Link with double quotes in title part (literal) and alternate part (interpreted)
2430 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2434 [[''Pentecoste''|Pentecoste]]
2436 [[''Pentecoste''|''Pentecoste'']]
2438 <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>
2439 </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>
2440 </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>
2441 </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>
2446 Broken image links with HTML captions (bug 39700)
2448 [[File:Nonexistent|<script></script>]]
2449 [[File:Nonexistent|100px|<script></script>]]
2450 [[File:Nonexistent|<]]
2451 [[File:Nonexistent|a<i>b</i>c]]
2453 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2454 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2455 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2456 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2463 [[http://www.example.com]]
2465 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2470 Plain link to URL with link text
2472 [[http://www.example.com Link text]]
2474 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2479 Plain link to protocol-relative URL
2481 [[//www.example.com]]
2483 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2488 Plain link to protocol-relative URL with link text
2490 [[//www.example.com Link text]]
2492 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2497 # I'm fairly sure the expected result here is wrong.
2498 # We want these to be URL links, not pseudo-pages with URLs for titles....
2499 # However the current output is also pretty screwy.
2502 # I'm changing it to match the current output--it arguably makes more
2503 # sense in the light of the test above. Old expected result was:
2504 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2506 # But I think this test is bordering on "garbage in, garbage out" anyway.
2511 Piped link to URL: [[http://www.example.com|an example URL]]
2513 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2518 BUG 2: [[page|http://url/]] should link to page, not http://url/
2520 [[Main Page|http://url/]]
2522 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2527 BUG 337: Escaped self-links should be bold
2531 [[Bug462]] [[Bug462]]
2533 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2538 Self-link to section should not be bold
2542 [[Main Page#section]]
2544 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2555 Self-link to numeric title
2561 <p><strong class="selflink">0</strong>
2566 Link to numeric-equivalent title
2572 <p><a href="/wiki/00" title="00">00</a>
2577 <nowiki> inside a link
2579 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2581 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2586 Non-breaking spaces in title
2588 [[ Main Page ]]
2590 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2595 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2601 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2606 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2612 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2617 Internal link with en linktrail: no apostrophes (bug 27473)
2623 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2628 Internal link with ca linktrail with apostrophes (bug 27473)
2634 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2639 Internal link with kaa linktrail with apostrophes (bug 27473)
2645 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2650 ### Interwiki links (see maintenance/interwiki.sql)
2654 Inline interwiki link
2656 [[MeatBall:SoftSecurity]]
2658 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2663 Inline interwiki link with empty title (bug 2372)
2667 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2672 Interwiki link encoding conversion (bug 1636)
2674 *[[Wikipedia:ro:Olteniţa]]
2675 *[[Wikipedia:ro:Olteniţa]]
2677 <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>
2678 </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>
2684 Interwiki link with fragment (bug 2130)
2686 [[MeatBall:SoftSecurity#foo]]
2688 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2703 Double interlanguage link
2714 Interlanguage link, with prefix links
2726 Double interlanguage link, with prefix links (bug 8897)
2753 Incorrecly removing closing slashes from correctly formed XHTML
2755 <br style="clear:both;" />
2757 <p><br style="clear:both;" />
2762 Failing to transform badly formed HTML into correct XHTML
2764 <br style="clear: left;">
2765 <br style="clear: right;">
2766 <br style="clear: both;">
2768 <p><br style="clear: left;" />
2769 <br style="clear: right;" />
2770 <br style="clear: both;" />
2775 Horizontal ruler (should it add that extra space?)
2789 Horizontal ruler -- 4+ dashes render hr
2798 Horizontal ruler -- eats additional dashes on the same line
2807 Horizontal ruler -- does not collaps dashes on consecutive lines
2818 Horizontal ruler -- <4 dashes render as plain text
2827 ### Block-level elements
2850 <ol><li>Numbered list
2867 ***#Number on level 4
2869 **#Number on level 3
2870 **#Number on level 3
2874 #** Level 3, but ordered
2877 <ol><li> with numbers
2879 <ul><li> and bullets
2881 <ol><li> and numbers
2883 </li><li>bullets again
2884 <ul><li>bullet level 2
2885 <ul><li>bullet level 3
2886 <ol><li>Number on level 4
2889 </li><li>bullet level 2
2890 <ol><li>Number on level 3
2891 </li><li>Number on level 3
2894 <ol><li>number level 2
2897 <ul><li><ul><li> Level 3
2901 <ol><li><ul><li><ul><li> Level 3, but ordered
2935 Nested lists 3 (first element empty)
2948 Nested lists 4 (first element empty)
2961 Nested lists 5 (both elements empty)
2974 Nested lists 6 (both elements empty)
2987 Nested lists 7 (skip initial nesting levels)
2991 <ul><li><ul><li><ul><li> foo
2999 Nested lists 8 (multiple nesting transitions)
3007 <ul><li><ul><li> bar
3018 List items are not parsed correctly following a <pre> block (bug 785)
3024 <ul><li> <pre>foo</pre>
3025 </li><li> <pre>bar</pre>
3032 List items from template
3043 * notSOL{{inner list}}
3062 List interrupted by empty line or heading
3072 <ul><li><ul><li> bar
3075 <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>
3076 <ul><li> Another list item
3087 Magic Word: {{CURRENTDAY}}
3096 Magic Word: {{CURRENTDAY2}}
3105 Magic Word: {{CURRENTDAYNAME}}
3114 Magic Word: {{CURRENTDOW}}
3123 Magic Word: {{CURRENTMONTH}}
3132 Magic Word: {{CURRENTMONTHABBREV}}
3134 {{CURRENTMONTHABBREV}}
3141 Magic Word: {{CURRENTMONTHNAME}}
3143 {{CURRENTMONTHNAME}}
3150 Magic Word: {{CURRENTMONTHNAMEGEN}}
3152 {{CURRENTMONTHNAMEGEN}}
3159 Magic Word: {{CURRENTTIME}}
3168 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3177 Magic Word: {{CURRENTYEAR}}
3186 Magic Word: {{FULLPAGENAME}}
3188 title=[[User:Ævar Arnfjörð Bjarmason]]
3192 <p>User:Ævar Arnfjörð Bjarmason
3197 Magic Word: {{FULLPAGENAMEE}}
3199 title=[[User:Ævar Arnfjörð Bjarmason]]
3203 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3208 Magic Word: {{NAMESPACE}}
3210 title=[[User:Ævar Arnfjörð Bjarmason]]
3219 Magic Word: {{NAMESPACEE}}
3221 title=[[User:Ævar Arnfjörð Bjarmason]]
3230 Magic Word: {{NAMESPACENUMBER}}
3232 title=[[User:Ævar Arnfjörð Bjarmason]]
3241 Magic Word: {{NUMBEROFFILES}}
3250 Magic Word: {{PAGENAME}}
3252 title=[[User:Ævar Arnfjörð Bjarmason]]
3256 <p>Ævar Arnfjörð Bjarmason
3261 Magic Word: {{PAGENAME}} with metacharacters
3263 title=[['foo & bar = baz']]
3267 <p><i>'foo & bar = baz'</i>
3272 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3274 title=[[*RFC 1234 http://example.com/]]
3278 <p>*RFC 1234 http://example.com/
3283 Magic Word: {{PAGENAMEE}}
3285 title=[[User:Ævar Arnfjörð Bjarmason]]
3289 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3294 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3296 title=[[*RFC 1234 http://example.com/]]
3300 <p>*RFC_1234_http://example.com/
3305 Magic Word: {{REVISIONID}}
3314 Magic Word: {{SCRIPTPATH}}
3323 Magic Word: {{SERVER}}
3327 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3332 Magic Word: {{SERVERNAME}}
3341 Magic Word: {{SITENAME}}
3350 Namespace 1 {{ns:1}}
3359 Namespace 1 {{ns:01}}
3368 Namespace 0 {{ns:0}} (bug 4783)
3376 Namespace 0 {{ns:00}} (bug 4783)
3384 Namespace -1 {{ns:-1}}
3393 Namespace User {{ns:User}}
3402 Namespace User talk {{ns:User_talk}}
3411 Namespace User talk {{ns:uSeR tAlK}}
3420 Namespace File {{ns:File}}
3429 Namespace File {{ns:Image}}
3438 Namespace (lang=de) Benutzer {{ns:User}}
3449 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3455 <p>Benutzer Diskussion
3463 {{urlencode:hi world?!}}
3464 {{urlencode:hi world?!|WIKI}}
3465 {{urlencode:hi world?!|PATH}}
3466 {{urlencode:hi world?!|QUERY}}
3479 Magic links: internal link to RFC (bug 479)
3483 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3488 Magic links: RFC (bug 479)
3492 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3497 Magic links: ISBN (bug 1937)
3501 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3506 Magic links: PMID incorrectly converts space to underscore
3510 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3519 Nonexistent template
3521 {{thistemplatedoesnotexist}}
3523 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3530 This is a test template
3538 <p>This is a test template
3543 Template with explicit namespace
3547 <p>This is a test template
3555 This is a test template with parameter {{{param}}}
3561 {{paramtest|param=foo}}
3563 <p>This is a test template with parameter foo
3568 Template:paramtestnum
3574 Template unnamed parameter
3576 {{paramtestnum|Main Page|the main page}}
3578 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3583 Template:templatesimple
3589 Template:templateredirect
3591 #redirect [[Template:templatesimple]]
3595 Template:templateasargtestnum
3601 Template:templateasargtest
3603 {{template{{{templ}}}}}
3607 Template:templateasargtest2
3613 Template with template name as unnamed argument
3615 {{templateasargtestnum|templatesimple}}
3622 Template with template name as argument
3624 {{templateasargtest|templ=simple}}
3631 Template with template name as argument (2)
3633 {{templateasargtest2|templ=templatesimple}}
3640 Template:templateasargtestdefault
3642 {{{{{templ|templatesimple}}}}}
3652 Template with default value
3654 {{templateasargtestdefault}}
3661 Template with default value (value set)
3663 {{templateasargtestdefault|templ=templa}}
3672 {{templateredirect}}
3679 Template with argument in separate line
3681 {{ templateasargtest |
3689 Template with complex template as argument
3692 param ={{ templateasargtest |
3695 <p>This is a test template with parameter (test)
3700 Template with thumb image (with link in description)
3703 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3705 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>
3710 Template:complextemplate
3712 {{{1}}} {{paramtest|
3713 param ={{{param}}}}}
3717 Template with complex arguments
3720 param ={{ templateasargtest |
3721 templ = simple }}|[[Template:complextemplate|link]]}}
3723 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3728 BUG 553: link with two variables in a piped link
3731 |[[{{{1}}}|{{{2}}}]]
3736 <td>[[{{{1}}}|{{{2}}}]]
3742 Magic variable as template parameter
3744 {{paramtest|param={{SITENAME}}}}
3746 <p>This is a test template with parameter MediaWiki
3753 [[{{{param}}}|link]]
3757 Template parameter as link source
3759 {{linktest|param=Main Page}}
3761 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3769 including another template, {{paramtest|param={{{arg}}}}}
3773 Template passing argument to another template
3775 {{paramtest2|arg='hmm'}}
3777 <p>including another template, This is a test template with parameter 'hmm'
3788 Template as link source
3792 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3810 Template infinite loop
3814 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3819 Template from main namespace
3838 BUG 529: Template with table, not included at beginning of line
3857 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3877 BUG 41: Template parameters shown as broken links
3889 ''None'' of '''this''' should be
3891 but rather passed unmodified
3895 # hmm, fix this or just deprecate msgnw and document its behavior?
3901 {{msgnw:MSGNW test}}
3903 <p>''None'' of '''this''' should be
3905 but rather passed unmodified
3913 {{int:youhavenewmessages|lots of money|not!}}
3915 <p>You have lots of money (not!).
3922 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3926 <includeonly> and <noinclude> being included
3937 <onlyinclude>Foo</onlyinclude>bar
3941 <onlyinclude> being included
3953 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3957 <onlyinclude> and <includeonly> being included
3966 <includeonly> and <noinclude> on a page
3968 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3975 <onlyinclude> on a page
3977 <onlyinclude>Foo</onlyinclude>bar
3984 Template:Includeonly section
3987 ==Includeonly section==
3993 Bug 6563: Edit link generation for section shown by <includeonly>
3995 {{includeonly section}}
3997 <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>
3998 <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>
4002 # Uses same input as the contents of [[Template:Includeonly section]]
4004 Bug 6563: Section extraction for section shown by <includeonly>
4009 ==Includeonly section==
4017 Bug 6563: Edit link generation for section suppressed by <includeonly>
4020 ==Includeonly section==
4024 <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>
4029 Bug 6563: Section extraction for section suppressed by <includeonly>
4034 ==Includeonly section==
4042 ### Pre-save transform tests
4045 pre-save transform: subst:
4051 This is a test template
4055 pre-save transform: normal template
4065 pre-save transform: nonexistent template
4069 {{thistemplatedoesnotexist}}
4071 {{thistemplatedoesnotexist}}
4076 pre-save transform: subst magic variables
4085 # This is bug 89, which I fixed. -- wtm
4087 pre-save transform: subst: templates with parameters
4091 {{subst:paramtest|param="something else"}}
4093 This is a test template with parameter "something else"
4099 <nowiki>'''not wiki'''</nowiki>
4103 pre-save transform: nowiki in subst (bug 1188)
4107 {{subst:nowikitest}}
4109 <nowiki>'''not wiki'''</nowiki>
4114 Template:commenttest
4116 This template has <!-- a comment --> in it.
4120 pre-save transform: comment in subst (bug 1936)
4124 {{subst:commenttest}}
4126 This template has <!-- a comment --> in it.
4130 pre-save transform: unclosed tag
4134 <nowiki>'''not wiki'''
4136 <nowiki>'''not wiki'''
4140 pre-save transform: mixed tag case
4144 <NOwiki>'''not wiki'''</noWIKI>
4146 <NOwiki>'''not wiki'''</noWIKI>
4150 pre-save transform: unclosed comment in <nowiki>
4154 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4156 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4162 <span onmouseover="alert('crap')">Oh no</span>
4166 (confirming safety of fix for subst bug 1936)
4168 {{Template:dangerous}}
4170 <p><span>Oh no</span>
4175 pre-save transform: comment containing gallery (bug 5024)
4179 <!-- <gallery>data</gallery> -->
4181 <!-- <gallery>data</gallery> -->
4185 pre-save transform: comment containing extension
4189 <!-- <tag>data</tag> -->
4191 <!-- <tag>data</tag> -->
4195 pre-save transform: comment containing nowiki
4199 <!-- <nowiki>data</nowiki> -->
4201 <!-- <nowiki>data</nowiki> -->
4205 pre-save transform: <noinclude> in subst (bug 3298)
4215 pre-save transform: <onlyinclude> in subst (bug 3298)
4227 {{<includeonly>subst:</includeonly>Includes}}
4231 Template:SafeSubstTest
4233 {{<includeonly>safesubst:</includeonly>Includes}}
4237 bug 22297: safesubst: works during PST
4241 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4247 bug 22297: safesubst: works during normal parse
4256 subst: does not work during normal parse
4260 <p>{{subst:Includes}}
4265 pre-save transform: context links ("pipe trick")
4269 [[Article (context)|]]
4272 [[Bar:Article (context)|]]
4273 [[:Bar:Article (context)|]]
4275 [[|Article (context)]]
4279 [[Article (context)|Article]]
4280 [[Bar:Article|Article]]
4281 [[:Bar:Article|Article]]
4282 [[Bar:Article (context)|Article]]
4283 [[:Bar:Article (context)|Article]]
4285 [[Article (context)]]
4286 [[Bar:X (Y) Z|X (Y) Z]]
4287 [[:Bar:X (Y) Z|X (Y) Z]]
4291 pre-save transform: context links ("pipe trick") with interwiki prefix
4295 [[interwiki:Article|]]
4296 [[:interwiki:Article|]]
4297 [[interwiki:Bar:Article|]]
4298 [[:interwiki:Bar:Article|]]
4300 [[interwiki:Article|Article]]
4301 [[:interwiki:Article|Article]]
4302 [[interwiki:Bar:Article|Bar:Article]]
4303 [[:interwiki:Bar:Article|Bar:Article]]
4307 pre-save transform: context links ("pipe trick") with parens in title
4309 pst title=[[Somearticle (context)]]
4313 [[Article (context)|Article]]
4317 pre-save transform: context links ("pipe trick") with comma in title
4319 pst title=[[Someplace, Somewhere]]
4322 [[Otherplace, Elsewhere|]]
4323 [[Otherplace, Elsewhere, Anywhere|]]
4325 [[Otherplace, Somewhere|Otherplace]]
4326 [[Otherplace, Elsewhere|Otherplace]]
4327 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4331 pre-save transform: context links ("pipe trick") with parens and comma
4333 pst title=[[Someplace (IGNORED), Somewhere]]
4336 [[Otherplace (place), Elsewhere|]]
4338 [[Otherplace, Somewhere|Otherplace]]
4339 [[Otherplace (place), Elsewhere|Otherplace]]
4343 pre-save transform: context links ("pipe trick") with comma and parens
4345 pst title=[[Who, me? (context)]]
4348 [[Me, Myself, and I (1937 song)|]]
4350 [[Yes, you. (context)|Yes, you.]]
4351 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4355 pre-save transform: context links ("pipe trick") with namespace
4357 pst title=[[Ns:Somearticle]]
4361 [[Ns:Article|Article]]
4365 pre-save transform: context links ("pipe trick") with namespace and parens
4367 pst title=[[Ns:Somearticle (context)]]
4371 [[Ns:Article (context)|Article]]
4375 pre-save transform: context links ("pipe trick") with namespace and comma
4377 pst title=[[Ns:Somearticle, Context, Whatever]]
4381 [[Ns:Article, Context, Whatever|Article]]
4385 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4387 pst title=[[Ns:Somearticle, Context (context)]]
4391 [[Ns:Article (context)|Article]]
4395 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4397 pst title=[[Ns:Somearticle (IGNORED), Context]]
4401 [[Ns:Article, Context|Article]]
4405 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4409 [[Article(context)|]]
4410 [[Bar:Article(context)|]]
4411 [[:Bar:Article(context)|]]
4412 [[|Article(context)]]
4416 [[Article(context)|Article]]
4417 [[Bar:Article(context)|Article]]
4418 [[:Bar:Article(context)|Article]]
4419 [[Article(context)]]
4421 [[:Bar:X(Y)Z|X(Y)Z]]
4425 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4429 [[Article (context)|]]
4430 [[Bar:Article (context)|]]
4431 [[:Bar:Article (context)|]]
4432 [[|Article (context)]]
4436 [[Article (context)|Article]]
4437 [[Bar:Article (context)|Article]]
4438 [[:Bar:Article (context)|Article]]
4439 [[Article (context)]]
4440 [[Bar:X (Y) Z|X (Y) Z]]
4441 [[:Bar:X (Y) Z|X (Y) Z]]
4445 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4449 [[Article(context)|]]
4450 [[Bar:Article(context)|]]
4451 [[:Bar:Article(context)|]]
4452 [[|Article(context)]]
4456 [[Article(context)|Article]]
4457 [[Bar:Article(context)|Article]]
4458 [[:Bar:Article(context)|Article]]
4459 [[Article(context)]]
4461 [[:Bar:X(Y)Z|X(Y)Z]]
4465 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4469 [[Article (context), context|]]
4470 [[Article (context),context|]]
4471 [[Bar:Article (context), context|]]
4472 [[Bar:Article (context),context|]]
4473 [[:Bar:Article (context), context|]]
4474 [[:Bar:Article (context),context|]]
4476 [[Article (context), context|Article]]
4477 [[Article (context),context|Article]]
4478 [[Bar:Article (context), context|Article]]
4479 [[Bar:Article (context),context|Article]]
4480 [[:Bar:Article (context), context|Article]]
4481 [[:Bar:Article (context),context|Article]]
4485 pre-save transform: trim trailing empty lines
4489 Empty lines are trimmed
4495 Empty lines are trimmed
4499 pre-save transform: Signature expansion
4504 * <noinclude>~~~</noinclude>
4505 * <includeonly>~~~</includeonly>
4506 * <onlyinclude>~~~</onlyinclude>
4508 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4509 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4510 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4511 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4516 pre-save transform: Signature expansion in nowiki tags (bug 93)
4522 <nowiki>~~~~</nowiki>
4524 <includeonly><nowiki>~~~~</nowiki></includeonly>
4526 <noinclude><nowiki>~~~~</nowiki></noinclude>
4528 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4530 {{subst:Foo}} shall be converted to FOO
4532 As well as inside noinclude/onlyinclude
4533 <noinclude>{{subst:Foo}}</noinclude>
4534 <onlyinclude>{{subst:Foo}}</onlyinclude>
4536 But not inside includeonly
4537 <includeonly>{{subst:Foo}}</includeonly>
4541 <nowiki>~~~~</nowiki>
4543 <includeonly><nowiki>~~~~</nowiki></includeonly>
4545 <noinclude><nowiki>~~~~</nowiki></noinclude>
4547 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4549 FOO shall be converted to FOO
4551 As well as inside noinclude/onlyinclude
4552 <noinclude>FOO</noinclude>
4553 <onlyinclude>FOO</onlyinclude>
4555 But not inside includeonly
4556 <includeonly>{{subst:Foo}}</includeonly>
4560 ### Message transform tests
4563 message transform: magic variables
4573 message transform: should not transform wiki markup
4583 message transform: <noinclude> in transcluded template (bug 4926)
4593 message transform: <onlyinclude> in transcluded template (bug 4926)
4603 {{#special:}} page name, known
4607 {{#special:Recentchanges}}
4609 Special:RecentChanges
4613 {{#special:}} page name with subpage, known
4617 {{#special:Recentchanges/param}}
4619 Special:RecentChanges/param
4623 {{#special:}} page name, unknown
4627 {{#special:foobarnonexistent}}
4629 No such special page
4633 {{#speciale:}} page name, known
4637 {{#speciale:Recentchanges}}
4639 Special:RecentChanges
4643 {{#speciale:}} page name with subpage, known
4647 {{#speciale:Recentchanges/param}}
4649 Special:RecentChanges/param
4653 {{#speciale:}} page name, unknown
4657 {{#speciale:foobarnonexistent}}
4659 No_such_special_page
4668 [[Image:foobar.jpg]]
4670 <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>
4677 [[Image:foobar.jpg|right]]
4679 <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>
4684 Simple image (using File: namespace, now canonical)
4688 <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>
4695 [[Image:foobar.jpg|right|Caption text]]
4697 <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>
4702 Image with link parameter, wiki target
4704 [[Image:foobar.jpg|link=Target page]]
4706 <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>
4711 Image with link parameter, URL target
4713 [[Image:foobar.jpg|link=http://example.com/]]
4715 <p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4720 Image with link parameter, wgExternalLinkTarget
4722 [[Image:foobar.jpg|link=http://example.com/]]
4724 wgExternalLinkTarget='foobar'
4726 <p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4731 Image with link parameter, wgNoFollowLinks set to false
4733 [[Image:foobar.jpg|link=http://example.com/]]
4735 wgNoFollowLinks=false
4737 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4742 Image with link parameter, wgNoFollowDomainExceptions
4744 [[Image:foobar.jpg|link=http://example.com/]]
4746 wgNoFollowDomainExceptions='example.com'
4748 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4753 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4755 [[Image:foobar.jpg|link=http://example.com/|Title]]
4757 wgExternalLinkTarget='foobar'
4759 <p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4764 Image with empty link parameter
4766 [[Image:foobar.jpg|link=]]
4768 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4773 Image with link parameter (wiki target) and unnamed parameter
4775 [[Image:foobar.jpg|link=Target page|Title]]
4777 <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>
4782 Image with link parameter (URL target) and unnamed parameter
4784 [[Image:foobar.jpg|link=http://example.com/|Title]]
4786 <p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4791 Thumbnail image with link parameter
4793 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4795 <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>
4800 Image with frame and link
4802 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4804 <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>
4809 Image with frame and link and explicit alt
4811 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4813 <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>
4818 Image with wiki markup in implicit alt
4820 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4822 <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>
4827 Image with wiki markup in explicit alt
4829 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4831 <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>
4836 Link to image page- image page normally doesn't exists, hence edit link
4837 Add test with existing image page
4838 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4842 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4847 bug 18784 Link to non-existent image page with caption should use caption as link text
4849 [[:Image:test|caption]]
4851 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4856 Frameless image caption with a free URL
4858 [[Image:foobar.jpg|http://example.com]]
4860 <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>
4865 Thumbnail image caption with a free URL
4867 [[Image:foobar.jpg|thumb|http://example.com]]
4869 <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>
4874 Thumbnail image caption with a free URL and explicit alt
4876 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4878 <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>
4883 BUG 1887: A ISBN with a thumbnail
4885 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4887 <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>
4892 BUG 1887: A RFC with a thumbnail
4894 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4896 <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>
4901 BUG 1887: A mailto link with a thumbnail
4903 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4905 <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>
4909 # Pending resolution to bug 368
4911 BUG 648: Frameless image caption with a link
4913 [[Image:foobar.jpg|text with a [[link]] in it]]
4915 <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>
4920 BUG 648: Frameless image caption with a link (suffix)
4922 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4924 <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>
4929 BUG 648: Frameless image caption with an interwiki link
4931 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4933 <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>
4938 BUG 648: Frameless image caption with a piped interwiki link
4940 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4942 <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>
4947 Escape HTML special chars in image alt text
4949 [[Image:foobar.jpg|& < > "]]
4951 <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>
4956 BUG 499: Alt text should have Ӓ, not &1234;
4958 [[Image:foobar.jpg|♀]]
4960 <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>
4965 Broken image caption with link
4967 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4969 <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.
4974 Image caption containing another image
4976 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4978 <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>
4983 Image caption containing a newline
4985 [[Image:Foobar.jpg|This
4988 <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>
4994 Bug 3090: External links other than http: in image captions
4996 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4998 <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>
5005 [[Image:foobar.jpg|a|class=b]]
5007 <p><a href="/wiki/File:Foobar.jpg" class="image" title="a"><img alt="a" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="b" /></a>
5014 #REDIRECT [[File:Barfoo.jpg]]
5020 [[Image:Barfoo.jpg]]
5022 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5027 Missing image with uploads disabled
5031 [[Image:Foobaz.jpg]]
5033 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5042 Subpage test/subpage
5050 subpage title=[[Subpage test]]
5054 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5059 Subpage noslash link
5061 subpage title=[[Subpage test]]
5065 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5074 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5079 BUG 561: {{/Subpage}}
5081 subpage title=[[Page]]
5085 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5093 Category:MediaWiki User's Guide
5101 [[:Category:MediaWiki User's Guide]]
5103 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5112 [[Category:MediaWiki User's Guide]]
5114 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5118 PAGESINCATEGORY invalid title fatal (r33546 fix)
5120 {{PAGESINCATEGORY:<bogus>}}
5127 ### Inter-language links
5130 Inter-language links
5136 [[zh:食品]]
5138 es:Alimento fr:Nourriture zh:食品
5145 Basic section headings
5152 ===Smaller headline===
5155 <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>
5158 <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>
5161 <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>
5167 Section headings with TOC
5170 === Subheadline 1 ===
5171 ===== Skipping a level =====
5172 ====== Skipping a level ======
5176 ===Another headline===
5178 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5180 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5182 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5184 <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>
5186 <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>
5193 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5195 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5200 <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>
5201 <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>
5202 <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>
5203 <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>
5204 <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>
5207 <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>
5211 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5213 Handling of sections up to level 6 and beyond
5216 == Level 2 Heading==
5217 === Level 3 Heading===
5218 ==== Level 4 Heading====
5219 ===== Level 5 Heading=====
5220 ====== Level 6 Heading======
5221 ======= Level 7 Heading=======
5222 ======== Level 8 Heading========
5223 ========= Level 9 Heading=========
5224 ========== Level 10 Heading==========
5226 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5228 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5230 <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>
5232 <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>
5234 <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>
5236 <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>
5238 <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>
5239 <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>
5240 <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>
5241 <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>
5242 <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>
5255 <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>
5256 <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>
5257 <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>
5258 <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>
5259 <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>
5260 <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>
5261 <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>
5262 <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>
5263 <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>
5264 <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>
5269 TOC regression (bug 9764)
5273 ==== title 1.1.1 ====
5278 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5280 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5282 <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>
5284 <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>
5287 <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>
5290 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5292 <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>
5297 <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>
5298 <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>
5299 <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>
5300 <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>
5301 <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>
5302 <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>
5307 TOC with wgMaxTocLevel=3 (bug 6204)
5313 ==== title 1.1.1 ====
5318 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5320 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5322 <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>
5323 <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>
5326 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5328 <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>
5333 <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>
5334 <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>
5335 <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>
5336 <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>
5337 <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>
5338 <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>
5343 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5349 ====Section 1.1.1====
5350 ====Section 1.1.1.1====
5353 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5355 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5357 <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>
5360 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5363 <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>
5364 <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>
5365 <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>
5366 <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>
5367 <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>
5373 Resolving duplicate section names
5378 <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>
5379 <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>
5384 Resolving duplicate section names with differing case (bug 10721)
5389 <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>
5390 <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>
5402 Template with sections, __NOTOC__
5409 <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>
5410 <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>
5411 <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>
5412 <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>
5417 __NOEDITSECTION__ keyword
5423 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5424 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5429 Link inside a section heading
5431 ==Section with a [[Main Page|link]] in it==
5433 <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>
5438 TOC regression (bug 12077)
5445 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5447 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5449 <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>
5452 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
5455 <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>
5456 <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>
5457 <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>
5462 BUG 1219 URL next to image (good)
5464 http://example.com [[Image:foobar.jpg]]
5466 <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>
5471 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5474 The line above must have a trailing space!
5477 But just in case it doesn't...
5479 <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>
5480 <p>The line above must have a trailing space!
5482 <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>
5483 <p>But just in case it doesn't...
5488 Header with special characters (bug 25462)
5490 The tooltips shall not show entities to the user (ie. be double escaped)
5507 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5509 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5511 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5512 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5513 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5514 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5515 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5518 <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>
5521 <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>
5524 <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>
5527 <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>
5530 <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>
5536 Headers with excess '=' characters
5537 (Are similar tests necessary beyond the 1st level?)
5541 =''italic'' heading==
5542 ==''italic'' heading=
5544 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5546 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
5547 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
5548 <li class="toclevel-1 tocsection-3"><a href="#italic_heading.3D"><span class="tocnumber">3</span> <span class="toctext"><i>italic</i> heading=</span></a></li>
5549 <li class="toclevel-1 tocsection-4"><a href="#.3Ditalic_heading"><span class="tocnumber">4</span> <span class="toctext">=<i>italic</i> heading</span></a></li>
5552 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span> <span class="mw-headline" id="foo.3D">foo=</span></h1>
5553 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span> <span class="mw-headline" id=".3Dfoo">=foo</span></h1>
5554 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span> <span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span></h1>
5555 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span> <span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span></h1>
5560 BUG 1219 URL next to image (broken)
5562 http://example.com[[Image:foobar.jpg]]
5564 <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>
5569 Bug 1186 news: in the middle of text
5571 http://en.wikinews.org/wiki/Wikinews:Workplace
5573 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5579 Namespaced link must have a title
5588 Namespaced link must have a title (bad fragment version)
5590 [[Project:#fragment]]
5592 <p>[[Project:#fragment]]
5598 div with no attributes
5600 <div>HTML rocks</div>
5602 <div>HTML rocks</div>
5607 div with double-quoted attribute
5609 <div id="rock">HTML rocks</div>
5611 <div id="rock">HTML rocks</div>
5616 div with single-quoted attribute
5618 <div id='rock'>HTML rocks</div>
5620 <div id="rock">HTML rocks</div>
5625 div with unquoted attribute
5627 <div id=rock>HTML rocks</div>
5629 <div id="rock">HTML rocks</div>
5634 div with illegal double attributes
5636 <div id="a" id="b">HTML rocks</div>
5638 <div id="b">HTML rocks</div>
5643 HTML multiple attributes correction
5645 <p class="error" class="awesome">Awesome!</p>
5647 <p class="awesome">Awesome!</p>
5652 Table multiple attributes correction
5655 !+ class="error" class="awesome"| status
5660 <th class="awesome"> status
5668 <DIV ID="x">HTML ROCKS</DIV>
5670 <div id="x">HTML ROCKS</div>
5676 text with amp in the middle of nowhere
5680 <p>Remember AT&T?
5685 text with character entity: eacute
5687 I always thought é was a cute letter.
5689 <p>I always thought é was a cute letter.
5694 text with undefined character entity: xacute
5696 I always thought &xacute; was a cute letter.
5698 <p>I always thought &xacute; was a cute letter.
5710 [[Media:Foobar.jpg]]
5712 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5717 Media link with text
5719 [[Media:Foobar.jpg|A neat file to look at]]
5721 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5725 # FIXME: this is still bad HTML tag nesting
5727 Media link with nasty text
5728 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5730 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5732 <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>
5737 Media link to nonexistent file (bug 1702)
5739 [[Media:No such.jpg]]
5741 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5746 Image link to nonexistent file (bug 1850 - good)
5748 [[Image:No such.jpg]]
5750 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5755 :Image link to nonexistent file (bug 1850 - bad)
5757 [[:Image:No such.jpg]]
5759 <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>
5766 Character reference normalization in link text (bug 1938)
5768 [[Main Page|this&that]]
5770 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5777 Test for unicode normalization
5779 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5783 (bug 19451) Links should refer to the normalized form.
5791 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5792 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5793 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5794 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5795 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5800 Empty attribute crash test (bug 2067)
5802 <font color="">foo</font>
5804 <p><font color="">foo</font>
5809 Empty attribute crash test single-quotes (bug 2067)
5811 <font color=''>foo</font>
5813 <p><font color="">foo</font>
5818 Attribute test: equals, then nothing
5820 <font color=>foo</font>
5827 Attribute test: unquoted value
5829 <font color=x>foo</font>
5831 <p><font color="x">foo</font>
5836 Attribute test: unquoted but illegal value (hash)
5838 <font color=#x>foo</font>
5840 <p><font color="#x">foo</font>
5845 Attribute test: no value
5847 <font color>foo</font>
5849 <p><font color="color">foo</font>
5854 Bug 2095: link with three closing brackets
5858 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5863 Bug 2095: link with pipe and three closing brackets
5867 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5872 Bug 2095: link with pipe and three closing brackets, version 2
5874 [[Main Page|[http://example.com/]]]
5876 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5886 Template:Dangerous attribute
5888 " onmouseover="alert(document.cookie)
5892 Template:Dangerous style attribute
5894 border-size: expression(alert(document.cookie))
5900 <div style="float: right; {{{1}}}">Magic div</div>
5904 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5906 <div title="{{test}}"></div>
5908 <div title="This is a test template"></div>
5913 Bug 2304: HTML attribute safety (dangerous template; 2309)
5915 <div title="{{dangerous attribute}}"></div>
5917 <div title=""></div>
5922 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5924 <div style="{{dangerous style attribute}}"></div>
5926 <div style="/* insecure input */"></div>
5931 Bug 2304: HTML attribute safety (safe parameter; 2309)
5933 {{div style|width: 200px}}
5935 <div style="float: right; width: 200px">Magic div</div>
5940 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5942 {{div style|width: expression(alert(document.cookie))}}
5944 <div style="/* insecure input */">Magic div</div>
5949 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5951 {{div style|"><script>alert(document.cookie)</script>}}
5953 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5958 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5960 {{div style|" ><script>alert(document.cookie)</script>}}
5962 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5967 Bug 2304: HTML attribute safety (link)
5969 <div title="[[Main Page]]"></div>
5971 <div title="[[Main Page]]"></div>
5976 Bug 2304: HTML attribute safety (italics)
5978 <div title="''foobar''"></div>
5980 <div title="''foobar''"></div>
5985 Bug 2304: HTML attribute safety (bold)
5987 <div title="'''foobar'''"></div>
5989 <div title="'''foobar'''"></div>
5995 Bug 2304: HTML attribute safety (ISBN)
5997 <div title="ISBN 1234567890"></div>
5999 <div title="ISBN 1234567890"></div>
6004 Bug 2304: HTML attribute safety (RFC)
6006 <div title="RFC 1234"></div>
6008 <div title="RFC 1234"></div>
6013 Bug 2304: HTML attribute safety (PMID)
6015 <div title="PMID 1234567890"></div>
6017 <div title="PMID 1234567890"></div>
6022 Bug 2304: HTML attribute safety (web link)
6024 <div title="http://example.com/"></div>
6026 <div title="http://example.com/"></div>
6031 Bug 2304: HTML attribute safety (named web link)
6033 <div title="[http://example.com/ link]"></div>
6035 <div title="[http://example.com/ link]"></div>
6040 Bug 3244: HTML attribute safety (extension; safe)
6042 <div style="<nowiki>background:blue</nowiki>"></div>
6044 <div style="background:blue"></div>
6049 Bug 3244: HTML attribute safety (extension; unsafe)
6051 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6053 <div style="/* insecure input */"></div>
6057 # More MSIE fun discovered by Tom Gilder
6060 MSIE CSS safety test: spurious slash
6062 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6064 <div style="/* insecure input */">evil</div>
6069 MSIE CSS safety test: hex code
6071 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6073 <div style="/* insecure input */">evil</div>
6078 MSIE CSS safety test: comment in url
6080 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6082 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6087 MSIE CSS safety test: comment in expression
6089 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6091 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6097 Table attribute legitimate extension
6100 !+ style="<nowiki>color:blue</nowiki>"| status
6105 <th style="color:blue"> status
6111 Table attribute safety
6114 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6119 <th style="/* insecure input */"> status
6125 CSS line continuation 1
6127 <div style="background-image: u\ rl(test.jpg);"></div>
6129 <div style="/* insecure input */"></div>
6134 CSS line continuation 2
6136 <div style="background-image: u\ rl(test.jpg); "></div>
6138 <div style="/* insecure input */"></div>
6149 Expansion of multi-line templates in attribute values (bug 6255)
6151 <div style="background: {{identity|#00FF00}}">-</div>
6153 <div style="background: #00FF00">-</div>
6159 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6161 <div style="background:
6164 <div style="background: #00FF00">-</div>
6169 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6171 <div style="background: #00FF00">-</div>
6173 <div style="background: #00FF00">-</div>
6178 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6181 Parser hook: empty input
6194 Parser hook: empty input using terminated empty elements
6207 Parser hook: empty input using terminated empty elements (space before)
6220 Parser hook: basic input
6234 Parser hook: case insensitive
6248 Parser hook: case insensitive, redux
6261 Parser hook: nested tags
6265 <tag><tag></tag></tag>
6276 Parser hook: basic arguments
6278 <tag width=200 height = "100" depth = '50' square></tag>
6297 Parser hook: argument containing a forward slash (bug 5344)
6299 <tag filename='/tmp/bla'></tag>
6305 string(8) "/tmp/bla"
6312 Parser hook: empty input using terminated empty elements (bug 2374)
6326 # </tag> should be output literally since there is no matching tag that begins it
6328 Parser hook: basic arguments using terminated empty elements (bug 2374)
6330 <tag width=200 height = "100" depth = '50' square/>
6353 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6357 Parser hook: static parser hook not inside a comment
6359 <statictag>hello, world</statictag>
6360 <statictag action=flush/>
6368 Parser hook: static parser hook inside a comment
6370 <!-- <statictag>hello, world</statictag> -->
6371 <statictag action=flush/>
6377 # Nested template calls; this case was broken by Parser.php rev 1.506,
6381 Template:One-parameter
6383 (My parameter is: {{{1}}})
6387 Template:Map-one-parameter
6393 Nested template calls
6395 {{Map-one-parameter|One-parameter|param}}
6397 <p>(My parameter is: param)
6406 Sanitizer: Closing of open tags
6408 <s></s><table></table>
6410 <s></s><table></table>
6415 Sanitizer: Closing of open but not closed tags
6424 Sanitizer: Closing of closed but not open tags
6433 Sanitizer: Closing of closed but not open table tags
6435 Table not started</td></tr></table>
6437 <p>Table not started</td></tr></table>
6442 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6444 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6446 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6451 Sanitizer: Validating the contents of the id attribute (bug 4515)
6457 Something, but definitely not <br id="9" />...
6461 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
6465 <br id="foo" /><br id="foo" />
6467 Something need to be done. foo-2 ?
6471 Language converter: output gets cut off unexpectedly (bug 5757)
6475 this bit is safe: }-
6477 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6479 then we get cut off here: }-
6481 all additional text is vanished
6483 <p>this bit is safe: }-
6484 </p><p>but if we add a conversion instance: xxx
6485 </p><p>then we get cut off here: }-
6486 </p><p>all additional text is vanished
6491 Self closed html pairs (bug 5487)
6494 <center><font id="bug" />Centered text</center>
6495 <div><font id="bug2" />In div text</div>
6497 <center><font id="bug" />Centered text</center>
6498 <div><font id="bug2" />In div text</div>
6507 Punctuation: nbsp before exclamation
6511 <p>C'est grave !
6516 Punctuation: CSS !important (bug 11874)
6518 <div style="width:50% !important">important</div>
6520 <div style="width:50% !important">important</div>
6525 Punctuation: CSS ! important (bug 11874; with space after)
6527 <div style="width:50% ! important">important</div>
6529 <div style="width:50% ! important">important</div>
6535 HTML bullet list, closed tags (bug 5497)
6550 HTML bullet list, unclosed tags (bug 5497)
6567 HTML ordered list, closed tags (bug 5497)
6582 HTML ordered list, unclosed tags (bug 5497)
6599 HTML nested bullet list, closed tags (bug 5497)
6624 HTML nested bullet list, open tags (bug 5497)
6649 HTML nested ordered list, closed tags (bug 5497)
6674 HTML nested ordered list, open tags (bug 5497)
6699 HTML ordered list item with parameters oddity
6701 <ol><li id="fragment">One</li></ol>
6703 <ol><li id="fragment">One</li></ol>
6708 bug 5918: autonumbering
6710 [http://first/] [http://second] [ftp://ftp]
6714 [mailto:enclosed@mail.tld With target]
6716 [mailto:enclosed@mail.tld]
6718 mailto:inline@mail.tld
6720 <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>
6721 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6722 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6723 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6724 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6730 # Security and HTML correctness
6731 # From Nick Jenkins' fuzz testing
6735 Fuzz testing: Parser13
6750 Fuzz testing: Parser14
6755 <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>
6756 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6758 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6765 Fuzz testing: Parser14-table
6770 <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>
6771 <table style="__TOC__">
6777 # Known to produce bogus xml (extra </td>)
6779 Fuzz testing: Parser16
6799 Fuzz testing: Parser21
6802 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6807 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6817 Fuzz testing: Parser22
6819 http://===r:::https://b
6823 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6831 # Known to produce bad XML for now
6833 Fuzz testing: Parser24
6840 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6841 <br style="onmouseover='alert(document.cookie);' " />
6843 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6848 <u class="|">}}}} >
6849 <br style="onmouseover='alert(document.cookie);'" />
6851 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6860 # Note: the current result listed for this is not what the original one was,
6861 # but the original bug was JavaScript injection, which is fixed in any case.
6862 # It's not clear that the original result listed was any more correct than the
6863 # current one. Original result:
6866 # <li class="||">
6867 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6869 Fuzz testing: Parser25 (bug 6055)
6875 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6877 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6882 Fuzz testing: URL adjacent extension (with space, clean)
6885 http://example.com <nowiki>junk</nowiki>
6887 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6892 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6895 http://example.com<nowiki>junk</nowiki>
6897 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6902 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6905 http://example.com<pre>junk</pre>
6907 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6912 Fuzz testing: image with bogus manual thumbnail
6914 [[Image:foobar.jpg|thumbnail= ]]
6916 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6921 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6923 <pre dir=" "></pre>
6925 <pre dir=" "></pre>
6930 Parsing optional HTML elements (Bug 6171)
6935 <td> Some tabular data</td>
6936 <td> More tabular data ...
6937 <td> And yet som tabular data</td>
6943 <td> Some tabular data</td>
6944 <td> More tabular data ...
6945 </td><td> And yet som tabular data</td>
6952 Correct handling of <td>, <tr> (Bug 6171)
6957 <td> Some tabular data</td>
6958 <td> More tabular data ...</td>
6959 <td> And yet som tabular data</td>
6965 <td> Some tabular data</td>
6966 <td> More tabular data ...</td>
6967 <td> And yet som tabular data</td>
6975 Parsing crashing regression (fr:JavaScript)
6979 <p></body></x>
6984 Inline wiki vs wiki block nesting
6990 <p><b>Bold paragraph</b>
6991 </p><p>New wiki paragraph
6996 Inline HTML vs wiki block nesting
7004 <p><b>Bold paragraph</b>
7005 </p><p>New wiki paragraph
7009 # Original result was this:
7010 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7012 # While that might be marginally more intuitive, maybe, the six-apostrophe
7013 # construct is clearly pathological and the result stated here (which is what
7014 # the parser actually does) is about as reasonable as anything.
7016 Mixing markup for italics and bold
7019 '''bold''''''bold''bolditalics'''''
7021 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7029 Article for special page transclusion test
7033 Special page transclusion
7036 {{Special:Prefixindex/Xyzzyx}}
7038 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7043 Special page transclusion twice (bug 5021)
7046 {{Special:Prefixindex/Xyzzyx}}
7047 {{Special:Prefixindex/Xyzzyx}}
7049 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7050 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7055 Transclusion of default MediaWiki message
7057 {{MediaWiki:Mainpage}}
7064 Transclusion of nonexistent MediaWiki message
7066 {{MediaWiki:Mainpagexxx}}
7068 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7073 Transclusion of MediaWiki message with underscore
7075 {{MediaWiki:history_short}}
7082 Transclusion of MediaWiki message with space
7084 {{MediaWiki:history short}}
7091 Invalid header with following text
7101 Section extraction test (section 0)
7121 Section extraction test (section 1)
7143 Section extraction test (section 2)
7164 Section extraction test (section 3)
7184 Section extraction test (section 4)
7208 Section extraction test (section 5)
7228 Section extraction test (section 6)
7249 Section extraction test (section 7)
7269 Section extraction test (section 8)
7289 Section extraction test (section 9)
7310 Section extraction test (section 10)
7330 Section extraction test (nonexistent section 11)
7349 Section extraction test with bogus heading (section 1)
7354 ==bogus== not a legal section
7358 ==bogus== not a legal section
7362 Section extraction test with bogus heading (section 2)
7367 ==bogus== not a legal section
7374 Section extraction test with comment after heading (section 1)
7386 Section extraction test with comment after heading (section 2)
7398 Section extraction test with bogus <nowiki> heading (section 1)
7403 ==bogus== <nowiki>not a legal section</nowiki>
7407 ==bogus== <nowiki>not a legal section</nowiki>
7411 Section extraction test with bogus <nowiki> heading (section 2)
7416 ==bogus== <nowiki>not a legal section</nowiki>
7423 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7424 # instead of respecting commented sections
7426 Section extraction prefixed by comment (section 1)
7437 Section extraction prefixed by comment (section 2)
7448 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7449 # instead of respecting HTML-style headings
7451 Section extraction, mixed wiki and html (section 1)
7467 Section extraction, mixed wiki and html (section 2)
7483 # Formerly testing for bug 3342
7485 Section extraction, heading surrounded by <noinclude>
7489 <noinclude>==unmarked==</noinclude>
7495 # Test behaviour of bug 19910
7497 Sectiion with all-equals
7502 The line above must have a trailing space
7505 But just in case it doesn't...
7509 But just in case it doesn't...
7513 Section replacement test (section 0)
7544 Section replacement test (section 1)
7573 Section replacement test (section 2)
7603 Section replacement test (section 3)
7634 Section replacement test (section 4)
7661 Section replacement test (section 5)
7692 Section replacement test (section 6)
7722 Section replacement test (section 7)
7753 Section replacement test (section 8)
7784 Section replacement test (section 9)
7813 Section replacement test (section 10)
7843 Section replacement test with initial whitespace (bug 13728)
7847 Preformatted initial line
7851 Preformatted initial line
7858 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7870 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7883 Section extraction, <pre> around bogus header (bug 10309)
7900 Section replacement, <pre> around bogus header (bug 10309)
7902 noxml replace=2,"xxx"
7923 Handling of 
 in URLs
7927 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7934 5 quotes, code coverage +1 line
7941 Special:Search page linking.
7945 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7960 * {{SUBJECTPAGENAME}}
7961 * {{SUBJECTPAGENAMEE}}
7968 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7970 <ul><li> Parser test
7971 </li><li> Parser test
7972 </li><li> Parser test
7973 </li><li> Parser_test
7974 </li><li> Parser test
7975 </li><li> Parser_test
7976 </li><li> Talk:Parser test
7977 </li><li> Talk:Parser_test
7978 </li><li> Parser test
7979 </li><li> Parser_test
7986 </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>
7990 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8000 image4 |300px| centre
8001 image5.svg| http://///////
8006 <ul class="gallery">
8007 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8008 <div style="height: 150px;">Image1.png</div>
8009 <div class="gallerytext">
8012 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8013 <div style="height: 150px;">Image2.gif</div>
8014 <div class="gallerytext">
8019 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8020 <div style="height: 150px;">Image3</div>
8021 <div class="gallerytext">
8024 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8025 <div style="height: 150px;">Image4</div>
8026 <div class="gallerytext">
8031 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8032 <div style="height: 150px;">Image5.svg</div>
8033 <div class="gallerytext">
8034 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8038 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8039 <div style="height: 150px;">* image6</div>
8040 <div class="gallerytext">
8048 Gallery (with options)
8050 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8051 File:Nonexistant.jpg|caption
8052 File:Nonexistant.jpg
8053 image:foobar.jpg|some '''caption''' [[Main Page]]
8055 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8058 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8059 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8060 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8061 <div style="height: 70px;">Nonexistant.jpg</div>
8062 <div class="gallerytext">
8067 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8068 <div style="height: 70px;">Nonexistant.jpg</div>
8069 <div class="gallerytext">
8072 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8073 <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>
8074 <div class="gallerytext">
8075 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8079 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8080 <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>
8081 <div class="gallerytext">
8084 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8085 <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>
8086 <div class="gallerytext">
8096 Gallery with wikitext inside caption
8099 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8100 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8103 <ul class="gallery">
8104 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8105 <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>
8106 <div class="gallerytext">
8107 <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>
8111 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8112 <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>
8113 <div class="gallerytext">
8114 <p>This is a test template
8123 gallery (with showfilename option)
8125 <gallery showfilename>
8126 File:Nonexistant.jpg|caption
8127 File:Nonexistant.jpg
8128 image:foobar.jpg|some '''caption''' [[Main Page]]
8132 <ul class="gallery">
8133 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8134 <div style="height: 150px;">Nonexistant.jpg</div>
8135 <div class="gallerytext">
8136 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8141 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8142 <div style="height: 150px;">Nonexistant.jpg</div>
8143 <div class="gallerytext">
8144 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8148 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8149 <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>
8150 <div class="gallerytext">
8151 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8152 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8156 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8157 <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>
8158 <div class="gallerytext">
8159 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8168 Gallery (with namespace-less filenames)
8171 File:Nonexistant.jpg
8177 <ul class="gallery">
8178 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8179 <div style="height: 150px;">Nonexistant.jpg</div>
8180 <div class="gallerytext">
8183 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8184 <div style="height: 150px;">Nonexistant.jpg</div>
8185 <div class="gallerytext">
8188 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8189 <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>
8190 <div class="gallerytext">
8193 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8194 <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>
8195 <div class="gallerytext">
8203 HTML Hex character encoding (spells the word "JavaScript")
8205 JavaScript
8207 <p>JavaScript
8212 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8216 <p>&#xsee;&#XSEE;
8221 HTML Hex character encoding mixed case
8230 __FORCETOC__ override
8242 ISBN 978-0-1234-56 789
8244 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8249 ISBN followed by 5 spaces
8260 ISBN ISBN 1234567890
8262 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8267 Bug 22905: <abbr> followed by ISBN followed by </a>
8269 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8271 <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>
8280 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8285 Double RFC with a wiki link
8289 <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>
8298 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8303 Centre-aligned image
8305 [[Image:foobar.jpg|centre]]
8307 <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>
8314 [[Image:foobar.jpg|none]]
8316 <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>
8321 Width + Height sized image (using px) (height is ignored)
8323 [[Image:foobar.jpg|640x480px]]
8325 <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>
8330 Width-sized image (using px, no following whitespace)
8332 [[Image:foobar.jpg|640px]]
8334 <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>
8339 Width-sized image (using px, with following whitespace - test regression from r39467)
8341 [[Image:foobar.jpg|640px ]]
8343 <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>
8348 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8350 [[Image:foobar.jpg| 640px]]
8352 <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>
8357 Another italics / bold test
8365 # Note the results may be incorrect, as parserTest output included this:
8366 # XML error: Mismatched tag at byte 6120:
8367 # ...<dd> </dt></dl> </dd...
8375 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8386 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8388 Images with the "|" character in the comment
8390 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8392 <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>
8397 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8399 <html><script>alert(1);</script></html>
8401 <p><html><script>alert(1);</script></html>
8406 HTML with raw HTML ($wgRawHtml==true)
8410 <html><script>alert(1);</script></html>
8412 <p><script>alert(1);</script>
8417 Parents of subpages, one level up
8419 subpage title=[[Subpage test/L1/L2/L3]]
8423 <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>
8429 Parents of subpages, one level up, not named
8431 subpage title=[[Subpage test/L1/L2/L3]]
8435 <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>
8442 Parents of subpages, two levels up
8444 subpage title=[[Subpage test/L1/L2/L3]]
8450 <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
8451 </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>
8456 Parents of subpages, two levels up, without trailing slash or name.
8458 subpage title=[[Subpage test/L1/L2/L3]]
8467 Parents of subpages, two levels up, with lots of extra trailing slashes.
8469 subpage title=[[Subpage test/L1/L2/L3]]
8473 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8478 Definition list code coverage
8484 <dl><dt> title  </dt><dd> def
8485 </dd><dt> title </dt><dd> def
8486 </dd><dt>title</dt><dd> def
8492 Don't fall for the self-closing div
8494 <div>hello world</div/>
8496 <div>hello world</div>
8505 <p>[[:Template:Msg]]
8514 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8518 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8520 Always escape literal '>' in output, not just after '<'
8534 <p>This is a test template
8535 This is a test template
8547 Inclusion of !userCanEdit() content
8551 <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>
8557 Out-of-order TOC heading levels
8566 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8568 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8570 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8571 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8574 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8576 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8577 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8582 <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>
8583 <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>
8584 <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>
8585 <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>
8586 <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>
8587 <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>
8593 ISBN with a dummy number
8603 ISBN with space-delimited number
8607 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8613 ISBN with multiple spaces, no number
8632 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8633 </p><p>ISBN 12345678901
8639 ISBN with trailing year (bug 8110)
8641 ISBN 1-234-56789-0 - 2006
8643 ISBN 1 234 56789 0 - 2006
8645 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8646 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8654 {{anchorencode:foo bar©#%n}}
8656 <p>foo_bar.C2.A9.23.25n
8661 anchorencode trims spaces
8663 {{anchorencode: __pretty__please__}}
8670 anchorencode deals with links
8672 {{anchorencode: [[hello|world]] [[hi]]}}
8679 anchorencode deals with templates
8681 {{anchorencode: {{Foo}} }}
8688 anchorencode encodes like the TOC generator: (bug 18431)
8690 === _ +:.3A%3A&&]] ===
8691 {{anchorencode: _ +:.3A%3A&&]] }}
8694 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8695 <p>.2B:.3A.253A.26.26.5D.5D
8699 # Expected output in the following test is not necessarily expected (there
8700 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8701 # only testing for well-formedness.
8703 Bug 6200: blockquotes and paragraph formatting
8723 Bug 8293: Use of center tag ruins paragraph formatting
8745 ### Language variants related tests
8748 Self-link in language variants
8750 title=[[Dunav]] language=sr
8752 Both [[Dunav]] and [[Дунав]] are names for this river.
8754 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8760 Link to pages in language variants
8764 Main Page can be written as [[Маин Паге]]
8766 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8772 Multiple links to pages in language variants
8776 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8778 <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>.
8784 Simple template in language variants
8790 <p>This is a test template
8796 Template with explicit namespace in language variants
8802 <p>This is a test template
8808 Basic test for template parameter in language variants
8812 {{парамтест|param=foo}}
8814 <p>This is a test template with parameter foo
8820 Simple category in language variants
8824 [[Category:МедиаWики Усер'с Гуиде]]
8826 <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>
8831 Stripping -{}- tags (language variants)
8835 Latin proverb: -{Ne nuntium necare}-
8837 <p>Latin proverb: Ne nuntium necare
8843 Prevent conversion with -{}- tags (language variants)
8845 language=sr variant=sr-ec
8847 Latinski: -{Ne nuntium necare}-
8849 <p>Латински: Ne nuntium necare
8855 Prevent conversion of text with -{}- tags (language variants)
8857 language=sr variant=sr-ec
8859 Latinski: -{Ne nuntium necare}-
8861 <p>Латински: Ne nuntium necare
8867 Prevent conversion of links with -{}- tags (language variants)
8869 language=sr variant=sr-ec
8873 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8879 -{}- tags within headlines (within html for parserConvert())
8881 language=sr variant=sr-ec
8885 <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>
8891 Explicit definition of language variant alternatives
8893 language=zh variant=zh-tw
8895 -{zh:China;zh-tw:Taiwan}-, not China
8897 <p>Taiwan, not China
8903 Explicit session-wise language variant mapping (A flag and - flag)
8905 language=zh variant=zh-tw
8907 Taiwan is not China.
8908 But -{A|zh:China;zh-tw:Taiwan}- is China,
8909 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8910 and -{China}- is China.
8912 <p>Taiwan is not China.
8913 But Taiwan is Taiwan,
8914 (This should be stripped!)
8920 Explicit session-wise language variant mapping (H flag for hide)
8922 language=zh variant=zh-tw
8924 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8927 <p>(This should be stripped!)
8933 Adding explicit conversion rule for title (T flag)
8935 language=zh variant=zh-tw showtitle
8937 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8940 <p>Should be stripped!
8945 Testing that changing the language variant here in the tests actually works
8947 language=zh variant=zh showtitle
8949 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8952 <p>Should be stripped!
8957 Bug 24072: more test on conversion rule for title
8959 language=zh variant=zh-tw showtitle
8961 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8962 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8965 <p>This should be stripped!
8966 This won't take interferes with the title rule.
8971 Raw output of variant escape tags (R flag)
8973 language=zh variant=zh-tw
8975 Raw: -{R|zh:China;zh-tw:Taiwan}-
8977 <p>Raw: zh:China;zh-tw:Taiwan
8982 Nested using of manual convert syntax
8984 language=zh variant=zh-hk
8986 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8988 <p>Nested: Hello Hong Kong!
8993 Do not convert roman numbers to language variants
8995 language=sr variant=sr-ec
8999 <p>Фридрих IV је цар.
9004 Unclosed language converter markup "-{"
9015 Don't convert raw rule "-{R|=>}-" to "=>"
9032 Bug 529: Uncovered bullet
9043 Bug 529: Uncovered table already at line-start
9066 Bug 529: Uncovered bullet in parser function result
9068 * Foo {{lc:{{bullet}} }}
9077 Bug 5678: Double-parsed template argument
9079 {{lc:{{{1}}}|hello}}
9086 Bug 5678: Double-parsed template invocation
9088 {{lc:{{paramtest {{!}} param = hello }} }}
9090 <p>{{paramtest | param = hello }}
9095 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9121 Morwen/13: Unclosed link followed by heading
9128 <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>
9133 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9140 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9145 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9152 <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>
9167 Paragraphs inside divs (no extra line breaks)
9179 Paragraphs inside divs (extra line break on open)
9194 Paragraphs inside divs (extra line break on close)
9209 Paragraphs inside divs (extra line break on open and close)
9226 Nesting tags, paragraphs on lines which begin with <div>
9230 <div></div><strong>A
9239 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9241 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9245 <blockquote>Line one
9247 Line two</blockquote>
9249 <blockquote>Line one
9250 Line two</blockquote>
9255 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9262 Line two</blockquote>
9267 Line two</blockquote>
9272 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9276 <blockquote>Line one
9281 <blockquote>Line one
9289 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9308 Paragraphs inside blockquotes/divs (no extra line breaks)
9310 <blockquote><div>Line one
9312 Line two</div></blockquote>
9314 <blockquote><div>Line one
9315 Line two</div></blockquote>
9320 Paragraphs inside blockquotes/divs (extra line break on open)
9325 Line two</div></blockquote>
9330 Line two</div></blockquote>
9335 Paragraphs inside blockquotes/divs (extra line break on close)
9337 <blockquote><div>Line one
9342 <blockquote><div>Line one
9350 Paragraphs inside blockquotes/divs (extra line break on open and close)
9367 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9369 wgLinkHolderBatchSize=0
9375 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9376 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9377 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9382 Free external link invading image caption
9384 [[Image:Foobar.jpg|thumb|http://x|hello]]
9386 <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>
9391 Bug 15196: localised external link numbers
9395 [http://en.wikipedia.org/]
9397 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9402 Multibyte character in padleft
9404 {{padleft:-Hello|7|Æ}}
9411 Multibyte character in padright
9413 {{padright:Hello-|7|Æ}}
9426 <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>
9431 formatdate parser function
9433 {{#formatdate:2009-03-24}}
9435 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9440 formatdate parser function, with default format
9442 {{#formatdate:2009-03-24|mdy}}
9444 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9449 Linked date with autoformatting disabled
9451 wgUseDynamicDates=false
9455 <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>
9460 Spacing of numbers in formatted dates
9462 {{#formatdate:January 15}}
9464 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9469 Spacing of numbers in formatted dates (linked)
9471 wgUseDynamicDates=true
9475 <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>
9480 formatdate parser function, with default format and on a page of which the content language is always English and different from the wiki content language
9482 language=nl title=[[MediaWiki:Common.css]]
9484 {{#formatdate:2009-03-24|dmy}}
9486 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
9499 Edit comment with link
9503 I like the [[Main Page]] a lot
9505 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9509 Edit comment with link and link text
9513 I like the [[Main Page|best pages]] a lot
9515 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9519 Edit comment with link and link text with suffix
9523 I like the [[Main Page|best page]]s a lot
9525 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9529 Edit comment with section link (non-local, eg in history list)
9531 comment title=[[Main Page]]
9533 /* External links */ removed bogus entries
9535 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9539 Edit comment with section link and text before it (non-local, eg in history list)
9541 comment title=[[Main Page]]
9543 pre-comment text /* External links */ removed bogus entries
9545 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>
9549 Edit comment with section link (local, eg in diff view)
9551 comment local title=[[Main Page]]
9553 /* External links */ removed bogus entries
9555 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9559 Edit comment with subpage link (bug 14080)
9563 title=[[Subpage test]]
9565 Poked at a [[/subpage]] here...
9567 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9571 Edit comment with subpage link and link text (bug 14080)
9575 title=[[Subpage test]]
9577 Poked at a [[/subpage|neat little page]] here...
9579 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9583 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9586 title=[[Subpage test]]
9588 Poked at a [[/subpage]] here...
9590 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9594 Edit comment with bare anchor link (local, as on diff)
9602 <a href="#section">#section</a>
9606 Edit comment with bare anchor link (non-local, as on history)
9613 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9617 Anchor starting with underscore
9621 <p><a href="#_ref">One</a>
9626 Id starting with underscore
9628 <div id="_ref"></div>
9630 <div id="_ref"></div>
9635 Space normalisation on autocomment (bug 22784)
9640 /* __hello__world__ */
9642 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9646 percent-encoding and + signs in comments (Bug 26410)
9650 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9652 <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>
9656 Bad images - basic functionality
9665 Bad images - bug 16039: text after bad image disappears
9679 Verify that displaytitle works (bug #22501) no displaytitle
9683 wgAllowDisplayTitle=true
9684 wgRestrictDisplayTitle=false
9686 this is not the the title
9689 <p>this is not the the title
9694 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9699 wgAllowDisplayTitle=true
9700 wgRestrictDisplayTitle=false
9702 this is not the the title
9703 {{DISPLAYTITLE:whatever}}
9706 <p>this is not the the title
9711 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9716 wgAllowDisplayTitle=true
9717 wgRestrictDisplayTitle=true
9719 this is not the the title
9720 {{DISPLAYTITLE:whatever}}
9723 <p>this is not the the title
9728 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9733 wgAllowDisplayTitle=true
9734 wgRestrictDisplayTitle=true
9736 this is not the the title
9737 {{DISPLAYTITLE:screen}}
9740 <p>this is not the the title
9745 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9750 wgAllowDisplayTitle=false
9752 this is not the the title
9753 {{DISPLAYTITLE:screen}}
9756 <p>this is not the the title
9757 <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>
9762 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9767 wgAllowDisplayTitle=false
9769 this is not the the title
9772 <p>this is not the the title
9777 preload: check <noinclude> and <includeonly>
9781 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9787 preload: check <onlyinclude>
9791 Goodbye <onlyinclude>Hello world</onlyinclude>
9797 preload: can pass tags through if we want to
9801 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9803 <includeonly>Hello world</includeonly>
9807 preload: check that it doesn't try to do tricks
9811 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9813 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9817 Play a bit with r67090 and bug 3158
9821 <div style="width:50% !important"> </div>
9822 <div style="width:50% !important"> </div>
9823 <div style="width:50% !important"> </div>
9824 <div style="border : solid;"> </div>
9826 <div style="width:50% !important"> </div>
9827 <div style="width:50% !important"> </div>
9828 <div style="width:50% !important"> </div>
9829 <div style="border : solid;"> </div>
9834 HTML5 data attributes
9836 <span data-foo="bar">Baz</span>
9837 <p data-abc-def_hij="">Quuz</p>
9839 <p><span data-foo="bar">Baz</span>
9841 <p data-abc-def_hij="">Quuz</p>
9846 percent-encoding and + signs in internal links (Bug 26410)
9848 [[User:+%]] [[Page+title%]]
9849 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9850 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9851 [[%33%45]] [[%33%45+]]
9853 <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>
9854 <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>
9855 <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>
9856 <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>
9861 Special characters in embedded file links (bug 27679)
9863 [[File:Contains & ampersand.jpg]]
9864 [[File:Does not exist.jpg|Title with & ampersand]]
9866 <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>
9867 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9873 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9875 Text's been normalized?
9877 <p>Text's been normalized?
9882 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9884 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9886 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9891 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9893 [http://www.example.org/ ideograms]
9895 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9900 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9902 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9904 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9928 Bug 31098 Template which includes system messages which includes the template
9932 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9933 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9938 Deprecated presentational attributes are converted to css
9941 | valign=top align=left width=100 height=25% | Asdf
9943 <ul type="disc"></ul>
9947 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9949 <ul style="list-style-type: disc;"></ul>
9954 Bug31490 Turkish: ucfirst 'blah'
9965 Bug31490 Turkish: ucfirst 'ix'
9976 Bug31490 Turkish: lcfirst 'BLAH'
9987 Bug31490 Turkish: ucfırst (with a dotless i)
9993 <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>
9998 Bug31490 ucfırst (with a dotless i) with English language
10004 <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>
10009 Bug 26375: TOC with italics
10011 title=[[Main Page]]
10014 == ''Lost'' episodes ==
10016 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10018 <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>
10021 <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>
10026 Bug 26375: TOC with bold
10028 title=[[Main Page]]
10031 == '''should be bold''' then normal text ==
10033 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10035 <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>
10038 <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>
10043 Bug 33845: Headings become cursive in TOC when they contain an image
10045 title=[[Main Page]]
10048 == Image [[Image:foobar.jpg]] ==
10050 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10052 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10055 <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>
10060 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10062 title=[[Main Page]]
10065 == <blockquote>Quote</blockquote> ==
10067 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10069 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10072 <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>
10077 Unclosed tags in TOC
10079 title=[[Main Page]]
10083 <small>Hanc marginis exiguitas non caperet.</small>
10086 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10088 <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>
10091 <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>
10092 <p><small>Hanc marginis exiguitas non caperet.</small>
10098 Multiple tags in TOC
10101 == <i>Foo</i> <b>Bar</b> ==
10103 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10105 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10107 <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>
10108 <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>
10111 <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>
10112 <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>
10117 Tags with parameters in TOC
10120 == <sup class="in-h2">Hello</sup> ==
10122 == <sup class="a > b">Evilbye</sup> ==
10124 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10126 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10127 <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>
10130 <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>
10131 <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>
10138 == {{int:headline_sample}} ==
10142 Bug 32057: Title needed when expanding <h> nodes.
10144 title=[[Main Page]]
10148 <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>
10153 Strip marker in urlencode
10155 {{urlencode:x<nowiki/>y}}
10156 {{urlencode:x<nowiki/>y|wiki}}
10157 {{urlencode:x<nowiki/>y|path}}
10184 Strip marker in formatNum
10186 {{formatnum:1<nowiki/>2}}
10187 {{formatnum:1<nowiki/>2|R}}
10195 Strip marker in grammar
10199 {{grammar:elative|foo<nowiki/>bar}}
10206 Strip marker in padleft
10208 {{padleft:|2|x<nowiki/>y}}
10215 Strip marker in padright
10217 {{padright:|2|x<nowiki/>y}}
10224 Strip marker in anchorencode
10226 {{anchorencode:x<nowiki/>y}}
10233 nowiki inside link inside heading (bug 18295)
10235 ==[[foo|x<nowiki>y</nowiki>z]]==
10237 <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>
10242 new support for bdi element (bug 31817)
10244 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10246 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10251 Ignore pipe between table row attributes
10255 |- id=foo | style='color: red'
10263 <tr id="foo" style="color: red">
10270 Gallery override link with WikiLink (bug 34852)
10273 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10276 <ul class="gallery">
10277 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10278 <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>
10279 <div class="gallerytext">
10289 Gallery override link with absolute external link (bug 34852)
10292 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10295 <ul class="gallery">
10296 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10297 <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>
10298 <div class="gallerytext">
10308 Gallery override link with malicious javascript (bug 34852)
10311 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10314 <ul class="gallery">
10315 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10316 <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>
10317 <div class="gallerytext">
10327 Language parser function
10336 Padleft and padright as substr
10338 {{padleft:|3|abcde}}
10339 {{padright:|3|abcde}}
10347 Bug 34939 - Case insensitive link parsing ([HttP://])
10349 [HttP://MediaWiki.Org/]
10351 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
10356 Bug 34939 - Case insensitive link parsing ([HttP:// title])
10358 [HttP://MediaWiki.Org/ MediaWiki]
10360 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
10365 Bug 34939 - Case insensitive link parsing (HttP://)
10367 HttP://MediaWiki.Org/
10369 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
10379 Try for 100% code coverage